@netlify/plugin-nextjs 5.9.0 → 5.9.2
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/dist/build/content/prerendered.js +2 -2
- package/dist/build/content/static.js +2 -2
- package/dist/build/functions/edge.js +1 -1
- package/dist/esm-chunks/{chunk-BFYMHE3E.js → chunk-HGXG447M.js} +13 -0
- package/dist/esm-chunks/chunk-LVXJQ2G2.js +147 -0
- package/dist/esm-chunks/{chunk-KBX7SJLC.js → chunk-NEZW7TGG.js} +1 -1
- package/dist/esm-chunks/{next-4L47PQSM.js → next-H2VMRX5P.js} +2 -4
- package/dist/esm-chunks/{package-LCNINN36.js → package-36IBNZ37.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/run/handlers/cache.cjs +251 -139
- package/dist/run/handlers/request-context.cjs +88 -63
- package/dist/run/handlers/server.js +4 -4
- package/dist/run/handlers/tracer.cjs +88 -57
- package/dist/run/handlers/tracing.js +2 -2
- package/dist/run/handlers/wait-until.cjs +88 -57
- package/dist/run/next.cjs +88 -59
- package/edge-runtime/lib/middleware.ts +1 -1
- package/edge-runtime/lib/response.ts +5 -2
- package/edge-runtime/vendor/deno.land/x/htmlrewriter@v1.0.0/pkg/htmlrewriter.js +1218 -0
- package/edge-runtime/vendor/deno.land/x/htmlrewriter@v1.0.0/pkg/htmlrewriter_bg.wasm +0 -0
- package/edge-runtime/vendor/deno.land/x/htmlrewriter@v1.0.0/src/index.ts +80 -0
- package/edge-runtime/vendor/deno.land/x/{html_rewriter@v0.1.0-pre.17/vendor/html_rewriter.d.ts → htmlrewriter@v1.0.0/src/types.d.ts} +8 -25
- package/edge-runtime/vendor/import_map.json +0 -2
- package/edge-runtime/vendor.ts +1 -1
- package/package.json +1 -1
- package/dist/esm-chunks/chunk-NDSDIXRD.js +0 -122
- package/edge-runtime/vendor/deno.land/std@0.134.0/fmt/colors.ts +0 -536
- package/edge-runtime/vendor/deno.land/std@0.134.0/testing/_diff.ts +0 -360
- package/edge-runtime/vendor/deno.land/std@0.134.0/testing/asserts.ts +0 -866
- package/edge-runtime/vendor/deno.land/x/html_rewriter@v0.1.0-pre.17/index.ts +0 -133
- package/edge-runtime/vendor/deno.land/x/html_rewriter@v0.1.0-pre.17/vendor/asyncify.js +0 -112
- package/edge-runtime/vendor/deno.land/x/html_rewriter@v0.1.0-pre.17/vendor/html_rewriter.js +0 -974
- package/edge-runtime/vendor/raw.githubusercontent.com/worker-tools/resolvable-promise/master/index.ts +0 -50
- package/dist/esm-chunks/{chunk-BVYZSEV6.js → chunk-J4D25YDX.js} +3 -3
- package/dist/esm-chunks/{chunk-HWMLYAVP.js → chunk-NTLBFRPA.js} +3 -3
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
// deno-lint-ignore-file no-explicit-any
|
|
2
|
-
export type Resolve<T> = (value: T | PromiseLike<T>) => void;
|
|
3
|
-
export type Reject = (reason?: any) => void;
|
|
4
|
-
export type ResolvablePromiseInit<T> = PromiseLike<T> | ((resolve: Resolve<T>, reject: Reject) => void);
|
|
5
|
-
|
|
6
|
-
export class ResolvablePromise<T> implements Promise<T> {
|
|
7
|
-
#promise: Promise<T>;
|
|
8
|
-
#resolve!: Resolve<T>;
|
|
9
|
-
#reject!: Reject;
|
|
10
|
-
#settled = false;
|
|
11
|
-
|
|
12
|
-
constructor(init?: ResolvablePromiseInit<T> | null) {
|
|
13
|
-
// super(_ => _(void 0 as any));
|
|
14
|
-
this.#promise = new Promise((res, rej) => {
|
|
15
|
-
const resolve = this.#resolve = v => (this.#settled = true, res(v));
|
|
16
|
-
const reject = this.#reject = r => (this.#settled = true, rej(r));
|
|
17
|
-
if (init == null) return;
|
|
18
|
-
if (typeof init === 'function') init(resolve, reject);
|
|
19
|
-
else if (typeof init.then === 'function') init.then(resolve, reject);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
resolve(x: T | PromiseLike<T>) {
|
|
24
|
-
this.#resolve(x);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
reject(reason?: any) {
|
|
28
|
-
this.#reject(reason);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/** @deprecated Name of this property might change */
|
|
32
|
-
get settled() { return this.#settled }
|
|
33
|
-
|
|
34
|
-
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2> {
|
|
35
|
-
return this.#promise.then(onfulfilled, onrejected);
|
|
36
|
-
}
|
|
37
|
-
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult> {
|
|
38
|
-
return this.#promise.catch(onrejected);
|
|
39
|
-
}
|
|
40
|
-
finally(onfinally?: (() => void) | null): Promise<T> {
|
|
41
|
-
return this.#promise.finally(onfinally);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
readonly [Symbol.toStringTag] = 'ResolvablePromise'
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/** @deprecated */
|
|
48
|
-
export function resolvablePromise<T>() {
|
|
49
|
-
return new ResolvablePromise<T>();
|
|
50
|
-
}
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
return createRequire(import.meta.url);
|
|
5
5
|
})();
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
encodeBlobKey
|
|
9
|
-
} from "./chunk-TYCYFZ22.js";
|
|
10
7
|
import {
|
|
11
8
|
wrapTracer
|
|
12
9
|
} from "./chunk-5QSXBV7L.js";
|
|
@@ -23,6 +20,9 @@ import {
|
|
|
23
20
|
import {
|
|
24
21
|
require_semver
|
|
25
22
|
} from "./chunk-APO262HE.js";
|
|
23
|
+
import {
|
|
24
|
+
encodeBlobKey
|
|
25
|
+
} from "./chunk-TYCYFZ22.js";
|
|
26
26
|
import {
|
|
27
27
|
__toESM
|
|
28
28
|
} from "./chunk-OEQOKJGE.js";
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
return createRequire(import.meta.url);
|
|
5
5
|
})();
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
encodeBlobKey
|
|
9
|
-
} from "./chunk-TYCYFZ22.js";
|
|
10
7
|
import {
|
|
11
8
|
wrapTracer
|
|
12
9
|
} from "./chunk-5QSXBV7L.js";
|
|
@@ -20,6 +17,9 @@ import {
|
|
|
20
17
|
import {
|
|
21
18
|
require_out
|
|
22
19
|
} from "./chunk-KGYJQ2U2.js";
|
|
20
|
+
import {
|
|
21
|
+
encodeBlobKey
|
|
22
|
+
} from "./chunk-TYCYFZ22.js";
|
|
23
23
|
import {
|
|
24
24
|
__toESM
|
|
25
25
|
} from "./chunk-OEQOKJGE.js";
|