@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
|
@@ -2,8 +2,63 @@
|
|
|
2
2
|
* Copyright Fastly, Inc.
|
|
3
3
|
* Licensed under the MIT license. See LICENSE file for details.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
import { callFastlyApi, FetchError, loadApiToken } from './api-token.js';
|
|
7
|
+
import { loadServiceId } from './service-id.js';
|
|
8
|
+
export const purgeEnvironments = ['production', 'staging'];
|
|
9
|
+
// Parses the values of --purge-environment. The option can be repeated, and
|
|
10
|
+
// each value can be a comma-separated list. The default is production.
|
|
11
|
+
export function parsePurgeEnvironments(values) {
|
|
12
|
+
const list = Array.isArray(values) ? values : values == null ? [] : [values];
|
|
13
|
+
const result = [];
|
|
14
|
+
for (const value of list) {
|
|
15
|
+
for (const item of String(value).split(',')) {
|
|
16
|
+
const name = item.trim();
|
|
17
|
+
if (name === '') {
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
if (!purgeEnvironments.includes(name)) {
|
|
21
|
+
throw new Error(`❌ Unknown --purge-environment '${name}'. Use ${purgeEnvironments.join(', ')}, or a comma-separated list of them.`);
|
|
22
|
+
}
|
|
23
|
+
if (!result.includes(name)) {
|
|
24
|
+
result.push(name);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return result.length > 0 ? result : ['production'];
|
|
29
|
+
}
|
|
30
|
+
// Finds the service to purge after publishing, so that it stops serving cached
|
|
31
|
+
// copies of the collection. Returns null, and logs why, if the purge is skipped.
|
|
32
|
+
// Throws if a Service ID is found but an API token is not, so that this fails
|
|
33
|
+
// before anything is uploaded.
|
|
34
|
+
export function loadPurgeTarget(params) {
|
|
35
|
+
// Check the option even when the purge is skipped, so that a typo is reported.
|
|
36
|
+
const environments = parsePurgeEnvironments(params.purgeEnvironments);
|
|
37
|
+
if (params.localMode) {
|
|
38
|
+
console.log(`- Local mode: will skip purge step after publish.`);
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
const serviceIdResult = loadServiceId({
|
|
42
|
+
commandLine: params.fastlyServiceId,
|
|
43
|
+
fastlyTomlPath: path.resolve(params.computeAppDir, 'fastly.toml'),
|
|
44
|
+
});
|
|
45
|
+
if (serviceIdResult == null) {
|
|
46
|
+
console.log(`- Service ID not found (--fastly-service-id, FASTLY_SERVICE_ID, or fastly.toml). Will skip purge step after publish.`);
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
console.log(`✔️ Service ID from ${serviceIdResult.source}: ${serviceIdResult.serviceId}`);
|
|
50
|
+
const apiTokenResult = loadApiToken({ commandLine: params.fastlyApiToken });
|
|
51
|
+
if (apiTokenResult == null) {
|
|
52
|
+
throw new Error("❌ Fastly API Token not provided.\nSet the FASTLY_API_TOKEN environment variable to an API token that can purge the service.");
|
|
53
|
+
}
|
|
54
|
+
console.log(`✔️ Purge environments: ${environments.join(', ')}`);
|
|
55
|
+
return {
|
|
56
|
+
serviceId: serviceIdResult.serviceId,
|
|
57
|
+
fastlyApiContext: { apiToken: apiTokenResult.apiToken },
|
|
58
|
+
environments,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export async function purgeSurrogateKey(fastlyApiContext, fastlyServiceId, surrogateKey, softPurge = false, environment = 'production') {
|
|
7
62
|
const endpoint = `/service/${encodeURIComponent(fastlyServiceId)}/purge`;
|
|
8
63
|
try {
|
|
9
64
|
const headers = new Headers();
|
|
@@ -11,7 +66,12 @@ export async function purgeSurrogateKey(fastlyApiContext, fastlyServiceId, surro
|
|
|
11
66
|
if (softPurge) {
|
|
12
67
|
headers.set('fastly-soft-purge', '1');
|
|
13
68
|
}
|
|
14
|
-
|
|
69
|
+
// A purge without this header applies to production. Staging needs it.
|
|
70
|
+
// See https://www.fastly.com/documentation/guides/getting-started/services/working-with-staging/
|
|
71
|
+
if (environment === 'staging') {
|
|
72
|
+
headers.set('fastly-purge-environment', 'staging');
|
|
73
|
+
}
|
|
74
|
+
await callFastlyApi(fastlyApiContext, endpoint, `Purging surrogate key [${surrogateKey}] on service [${fastlyServiceId}] (${environment})`, null, { method: 'POST', headers });
|
|
15
75
|
}
|
|
16
76
|
catch (err) {
|
|
17
77
|
if (err instanceof FetchError) {
|
|
@@ -10,6 +10,7 @@ type RetryWithBackoffOptions = {
|
|
|
10
10
|
export declare function attemptWithRetries<TResult>(fn: () => Promise<TResult>, options?: RetryWithBackoffOptions): Promise<TResult>;
|
|
11
11
|
export declare function concurrentParallel<TObject extends {
|
|
12
12
|
key: string;
|
|
13
|
-
}>(objects: TObject[], fn: (obj: TObject, key: string, index: number) => Promise<void>, buildStatusMessage: (err: unknown) => (string | null), maxConcurrent?: number): Promise<void>;
|
|
13
|
+
}>(objects: TObject[], fn: (obj: TObject, key: string, index: number) => Promise<void>, buildStatusMessage: (err: unknown) => (string | null), maxConcurrent?: number, throwOnError?: boolean): Promise<void>;
|
|
14
|
+
export declare function concurrentMap<TItem, TResult>(items: TItem[], fn: (item: TItem, index: number) => Promise<TResult>, maxConcurrent?: number): Promise<TResult[]>;
|
|
14
15
|
export {};
|
|
15
16
|
//# sourceMappingURL=retryable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retryable.d.ts","sourceRoot":"","sources":["../../../../src/cli/util/retryable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"retryable.d.ts","sourceRoot":"","sources":["../../../../src/cli/util/retryable.ts"],"names":[],"mappings":"AAUA,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,SAGzC;AACD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,OAK9C;AAED,KAAK,uBAAuB,GAAG;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClE,CAAC;AACF,wBAAsB,kBAAkB,CAAC,OAAO,EAC9C,EAAE,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,EAC1B,OAAO,GAAE,uBAA4B,oBAsCtC;AAED,wBAAsB,kBAAkB,CAAC,OAAO,SAAS;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,EACtE,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,kBAAkB,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,EACrD,aAAa,GAAE,MAAW,EAC1B,YAAY,GAAE,OAAe,iBAgD9B;AAED,wBAAsB,aAAa,CAAC,KAAK,EAAE,OAAO,EAChD,KAAK,EAAE,KAAK,EAAE,EACd,EAAE,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,EAEpD,aAAa,GAAE,MAA6C,GAC3D,OAAO,CAAC,OAAO,EAAE,CAAC,CA4BpB"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright Fastly, Inc.
|
|
3
3
|
* Licensed under the MIT license. See LICENSE file for details.
|
|
4
4
|
*/
|
|
5
|
+
import { availableParallelism } from 'node:os';
|
|
5
6
|
let _globalBackoffUntil = 0;
|
|
6
7
|
const retryableSymbol = Symbol();
|
|
7
8
|
export function makeRetryable(error) {
|
|
@@ -41,8 +42,9 @@ export async function attemptWithRetries(fn, options = {}) {
|
|
|
41
42
|
}
|
|
42
43
|
return result;
|
|
43
44
|
}
|
|
44
|
-
export async function concurrentParallel(objects, fn, buildStatusMessage, maxConcurrent = 12) {
|
|
45
|
+
export async function concurrentParallel(objects, fn, buildStatusMessage, maxConcurrent = 12, throwOnError = false) {
|
|
45
46
|
let index = 0; // Shared among workers
|
|
47
|
+
const failures = [];
|
|
46
48
|
async function worker() {
|
|
47
49
|
while (index < objects.length) {
|
|
48
50
|
const currentIndex = index;
|
|
@@ -68,9 +70,40 @@ export async function concurrentParallel(objects, fn, buildStatusMessage, maxCon
|
|
|
68
70
|
const e = err instanceof Error ? err : new Error(String(err));
|
|
69
71
|
console.error(` ❌ Failed: ${key} → ${e.message}`);
|
|
70
72
|
console.error(e.stack);
|
|
73
|
+
failures.push(key);
|
|
71
74
|
}
|
|
72
75
|
}
|
|
73
76
|
}
|
|
74
77
|
const workers = Array.from({ length: maxConcurrent }, () => worker());
|
|
75
78
|
await Promise.all(workers);
|
|
79
|
+
if (throwOnError && failures.length > 0) {
|
|
80
|
+
const shown = failures.slice(0, 10).join(', ');
|
|
81
|
+
const more = failures.length > 10 ? `, and ${failures.length - 10} more` : '';
|
|
82
|
+
throw new Error(`${failures.length} of ${objects.length} operation(s) failed: ${shown}${more}`);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export async function concurrentMap(items, fn,
|
|
86
|
+
// Each call can keep files open, so do not use too many at a time.
|
|
87
|
+
maxConcurrent = Math.min(availableParallelism(), 16)) {
|
|
88
|
+
const results = new Array(items.length);
|
|
89
|
+
let index = 0;
|
|
90
|
+
let failed = false;
|
|
91
|
+
async function worker() {
|
|
92
|
+
// If one item fails, do not start more items.
|
|
93
|
+
while (!failed && index < items.length) {
|
|
94
|
+
const currentIndex = index;
|
|
95
|
+
index = index + 1;
|
|
96
|
+
try {
|
|
97
|
+
results[currentIndex] = await fn(items[currentIndex], currentIndex);
|
|
98
|
+
}
|
|
99
|
+
catch (err) {
|
|
100
|
+
failed = true;
|
|
101
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
102
|
+
throw Object.assign(new Error(`Failed to process '${String(items[currentIndex])}': ${message}`), { cause: err });
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
const workers = Array.from({ length: Math.min(maxConcurrent, items.length) }, () => worker());
|
|
107
|
+
await Promise.all(workers);
|
|
108
|
+
return results;
|
|
76
109
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type LoadServiceIdResult = {
|
|
2
|
+
serviceId: string;
|
|
3
|
+
source: string;
|
|
4
|
+
};
|
|
5
|
+
export type LoadServiceIdParams = {
|
|
6
|
+
commandLine: unknown;
|
|
7
|
+
fastlyTomlPath: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function loadServiceId(params: LoadServiceIdParams): LoadServiceIdResult | null;
|
|
10
|
+
//# sourceMappingURL=service-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-id.d.ts","sourceRoot":"","sources":["../../../../src/cli/util/service-id.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAOF,wBAAgB,aAAa,CAAC,MAAM,EAAE,mBAAmB,GAAG,mBAAmB,GAAG,IAAI,CAmBrF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Fastly, Inc.
|
|
3
|
+
* Licensed under the MIT license. See LICENSE file for details.
|
|
4
|
+
*/
|
|
5
|
+
import fs from 'node:fs';
|
|
6
|
+
import { readServiceId } from './fastly-toml.js';
|
|
7
|
+
// Finds the Fastly Service ID to purge after publishing. Checks, in order:
|
|
8
|
+
// 1. The command line (--fastly-service-id)
|
|
9
|
+
// 2. The FASTLY_SERVICE_ID environment variable
|
|
10
|
+
// 3. service_id in fastly.toml
|
|
11
|
+
// This is the same order as the Fastly CLI's --service-id.
|
|
12
|
+
export function loadServiceId(params) {
|
|
13
|
+
if (typeof params.commandLine === 'string' && params.commandLine.trim() !== '') {
|
|
14
|
+
return { serviceId: params.commandLine.trim(), source: 'commandline' };
|
|
15
|
+
}
|
|
16
|
+
const envServiceId = process.env.FASTLY_SERVICE_ID?.trim();
|
|
17
|
+
if (envServiceId) {
|
|
18
|
+
return { serviceId: envServiceId, source: 'env' };
|
|
19
|
+
}
|
|
20
|
+
if (fs.existsSync(params.fastlyTomlPath)) {
|
|
21
|
+
const serviceId = readServiceId(params.fastlyTomlPath);
|
|
22
|
+
if (serviceId != null) {
|
|
23
|
+
return { serviceId, source: 'fastly.toml' };
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ContentCompressionTypes } from '../../models/compression/index.js';
|
|
2
|
+
import { type CompressOptions } from '../compression/index.js';
|
|
2
3
|
export type Variants = 'original' | ContentCompressionTypes;
|
|
3
|
-
export declare function ensureVariantFileExists(variantFilePath: string, variant: Variants, file: string, verbose: boolean): Promise<void>;
|
|
4
|
+
export declare function ensureVariantFileExists(variantFilePath: string, variant: Variants, file: string, verbose: boolean, compressOptions?: CompressOptions): Promise<void>;
|
|
4
5
|
//# sourceMappingURL=variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../src/cli/util/variants.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../src/cli/util/variants.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAQ,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAGrE,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,uBAAuB,CAAC;AAE5D,wBAAsB,uBAAuB,CAC3C,eAAe,EAAE,MAAM,EACvB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,eAAe,GAAE,eAAoB,iBA6BtC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import fs from 'node:fs';
|
|
6
6
|
import { algs } from '../compression/index.js';
|
|
7
7
|
import { rootRelative } from './files.js';
|
|
8
|
-
export async function ensureVariantFileExists(variantFilePath, variant, file, verbose) {
|
|
8
|
+
export async function ensureVariantFileExists(variantFilePath, variant, file, verbose, compressOptions = {}) {
|
|
9
9
|
// Compress/prepare the asset if it doesn't already exist
|
|
10
10
|
// We disregard chunked copies of the file and only check for the existence
|
|
11
11
|
// of the main copy of the file at this point.
|
|
@@ -18,7 +18,7 @@ export async function ensureVariantFileExists(variantFilePath, variant, file, ve
|
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
20
|
const compressTo = algs[variant];
|
|
21
|
-
await compressTo(file, variantFilePath);
|
|
21
|
+
await compressTo(file, variantFilePath, compressOptions);
|
|
22
22
|
if (verbose) {
|
|
23
23
|
console.log(` 📄→🗄️ Compressed file '${rootRelative(file)}' to '${rootRelative(variantFilePath)}' [${variant}].`);
|
|
24
24
|
}
|
|
@@ -20,7 +20,7 @@ export function decodeAssetVariantMetadata(obj) {
|
|
|
20
20
|
if (hash == null) {
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
|
-
const numChunks =
|
|
23
|
+
const numChunks = parseInt(getMetadataFieldValue(obj, 'numChunks'), 10);
|
|
24
24
|
const assetVariantMetadata = {
|
|
25
25
|
size,
|
|
26
26
|
hash,
|
|
@@ -24,6 +24,7 @@ export type PublishContentConfig = {
|
|
|
24
24
|
assetInclusionTest?: AssetInclusionTest | null;
|
|
25
25
|
kvStoreAssetInclusionTest?: AssetInclusionTest | null;
|
|
26
26
|
contentCompression?: ('br' | 'gzip')[];
|
|
27
|
+
brotliQuality?: number;
|
|
27
28
|
contentTypes?: ContentTypeDef[];
|
|
28
29
|
server?: PublisherServerConfig | null;
|
|
29
30
|
};
|
|
@@ -34,6 +35,7 @@ export type PublishContentConfigNormalized = {
|
|
|
34
35
|
includeWellKnown: boolean;
|
|
35
36
|
assetInclusionTest: AssetInclusionTest | null;
|
|
36
37
|
contentCompression: ContentCompressionTypes[];
|
|
38
|
+
brotliQuality: number | undefined;
|
|
37
39
|
contentTypes: ContentTypeDef[];
|
|
38
40
|
server: PublisherServerConfigNormalized | null;
|
|
39
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-content-config.d.ts","sourceRoot":"","sources":["../../../../src/models/config/publish-content-config.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EACrC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,uBAAuB,EAC7B,MAAM,yBAA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AO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,eAAe,EAAE,OAAO,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC9C,kBAAkB,EAAE,uBAAuB,EAAE,CAAC;IAC9C,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,MAAM,EAAE,+BAA+B,GAAG,IAAI,CAAC;CAChD,CAAC"}
|
|
@@ -20,7 +20,7 @@ export function decodeAssetVariantMetadata(obj) {
|
|
|
20
20
|
if (hash == null) {
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
|
-
const numChunks =
|
|
23
|
+
const numChunks = parseInt(getMetadataFieldValue(obj, 'numChunks'), 10);
|
|
24
24
|
const assetVariantMetadata = {
|
|
25
25
|
size,
|
|
26
26
|
hash,
|
|
@@ -24,6 +24,7 @@ export type PublishContentConfig = {
|
|
|
24
24
|
assetInclusionTest?: AssetInclusionTest | null;
|
|
25
25
|
kvStoreAssetInclusionTest?: AssetInclusionTest | null;
|
|
26
26
|
contentCompression?: ('br' | 'gzip')[];
|
|
27
|
+
brotliQuality?: number;
|
|
27
28
|
contentTypes?: ContentTypeDef[];
|
|
28
29
|
server?: PublisherServerConfig | null;
|
|
29
30
|
};
|
|
@@ -34,6 +35,7 @@ export type PublishContentConfigNormalized = {
|
|
|
34
35
|
includeWellKnown: boolean;
|
|
35
36
|
assetInclusionTest: AssetInclusionTest | null;
|
|
36
37
|
contentCompression: ContentCompressionTypes[];
|
|
38
|
+
brotliQuality: number | undefined;
|
|
37
39
|
contentTypes: ContentTypeDef[];
|
|
38
40
|
server: PublisherServerConfigNormalized | null;
|
|
39
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-content-config.d.ts","sourceRoot":"","sources":["../../../../src/models/config/publish-content-config.ts"],"names":[],"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AAC,EAAE,cAAc,EAAE,CAAC;IAGhC,MAAM,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,eAAe,EAAE,OAAO,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC9C,kBAAkB,EAAE,uBAAuB,EAAE,CAAC;IAC9C,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,MAAM,EAAE,+BAA+B,GAAG,IAAI,CAAC;CAChD,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { type PublisherServerConfigNormalized } from '../../models/config/publis
|
|
|
3
3
|
import { type ContentCompressionTypes } from '../../models/compression/index.js';
|
|
4
4
|
import { type AssetEntry, type AssetEntryMap, type AssetVariantMetadata } from '../../models/assets/index.js';
|
|
5
5
|
import { type StorageEntry, type StorageProvider } from '../storage/storage-provider.js';
|
|
6
|
+
import { ServerTiming } from '../util/server-timing.js';
|
|
7
|
+
import { type ResponseCacheOptions } from './response-cache.js';
|
|
6
8
|
type AssetVariant = {
|
|
7
9
|
storageEntry: StorageEntry;
|
|
8
10
|
} & AssetVariantMetadata;
|
|
@@ -20,10 +22,17 @@ export declare class PublisherServer {
|
|
|
20
22
|
defaultCollectionName: string;
|
|
21
23
|
activeCollectionName: string;
|
|
22
24
|
collectionNameHeader: string | null;
|
|
25
|
+
serverTimingRequestHeader: string | null;
|
|
26
|
+
serverTiming: ServerTiming | null;
|
|
27
|
+
responseCache: ResponseCacheOptions | null;
|
|
23
28
|
settingsCached: PublisherServerConfigNormalized | null | undefined;
|
|
24
29
|
assetEntryMapCache: AssetEntryMap | null | undefined;
|
|
25
|
-
setActiveCollectionName(collectionName: string): void;
|
|
30
|
+
setActiveCollectionName(collectionName: string | null): void;
|
|
26
31
|
setCollectionNameHeader(collectionHeader: string | null): void;
|
|
32
|
+
setServerTimingRequestHeader(requestHeader: string | null): void;
|
|
33
|
+
setResponseCache(options: ResponseCacheOptions | null): void;
|
|
34
|
+
beginRequest(request: Request): void;
|
|
35
|
+
private timed;
|
|
27
36
|
getServerConfig(): Promise<PublisherServerConfigNormalized | null>;
|
|
28
37
|
getStaticItems(): Promise<(string | RegExp)[]>;
|
|
29
38
|
getAssetEntryMap(): Promise<AssetEntryMap | null>;
|
|
@@ -31,10 +40,15 @@ export declare class PublisherServer {
|
|
|
31
40
|
findAcceptEncodingsGroups(request: Request): Promise<ContentCompressionTypes[][]>;
|
|
32
41
|
testExtendedCache(pathname: string): Promise<boolean>;
|
|
33
42
|
handlePreconditions(request: Request, asset: AssetEntry, responseHeaders: Headers): Response | null;
|
|
43
|
+
private handlePreconditionsForLastModified;
|
|
34
44
|
loadAssetVariant(entry: AssetEntry, variant: ContentCompressionTypes | null): Promise<AssetVariant | null>;
|
|
35
45
|
private findAssetVariantForAcceptEncodingsGroups;
|
|
36
46
|
serveAsset(request: Request, asset: AssetEntry, init?: AssetInit): Promise<Response>;
|
|
47
|
+
serveCached(request: Request, keyPath: string, produce: (request: Request) => Promise<Response | null>): Promise<Response | null>;
|
|
48
|
+
private copyBodyToCache;
|
|
49
|
+
private responseFromCache;
|
|
37
50
|
serveRequest(request: Request): Promise<Response | null>;
|
|
51
|
+
private serveRequestFromStorage;
|
|
38
52
|
}
|
|
39
53
|
export {};
|
|
40
54
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/server/publisher-server/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/server/publisher-server/index.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,KAAK,eAAe,EACrB,MAAM,0CAA0C,C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