@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.
Files changed (35) hide show
  1. package/dist/build/content/prerendered.js +2 -2
  2. package/dist/build/content/static.js +2 -2
  3. package/dist/build/functions/edge.js +1 -1
  4. package/dist/esm-chunks/{chunk-BFYMHE3E.js → chunk-HGXG447M.js} +13 -0
  5. package/dist/esm-chunks/chunk-LVXJQ2G2.js +147 -0
  6. package/dist/esm-chunks/{chunk-KBX7SJLC.js → chunk-NEZW7TGG.js} +1 -1
  7. package/dist/esm-chunks/{next-4L47PQSM.js → next-H2VMRX5P.js} +2 -4
  8. package/dist/esm-chunks/{package-LCNINN36.js → package-36IBNZ37.js} +2 -2
  9. package/dist/index.js +4 -4
  10. package/dist/run/handlers/cache.cjs +251 -139
  11. package/dist/run/handlers/request-context.cjs +88 -63
  12. package/dist/run/handlers/server.js +4 -4
  13. package/dist/run/handlers/tracer.cjs +88 -57
  14. package/dist/run/handlers/tracing.js +2 -2
  15. package/dist/run/handlers/wait-until.cjs +88 -57
  16. package/dist/run/next.cjs +88 -59
  17. package/edge-runtime/lib/middleware.ts +1 -1
  18. package/edge-runtime/lib/response.ts +5 -2
  19. package/edge-runtime/vendor/deno.land/x/htmlrewriter@v1.0.0/pkg/htmlrewriter.js +1218 -0
  20. package/edge-runtime/vendor/deno.land/x/htmlrewriter@v1.0.0/pkg/htmlrewriter_bg.wasm +0 -0
  21. package/edge-runtime/vendor/deno.land/x/htmlrewriter@v1.0.0/src/index.ts +80 -0
  22. 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
  23. package/edge-runtime/vendor/import_map.json +0 -2
  24. package/edge-runtime/vendor.ts +1 -1
  25. package/package.json +1 -1
  26. package/dist/esm-chunks/chunk-NDSDIXRD.js +0 -122
  27. package/edge-runtime/vendor/deno.land/std@0.134.0/fmt/colors.ts +0 -536
  28. package/edge-runtime/vendor/deno.land/std@0.134.0/testing/_diff.ts +0 -360
  29. package/edge-runtime/vendor/deno.land/std@0.134.0/testing/asserts.ts +0 -866
  30. package/edge-runtime/vendor/deno.land/x/html_rewriter@v0.1.0-pre.17/index.ts +0 -133
  31. package/edge-runtime/vendor/deno.land/x/html_rewriter@v0.1.0-pre.17/vendor/asyncify.js +0 -112
  32. package/edge-runtime/vendor/deno.land/x/html_rewriter@v0.1.0-pre.17/vendor/html_rewriter.js +0 -974
  33. package/edge-runtime/vendor/raw.githubusercontent.com/worker-tools/resolvable-promise/master/index.ts +0 -50
  34. package/dist/esm-chunks/{chunk-BVYZSEV6.js → chunk-J4D25YDX.js} +3 -3
  35. 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";