@basemaps/cli 6.21.1 → 6.22.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.
- package/CHANGELOG.md +11 -0
- package/build/cli/util.d.ts +1 -1
- package/build/cli/util.d.ts.map +1 -1
- package/build/cli/util.js +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [6.22.0](https://github.com/linz/basemaps/compare/v6.21.1...v6.22.0) (2022-03-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **cli:** support multiple invalidations for cloudfront ([#2120](https://github.com/linz/basemaps/issues/2120)) ([764fdeb](https://github.com/linz/basemaps/commit/764fdebaf7624c7761cede3a24c2184105bff9e2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [6.21.1](https://github.com/linz/basemaps/compare/v6.21.0...v6.21.1) (2022-03-17)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @basemaps/cli
|
package/build/cli/util.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Invalidate the cloudfront distribution cache when updating imagery sets
|
|
3
3
|
*/
|
|
4
|
-
export declare function invalidateCache(path: string, commit?: boolean): Promise<void>;
|
|
4
|
+
export declare function invalidateCache(path: string | string[], commit?: boolean): Promise<void>;
|
|
5
5
|
export declare const HashKey = "linz-hash";
|
|
6
6
|
export declare function getHash(Bucket: string, Key: string): Promise<string | null>;
|
|
7
7
|
export declare function getStaticBucket(): Promise<string | null>;
|
package/build/cli/util.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/cli/util.ts"],"names":[],"mappings":"AAkBA;;GAEG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/cli/util.ts"],"names":[],"mappings":"AAkBA;;GAEG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,MAAM,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CA+B5F;AAED,eAAO,MAAM,OAAO,cAAc,CAAC;AAEnC,wBAAsB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAQjF;AAOD,wBAAsB,eAAe,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAQ9D;AAMD;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,CAAC,CA6BlB"}
|
package/build/cli/util.js
CHANGED
|
@@ -31,12 +31,13 @@ export async function invalidateCache(path, commit = false) {
|
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
LogConfig.get().info({ path, cfId: cf.Id }, 'Invalidating');
|
|
34
|
+
const Items = Array.isArray(path) ? path : [path];
|
|
34
35
|
if (commit) {
|
|
35
36
|
await cloudFront
|
|
36
37
|
.createInvalidation({
|
|
37
38
|
DistributionId: cf.Id,
|
|
38
39
|
InvalidationBatch: {
|
|
39
|
-
Paths: { Quantity:
|
|
40
|
+
Paths: { Quantity: Items.length, Items },
|
|
40
41
|
CallerReference: `${CliId}-${InvalidationId++}`,
|
|
41
42
|
},
|
|
42
43
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basemaps/cli",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.22.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@basemaps/config": "^6.21.1",
|
|
41
41
|
"@basemaps/geo": "^6.21.1",
|
|
42
|
-
"@basemaps/shared": "^6.
|
|
42
|
+
"@basemaps/shared": "^6.22.0",
|
|
43
43
|
"@chunkd/fs": "^8.1.0",
|
|
44
44
|
"@cogeotiff/core": "^6.1.1",
|
|
45
45
|
"@linzjs/geojson": "^6.21.1",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"files": [
|
|
60
60
|
"build/"
|
|
61
61
|
],
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "b85a4a628bcdfea657a37de97faa23dde5c34798"
|
|
63
63
|
}
|