@fastly/compute-js-static-publish 8.0.0-beta.8 → 8.0.0-rc.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/README.md +18 -4
- package/README.short.md +18 -4
- package/build/cli/cli/commands/manage/clean.d.ts.map +1 -1
- package/build/cli/cli/commands/manage/clean.js +7 -5
- package/build/cli/cli/commands/manage/collections/delete.d.ts.map +1 -1
- package/build/cli/cli/commands/manage/collections/delete.js +3 -4
- package/build/cli/cli/commands/manage/collections/index.d.ts.map +1 -1
- package/build/cli/cli/commands/manage/collections/index.js +2 -3
- package/build/cli/cli/commands/manage/collections/list.d.ts.map +1 -1
- package/build/cli/cli/commands/manage/collections/list.js +2 -3
- package/build/cli/cli/commands/manage/collections/promote.d.ts.map +1 -1
- package/build/cli/cli/commands/manage/collections/promote.js +2 -3
- package/build/cli/cli/commands/manage/collections/update-expiration.d.ts.map +1 -1
- package/build/cli/cli/commands/manage/collections/update-expiration.js +2 -3
- package/build/cli/cli/commands/manage/index.d.ts.map +1 -1
- package/build/cli/cli/commands/manage/index.js +2 -3
- package/build/cli/cli/commands/manage/publish-content.d.ts.map +1 -1
- package/build/cli/cli/commands/manage/publish-content.js +166 -66
- package/build/cli/cli/commands/scaffold/index.d.ts.map +1 -1
- package/build/cli/cli/commands/scaffold/index.js +7 -4
- package/build/cli/cli/compression/brotli.d.ts +2 -1
- package/build/cli/cli/compression/brotli.d.ts.map +1 -1
- package/build/cli/cli/compression/brotli.js +15 -4
- package/build/cli/cli/compression/gzip.d.ts +2 -1
- package/build/cli/cli/compression/gzip.d.ts.map +1 -1
- package/build/cli/cli/compression/gzip.js +8 -4
- package/build/cli/cli/compression/index.d.ts +4 -1
- package/build/cli/cli/compression/index.d.ts.map +1 -1
- package/build/cli/cli/index.js +8 -0
- package/build/cli/cli/storage/kv-store-local-provider.d.ts +3 -6
- package/build/cli/cli/storage/kv-store-local-provider.d.ts.map +1 -1
- package/build/cli/cli/storage/kv-store-local-provider.js +3 -10
- package/build/cli/cli/storage/kv-store-provider.d.ts +4 -6
- package/build/cli/cli/storage/kv-store-provider.d.ts.map +1 -1
- package/build/cli/cli/storage/kv-store-provider.js +38 -68
- package/build/cli/cli/storage/s3-storage-provider.d.ts +6 -9
- package/build/cli/cli/storage/s3-storage-provider.d.ts.map +1 -1
- package/build/cli/cli/storage/s3-storage-provider.js +45 -80
- package/build/cli/cli/storage/storage-provider.d.ts +7 -6
- package/build/cli/cli/storage/storage-provider.d.ts.map +1 -1
- package/build/cli/cli/storage/storage-provider.js +13 -0
- package/build/cli/cli/util/api-token.d.ts.map +1 -1
- package/build/cli/cli/util/api-token.js +0 -28
- package/build/cli/cli/util/config.d.ts.map +1 -1
- package/build/cli/cli/util/config.js +8 -1
- package/build/cli/cli/util/content-types.d.ts.map +1 -1
- package/build/cli/cli/util/content-types.js +5 -2
- package/build/cli/cli/util/kv-store-items.d.ts +12 -0
- package/build/cli/cli/util/kv-store-items.d.ts.map +1 -1
- package/build/cli/cli/util/kv-store-items.js +49 -0
- package/build/cli/cli/util/kv-store.d.ts +6 -0
- package/build/cli/cli/util/kv-store.d.ts.map +1 -1
- package/build/cli/cli/util/kv-store.js +39 -2
- package/build/cli/cli/util/purge.d.ts +17 -1
- package/build/cli/cli/util/purge.d.ts.map +1 -1
- package/build/cli/cli/util/purge.js +63 -3
- package/build/cli/cli/util/retryable.d.ts +2 -1
- package/build/cli/cli/util/retryable.d.ts.map +1 -1
- package/build/cli/cli/util/retryable.js +34 -1
- package/build/cli/cli/util/service-id.d.ts +10 -0
- package/build/cli/cli/util/service-id.d.ts.map +1 -0
- package/build/cli/cli/util/service-id.js +27 -0
- package/build/cli/cli/util/variants.d.ts +2 -1
- package/build/cli/cli/util/variants.d.ts.map +1 -1
- package/build/cli/cli/util/variants.js +2 -2
- package/build/cli/models/assets/index.js +1 -1
- package/build/cli/models/config/publish-content-config.d.ts +2 -0
- package/build/cli/models/config/publish-content-config.d.ts.map +1 -1
- package/build/server/models/assets/index.js +1 -1
- package/build/server/models/config/publish-content-config.d.ts +2 -0
- package/build/server/models/config/publish-content-config.d.ts.map +1 -1
- package/build/server/server/publisher-server/index.d.ts +15 -1
- package/build/server/server/publisher-server/index.d.ts.map +1 -1
- package/build/server/server/publisher-server/index.js +189 -56
- package/build/server/server/publisher-server/response-cache.d.ts +19 -0
- package/build/server/server/publisher-server/response-cache.d.ts.map +1 -0
- package/build/server/server/publisher-server/response-cache.js +106 -0
- package/build/server/server/storage/s3-storage-provider.d.ts +2 -5
- package/build/server/server/storage/s3-storage-provider.d.ts.map +1 -1
- package/build/server/server/storage/s3-storage-provider.js +95 -38
- package/build/server/server/storage/storage-provider.d.ts +1 -1
- package/build/server/server/storage/storage-provider.d.ts.map +1 -1
- package/build/server/server/storage/storage-provider.js +2 -1
- package/build/server/server/util/server-timing.d.ts +7 -0
- package/build/server/server/util/server-timing.d.ts.map +1 -0
- package/build/server/server/util/server-timing.js +34 -0
- package/package.json +9 -7
|
@@ -202,7 +202,7 @@ function buildOptions(packageJson, commandLineOptions) {
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
{
|
|
205
|
-
let autoExt
|
|
205
|
+
let autoExt;
|
|
206
206
|
const autoExtValue = commandLineOptions['auto-ext'];
|
|
207
207
|
const asArray = Array.isArray(autoExtValue) ? autoExtValue : [autoExtValue];
|
|
208
208
|
if (asArray.every((x) => typeof x === 'string')) {
|
|
@@ -505,6 +505,7 @@ export async function action(actionArgs) {
|
|
|
505
505
|
else if (!fs.existsSync(spaFilename)) {
|
|
506
506
|
console.log(`⚠️ Warning: Ignoring specified SPA file '${SPA}' does not exist.`);
|
|
507
507
|
console.log(` * ${rootRelative(spaFilename)} does not exist.`);
|
|
508
|
+
spaFilename = undefined;
|
|
508
509
|
}
|
|
509
510
|
}
|
|
510
511
|
const NOT_FOUND_PAGE = options.notFoundPage;
|
|
@@ -521,6 +522,7 @@ export async function action(actionArgs) {
|
|
|
521
522
|
else if (!fs.existsSync(notFoundPageFilename)) {
|
|
522
523
|
console.log(`⚠️ Warning: Ignoring specified Not Found file '${NOT_FOUND_PAGE}' as it does not exist.`);
|
|
523
524
|
console.log(` * ${rootRelative(notFoundPageFilename)} does not exist.`);
|
|
525
|
+
notFoundPageFilename = undefined;
|
|
524
526
|
}
|
|
525
527
|
}
|
|
526
528
|
const autoIndex = options.autoIndex;
|
|
@@ -676,11 +678,11 @@ export async function action(actionArgs) {
|
|
|
676
678
|
author,
|
|
677
679
|
type: 'module',
|
|
678
680
|
devDependencies: {
|
|
679
|
-
"@fastly/cli": "^
|
|
681
|
+
"@fastly/cli": "^16.0.0",
|
|
680
682
|
'@fastly/compute-js-static-publish': computeJsStaticPublisherVersion,
|
|
681
683
|
},
|
|
682
684
|
dependencies: {
|
|
683
|
-
'@fastly/js-compute': '^
|
|
685
|
+
'@fastly/js-compute': '^4.0.0',
|
|
684
686
|
},
|
|
685
687
|
engines: {
|
|
686
688
|
node: '>=20.11.0',
|
|
@@ -847,7 +849,8 @@ const config = {
|
|
|
847
849
|
// excludeDotFiles: true,
|
|
848
850
|
// includeWellKnown: true,
|
|
849
851
|
// assetInclusionTest: (assetKey) => true,
|
|
850
|
-
// contentCompression: [ 'br', 'gzip' ],
|
|
852
|
+
// contentCompression: [ 'br', 'gzip' ],
|
|
853
|
+
// brotliQuality: 11,
|
|
851
854
|
// contentTypes: [
|
|
852
855
|
// { test: /.custom$/, contentType: 'application/x-custom', text: false },
|
|
853
856
|
// ],
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CompressOptions } from './index.js';
|
|
1
2
|
export declare const key = "br";
|
|
2
|
-
export declare function compressTo(src: string, dest: string): Promise<void>;
|
|
3
|
+
export declare function compressTo(src: string, dest: string, options?: CompressOptions): Promise<void>;
|
|
3
4
|
//# sourceMappingURL=brotli.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brotli.d.ts","sourceRoot":"","sources":["../../../../src/cli/compression/brotli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"brotli.d.ts","sourceRoot":"","sources":["../../../../src/cli/compression/brotli.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,eAAO,MAAM,GAAG,OAAO,CAAC;AAMxB,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAexG"}
|
|
@@ -4,9 +4,20 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import fs from 'node:fs';
|
|
6
6
|
import zlib from 'node:zlib';
|
|
7
|
+
import { promisify } from 'node:util';
|
|
7
8
|
export const key = 'br';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
// The async version runs on the libuv thread pool, so that more than one
|
|
10
|
+
// file can be compressed at the same time.
|
|
11
|
+
const brotliCompress = promisify(zlib.brotliCompress);
|
|
12
|
+
export async function compressTo(src, dest, options = {}) {
|
|
13
|
+
const buffer = await fs.promises.readFile(src);
|
|
14
|
+
// If no quality is specified, use the zlib default (11, the maximum).
|
|
15
|
+
const zlibOptions = {};
|
|
16
|
+
if (options.brotliQuality != null) {
|
|
17
|
+
zlibOptions.params = {
|
|
18
|
+
[zlib.constants.BROTLI_PARAM_QUALITY]: options.brotliQuality,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
const resultBuffer = await brotliCompress(buffer, zlibOptions);
|
|
22
|
+
await fs.promises.writeFile(dest, resultBuffer);
|
|
12
23
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CompressOptions } from './index.js';
|
|
1
2
|
export declare const key = "gzip";
|
|
2
|
-
export declare function compressTo(src: string, dest: string): Promise<void>;
|
|
3
|
+
export declare function compressTo(src: string, dest: string, _options?: CompressOptions): Promise<void>;
|
|
3
4
|
//# sourceMappingURL=gzip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gzip.d.ts","sourceRoot":"","sources":["../../../../src/cli/compression/gzip.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gzip.d.ts","sourceRoot":"","sources":["../../../../src/cli/compression/gzip.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,eAAO,MAAM,GAAG,SAAS,CAAC;AAM1B,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,eAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAMzG"}
|
|
@@ -4,9 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import fs from 'node:fs';
|
|
6
6
|
import zlib from 'node:zlib';
|
|
7
|
+
import { promisify } from 'node:util';
|
|
7
8
|
export const key = 'gzip';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
// The async version runs on the libuv thread pool, so that more than one
|
|
10
|
+
// file can be compressed at the same time.
|
|
11
|
+
const gzip = promisify(zlib.gzip);
|
|
12
|
+
export async function compressTo(src, dest, _options = {}) {
|
|
13
|
+
const buffer = await fs.promises.readFile(src);
|
|
14
|
+
const resultBuffer = await gzip(buffer);
|
|
15
|
+
await fs.promises.writeFile(dest, resultBuffer);
|
|
12
16
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { type ContentCompressionTypes } from '../../models/compression/index.js';
|
|
2
|
-
export type
|
|
2
|
+
export type CompressOptions = {
|
|
3
|
+
brotliQuality?: number;
|
|
4
|
+
};
|
|
5
|
+
export type CompressAlg = (src: string, dest: string, options?: CompressOptions) => Promise<void>;
|
|
3
6
|
declare const algs: Record<ContentCompressionTypes, CompressAlg>;
|
|
4
7
|
export { algs };
|
|
5
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/compression/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAEjF,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/compression/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAEjF,MAAM,MAAM,eAAe,GAAG;IAE5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAElG,QAAA,MAAM,IAAI,EAAE,MAAM,CAAC,uBAAuB,EAAE,WAAW,CAGtD,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/build/cli/cli/index.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Licensed under the MIT license. See LICENSE file for details.
|
|
5
5
|
*/
|
|
6
6
|
import fs from 'node:fs';
|
|
7
|
+
import { availableParallelism } from 'node:os';
|
|
7
8
|
import * as scaffoldCommand from './commands/scaffold/index.js';
|
|
8
9
|
import * as manageCommands from './commands/manage/index.js';
|
|
9
10
|
// Register storage builder providers
|
|
@@ -14,6 +15,13 @@ import * as s3StorageProvider from './storage/s3-storage-provider.js';
|
|
|
14
15
|
registerStorageProviderBuilder(kvStoreProvider.buildStoreProvider);
|
|
15
16
|
registerStorageProviderBuilder(kvStoreLocalProvider.buildStoreProvider);
|
|
16
17
|
registerStorageProviderBuilder(s3StorageProvider.buildStoreProvider);
|
|
18
|
+
// Compression runs on the libuv thread pool, which has 4 threads by default.
|
|
19
|
+
// Use more threads on machines with more cores. libuv reads this value when it
|
|
20
|
+
// first uses the pool, so set it before any async work. A value that the user
|
|
21
|
+
// sets is kept.
|
|
22
|
+
if (process.env.UV_THREADPOOL_SIZE == null) {
|
|
23
|
+
process.env.UV_THREADPOOL_SIZE = String(Math.max(4, Math.min(availableParallelism(), 16)));
|
|
24
|
+
}
|
|
17
25
|
if (!fs.existsSync('./static-publish.rc.js')) {
|
|
18
26
|
console.log("🧑💻Fastly Compute JavaScript Static Publisher (Scaffolding mode)");
|
|
19
27
|
await scaffoldCommand.action(process.argv);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type StorageEntry, type StorageProvider, type StorageProviderBuilder, type StorageProviderBatch } from './storage-provider.js';
|
|
1
|
+
import { type StorageEntry, type StorageProvider, type StorageProviderBuilder, type StorageProviderBatch, type ApplyBatchOptions } from './storage-provider.js';
|
|
3
2
|
export declare const buildStoreProvider: StorageProviderBuilder;
|
|
4
3
|
export declare class KvStoreLocalProvider implements StorageProvider {
|
|
5
4
|
constructor(storeFile: string, computeAppDir: string);
|
|
@@ -10,12 +9,10 @@ export declare class KvStoreLocalProvider implements StorageProvider {
|
|
|
10
9
|
getStorageEntryInfo(key: string): Promise<StorageEntry | null>;
|
|
11
10
|
submitStorageEntry(key: string, filePath: string, data: ReadableStream<Uint8Array> | Uint8Array | string | null | undefined, metadata?: Record<string, string>): Promise<void>;
|
|
12
11
|
deleteStorageEntry(key: string): Promise<void>;
|
|
13
|
-
applyBatch(batch: StorageProviderBatch): Promise<void>;
|
|
12
|
+
applyBatch(batch: StorageProviderBatch, _options?: ApplyBatchOptions): Promise<void>;
|
|
14
13
|
doConcurrentParallel<TObject extends {
|
|
15
14
|
key: string;
|
|
16
|
-
}>(objects: TObject[], fn: (obj: TObject, key: string, index: number) => Promise<void>, maxConcurrent?: number): Promise<void>;
|
|
15
|
+
}>(objects: TObject[], fn: (obj: TObject, key: string, index: number) => Promise<void>, maxConcurrent?: number, throwOnError?: boolean): Promise<void>;
|
|
17
16
|
calculateNumChunks(size: number): number;
|
|
18
|
-
getExistingAssetVariant(_variantKey: string): Promise<AssetVariantMetadata | null>;
|
|
19
|
-
purgeSurrogateKey(_surrogateKey: string): Promise<void>;
|
|
20
17
|
}
|
|
21
18
|
//# sourceMappingURL=kv-store-local-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kv-store-local-provider.d.ts","sourceRoot":"","sources":["../../../../src/cli/storage/kv-store-local-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kv-store-local-provider.d.ts","sourceRoot":"","sources":["../../../../src/cli/storage/kv-store-local-provider.ts"],"names":[],"mappings":"AA0BA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAE3B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAK/B,eAAO,MAAM,kBAAkB,EAAE,sBAkBhC,CAAC;AAEF,qBAAa,oBAAqB,YAAW,eAAe;gBAExD,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM;IAMvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAEzB,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC;IAQzD,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAc1D,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAe9D,kBAAkB,CACtB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EACzE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAChC,OAAO,CAAC,IAAI,CAAC;IAsBV,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAS9C,UAAU,CAAC,KAAK,EAAE,oBAAoB,EAAE,QAAQ,GAAE,iBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBxF,oBAAoB,CAAC,OAAO,SAAS;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EACxD,OAAO,EAAE,OAAO,EAAE,EAClB,EAAE,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,EAC/D,aAAa,CAAC,EAAE,MAAM,EACtB,YAAY,GAAE,OAAe,GAC5B,OAAO,CAAC,IAAI,CAAC;IAYhB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAGzC"}
|
|
@@ -64,7 +64,7 @@ export class KvStoreLocalProvider {
|
|
|
64
64
|
async deleteStorageEntry(key) {
|
|
65
65
|
await localKvStoreDeleteEntry(this.storeFile, key);
|
|
66
66
|
}
|
|
67
|
-
async applyBatch(batch) {
|
|
67
|
+
async applyBatch(batch, _options = {}) {
|
|
68
68
|
console.log(`🍪 Chunking large files...`);
|
|
69
69
|
await applyKVStoreEntriesChunks(batch.storageProviderBatchEntries, KV_STORE_CHUNK_SIZE);
|
|
70
70
|
console.log(`✅ Large files have been chunked.`);
|
|
@@ -72,17 +72,10 @@ export class KvStoreLocalProvider {
|
|
|
72
72
|
writeKVStoreEntriesForLocal(this.storeFile, this.computeAppDir, batch.storageProviderBatchEntries);
|
|
73
73
|
console.log(`✅ Wrote KV Store entries for local server.`);
|
|
74
74
|
}
|
|
75
|
-
async doConcurrentParallel(objects, fn, maxConcurrent) {
|
|
76
|
-
await concurrentParallel(objects, fn, () => null, maxConcurrent);
|
|
75
|
+
async doConcurrentParallel(objects, fn, maxConcurrent, throwOnError = false) {
|
|
76
|
+
await concurrentParallel(objects, fn, () => null, maxConcurrent, throwOnError);
|
|
77
77
|
}
|
|
78
78
|
calculateNumChunks(size) {
|
|
79
79
|
return Math.ceil(size / KV_STORE_CHUNK_SIZE);
|
|
80
80
|
}
|
|
81
|
-
async getExistingAssetVariant(_variantKey) {
|
|
82
|
-
// The purpose of this function is to use a HEAD request against storage
|
|
83
|
-
// to save time by checking for an existing item. This is not applicable for local.
|
|
84
|
-
return null;
|
|
85
|
-
}
|
|
86
|
-
async purgeSurrogateKey(_surrogateKey) {
|
|
87
|
-
}
|
|
88
81
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { type AssetVariantMetadata } from '../../models/assets/index.js';
|
|
2
1
|
import { type FastlyApiContext } from '../util/api-token.js';
|
|
3
2
|
import { type KvStoreEntryInfo } from '../util/kv-store.js';
|
|
4
|
-
import { type StorageEntry, type StorageProvider, type StorageProviderBuilder, type StorageProviderBatch } from './storage-provider.js';
|
|
3
|
+
import { type StorageEntry, type StorageProvider, type StorageProviderBuilder, type StorageProviderBatch, type StorageProviderBatchEntry, type ApplyBatchOptions } from './storage-provider.js';
|
|
5
4
|
export declare const buildStoreProvider: StorageProviderBuilder;
|
|
6
5
|
export declare class KvStoreProvider implements StorageProvider {
|
|
7
6
|
constructor(storeName: string, fastlyApiToken: string);
|
|
@@ -12,13 +11,12 @@ export declare class KvStoreProvider implements StorageProvider {
|
|
|
12
11
|
getStorageEntryInfo(key: string): Promise<StorageEntry | null>;
|
|
13
12
|
submitStorageEntry(key: string, _filePath: string, data: ReadableStream<Uint8Array> | Uint8Array | string | null | undefined, metadata?: Record<string, string>): Promise<void>;
|
|
14
13
|
deleteStorageEntry(key: string): Promise<void>;
|
|
15
|
-
applyBatch(batch: StorageProviderBatch): Promise<void>;
|
|
14
|
+
applyBatch(batch: StorageProviderBatch, options?: ApplyBatchOptions): Promise<void>;
|
|
15
|
+
uploadEntries(entries: StorageProviderBatchEntry[]): Promise<void>;
|
|
16
16
|
doConcurrentParallel<TObject extends {
|
|
17
17
|
key: string;
|
|
18
|
-
}>(objects: TObject[], fn: (obj: TObject, key: string, index: number) => Promise<void>, maxConcurrent?: number): Promise<void>;
|
|
18
|
+
}>(objects: TObject[], fn: (obj: TObject, key: string, index: number) => Promise<void>, maxConcurrent?: number, throwOnError?: boolean): Promise<void>;
|
|
19
19
|
calculateNumChunks(size: number): number;
|
|
20
|
-
getExistingAssetVariant(variantKey: string): Promise<AssetVariantMetadata | null>;
|
|
21
|
-
purgeSurrogateKey(_surrogateKey: string): Promise<void>;
|
|
22
20
|
}
|
|
23
21
|
export declare function kvStoreEntryToStorageEntry(kvStoreEntry: KvStoreEntryInfo): StorageEntry;
|
|
24
22
|
export declare function parseKvStoreMetadata(metadata: string): Record<string, string> | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kv-store-provider.d.ts","sourceRoot":"","sources":["../../../../src/cli/storage/kv-store-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kv-store-provider.d.ts","sourceRoot":"","sources":["../../../../src/cli/storage/kv-store-provider.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EACL,KAAK,gBAAgB,EAMtB,MAAM,qBAAqB,CAAC;AAY7B,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAE3B,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,eAAO,MAAM,kBAAkB,EAAE,sBAsBhC,CAAC;AAEF,qBAAa,eAAgB,YAAW,eAAe;gBAEnD,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM;IAMxB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,WAAW,EAAE,M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|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
* Licensed under the MIT license. See LICENSE file for details.
|
|
4
4
|
*/
|
|
5
5
|
import fs from 'node:fs';
|
|
6
|
-
import { decodeAssetVariantMetadata, } from '../../models/assets/index.js';
|
|
7
6
|
import { isKvStoreConfigRc, } from '../../models/config/static-publish-rc.js';
|
|
8
7
|
import { getKvStoreConfigFromRc, } from '../../models/config/kv-store-config.js';
|
|
9
8
|
import { FetchError, loadApiToken, } from '../util/api-token.js';
|
|
10
9
|
import { rootRelative, } from '../util/files.js';
|
|
11
|
-
import { getKvStoreEntry, getKVStoreKeys, kvStoreDeleteEntry, kvStoreSubmitEntry,
|
|
12
|
-
import { applyKVStoreEntriesChunks, KV_STORE_CHUNK_SIZE, } from '../util/kv-store-items.js';
|
|
13
|
-
import { concurrentParallel, } from '../util/retryable.js';
|
|
10
|
+
import { getKvStoreEntry, getKVStoreKeys, kvStoreDeleteEntry, kvStoreSubmitEntry, kvStoreSubmitBatch, } from '../util/kv-store.js';
|
|
11
|
+
import { applyKVStoreEntriesChunks, packNdjsonBatches, ndjsonLineForBatchEntry, entriesToUpload, KV_STORE_CHUNK_SIZE, } from '../util/kv-store-items.js';
|
|
12
|
+
import { concurrentParallel, makeRetryable, } from '../util/retryable.js';
|
|
14
13
|
export const buildStoreProvider = (config, context) => {
|
|
15
14
|
if (isKvStoreConfigRc(config) && !context.localMode) {
|
|
16
15
|
console.log(` Working on the Fastly KV Store...`);
|
|
@@ -55,20 +54,43 @@ export class KvStoreProvider {
|
|
|
55
54
|
async deleteStorageEntry(key) {
|
|
56
55
|
await kvStoreDeleteEntry(this.fastlyApiContext, this.kvStoreName, key);
|
|
57
56
|
}
|
|
58
|
-
async applyBatch(batch) {
|
|
57
|
+
async applyBatch(batch, options = {}) {
|
|
58
|
+
const { existingKeys } = options;
|
|
59
59
|
console.log(`🍪 Chunking large files...`);
|
|
60
60
|
await applyKVStoreEntriesChunks(batch.storageProviderBatchEntries, KV_STORE_CHUNK_SIZE);
|
|
61
61
|
console.log(`✅ Large files have been chunked.`);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
let toWrite = batch.storageProviderBatchEntries;
|
|
63
|
+
if (existingKeys != null) {
|
|
64
|
+
toWrite = entriesToUpload(toWrite, existingKeys);
|
|
65
|
+
console.log(` | ${batch.storageProviderBatchEntries.length - toWrite.length} chunk(s) already present in the KV Store.`);
|
|
66
|
+
}
|
|
67
|
+
console.log(`📤 Uploading ${toWrite.length} entries to KV Store.`);
|
|
68
|
+
await this.uploadEntries(toWrite);
|
|
69
|
+
console.log(`✅ Uploaded entries to KV Store.`);
|
|
70
|
+
}
|
|
71
|
+
async uploadEntries(entries) {
|
|
72
|
+
const { batches, oversized } = packNdjsonBatches(entries);
|
|
73
|
+
await this.doConcurrentParallel(oversized, async ({ filePath, metadataJson }, key) => {
|
|
65
74
|
const fileBytes = fs.readFileSync(filePath);
|
|
66
75
|
await kvStoreSubmitEntry(this.fastlyApiContext, this.kvStoreName, key, fileBytes, metadataJson != null ? JSON.stringify(metadataJson) : undefined);
|
|
67
|
-
console.log(` 🌐 Submitted asset "${rootRelative(filePath)}" to KV Store with key "${key}".`);
|
|
68
|
-
});
|
|
69
|
-
|
|
76
|
+
console.log(` 🌐 Submitted large asset "${rootRelative(filePath)}" to KV Store with key "${key}".`);
|
|
77
|
+
}, 12, true);
|
|
78
|
+
await this.doConcurrentParallel(batches, async (batch, key) => {
|
|
79
|
+
const lines = batch.entries.map(ndjsonLineForBatchEntry);
|
|
80
|
+
const failures = await kvStoreSubmitBatch(this.fastlyApiContext, this.kvStoreName, lines);
|
|
81
|
+
if (failures.length > 0) {
|
|
82
|
+
// Keep only the entries that failed. The retry submits only these entries.
|
|
83
|
+
const failedKeys = new Set(failures.map(f => f.key));
|
|
84
|
+
const submittedCount = batch.entries.length;
|
|
85
|
+
batch.entries = batch.entries.filter(entry => failedKeys.has(entry.key));
|
|
86
|
+
const shown = failures.slice(0, 5).map(f => `${f.key} (${f.code ?? 'unknown'}: ${f.reason ?? 'unknown'})`).join(', ');
|
|
87
|
+
const more = failures.length > 5 ? `, and ${failures.length - 5} more` : '';
|
|
88
|
+
throw makeRetryable(new Error(`${failures.length} of ${submittedCount} entries failed: ${shown}${more}`));
|
|
89
|
+
}
|
|
90
|
+
console.log(` 🌐 Submitted ${batch.entries.length} entries to KV Store ("${key}").`);
|
|
91
|
+
}, 12, true);
|
|
70
92
|
}
|
|
71
|
-
async doConcurrentParallel(objects, fn, maxConcurrent = 12) {
|
|
93
|
+
async doConcurrentParallel(objects, fn, maxConcurrent = 12, throwOnError = false) {
|
|
72
94
|
await concurrentParallel(objects, fn, (err) => {
|
|
73
95
|
if (err instanceof FetchError) {
|
|
74
96
|
return `HTTP ${err.status}`;
|
|
@@ -76,67 +98,15 @@ export class KvStoreProvider {
|
|
|
76
98
|
else if (err instanceof TypeError) {
|
|
77
99
|
return 'transport';
|
|
78
100
|
}
|
|
101
|
+
else if (err instanceof Error) {
|
|
102
|
+
return err.message;
|
|
103
|
+
}
|
|
79
104
|
return null;
|
|
80
|
-
}, maxConcurrent);
|
|
105
|
+
}, maxConcurrent, throwOnError);
|
|
81
106
|
}
|
|
82
107
|
calculateNumChunks(size) {
|
|
83
108
|
return Math.ceil(size / KV_STORE_CHUNK_SIZE);
|
|
84
109
|
}
|
|
85
|
-
async getExistingAssetVariant(variantKey) {
|
|
86
|
-
let kvStoreItemMetadata = null;
|
|
87
|
-
const items = [{
|
|
88
|
-
key: variantKey,
|
|
89
|
-
}];
|
|
90
|
-
await this.doConcurrentParallel(items, async (_, variantKey) => {
|
|
91
|
-
// fastlyApiContext is non-null if useKvStore is true
|
|
92
|
-
const kvStoreEntryInfo = await getKvStoreEntryInfo(this.fastlyApiContext, this.kvStoreName, variantKey);
|
|
93
|
-
if (!kvStoreEntryInfo) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
let itemMetadata;
|
|
97
|
-
if (kvStoreEntryInfo.metadata != null) {
|
|
98
|
-
try {
|
|
99
|
-
itemMetadata = JSON.parse(kvStoreEntryInfo.metadata);
|
|
100
|
-
}
|
|
101
|
-
catch {
|
|
102
|
-
// if the metadata does not parse successfully as JSON,
|
|
103
|
-
// treat it as though it didn't exist.
|
|
104
|
-
}
|
|
105
|
-
itemMetadata = decodeAssetVariantMetadata(itemMetadata);
|
|
106
|
-
}
|
|
107
|
-
if (itemMetadata != null) {
|
|
108
|
-
let exists = false;
|
|
109
|
-
if (itemMetadata.size <= KV_STORE_CHUNK_SIZE) {
|
|
110
|
-
// For an item equal to or smaller than the chunk size, if it exists
|
|
111
|
-
// and its metadata asserts no chunk count, then we assume it exists.
|
|
112
|
-
if (itemMetadata.numChunks === undefined) {
|
|
113
|
-
exists = true;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
// For chunked objects, if the first chunk exists, and its metadata asserts
|
|
118
|
-
// the same number of chunks based on size, then we assume it exists (for now).
|
|
119
|
-
// In the future we might actually check for the existence and sizes of
|
|
120
|
-
// every chunk in the KV Store.
|
|
121
|
-
const expectedNumChunks = Math.ceil(itemMetadata.size / KV_STORE_CHUNK_SIZE);
|
|
122
|
-
if (itemMetadata.numChunks === expectedNumChunks) {
|
|
123
|
-
exists = true;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
if (exists) {
|
|
127
|
-
kvStoreItemMetadata = {
|
|
128
|
-
contentEncoding: itemMetadata.contentEncoding,
|
|
129
|
-
size: itemMetadata.size,
|
|
130
|
-
hash: itemMetadata.hash,
|
|
131
|
-
numChunks: itemMetadata.numChunks,
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
return kvStoreItemMetadata;
|
|
137
|
-
}
|
|
138
|
-
async purgeSurrogateKey(_surrogateKey) {
|
|
139
|
-
}
|
|
140
110
|
}
|
|
141
111
|
export function kvStoreEntryToStorageEntry(kvStoreEntry) {
|
|
142
112
|
const storageEntry = {};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { S3Client } from '@aws-sdk/client-s3';
|
|
2
2
|
import { type Command, type HttpHandlerOptions } from '@aws-sdk/types';
|
|
3
|
-
import { type
|
|
4
|
-
import { type StorageEntry, type StorageProvider, type StorageProviderBuilder, type StorageProviderBatch } from './storage-provider.js';
|
|
3
|
+
import { type StorageEntry, type StorageProvider, type StorageProviderBuilder, type StorageProviderBatch, type ApplyBatchOptions } from './storage-provider.js';
|
|
5
4
|
type CommandOutput<C> = C extends Command<any, any, any, infer O, any> ? O : never;
|
|
5
|
+
export declare const DEFAULT_S3_UPLOAD_CONCURRENCY = 64;
|
|
6
6
|
export declare const buildStoreProvider: StorageProviderBuilder;
|
|
7
7
|
export declare class S3StorageProvider implements StorageProvider {
|
|
8
|
-
constructor(
|
|
9
|
-
private readonly fastlyServiceId?;
|
|
10
|
-
private readonly fastlyApiContext?;
|
|
8
|
+
constructor(s3Region: string, accessKeyId: string, secretAccessKey: string, s3Bucket: string, s3Endpoint?: string, uploadConcurrency?: number);
|
|
11
9
|
private readonly s3Region;
|
|
12
10
|
private readonly accessKeyId;
|
|
13
11
|
private readonly secretAccessKey;
|
|
14
12
|
private readonly s3Bucket;
|
|
15
13
|
private readonly s3Endpoint?;
|
|
14
|
+
private readonly uploadConcurrency;
|
|
16
15
|
private s3Client?;
|
|
17
16
|
getS3Client(): S3Client;
|
|
18
17
|
sendS3ClientCommand<C extends Command<any, any, any, any, any>>(command: C, options?: HttpHandlerOptions): Promise<CommandOutput<C>>;
|
|
@@ -21,13 +20,11 @@ export declare class S3StorageProvider implements StorageProvider {
|
|
|
21
20
|
getStorageEntryInfo(key: string): Promise<StorageEntry | null>;
|
|
22
21
|
submitStorageEntry(key: string, _filePath: string, data: ReadableStream<Uint8Array> | Uint8Array | string | null | undefined, metadata?: Record<string, string>): Promise<void>;
|
|
23
22
|
deleteStorageEntry(key: string): Promise<void>;
|
|
24
|
-
applyBatch(batch: StorageProviderBatch): Promise<void>;
|
|
23
|
+
applyBatch(batch: StorageProviderBatch, options?: ApplyBatchOptions): Promise<void>;
|
|
25
24
|
doConcurrentParallel<TObject extends {
|
|
26
25
|
key: string;
|
|
27
|
-
}>(objects: TObject[], fn: (obj: TObject, key: string, index: number) => Promise<void>, maxConcurrent?: number): Promise<void>;
|
|
26
|
+
}>(objects: TObject[], fn: (obj: TObject, key: string, index: number) => Promise<void>, maxConcurrent?: number, throwOnError?: boolean): Promise<void>;
|
|
28
27
|
calculateNumChunks(_size: number): number;
|
|
29
|
-
getExistingAssetVariant(variantKey: string): Promise<AssetVariantMetadata | null>;
|
|
30
|
-
purgeSurrogateKey(surrogateKey: string): Promise<void>;
|
|
31
28
|
}
|
|
32
29
|
export {};
|
|
33
30
|
//# sourceMappingURL=s3-storage-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"s3-storage-provider.d.ts","sourceRoot":"","sources":["../../../../src/cli/storage/s3-storage-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"s3-storage-provider.d.ts","sourceRoot":"","sources":["../../../../src/cli/storage/s3-storage-provider.ts"],"names":[],"mappings":"AAQA,OAAO,EAUL,QAAQ,EAIT,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC;AASxB,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAE3B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAa/B,KAAK,aAAa,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAKnF,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAEhD,eAAO,MAAM,kBAAkB,EAAE,sBAqChC,CAAC;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