@radiantearth/stac-migrate 1.6.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +16 -14
  2. package/migrate.js +999 -881
  3. package/package.json +41 -37
package/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # stac-migrate
2
2
 
3
- A library to update STAC files to the latest version (**1.0.0** at the moment of writing). Supports updating **STAC versions 0.6.0 and later**.
3
+ A library to update STAC files to the latest version (**1.1.0** at the moment of writing).
4
+ Supports updating **STAC versions 0.6.0 and later**.
4
5
 
5
- Version of this library: **1.6.0**
6
+ Version of this library: **2.0.0**
6
7
 
7
8
  ## Usage
8
9
 
@@ -16,7 +17,8 @@ Import the library: `const Migrate = require('@radiantearth/stac-migrate');`
16
17
  *This method does not migrate the Commons extension - use `Migrate.item` if you have used the Commons extension.*
17
18
  * Migrate a STAC Collection: `Migrate.collection(collection: object, updateVersionNumber: boolean = true) => object`
18
19
  * Migrate a STAC Catalog: `Migrate.catalog(catalog: object, updateVersionNumber: boolean = true) => object`
19
- * Migrate a STAC Item: `Migrate.item(item: object, collection: object = null, updateVersionNumber: boolean = true) => object`<br />
20
+ * Migrate a STAC Item: `Migrate.item(item: object, collection: object = null, updateVersionNumber: boolean = true) => object`
21
+
20
22
  *The `collection` parameter is only required to migrate the Commons extension. Otherwise, you don't need to pass this paramater.*
21
23
  * Migrate a STAC CollectionCollection: `Migrate.collectionCollection(apiCollections: object, updateVersionNumber: boolean = true) => object`
22
24
  * Migrate a STAC ItemCollection: `Migrate.itemCollection(apiItems: object, updateVersionNumber: boolean = true) => object`
@@ -36,29 +38,29 @@ The commands follow the different methods above and has the same "restrictions"
36
38
  * Migrate a STAC Item Collection: `npx stac-migrate <source_path> <dest_path> --item_collection`
37
39
  * Migrate a STAC Collection Collection: `npx stac-migrate <source_path> <dest_path> --collecions`
38
40
 
39
- ## Supported Extensions
41
+ ## Supported Extensions
40
42
 
41
43
  * Checksum (legacy, use `Migrate.enableMultihash(require('multihashes'))` to enable conversion from pre-0.9 checksums - disabled by default to keep the bundle size low)
42
- * Classification 1.1.0
44
+ * Classification 2.0.0
43
45
  * Collection Assets (legacy)
44
46
  * Commons (legacy)
45
- * Data Cube 2.1.0
47
+ * Data Cube 2.2.0
46
48
  * Datetime Range (legacy)
47
- * Electro-Optical 1.0.0
48
- * File 1.0.0
49
- * (Item) Asset Definition 1.0.0
49
+ * Electro-Optical 2.0.0
50
+ * File 2.1.0 (and 1.0.0 for `nodata`)
51
+ * Item Asset Definition 1.0.0 (legacy)
50
52
  * Label 1.0.1
51
53
  * Point Cloud 1.0.0
52
- * Procesing 1.1.0
53
- * Projection 1.0.0
54
- * Raster 1.1.0
54
+ * Processing 1.2.0
55
+ * Projection 2.0.0
56
+ * Raster 2.0.0
55
57
  * SAR 1.0.0
56
58
  * Satellite 1.0.0
57
59
  * Scientific Citation 1.0.0
58
60
  * Single Item
59
61
  * Table 1.2.0
60
- * Timestamps 1.0.0
61
- * Versioning Indicators 1.0.0
62
+ * Timestamps 1.1.0
63
+ * Versioning Indicators 1.2.0
62
64
  * View Geometry 1.0.0
63
65
 
64
66
  ## Development