Skip to content

Commit 00806fe

Browse files
authored
create spdxid enum (#172)
* create spdxid enum * explain codegen process * update changelog * please `chan` * update pull request template * make spdx id decoding case insensitive
1 parent b360e4c commit 00806fe

File tree

9 files changed

+536
-103
lines changed

9 files changed

+536
-103
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Brief description of what this PR does, and why it is needed.
55
### Checklist
66

77
- [ ] New tests have been added or existing tests have been modified
8-
- [ ] Changelog updated
8+
- [ ] Changelog updated (please use [`chan`](https://www.npmjs.com/package/@geut/chan))
99

1010
### Notes
1111

CHANGELOG.md

Lines changed: 32 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,90 @@
1-
## Unreleased
1+
# Change Log
2+
All notable changes to this project will be documented in this file.
23

3-
### Changed
4-
5-
### Added
6-
7-
### Deprecated
8-
9-
### Removed
10-
11-
### Fixed
12-
13-
### Security
14-
15-
## [0.0.16](https://github.com/azavea/stac4s/tree/0.0.16)
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
165

6+
## [Unreleased]
177
### Changed
8+
- SPDX license ids are captured by a specific enum rather than a refinement with validation [#172](https://github.com/azavea/stac4s/pull/172)
189

10+
## [0.0.16] - 2020-09-30
11+
### Changed
1912
- Remove joda time [#153](https://github.com/azavea/stac4s/pull/153)
2013

21-
## [0.0.15](https://github.com/azavea/stac4s/tree/0.0.15)
22-
14+
## [0.0.15] - 2020-09-29
2315
### Changed
24-
2516
- All implicit imports from cats are moved to specific `cats.syntax.foo` imports [#146](https://github.com/azavea/stac4s/pull/146)
2617
- Time types are derived from `org.joda.time.Instant` instead of stock `java` time types [#152](https://github.com/azavea/stac4s/pull/152)
2718

28-
## [0.0.14](https://github.com/azavea/stac4s/tree/0.0.14)
29-
19+
## [0.0.14] - 2020-08-06
3020
### Changed
31-
3221
- Generators for bboxes now always generate valid bboxes [#135](https://github.com/azavea/stac4s/pull/135)
3322

34-
## [0.0.13](https://github.com/azavea/stac4s/tree/0.0.13)
35-
23+
## [0.0.13] - 2020-07-31
3624
### Added
37-
3825
- STAC 1.0.0-beta.1 support [#116](https://github.com/azavea/stac4s/pull/116)
3926
- STAC Layer extension spec [#126](https://github.com/azavea/stac4s/pull/126)
4027

4128
### Changed
42-
4329
- Update `StacMediaType` for `geotiff` and `cog` in 1.0.0-beta.1 spec [#132](https://github.com/azavea/stac4s/pull/132)
4430

4531
### Removed
46-
4732
- Remove STAC Catalof specs against manually created catalogs from tests [#126](https://github.com/azavea/stac4s/pull/126)
4833

4934
### Fixed
50-
5135
- STAC Catalogs do not require the `stac_extensions` field [#127](https://github.com/azavea/stac4s/pull/127)
5236

53-
### Security
54-
55-
## [0.0.10](https://github.com/azavea/stac4s/tree/0.0.10)
56-
37+
## [0.0.10] - 2020-06-17
5738
### Added
58-
5939
- Publication of `testing` module, which includes `scalacheck` generators for STAC base and extension types [#104](https://github.com/azavea/stac4s/pull/104)
6040

6141
### Changed
62-
6342
- Receive GPG key while publishing artifacts [#101](https://github.com/azavea/stac4s/pull/101)
6443

65-
## [0.0.9](https://github.com/azavea/stac4s/tree/0.0.9)
66-
44+
## [0.0.9] - 2020-06-02
6745
### Fixed
68-
6946
- Vendor enum (link types, media types, etc.) representations no longer prefix `vendor-` in serialization [#94](https://github.com/azavea/stac4s/pull/94)
7047
- Missing `derived_from` link type was included [#94](https://github.com/azavea/stac4s/pull/94)
7148
- Decoding collections from json does not require the `properties` field [#97](https://github.com/azavea/stac4s/pull/97)
7249

73-
## [0.0.8](https://github.com/azavea/stac4s/tree/0.0.8)
74-
50+
## [0.0.8] - 2020-05-27
7551
### Added
76-
7752
- Created typeclasses for linking extensions to the items they extend [#85](https://github.com/azavea/stac4s/pull/85)
7853
- Created extension data model for EO Extension [#92](https://github.com/azavea/stac4s/pull/92)
7954

8055
### Changed
81-
8256
- Reduce boilerplate in fieldnames derivation [#90](https://github.com/azavea/stac4s/issues/90)
8357

8458
### Fixed
85-
8659
- Stopped generating `NaN`s as valid `Double` values [#91](https://github.com/azavea/stac4s/pull/91)
8760

88-
## [0.0.4]
89-
61+
## [0.0.4] - 2020-03-25
9062
### Added
91-
92-
- Added ability to transform `Bbox` to `Extent` [\#5](https://github.com/azavea/stac4s/pull/5)
63+
- Added ability to transform `Bbox` to `Extent` [#5](https://github.com/azavea/stac4s/pull/5)
9364

9465
### Changed
95-
96-
- Updated to GeoTrellis 3.2 [\#5](https://github.com/azavea/stac4s/pull/5)
66+
- Updated to GeoTrellis 3.2 [#5](https://github.com/azavea/stac4s/pull/5)
9767

9868
### Removed
69+
- Removed `core` from package naming [#5](https://github.com/azavea/stac4s/pull/5)
9970

100-
- Removed `core` from package naming [\#5](https://github.com/azavea/stac4s/pull/5)
101-
102-
## [0.0.3]
103-
71+
## [0.0.3] - 2019-12-20
10472
### Added
105-
106-
- Added ability to transform `Bbox` to `Extent` [\#5](https://github.com/azavea/stac4s/pull/5)
73+
- Added ability to transform `Bbox` to `Extent` [#5](https://github.com/azavea/stac4s/pull/5)
10774

10875
### Changed
109-
110-
- Updated to GeoTrellis 3.2 [\#5](https://github.com/azavea/stac4s/pull/5)
76+
- Updated to GeoTrellis 3.2 [#5](https://github.com/azavea/stac4s/pull/5)
11177

11278
### Removed
113-
114-
- Removed `core` from package naming [\#5](https://github.com/azavea/stac4s/pull/5)
79+
- Removed `core` from package naming [#5](https://github.com/azavea/stac4s/pull/5)
80+
81+
[Unreleased]: https://github.com/azavea/stac4s
82+
[0.0.16]: https://github.com/azavea/stac4s/tree/0.0.16
83+
[0.0.15]: https://github.com/azavea/stac4s/tree/0.0.15
84+
[0.0.14]: https://github.com/azavea/stac4s/tree/0.0.14
85+
[0.0.13]: https://github.com/azavea/stac4s/tree/0.0.13
86+
[0.0.10]: https://github.com/azavea/stac4s/tree/0.0.10
87+
[0.0.9]: https://github.com/azavea/stac4s/tree/0.0.9
88+
[0.0.8]: https://github.com/azavea/stac4s/tree/0.0.8
89+
[0.0.4]: https://github.com/azavea/stac4s/tree/0.0.4
90+
[0.0.3]: https://github.com/azavea/stac4s/tree/0.0.3

build.sbt

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -103,30 +103,32 @@ lazy val credentialSettings = Seq(
103103
)
104104

105105
val coreDependencies = Seq(
106-
"com.chuusai" %% "shapeless" % Versions.ShapelessVersion,
107-
"com.github.tbouron" % "spdx-license-checker" % Versions.SpdxCheckerVersion,
108-
"eu.timepit" %% "refined" % Versions.RefinedVersion,
109-
"io.circe" %% "circe-core" % Versions.CirceVersion,
110-
"io.circe" %% "circe-generic" % Versions.CirceVersion,
111-
"io.circe" %% "circe-parser" % Versions.CirceVersion,
112-
"io.circe" %% "circe-refined" % Versions.CirceVersion,
113-
"org.locationtech.geotrellis" %% "geotrellis-vector" % Versions.GeoTrellisVersion,
114-
"org.locationtech.jts" % "jts-core" % Versions.Jts,
115-
"org.typelevel" %% "cats-core" % Versions.CatsVersion,
116-
"org.typelevel" %% "cats-kernel" % Versions.CatsVersion
106+
"com.beachape" %% "enumeratum" % Versions.EnumeratumVersion,
107+
"com.beachape" %% "enumeratum-circe" % Versions.EnumeratumVersion,
108+
"com.chuusai" %% "shapeless" % Versions.ShapelessVersion,
109+
"eu.timepit" %% "refined" % Versions.RefinedVersion,
110+
"io.circe" %% "circe-core" % Versions.CirceVersion,
111+
"io.circe" %% "circe-generic" % Versions.CirceVersion,
112+
"io.circe" %% "circe-parser" % Versions.CirceVersion,
113+
"io.circe" %% "circe-refined" % Versions.CirceVersion,
114+
"org.locationtech.geotrellis" %% "geotrellis-vector" % Versions.GeoTrellisVersion,
115+
"org.locationtech.jts" % "jts-core" % Versions.Jts,
116+
"org.typelevel" %% "cats-core" % Versions.CatsVersion,
117+
"org.typelevel" %% "cats-kernel" % Versions.CatsVersion
117118
)
118119

119120
val testingDependencies = Seq(
120-
"com.chuusai" %% "shapeless" % Versions.ShapelessVersion,
121-
"com.github.tbouron" % "spdx-license-checker" % Versions.SpdxCheckerVersion,
122-
"eu.timepit" %% "refined-scalacheck" % Versions.RefinedVersion,
123-
"eu.timepit" %% "refined" % Versions.RefinedVersion,
124-
"io.chrisdavenport" %% "cats-scalacheck" % Versions.ScalacheckCatsVersion,
125-
"io.circe" %% "circe-core" % Versions.CirceVersion,
126-
"org.locationtech.geotrellis" %% "geotrellis-vector" % Versions.GeoTrellisVersion,
127-
"org.locationtech.jts" % "jts-core" % Versions.Jts,
128-
"org.scalacheck" %% "scalacheck" % Versions.ScalacheckVersion,
129-
"org.typelevel" %% "cats-core" % Versions.CatsVersion
121+
"com.beachape" %% "enumeratum" % Versions.EnumeratumVersion,
122+
"com.beachape" %% "enumeratum-scalacheck" % Versions.EnumeratumVersion,
123+
"com.chuusai" %% "shapeless" % Versions.ShapelessVersion,
124+
"eu.timepit" %% "refined-scalacheck" % Versions.RefinedVersion,
125+
"eu.timepit" %% "refined" % Versions.RefinedVersion,
126+
"io.chrisdavenport" %% "cats-scalacheck" % Versions.ScalacheckCatsVersion,
127+
"io.circe" %% "circe-core" % Versions.CirceVersion,
128+
"org.locationtech.geotrellis" %% "geotrellis-vector" % Versions.GeoTrellisVersion,
129+
"org.locationtech.jts" % "jts-core" % Versions.Jts,
130+
"org.scalacheck" %% "scalacheck" % Versions.ScalacheckVersion,
131+
"org.typelevel" %% "cats-core" % Versions.CatsVersion
130132
)
131133

132134
val testRunnerDependencies = Seq(

0 commit comments

Comments
 (0)