@wular/pnext 0.1.7 → 0.1.8
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/server/_chunks/{aliases-j47a10ce.js → aliases-pycbtjt1.js} +7 -5
- package/dist/server/_chunks/{analyze-arswqe6s.js → analyze-4d9e00g9.js} +17 -13
- package/dist/server/_chunks/{boot-af0mv3dy.js → boot-bhemypxz.js} +13 -11
- package/dist/server/_chunks/{build-spy3dxp4.js → build-c991dv65.js} +7 -5
- package/dist/server/_chunks/{build-t9h0hec3.js → build-kh5e3x48.js} +977 -1186
- package/dist/server/_chunks/{build-tier-m7yvqz61.js → build-tier-0a96kmx3.js} +59 -75
- package/dist/server/_chunks/{compile-53j02j27.js → compile-040r79gj.js} +2 -2
- package/dist/server/_chunks/{config-n2z7yxps.js → config-0tvz03a6.js} +6 -4
- package/dist/server/_chunks/{config-1yzwexq6.js → config-27rj7830.js} +12 -3
- package/dist/server/_chunks/{create-meec9hs6.js → create-9rvwshsp.js} +4 -3
- package/dist/server/_chunks/{dev-fjmqg6en.js → dev-ex9exynt.js} +2 -2
- package/dist/server/_chunks/{generate-n9sh6hzt.js → generate-myw9hef7.js} +5 -4
- package/dist/server/_chunks/{index-91x12ykq.js → index-0r5eqfc7.js} +6 -1
- package/dist/server/_chunks/{index-3xbr4eyv.js → index-0yjv5v47.js} +3 -3
- package/dist/server/_chunks/{index-ncnes8c6.js → index-11xpbfej.js} +2 -2
- package/dist/server/_chunks/{index-357na4a8.js → index-141vcwk6.js} +1 -1
- package/dist/server/_chunks/{index-nyrba2kr.js → index-1pzm1hdy.js} +11 -11
- package/dist/server/_chunks/{index-fkp000p1.js → index-29pq0kax.js} +2 -2
- package/dist/server/_chunks/{index-wpfhfbs4.js → index-38xpdxwd.js} +4 -4
- package/dist/server/_chunks/{index-tvqkq6e6.js → index-3e075kny.js} +1 -1
- package/dist/server/_chunks/{index-kq8kpzye.js → index-3ycf5ckv.js} +3 -3
- package/dist/server/_chunks/{index-20ppawv7.js → index-4da76t62.js} +3 -3
- package/dist/server/_chunks/{index-cf4rvxv6.js → index-52k54ykj.js} +1 -1
- package/dist/server/_chunks/{index-x93hv0sc.js → index-71885zaq.js} +23 -10
- package/dist/server/_chunks/{index-jepjvcrf.js → index-8ct7rqy3.js} +1 -1
- package/dist/server/_chunks/{index-sjpckxqn.js → index-9f49w76j.js} +1 -1
- package/dist/server/_chunks/{index-4hgjrqh7.js → index-9hz3s0m8.js} +2 -2
- package/dist/server/_chunks/{index-9n2914ww.js → index-akkrvjn6.js} +1 -1
- package/dist/server/_chunks/{index-9ych9ma8.js → index-b7j671dj.js} +2 -2
- package/dist/server/_chunks/index-bzd2ef7t.js +10 -0
- package/dist/server/_chunks/{index-p77b4kcx.js → index-cn86z041.js} +1 -1
- package/dist/server/_chunks/{index-hkdfj58q.js → index-cvr4z22m.js} +1 -1
- package/dist/server/_chunks/{index-y2jr2n72.js → index-d158y67j.js} +4 -4
- package/dist/server/_chunks/{index-yz54pxrh.js → index-d1jsmhhk.js} +4 -9
- package/dist/server/_chunks/{index-ggk2j965.js → index-dgr390q7.js} +56 -50
- package/dist/server/_chunks/{index-sctcgyvv.js → index-drwv61cc.js} +2 -2
- package/dist/server/_chunks/{index-9hx2641q.js → index-entm8bmz.js} +1 -1
- package/dist/server/_chunks/{index-jx7bqvw1.js → index-evhd413j.js} +1 -1
- package/dist/server/_chunks/{index-1011cscr.js → index-fjv96re1.js} +61 -29
- package/dist/server/_chunks/{index-c0g2wf3z.js → index-gcmj16xy.js} +1 -1
- package/dist/server/_chunks/{index-ytjvpbm2.js → index-gkndxkxf.js} +3 -3
- package/dist/server/_chunks/index-hdbwtdv2.js +352 -0
- package/dist/server/_chunks/{index-z84ab1w0.js → index-he6n2bvp.js} +3 -3
- package/dist/server/_chunks/{index-eajaspjk.js → index-j0m1jxqa.js} +1 -1
- package/dist/server/_chunks/{index-4q2gbfwk.js → index-j681c48a.js} +2 -2
- package/dist/server/_chunks/index-jbj7ehef.js +50 -0
- package/dist/server/_chunks/{index-8k7pfejn.js → index-jn9rbhrx.js} +7 -7
- package/dist/server/_chunks/index-jt8e1pje.js +12 -0
- package/dist/server/_chunks/{index-eeaanp2e.js → index-kdhxpwyq.js} +3 -3
- package/dist/server/_chunks/{index-6e4fqv30.js → index-m63czgq5.js} +2 -0
- package/dist/server/_chunks/{index-2dv4y4wd.js → index-n629dy38.js} +16 -10
- package/dist/server/_chunks/{index-sv8m6789.js → index-nf3df4jy.js} +5 -5
- package/dist/server/_chunks/{index-06nyqntx.js → index-q3r9z8mq.js} +1 -1
- package/dist/server/_chunks/{index-3b3at80h.js → index-qcrvt6er.js} +6 -3
- package/dist/server/_chunks/{index-egykcqg3.js → index-rgj5mx84.js} +1 -1
- package/dist/server/_chunks/{index-vvmmknm1.js → index-rjegyfx4.js} +19 -15
- package/dist/server/_chunks/{index-ym67zqxp.js → index-tf4j19ge.js} +1 -1
- package/dist/server/_chunks/{index-5gyr4emz.js → index-tq3b39a5.js} +4 -4
- package/dist/server/_chunks/{index-qn4z5s3c.js → index-typcbcsv.js} +3 -3
- package/dist/server/_chunks/{index-11sfk4hb.js → index-vmr35jjw.js} +1 -1
- package/dist/server/_chunks/{index-danncfhy.js → index-wm36rj4v.js} +1 -1
- package/dist/server/_chunks/{index-3tf1xjsp.js → index-x2m17v9c.js} +11 -11
- package/dist/server/_chunks/{index-z4z9zv3b.js → index-x9c55pzy.js} +141 -3
- package/dist/server/_chunks/{index-k1g3epw0.js → index-xh1nbk46.js} +10 -10
- package/dist/server/_chunks/{index-0374j2b9.js → index-y4d02znn.js} +1 -1
- package/dist/server/_chunks/{index-qm6kmhqs.js → index-y7mzvq2q.js} +1 -1
- package/dist/server/_chunks/{index-rn8dyr1f.js → index-yrjkqtfj.js} +8 -48
- package/dist/server/_chunks/{index-tq0pc7eg.js → index-zfrwq472.js} +3 -3
- package/dist/server/_chunks/{loader-7yw0j98z.js → loader-5en7wpt5.js} +12 -10
- package/dist/server/_chunks/{modules-jn8bmbn8.js → modules-t92favpj.js} +14 -12
- package/dist/server/_chunks/{pipeline-yy9jhydf.js → pipeline-4t9q43ht.js} +25 -21
- package/dist/server/_chunks/{production-jar9ztm3.js → production-385bw8df.js} +14 -3
- package/dist/server/_chunks/{proxy-config-j84dgksn.js → proxy-config-60gprphe.js} +7 -5
- package/dist/server/_chunks/{proxy-w1d0wmsn.js → proxy-gfhmktbk.js} +12 -10
- package/dist/server/_chunks/{router-k1reahfn.js → router-xnrva921.js} +10 -7
- package/dist/server/_chunks/{routes-2s277fc6.js → routes-ht868pdc.js} +12 -10
- package/dist/server/_chunks/{run-pvd8bs1t.js → run-d40d63ag.js} +5 -4
- package/dist/server/_chunks/{server-mt4a994c.js → server-2p8fgqq2.js} +38 -34
- package/dist/server/_chunks/{tsconfig-defaults-1nb3308g.js → tsconfig-defaults-bcn34eqb.js} +5 -4
- package/dist/server/_chunks/{typegen-0qr0459b.js → typegen-dvtcjtaw.js} +15 -13
- package/dist/server/cli/index.js +12 -15
- package/dist/server/cli/start.js +35 -14
- package/dist/server/compat/next/cache.js +5 -5
- package/dist/server/compat/next/config-headers.js +8 -6
- package/dist/server/compat/next/config-loader.js +1 -1
- package/dist/server/compat/next/dist/server/web/spec-extension/revalidate.js +5 -5
- package/dist/server/compat/next/dist/server/web/spec-extension/unstable-cache.js +5 -5
- package/dist/server/compat/next/dist/server/web/spec-extension/unstable-no-store.js +5 -5
- package/dist/server/compat/next/dynamic.js +3 -14
- package/dist/server/compat/next/font/cache.js +6 -4
- package/dist/server/compat/next/font/local.js +7 -5
- package/dist/server/compat/next/font/runtime.js +7 -5
- package/dist/server/compat/next/headers.js +4 -4
- package/dist/server/compat/next/image/config.js +2 -2
- package/dist/server/compat/next/image/optimizer.js +3 -3
- package/dist/server/compat/next/image/static-metadata.js +4 -4
- package/dist/server/compat/next/legacy-request-apis.js +3 -3
- package/dist/server/compat/next/link-transform.js +4 -3
- package/dist/server/compat/next/navigation.js +5 -4
- package/dist/server/compat/next/redirects.js +8 -6
- package/dist/server/compat/next/resource-hints.js +2 -2
- package/dist/server/compat/next/rewrites.js +7 -5
- package/dist/server/compat/next/root-params.js +3 -3
- package/dist/server/compat/next/route-state.js +2 -2
- package/dist/server/compat/next/script.js +2 -2
- package/dist/server/compat/next/server.js +5 -5
- package/dist/server/generation.json +1 -1
- package/package.json +1 -1
- package/reference/compat.md +1 -1
- package/reference/config.md +2 -2
- package/reference/dev.md +1 -1
- package/reference/getting-started.md +1 -1
- package/reference/rendering.md +4 -4
- package/src/api/dynamic.tsx +84 -4
- package/src/cli/adapters/vercel-warm.ts +40 -29
- package/src/cli/adapters/vercel.ts +95 -1262
- package/src/cli/analyze.ts +3 -2
- package/src/cli/build/cache.ts +6 -6
- package/src/cli/build.ts +33 -33
- package/src/cli/index.ts +4 -6
- package/src/cli/serve/pipeline.ts +16 -10
- package/src/cli/serve/standalone-worker.ts +8 -0
- package/src/cli/serve/standalone.ts +703 -0
- package/src/cli/start.ts +29 -8
- package/src/client/build.ts +1 -1
- package/src/client/reference-stub.ts +2 -34
- package/src/compat/actions/extensions.ts +3 -2
- package/src/compat/bundler/require-context.ts +2 -1
- package/src/compat/bundler/webpack-loaders.ts +3 -2
- package/src/compat/bundler/worker.ts +2 -2
- package/src/compat/css/inline-css.ts +1 -1
- package/src/compat/export/build-complete.ts +1 -1
- package/src/compat/export/emit.ts +4 -4
- package/src/compat/export/standalone.ts +30 -65
- package/src/compat/image-optimizer/optimize.ts +1 -1
- package/src/compat/lifecycle/instrumentation-client.ts +4 -3
- package/src/compat/metadata-artifacts.ts +1 -1
- package/src/compat/next/config-loader.ts +3 -0
- package/src/compat/next/dynamic.tsx +10 -23
- package/src/compat/next/font/cache.ts +2 -1
- package/src/compat/next/font/runtime.ts +1 -1
- package/src/compat/register/image.ts +1 -1
- package/src/compat/typecheck/check.ts +6 -4
- package/src/config.ts +28 -5
- package/src/css/assets.ts +1 -1
- package/src/css/build.ts +16 -9
- package/src/dev/client-chunk-store.ts +2 -1
- package/src/dev/restart/client-key.ts +2 -1
- package/src/dev/restart/global-css.ts +2 -1
- package/src/dev/restart/route-bundle-key.ts +2 -1
- package/src/dev/restart/route-facts.ts +2 -1
- package/src/dev/server.ts +8 -7
- package/src/out-paths.ts +10 -0
- package/src/render/renderer.ts +1 -1
- package/src/resolve/dynamic.ts +4 -0
- package/src/resolve/engine.ts +2 -12
- package/src/resolve/scan-facts.ts +185 -1
- package/src/routing/metadata-files.ts +1 -1
- package/src/runtime/loader.ts +5 -3
- package/src/runtime/module-cache.ts +2 -1
- package/src/runtime/modules.ts +50 -16
- package/src/runtime/prebundle.ts +23 -3
- package/src/runtime/production.ts +105 -40
- package/src/runtime/release-graph.ts +21 -13
- package/src/runtime/vendor-build.ts +45 -23
- package/src/types.ts +2 -3
- package/src/utils/directive.ts +40 -0
- package/src/utils/fs.ts +7 -2
- package/src/utils/resource-query.ts +12 -0
- package/dist/server/_chunks/index-tqn2qnnn.js +0 -241
- package/dist/server/_chunks/index-y36a0ybw.js +0 -57
- package/src/cli/serve/entry.ts +0 -52
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
revalidatePath,
|
|
4
4
|
revalidateTag
|
|
5
|
-
} from "../../../../../../_chunks/index-
|
|
6
|
-
import"../../../../../../_chunks/index-
|
|
7
|
-
import"../../../../../../_chunks/index-
|
|
8
|
-
import"../../../../../../_chunks/index-
|
|
5
|
+
} from "../../../../../../_chunks/index-zfrwq472.js";
|
|
6
|
+
import"../../../../../../_chunks/index-entm8bmz.js";
|
|
7
|
+
import"../../../../../../_chunks/index-j0m1jxqa.js";
|
|
8
|
+
import"../../../../../../_chunks/index-akkrvjn6.js";
|
|
9
9
|
import"../../../../../../_chunks/index-bcws5eh2.js";
|
|
10
|
-
import"../../../../../../_chunks/index-
|
|
10
|
+
import"../../../../../../_chunks/index-m63czgq5.js";
|
|
11
11
|
import"../../../../../../_chunks/index-cjgqs13g.js";
|
|
12
12
|
import"../../../../../../_chunks/index-jks0x0a1.js";
|
|
13
13
|
import"../../../../../../_chunks/index-6b009mt0.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
unstable_cache
|
|
4
|
-
} from "../../../../../../_chunks/index-
|
|
5
|
-
import"../../../../../../_chunks/index-
|
|
6
|
-
import"../../../../../../_chunks/index-
|
|
7
|
-
import"../../../../../../_chunks/index-
|
|
4
|
+
} from "../../../../../../_chunks/index-zfrwq472.js";
|
|
5
|
+
import"../../../../../../_chunks/index-entm8bmz.js";
|
|
6
|
+
import"../../../../../../_chunks/index-j0m1jxqa.js";
|
|
7
|
+
import"../../../../../../_chunks/index-akkrvjn6.js";
|
|
8
8
|
import"../../../../../../_chunks/index-bcws5eh2.js";
|
|
9
|
-
import"../../../../../../_chunks/index-
|
|
9
|
+
import"../../../../../../_chunks/index-m63czgq5.js";
|
|
10
10
|
import"../../../../../../_chunks/index-cjgqs13g.js";
|
|
11
11
|
import"../../../../../../_chunks/index-jks0x0a1.js";
|
|
12
12
|
import"../../../../../../_chunks/index-6b009mt0.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
unstable_noStore
|
|
4
|
-
} from "../../../../../../_chunks/index-
|
|
5
|
-
import"../../../../../../_chunks/index-
|
|
6
|
-
import"../../../../../../_chunks/index-
|
|
7
|
-
import"../../../../../../_chunks/index-
|
|
4
|
+
} from "../../../../../../_chunks/index-zfrwq472.js";
|
|
5
|
+
import"../../../../../../_chunks/index-entm8bmz.js";
|
|
6
|
+
import"../../../../../../_chunks/index-j0m1jxqa.js";
|
|
7
|
+
import"../../../../../../_chunks/index-akkrvjn6.js";
|
|
8
8
|
import"../../../../../../_chunks/index-bcws5eh2.js";
|
|
9
|
-
import"../../../../../../_chunks/index-
|
|
9
|
+
import"../../../../../../_chunks/index-m63czgq5.js";
|
|
10
10
|
import"../../../../../../_chunks/index-cjgqs13g.js";
|
|
11
11
|
import"../../../../../../_chunks/index-jks0x0a1.js";
|
|
12
12
|
import"../../../../../../_chunks/index-6b009mt0.js";
|
|
@@ -3,29 +3,18 @@ import"../../_chunks/index-rt9qq1va.js";
|
|
|
3
3
|
|
|
4
4
|
// src/compat/next/dynamic.tsx
|
|
5
5
|
import { h } from "preact";
|
|
6
|
-
import { lazy, Suspense } from "preact/compat";
|
|
7
6
|
import {
|
|
8
7
|
dynamic as pnextDynamic,
|
|
9
8
|
dynamicReferenceSymbol
|
|
10
9
|
} from "../../../../src/api/dynamic.tsx";
|
|
11
10
|
function dynamic(loader, options = {}, target) {
|
|
12
|
-
if (typeof loader === "string")
|
|
13
|
-
return pnextDynamic(loader, options, target);
|
|
14
11
|
const coreDynamic = pnextDynamic(loader, options, target);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (options.ssr === false) {
|
|
19
|
-
return h("pnext-dynamic", { style: { display: "contents" } }, typeof window === "undefined" ? null : h(coreDynamic, props));
|
|
20
|
-
}
|
|
21
|
-
return h(Suspense, { fallback: Loading ? h(Loading, props) : null }, h(Lazy, props));
|
|
22
|
-
};
|
|
12
|
+
if (typeof loader === "string" || options.ssr !== false)
|
|
13
|
+
return coreDynamic;
|
|
14
|
+
const DynamicComponent = (props) => h("pnext-dynamic", { style: { display: "contents" } }, typeof window === "undefined" ? null : h(coreDynamic, props));
|
|
23
15
|
DynamicComponent[dynamicReferenceSymbol] = coreDynamic[dynamicReferenceSymbol];
|
|
24
16
|
return DynamicComponent;
|
|
25
17
|
}
|
|
26
|
-
function componentFromModule(module) {
|
|
27
|
-
return typeof module === "function" ? module : module.default;
|
|
28
|
-
}
|
|
29
18
|
export {
|
|
30
19
|
dynamic as default,
|
|
31
20
|
dynamic
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
persistFont,
|
|
4
4
|
persistedFont
|
|
5
|
-
} from "../../../_chunks/index-
|
|
5
|
+
} from "../../../_chunks/index-qcrvt6er.js";
|
|
6
6
|
import"../../../_chunks/index-knp0s912.js";
|
|
7
|
-
import"../../../_chunks/index-
|
|
8
|
-
import"../../../_chunks/index-
|
|
9
|
-
import"../../../_chunks/index-
|
|
7
|
+
import"../../../_chunks/index-gcmj16xy.js";
|
|
8
|
+
import"../../../_chunks/index-4da76t62.js";
|
|
9
|
+
import"../../../_chunks/index-bzd2ef7t.js";
|
|
10
|
+
import"../../../_chunks/index-hdbwtdv2.js";
|
|
11
|
+
import"../../../_chunks/index-jt8e1pje.js";
|
|
10
12
|
import"../../../_chunks/index-rt9qq1va.js";
|
|
11
13
|
export {
|
|
12
14
|
persistFont,
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
localFont
|
|
4
|
-
} from "../../../_chunks/index-
|
|
5
|
-
import"../../../_chunks/index-
|
|
4
|
+
} from "../../../_chunks/index-gkndxkxf.js";
|
|
5
|
+
import"../../../_chunks/index-qcrvt6er.js";
|
|
6
6
|
import"../../../_chunks/index-knp0s912.js";
|
|
7
|
-
import"../../../_chunks/index-
|
|
7
|
+
import"../../../_chunks/index-gcmj16xy.js";
|
|
8
8
|
import"../../../_chunks/index-fn1chkkd.js";
|
|
9
|
-
import"../../../_chunks/index-
|
|
10
|
-
import"../../../_chunks/index-
|
|
9
|
+
import"../../../_chunks/index-4da76t62.js";
|
|
10
|
+
import"../../../_chunks/index-bzd2ef7t.js";
|
|
11
|
+
import"../../../_chunks/index-hdbwtdv2.js";
|
|
11
12
|
import"../../../_chunks/index-grta8ap3.js";
|
|
12
13
|
import"../../../_chunks/index-kresp2n8.js";
|
|
13
14
|
import"../../../_chunks/index-e3a6yx84.js";
|
|
15
|
+
import"../../../_chunks/index-jt8e1pje.js";
|
|
14
16
|
import"../../../_chunks/index-zqpqyg8p.js";
|
|
15
17
|
import"../../../_chunks/index-qjj6gddn.js";
|
|
16
18
|
import"../../../_chunks/index-rt9qq1va.js";
|
|
@@ -12,16 +12,18 @@ import {
|
|
|
12
12
|
releaseFonts,
|
|
13
13
|
runWithFontScope,
|
|
14
14
|
takeFontHeaderPreloads
|
|
15
|
-
} from "../../../_chunks/index-
|
|
16
|
-
import"../../../_chunks/index-
|
|
15
|
+
} from "../../../_chunks/index-gkndxkxf.js";
|
|
16
|
+
import"../../../_chunks/index-qcrvt6er.js";
|
|
17
17
|
import"../../../_chunks/index-knp0s912.js";
|
|
18
|
-
import"../../../_chunks/index-
|
|
18
|
+
import"../../../_chunks/index-gcmj16xy.js";
|
|
19
19
|
import"../../../_chunks/index-fn1chkkd.js";
|
|
20
|
-
import"../../../_chunks/index-
|
|
21
|
-
import"../../../_chunks/index-
|
|
20
|
+
import"../../../_chunks/index-4da76t62.js";
|
|
21
|
+
import"../../../_chunks/index-bzd2ef7t.js";
|
|
22
|
+
import"../../../_chunks/index-hdbwtdv2.js";
|
|
22
23
|
import"../../../_chunks/index-grta8ap3.js";
|
|
23
24
|
import"../../../_chunks/index-kresp2n8.js";
|
|
24
25
|
import"../../../_chunks/index-e3a6yx84.js";
|
|
26
|
+
import"../../../_chunks/index-jt8e1pje.js";
|
|
25
27
|
import"../../../_chunks/index-zqpqyg8p.js";
|
|
26
28
|
import"../../../_chunks/index-qjj6gddn.js";
|
|
27
29
|
import"../../../_chunks/index-rt9qq1va.js";
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
cookies,
|
|
5
5
|
draftMode,
|
|
6
6
|
headers
|
|
7
|
-
} from "../../_chunks/index-
|
|
7
|
+
} from "../../_chunks/index-drwv61cc.js";
|
|
8
8
|
import"../../_chunks/index-2vz0wzdn.js";
|
|
9
|
-
import"../../_chunks/index-
|
|
10
|
-
import"../../_chunks/index-
|
|
9
|
+
import"../../_chunks/index-y4d02znn.js";
|
|
10
|
+
import"../../_chunks/index-akkrvjn6.js";
|
|
11
11
|
import"../../_chunks/index-bcws5eh2.js";
|
|
12
|
-
import"../../_chunks/index-
|
|
12
|
+
import"../../_chunks/index-m63czgq5.js";
|
|
13
13
|
import"../../_chunks/index-cjgqs13g.js";
|
|
14
14
|
import"../../_chunks/index-jks0x0a1.js";
|
|
15
15
|
import"../../_chunks/index-6b009mt0.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
getImagesConfig
|
|
4
|
-
} from "../../../_chunks/index-
|
|
5
|
-
import"../../../_chunks/index-
|
|
4
|
+
} from "../../../_chunks/index-141vcwk6.js";
|
|
5
|
+
import"../../../_chunks/index-m63czgq5.js";
|
|
6
6
|
import"../../../_chunks/index-cjgqs13g.js";
|
|
7
7
|
import"../../../_chunks/index-jks0x0a1.js";
|
|
8
8
|
import"../../../_chunks/index-6b009mt0.js";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
generateBlurDataURL,
|
|
4
4
|
isImageOptimizerRequest,
|
|
5
5
|
serveImageOptimizer
|
|
6
|
-
} from "../../../_chunks/index-
|
|
6
|
+
} from "../../../_chunks/index-typcbcsv.js";
|
|
7
7
|
import"../../../_chunks/index-tgsfjmep.js";
|
|
8
|
-
import"../../../_chunks/index-
|
|
8
|
+
import"../../../_chunks/index-141vcwk6.js";
|
|
9
9
|
import"../../../_chunks/index-bcws5eh2.js";
|
|
10
|
-
import"../../../_chunks/index-
|
|
10
|
+
import"../../../_chunks/index-m63czgq5.js";
|
|
11
11
|
import"../../../_chunks/index-cjgqs13g.js";
|
|
12
12
|
import"../../../_chunks/index-jks0x0a1.js";
|
|
13
13
|
import"../../../_chunks/index-6b009mt0.js";
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
staticImageModule,
|
|
7
7
|
staticImageModuleText,
|
|
8
8
|
staticMediaRelative
|
|
9
|
-
} from "../../../_chunks/index-
|
|
10
|
-
import"../../../_chunks/index-
|
|
9
|
+
} from "../../../_chunks/index-q3r9z8mq.js";
|
|
10
|
+
import"../../../_chunks/index-typcbcsv.js";
|
|
11
11
|
import"../../../_chunks/index-tgsfjmep.js";
|
|
12
|
-
import"../../../_chunks/index-
|
|
12
|
+
import"../../../_chunks/index-141vcwk6.js";
|
|
13
13
|
import"../../../_chunks/index-bcws5eh2.js";
|
|
14
|
-
import"../../../_chunks/index-
|
|
14
|
+
import"../../../_chunks/index-m63czgq5.js";
|
|
15
15
|
import"../../../_chunks/index-cjgqs13g.js";
|
|
16
16
|
import"../../../_chunks/index-jks0x0a1.js";
|
|
17
17
|
import"../../../_chunks/index-6b009mt0.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
withSyncAccess,
|
|
4
4
|
withSyncProps
|
|
5
|
-
} from "../../_chunks/index-
|
|
6
|
-
import"../../_chunks/index-
|
|
5
|
+
} from "../../_chunks/index-y4d02znn.js";
|
|
6
|
+
import"../../_chunks/index-akkrvjn6.js";
|
|
7
7
|
import"../../_chunks/index-bcws5eh2.js";
|
|
8
|
-
import"../../_chunks/index-
|
|
8
|
+
import"../../_chunks/index-m63czgq5.js";
|
|
9
9
|
import"../../_chunks/index-cjgqs13g.js";
|
|
10
10
|
import"../../_chunks/index-jks0x0a1.js";
|
|
11
11
|
import"../../_chunks/index-6b009mt0.js";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
rewriteLegacyLinkValidation
|
|
4
|
-
} from "../../_chunks/index-
|
|
5
|
-
import"../../_chunks/index-
|
|
6
|
-
import"../../_chunks/index-
|
|
4
|
+
} from "../../_chunks/index-vmr35jjw.js";
|
|
5
|
+
import"../../_chunks/index-x9c55pzy.js";
|
|
6
|
+
import"../../_chunks/index-d1jsmhhk.js";
|
|
7
7
|
import"../../_chunks/index-7wc9n8be.js";
|
|
8
8
|
import"../../_chunks/index-pym1cezq.js";
|
|
9
|
+
import"../../_chunks/index-jt8e1pje.js";
|
|
9
10
|
import"../../_chunks/index-zqpqyg8p.js";
|
|
10
11
|
import"../../_chunks/index-qjj6gddn.js";
|
|
11
12
|
import"../../_chunks/index-rt9qq1va.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
currentLayoutSegments,
|
|
4
4
|
currentParamsSnapshot,
|
|
5
5
|
hasLayoutSegmentScope
|
|
6
|
-
} from "../../_chunks/index-
|
|
7
|
-
import"../../_chunks/index-
|
|
8
|
-
import"../../_chunks/index-
|
|
9
|
-
import"../../_chunks/index-
|
|
6
|
+
} from "../../_chunks/index-29pq0kax.js";
|
|
7
|
+
import"../../_chunks/index-cn86z041.js";
|
|
8
|
+
import"../../_chunks/index-4da76t62.js";
|
|
9
|
+
import"../../_chunks/index-hdbwtdv2.js";
|
|
10
10
|
import {
|
|
11
11
|
canonicalUrlHref
|
|
12
12
|
} from "../../_chunks/index-en7n9f7m.js";
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
PostponeError,
|
|
20
20
|
isPostpone
|
|
21
21
|
} from "../../_chunks/index-e3a6yx84.js";
|
|
22
|
+
import"../../_chunks/index-jt8e1pje.js";
|
|
22
23
|
import"../../_chunks/index-zqpqyg8p.js";
|
|
23
24
|
import"../../_chunks/index-qjj6gddn.js";
|
|
24
25
|
import {
|
|
@@ -2,26 +2,28 @@
|
|
|
2
2
|
import {
|
|
3
3
|
loadCompatRedirects,
|
|
4
4
|
resolveCompatRedirect
|
|
5
|
-
} from "../../_chunks/index-
|
|
6
|
-
import"../../_chunks/index-
|
|
5
|
+
} from "../../_chunks/index-cvr4z22m.js";
|
|
6
|
+
import"../../_chunks/index-he6n2bvp.js";
|
|
7
7
|
import"../../_chunks/index-6q7zvrap.js";
|
|
8
8
|
import"../../_chunks/index-79ngvam8.js";
|
|
9
|
-
import"../../_chunks/index-
|
|
9
|
+
import"../../_chunks/index-akkrvjn6.js";
|
|
10
10
|
import"../../_chunks/index-bcws5eh2.js";
|
|
11
|
-
import"../../_chunks/index-
|
|
11
|
+
import"../../_chunks/index-m63czgq5.js";
|
|
12
12
|
import"../../_chunks/index-cjgqs13g.js";
|
|
13
13
|
import"../../_chunks/index-jks0x0a1.js";
|
|
14
14
|
import"../../_chunks/index-6b009mt0.js";
|
|
15
15
|
import"../../_chunks/index-4zzebszd.js";
|
|
16
16
|
import"../../_chunks/index-sq3kvz3g.js";
|
|
17
17
|
import"../../_chunks/index-ckkdpht5.js";
|
|
18
|
-
import"../../_chunks/index-
|
|
19
|
-
import"../../_chunks/index-
|
|
18
|
+
import"../../_chunks/index-71885zaq.js";
|
|
19
|
+
import"../../_chunks/index-bzd2ef7t.js";
|
|
20
|
+
import"../../_chunks/index-hdbwtdv2.js";
|
|
20
21
|
import"../../_chunks/index-grta8ap3.js";
|
|
21
22
|
import"../../_chunks/index-kresp2n8.js";
|
|
22
23
|
import"../../_chunks/index-e3a6yx84.js";
|
|
23
24
|
import"../../_chunks/index-7wc9n8be.js";
|
|
24
25
|
import"../../_chunks/index-pym1cezq.js";
|
|
26
|
+
import"../../_chunks/index-jt8e1pje.js";
|
|
25
27
|
import"../../_chunks/index-qjj6gddn.js";
|
|
26
28
|
import"../../_chunks/index-rt9qq1va.js";
|
|
27
29
|
export {
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
registerResourceHintFinalizer,
|
|
6
6
|
takeResourceHintHeader,
|
|
7
7
|
takeResourceHintsForResponse
|
|
8
|
-
} from "../../_chunks/index-
|
|
9
|
-
import"../../_chunks/index-
|
|
8
|
+
} from "../../_chunks/index-tf4j19ge.js";
|
|
9
|
+
import"../../_chunks/index-m63czgq5.js";
|
|
10
10
|
import"../../_chunks/index-cjgqs13g.js";
|
|
11
11
|
import"../../_chunks/index-jks0x0a1.js";
|
|
12
12
|
import"../../_chunks/index-6b009mt0.js";
|
|
@@ -8,25 +8,27 @@ import {
|
|
|
8
8
|
resolveCompatRewrite,
|
|
9
9
|
splitDestination,
|
|
10
10
|
substitute
|
|
11
|
-
} from "../../_chunks/index-
|
|
11
|
+
} from "../../_chunks/index-he6n2bvp.js";
|
|
12
12
|
import"../../_chunks/index-6q7zvrap.js";
|
|
13
13
|
import"../../_chunks/index-79ngvam8.js";
|
|
14
|
-
import"../../_chunks/index-
|
|
14
|
+
import"../../_chunks/index-akkrvjn6.js";
|
|
15
15
|
import"../../_chunks/index-bcws5eh2.js";
|
|
16
|
-
import"../../_chunks/index-
|
|
16
|
+
import"../../_chunks/index-m63czgq5.js";
|
|
17
17
|
import"../../_chunks/index-cjgqs13g.js";
|
|
18
18
|
import"../../_chunks/index-jks0x0a1.js";
|
|
19
19
|
import"../../_chunks/index-6b009mt0.js";
|
|
20
20
|
import"../../_chunks/index-4zzebszd.js";
|
|
21
21
|
import"../../_chunks/index-sq3kvz3g.js";
|
|
22
22
|
import"../../_chunks/index-ckkdpht5.js";
|
|
23
|
-
import"../../_chunks/index-
|
|
24
|
-
import"../../_chunks/index-
|
|
23
|
+
import"../../_chunks/index-71885zaq.js";
|
|
24
|
+
import"../../_chunks/index-bzd2ef7t.js";
|
|
25
|
+
import"../../_chunks/index-hdbwtdv2.js";
|
|
25
26
|
import"../../_chunks/index-grta8ap3.js";
|
|
26
27
|
import"../../_chunks/index-kresp2n8.js";
|
|
27
28
|
import"../../_chunks/index-e3a6yx84.js";
|
|
28
29
|
import"../../_chunks/index-7wc9n8be.js";
|
|
29
30
|
import"../../_chunks/index-pym1cezq.js";
|
|
31
|
+
import"../../_chunks/index-jt8e1pje.js";
|
|
30
32
|
import"../../_chunks/index-qjj6gddn.js";
|
|
31
33
|
import"../../_chunks/index-rt9qq1va.js";
|
|
32
34
|
export {
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
insideUseCacheProducer,
|
|
8
8
|
recordUseCacheRootParamRead
|
|
9
|
-
} from "../../_chunks/index-
|
|
9
|
+
} from "../../_chunks/index-j0m1jxqa.js";
|
|
10
10
|
import {
|
|
11
11
|
currentRenderCacheMeta,
|
|
12
12
|
insideUnstableCacheProducer
|
|
13
|
-
} from "../../_chunks/index-
|
|
13
|
+
} from "../../_chunks/index-akkrvjn6.js";
|
|
14
14
|
import"../../_chunks/index-bcws5eh2.js";
|
|
15
|
-
import"../../_chunks/index-
|
|
15
|
+
import"../../_chunks/index-m63czgq5.js";
|
|
16
16
|
import"../../_chunks/index-cjgqs13g.js";
|
|
17
17
|
import"../../_chunks/index-jks0x0a1.js";
|
|
18
18
|
import"../../_chunks/index-6b009mt0.js";
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
nextClientRouteState,
|
|
4
4
|
staticSiblingNames,
|
|
5
5
|
staticSiblingNamesBySegment
|
|
6
|
-
} from "../../_chunks/index-
|
|
6
|
+
} from "../../_chunks/index-52k54ykj.js";
|
|
7
7
|
import"../../_chunks/index-z88qv16t.js";
|
|
8
|
-
import"../../_chunks/index-
|
|
8
|
+
import"../../_chunks/index-m63czgq5.js";
|
|
9
9
|
import"../../_chunks/index-cjgqs13g.js";
|
|
10
10
|
import"../../_chunks/index-jks0x0a1.js";
|
|
11
11
|
import"../../_chunks/index-6b009mt0.js";
|
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
renderPartytownHeadScripts,
|
|
10
10
|
takeDeferredScripts,
|
|
11
11
|
takeHeadScripts
|
|
12
|
-
} from "../../_chunks/index-
|
|
12
|
+
} from "../../_chunks/index-9f49w76j.js";
|
|
13
13
|
import"../../_chunks/index-ye9hmsvf.js";
|
|
14
|
-
import"../../_chunks/index-
|
|
14
|
+
import"../../_chunks/index-m63czgq5.js";
|
|
15
15
|
import"../../_chunks/index-cjgqs13g.js";
|
|
16
16
|
import"../../_chunks/index-jks0x0a1.js";
|
|
17
17
|
import"../../_chunks/index-6b009mt0.js";
|
|
@@ -6,23 +6,23 @@ import {
|
|
|
6
6
|
} from "../../_chunks/index-r97ptz1q.js";
|
|
7
7
|
import {
|
|
8
8
|
io
|
|
9
|
-
} from "../../_chunks/index-
|
|
9
|
+
} from "../../_chunks/index-entm8bmz.js";
|
|
10
10
|
import {
|
|
11
11
|
assertDynamicErrorRequestApi
|
|
12
|
-
} from "../../_chunks/index-
|
|
12
|
+
} from "../../_chunks/index-drwv61cc.js";
|
|
13
13
|
import {
|
|
14
14
|
afterRequestApisAllowed,
|
|
15
15
|
assertRequestApiAllowedInAfter,
|
|
16
16
|
recordRequestPath,
|
|
17
17
|
runWithAfterRequestApiScope
|
|
18
18
|
} from "../../_chunks/index-2vz0wzdn.js";
|
|
19
|
-
import"../../_chunks/index-
|
|
19
|
+
import"../../_chunks/index-y4d02znn.js";
|
|
20
20
|
import {
|
|
21
21
|
assertNoDynamicApiInsideCache,
|
|
22
22
|
currentRenderCacheMeta
|
|
23
|
-
} from "../../_chunks/index-
|
|
23
|
+
} from "../../_chunks/index-akkrvjn6.js";
|
|
24
24
|
import"../../_chunks/index-bcws5eh2.js";
|
|
25
|
-
import"../../_chunks/index-
|
|
25
|
+
import"../../_chunks/index-m63czgq5.js";
|
|
26
26
|
import"../../_chunks/index-cjgqs13g.js";
|
|
27
27
|
import"../../_chunks/index-jks0x0a1.js";
|
|
28
28
|
import"../../_chunks/index-6b009mt0.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.1.
|
|
1
|
+
{"version":"0.1.8","fingerprint":"64aaa993cbaa58df","source":["src/api/cache.ts","src/api/client-navigation.ts","src/api/dynamic.tsx","src/api/link.tsx","src/api/navigation.ts","src/api/server.ts","src/api/suspense.ts","src/client/router/events.ts","src/client/router/history.ts","src/client/router/hub.ts","src/client/router/index.ts","src/client/router/page-slot.ts","src/client/router/policies.ts","src/client/router/runtime.ts","src/index.ts","src/internal.ts","src/request/cache.ts","src/routing/href.ts","src/utils/decode.ts"]}
|
package/package.json
CHANGED
package/reference/compat.md
CHANGED
|
@@ -125,4 +125,4 @@ A route or proxy declaring an edge runtime, and a Pages Router handler configure
|
|
|
125
125
|
|
|
126
126
|
`output: 'export'` writes a static tree to `out/`, or to `distDir` when the app configures a custom one. The tree carries the HTML and the flat per-page artifacts the client router fetches when no pnext server is present, the client runtime under `_next/static/chunks/`, the build manifests, the `public/` tree, and the not-found page. Dynamic routes without `generateStaticParams`, pages forcing dynamic rendering, and route handlers with disallowed segment config are build errors, as they are in Next.
|
|
127
127
|
|
|
128
|
-
`output: 'standalone'` writes
|
|
128
|
+
`output: 'standalone'` writes the same `standalone/` folder as every build (see [Deploy](./dev.md#deploy)), at `.next/standalone/`, with `.nft.json` traces, a middleware manifest and a `server.js` that serves it on `PORT` and `HOSTNAME` via `node server.js`. Bun must be installed. `public/` and static files are already inside.
|
package/reference/config.md
CHANGED
|
@@ -21,7 +21,7 @@ This is the form `pnext create` scaffolds. With `compat.next`, pnext also loads
|
|
|
21
21
|
|
|
22
22
|
| Field | Default | What it does |
|
|
23
23
|
| ----------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------- |
|
|
24
|
-
| `outDir` | `'.pnext'` | Build output
|
|
24
|
+
| `outDir` | `'.pnext'` | Build output: the shippable `standalone/` folder, the build `cache/`, and generated `types/`. |
|
|
25
25
|
| `basePath` | `''` | Path prefix for an app served below the domain root. |
|
|
26
26
|
| `assetPrefix` | `basePath` | URL prefix for emitted assets. Set it when assets come from a CDN. |
|
|
27
27
|
| `trailingSlash` | `false` | Canonicalizes URLs to a trailing slash and redirects the form without one. |
|
|
@@ -51,7 +51,7 @@ Both `compat.next` and `compat.reactCompiler` imply `compat.react`. Direct Preac
|
|
|
51
51
|
|
|
52
52
|
## Deployment adapter
|
|
53
53
|
|
|
54
|
-
`exclude` and `keep`
|
|
54
|
+
`exclude` drops matching directories and file suffixes from `standalone/`. `keep` ships matching app files the server reads at runtime. Both apply to the Vercel function.
|
|
55
55
|
|
|
56
56
|
```ts
|
|
57
57
|
export default {
|
package/reference/dev.md
CHANGED
|
@@ -48,7 +48,7 @@ Debug flags: `--experimental-build-mode compile|generate` splits the build into
|
|
|
48
48
|
|
|
49
49
|
## Deploy
|
|
50
50
|
|
|
51
|
-
pnext deploys anywhere Bun runs: a VPS, a container, or any host you control. Run `pnext build
|
|
51
|
+
pnext deploys anywhere Bun runs: a VPS, a container, or any host you control. Run `pnext build`, then ship `<outDir>/standalone`; it needs nothing else. Serve it with `pnext start`, or import `standalone/server/entry.js` in your own server and call `createRequestHandler()`. To use a CDN, upload `standalone/static/` as-is.
|
|
52
52
|
|
|
53
53
|
Vercel has a dedicated adapter: `pnext build --adapter vercel` writes Build Output to `.vercel/output`. Static pages and static route-handler responses are emitted as files; everything dynamic runs in a single `_pnext` function on Vercel's Bun runtime.
|
|
54
54
|
|
|
@@ -41,7 +41,7 @@ pnext start
|
|
|
41
41
|
|
|
42
42
|
`pnext build` makes the production build and `pnext start` serves it. Routes render on the server per request; ones that never read the request are prerendered to static HTML at build time.
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
Ship `.pnext/standalone` to any host with Bun. For Vercel, build with `pnext build --adapter vercel` and it writes ready-to-deploy Build Output.
|
|
45
45
|
|
|
46
46
|
## A quick tour
|
|
47
47
|
|
package/reference/rendering.md
CHANGED
|
@@ -40,7 +40,7 @@ Put the directive at the top of a page when the whole page needs browser-only be
|
|
|
40
40
|
|
|
41
41
|
## Lazy loading
|
|
42
42
|
|
|
43
|
-
`dynamic()` defers loading a component
|
|
43
|
+
`dynamic()` defers loading a component in Server and Client Components. The loader can also be a literal module path for a default export.
|
|
44
44
|
|
|
45
45
|
```tsx
|
|
46
46
|
import { dynamic } from '@wular/pnext/dynamic'
|
|
@@ -50,10 +50,10 @@ const Chart = dynamic(() => import('./chart').then(m => m.Chart), {
|
|
|
50
50
|
})
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
The component renders on the server and hydrates by default. The options change that:
|
|
54
54
|
|
|
55
|
-
- `ssr: false`
|
|
56
|
-
- `load: 'visible'` waits for the
|
|
55
|
+
- `ssr: false` renders only in the browser.
|
|
56
|
+
- `load: 'visible'` waits for the component to enter view, and accepts `rootMargin` and `threshold`. It renders only in the browser, except with `ssr: true` in a Server Component.
|
|
57
57
|
- `loading` supplies fallback UI.
|
|
58
58
|
|
|
59
59
|
## Props that cross the boundary
|