dinou 9.3.0 → 10.0.1
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/CHANGELOG.md +196 -0
- package/README.md +157 -132
- package/dinou/adapters/bun.js +34 -5
- package/dinou/adapters/cloudflare.js +110 -17
- package/dinou/adapters/deno.js +46 -8
- package/dinou/adapters/netlify.js +86 -50
- package/dinou/adapters/node.js +8 -0
- package/dinou/assets.d.ts +32 -5
- package/dinou/bun/build.js +190 -106
- package/dinou/cli.js +992 -532
- package/dinou/cloudflare/build.js +187 -106
- package/dinou/compiled/autoprefixer/index.js +509 -517
- package/dinou/compiled/babel-core/index.js +738 -716
- package/dinou/compiled/babel-generator/index.js +341 -299
- package/dinou/compiled/babel-loader/index.js +766 -744
- package/dinou/compiled/babel-parser/index.js +2 -2
- package/dinou/compiled/babel-plugin-react-compiler/index.js +178 -178
- package/dinou/compiled/babel-plugin-syntax-import-meta/index.js +4 -4
- package/dinou/compiled/babel-preset-react/index.js +752 -730
- package/dinou/compiled/babel-preset-typescript/index.js +738 -716
- package/dinou/compiled/babel-traverse/index.js +463 -433
- package/dinou/compiled/babel-types/index.js +176 -176
- package/dinou/compiled/chokidar/index.js +4 -4
- package/dinou/compiled/commander/index.js +15 -15
- package/dinou/compiled/copy-webpack-plugin/index.js +433 -425
- package/dinou/compiled/css-loader/index.js +289 -289
- package/dinou/compiled/css-loader/runtime/api.js +85 -0
- package/dinou/compiled/css-loader/runtime/getUrl.js +26 -0
- package/dinou/compiled/css-loader/runtime/noSourceMaps.js +5 -0
- package/dinou/compiled/css-loader/runtime/package.json +3 -0
- package/dinou/compiled/css-loader/runtime/sourceMaps.js +16 -0
- package/dinou/compiled/fast-glob/index.js +5810 -0
- package/dinou/compiled/generic-names/index.js +16 -16
- package/dinou/compiled/mini-css-extract-plugin/{chunk-YYEJWYXE.js → chunk-R6DP5ZYM.js} +36 -36
- package/dinou/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js +253 -0
- package/dinou/compiled/mini-css-extract-plugin/hmr/normalize-url.js +39 -0
- package/dinou/compiled/mini-css-extract-plugin/hmr/package.json +3 -0
- package/dinou/compiled/mini-css-extract-plugin/index.js +1 -1
- package/dinou/compiled/mini-css-extract-plugin/loader.js +5 -5
- package/dinou/compiled/postcss/index.js +83 -83
- package/dinou/compiled/postcss-import/index.js +147 -117
- package/dinou/compiled/postcss-modules/index.js +216 -216
- package/dinou/compiled/resolve/index.js +1224 -0
- package/dinou/compiled/rollup-plugin-babel/index.js +753 -731
- package/dinou/compiled/rollup-plugin-commonjs/index.js +43 -38
- package/dinou/compiled/rollup-plugin-delete/index.js +615 -253
- package/dinou/compiled/rollup-plugin-json/index.js +22 -18
- package/dinou/compiled/rollup-plugin-node-resolve/index.js +130 -100
- package/dinou/compiled/rollup-plugin-postcss/index.js +3299 -3277
- package/dinou/compiled/rollup-plugin-replace/index.js +34 -29
- package/dinou/compiled/tailwindcss-postcss/index.js +214 -211
- package/dinou/compiled/vendors-manifest.json +59 -83
- package/dinou/core/asset-extensions.js +482 -33
- package/dinou/core/bailout-proxy.js +21 -2
- package/dinou/core/build-static-pages.js +523 -371
- package/dinou/core/builtin-asset-extensions.js +63 -0
- package/dinou/core/cache-revalidate.js +449 -256
- package/dinou/core/cache-slot.js +289 -79
- package/dinou/core/client-webpack.jsx +470 -39
- package/dinou/core/client.jsx +402 -39
- package/dinou/core/config.js +3 -0
- package/dinou/core/copy-static-dirs.js +98 -0
- package/dinou/core/createScopedName.js +22 -4
- package/dinou/core/dinou-paths.js +1 -1
- package/dinou/core/discover-layouts.js +200 -0
- package/dinou/core/edge-ssr.js +1 -1
- package/dinou/core/ensure-vendor-mode.js +78 -19
- package/dinou/core/env.js +544 -0
- package/dinou/core/export-static.js +41 -9
- package/dinou/core/generate-route-types.js +989 -95
- package/dinou/core/generate-static-rsc.js +5 -6
- package/dinou/core/generate-static.js +45 -6
- package/dinou/core/get-abs-path-with-ext.js +217 -75
- package/dinou/core/get-asset-from-manifest.js +19 -8
- package/dinou/core/get-error-jsx.js +4 -5
- package/dinou/core/get-file-path-and-dynamic-params.js +561 -338
- package/dinou/core/get-jsx.js +220 -53
- package/dinou/core/handler.js +1647 -466
- package/dinou/core/import-module.js +7 -0
- package/dinou/core/layout-functions.js +72 -13
- package/dinou/core/link.jsx +34 -6
- package/dinou/core/load-dinou-config.js +520 -89
- package/dinou/core/manifest-provider.js +4 -14
- package/dinou/core/navigation-utils.js +141 -3
- package/dinou/core/navigation.js +134 -50
- package/dinou/core/node-middleware-runner.js +165 -0
- package/dinou/core/postcss-pipeline.js +236 -0
- package/dinou/core/ppr-context.js +114 -22
- package/dinou/core/ppr-runtime.js +391 -127
- package/dinou/core/redirect.jsx +1 -1
- package/dinou/core/render-jsx-to-client-jsx.js +216 -48
- package/dinou/core/request-context.js +59 -3
- package/dinou/core/resolve-contextual-dinou.js +523 -0
- package/dinou/core/resolve-setup-files.js +85 -27
- package/dinou/core/revalidating.js +10 -2
- package/dinou/core/route-generator.js +6 -2
- package/dinou/core/rsc-renderer.js +4 -1
- package/dinou/core/run-ssg.js +6 -0
- package/dinou/core/runtime-env.js +265 -0
- package/dinou/core/server-css-modules-plugin.js +155 -0
- package/dinou/core/server-function-proxy-webpack.js +27 -2
- package/dinou/core/server-function-proxy.js +27 -2
- package/dinou/core/slot.js +47 -2
- package/dinou/core/static-assets.js +503 -0
- package/dinou/core/storage-adapter.js +452 -24
- package/dinou/core/transform-server-functions.js +272 -24
- package/dinou/core/tsconfig-aliases.js +964 -0
- package/dinou/core/uneject.js +640 -0
- package/dinou/core/url-resolver.js +1 -1
- package/dinou/core/vfs.js +11 -2
- package/dinou/css.d.ts +4 -1
- package/dinou/deno/build.js +205 -153
- package/dinou/deno/seed-kv.js +4 -0
- package/dinou/env.d.ts +22 -2
- package/dinou/esbuild/build.js +40 -50
- package/dinou/esbuild/dev.js +33 -7
- package/dinou/esbuild/helpers-esbuild/get-config-esbuild-prod.js +41 -16
- package/dinou/esbuild/helpers-esbuild/get-config-esbuild.js +51 -49
- package/dinou/esbuild/helpers-esbuild/get-esbuild-entries.js +73 -60
- package/dinou/esbuild/helpers-esbuild/swc-disk-cache.js +35 -16
- package/dinou/esbuild/helpers-esbuild/write.js +13 -3
- package/dinou/esbuild/plugins-esbuild/assets-plugin.js +100 -238
- package/dinou/esbuild/plugins-esbuild/babel-react-compiler-plugin.js +73 -29
- package/dinou/esbuild/plugins-esbuild/css-processor-plugin.js +283 -91
- package/dinou/esbuild/plugins-esbuild/manifest-generator-plugin.js +3 -5
- package/dinou/esbuild/plugins-esbuild/react-client-manifest-plugin.js +9 -3
- package/dinou/esbuild/plugins-esbuild/server-functions-plugin.js +4 -3
- package/dinou/esbuild/plugins-esbuild/stable-chunk-names-and-maps-plugin.js +10 -1
- package/dinou/esbuild/plugins-postcss/postcss-extract-plugin.js +84 -21
- package/dinou/esbuild/react-refresh/esm-hmr/client.js +31 -10
- package/dinou/esbuild/react-refresh/esm-hmr-plugin.js +48 -18
- package/dinou/esbuild/react-refresh/is-react-refresh-boundary.js +9 -1
- package/dinou/esbuild/react-refresh/react-refresh-runtime.js +13 -7
- package/dinou/index.d.ts +1028 -88
- package/dinou/node/build.js +138 -74
- package/dinou/node/bundle-dual-engine.js +393 -131
- package/dinou/node/dev.js +1005 -275
- package/dinou/package.json +11 -34
- package/dinou/rollup/postcss.config.js +3 -4
- package/dinou/rollup/react-refresh/esm-hmr/client.js +31 -10
- package/dinou/rollup/react-refresh/react-refresh-wrap-modules.js +16 -13
- package/dinou/rollup/react-refresh/rollup-plugin-esm-hmr.js +53 -7
- package/dinou/rollup/rollup-plugins/dinou-asset-plugin.js +58 -20
- package/dinou/rollup/rollup-plugins/manifest-generator-plugin.js +16 -7
- package/dinou/rollup/rollup-plugins/rollup-plugin-react-client-manifest.js +118 -42
- package/dinou/rollup/rollup-plugins/rollup-plugin-server-functions.js +48 -36
- package/dinou/rollup/rollup.config.js +174 -101
- package/dinou/scripts/build-vendors.js +123 -33
- package/dinou/server.d.ts +126 -15
- package/dinou/webpack/helpers/get-webpack-entries.js +87 -41
- package/dinou/webpack/helpers/patch-webpack-internals.js +93 -1
- package/dinou/webpack/loaders/server-functions-loader.js +1 -1
- package/dinou/webpack/plugins/manifest-generator-plugin.js +27 -7
- package/dinou/webpack/plugins/server-functions-plugin.js +39 -12
- package/dinou/webpack/plugins/webpack-memory-plugin.js +25 -12
- package/dinou/webpack/postcss.config.js +3 -4
- package/dinou/webpack/webpack.config.js +408 -132
- package/eject.js +6 -224
- package/package.json +7 -9
- package/dinou/compiled/cross-env/index.js +0 -661
- package/dinou/compiled/dotenv/index.js +0 -375
- package/dinou/compiled/esbuild-copy-static-files/index.js +0 -63
- package/dinou/compiled/esbuild-tsconfig-paths/index.js +0 -1314
- package/dinou/compiled/rollup-plugin-copy/index.js +0 -12066
- package/dinou/compiled/rollup-plugin-tsconfig-paths/index.js +0 -569
- package/dinou/compiled/tsconfig-paths-webpack-plugin/index.js +0 -3956
|
@@ -36,9 +36,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
36
|
mod
|
|
37
37
|
));
|
|
38
38
|
|
|
39
|
-
//
|
|
39
|
+
// node_modules/picomatch/lib/constants.js
|
|
40
40
|
var require_constants = __commonJS({
|
|
41
|
-
"
|
|
41
|
+
"node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
42
42
|
"use strict";
|
|
43
43
|
var WIN_SLASH = "\\\\/";
|
|
44
44
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
@@ -238,9 +238,9 @@ var require_constants = __commonJS({
|
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
240
|
|
|
241
|
-
//
|
|
241
|
+
// node_modules/picomatch/lib/utils.js
|
|
242
242
|
var require_utils = __commonJS({
|
|
243
|
-
"
|
|
243
|
+
"node_modules/picomatch/lib/utils.js"(exports) {
|
|
244
244
|
"use strict";
|
|
245
245
|
var {
|
|
246
246
|
REGEX_BACKSLASH,
|
|
@@ -302,9 +302,9 @@ var require_utils = __commonJS({
|
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
304
|
|
|
305
|
-
//
|
|
305
|
+
// node_modules/picomatch/lib/scan.js
|
|
306
306
|
var require_scan = __commonJS({
|
|
307
|
-
"
|
|
307
|
+
"node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
308
308
|
"use strict";
|
|
309
309
|
var utils = require_utils();
|
|
310
310
|
var {
|
|
@@ -640,9 +640,9 @@ var require_scan = __commonJS({
|
|
|
640
640
|
}
|
|
641
641
|
});
|
|
642
642
|
|
|
643
|
-
//
|
|
643
|
+
// node_modules/picomatch/lib/parse.js
|
|
644
644
|
var require_parse = __commonJS({
|
|
645
|
-
"
|
|
645
|
+
"node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
646
646
|
"use strict";
|
|
647
647
|
var constants = require_constants();
|
|
648
648
|
var utils = require_utils();
|
|
@@ -1655,9 +1655,9 @@ var require_parse = __commonJS({
|
|
|
1655
1655
|
}
|
|
1656
1656
|
});
|
|
1657
1657
|
|
|
1658
|
-
//
|
|
1658
|
+
// node_modules/picomatch/lib/picomatch.js
|
|
1659
1659
|
var require_picomatch = __commonJS({
|
|
1660
|
-
"
|
|
1660
|
+
"node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
1661
1661
|
"use strict";
|
|
1662
1662
|
var scan = require_scan();
|
|
1663
1663
|
var parse = require_parse();
|
|
@@ -1795,9 +1795,9 @@ var require_picomatch = __commonJS({
|
|
|
1795
1795
|
}
|
|
1796
1796
|
});
|
|
1797
1797
|
|
|
1798
|
-
//
|
|
1798
|
+
// node_modules/picomatch/index.js
|
|
1799
1799
|
var require_picomatch2 = __commonJS({
|
|
1800
|
-
"
|
|
1800
|
+
"node_modules/picomatch/index.js"(exports, module) {
|
|
1801
1801
|
"use strict";
|
|
1802
1802
|
var pico = require_picomatch();
|
|
1803
1803
|
var utils = require_utils();
|
|
@@ -1812,9 +1812,9 @@ var require_picomatch2 = __commonJS({
|
|
|
1812
1812
|
}
|
|
1813
1813
|
});
|
|
1814
1814
|
|
|
1815
|
-
//
|
|
1815
|
+
// node_modules/commondir/index.js
|
|
1816
1816
|
var require_commondir = __commonJS({
|
|
1817
|
-
"
|
|
1817
|
+
"node_modules/commondir/index.js"(exports, module) {
|
|
1818
1818
|
var path = __require("path");
|
|
1819
1819
|
module.exports = function(basedir, relfiles) {
|
|
1820
1820
|
if (relfiles) {
|
|
@@ -1837,9 +1837,9 @@ var require_commondir = __commonJS({
|
|
|
1837
1837
|
}
|
|
1838
1838
|
});
|
|
1839
1839
|
|
|
1840
|
-
//
|
|
1840
|
+
// node_modules/is-reference/dist/is-reference.js
|
|
1841
1841
|
var require_is_reference = __commonJS({
|
|
1842
|
-
"
|
|
1842
|
+
"node_modules/is-reference/dist/is-reference.js"(exports, module) {
|
|
1843
1843
|
(function(global, factory) {
|
|
1844
1844
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = global || self, global.isReference = factory());
|
|
1845
1845
|
})(exports, (function() {
|
|
@@ -1885,13 +1885,13 @@ var require_is_reference = __commonJS({
|
|
|
1885
1885
|
}
|
|
1886
1886
|
});
|
|
1887
1887
|
|
|
1888
|
-
//
|
|
1888
|
+
// node_modules/@rollup/plugin-commonjs/dist/es/index.js
|
|
1889
1889
|
import { basename as basename2, extname as extname2, dirname as dirname2, relative as relative2, resolve as resolve3, join, sep as sep2 } from "path";
|
|
1890
1890
|
|
|
1891
|
-
//
|
|
1891
|
+
// node_modules/@rollup/pluginutils/dist/es/index.js
|
|
1892
1892
|
import { extname, win32, posix, isAbsolute, resolve } from "path";
|
|
1893
1893
|
|
|
1894
|
-
//
|
|
1894
|
+
// node_modules/estree-walker/dist/esm/estree-walker.js
|
|
1895
1895
|
var WalkerBase = class {
|
|
1896
1896
|
constructor() {
|
|
1897
1897
|
this.should_skip = false;
|
|
@@ -2022,7 +2022,7 @@ function walk(ast, { enter, leave }) {
|
|
|
2022
2022
|
return instance.visit(ast, null);
|
|
2023
2023
|
}
|
|
2024
2024
|
|
|
2025
|
-
//
|
|
2025
|
+
// node_modules/@rollup/pluginutils/dist/es/index.js
|
|
2026
2026
|
var import_picomatch = __toESM(require_picomatch2(), 1);
|
|
2027
2027
|
var extractors = {
|
|
2028
2028
|
ArrayPattern(names, param) {
|
|
@@ -2222,11 +2222,11 @@ var makeLegalIdentifier = function makeLegalIdentifier2(str) {
|
|
|
2222
2222
|
};
|
|
2223
2223
|
var hasStringIsWellFormed = "isWellFormed" in String.prototype;
|
|
2224
2224
|
|
|
2225
|
-
//
|
|
2225
|
+
// node_modules/@rollup/plugin-commonjs/dist/es/index.js
|
|
2226
2226
|
var import_commondir = __toESM(require_commondir(), 1);
|
|
2227
2227
|
import { existsSync, readFileSync, statSync } from "fs";
|
|
2228
2228
|
|
|
2229
|
-
//
|
|
2229
|
+
// node_modules/fdir/dist/index.mjs
|
|
2230
2230
|
import { createRequire } from "module";
|
|
2231
2231
|
import { basename, dirname, normalize, relative, resolve as resolve2, sep } from "path";
|
|
2232
2232
|
import * as nativeFs from "fs";
|
|
@@ -2735,7 +2735,7 @@ var Builder = class {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
};
|
|
2737
2737
|
|
|
2738
|
-
//
|
|
2738
|
+
// node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
2739
2739
|
var comma = ",".charCodeAt(0);
|
|
2740
2740
|
var semicolon = ";".charCodeAt(0);
|
|
2741
2741
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
@@ -2746,16 +2746,16 @@ for (let i = 0; i < chars.length; i++) {
|
|
|
2746
2746
|
intToChar[i] = c;
|
|
2747
2747
|
charToInt[c] = i;
|
|
2748
2748
|
}
|
|
2749
|
-
function encodeInteger(builder, num
|
|
2750
|
-
let delta = num - relative3;
|
|
2751
|
-
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
2749
|
+
function encodeInteger(builder, num) {
|
|
2752
2750
|
do {
|
|
2753
|
-
let clamped =
|
|
2754
|
-
|
|
2755
|
-
if (
|
|
2751
|
+
let clamped = num & 31;
|
|
2752
|
+
num >>>= 5;
|
|
2753
|
+
if (num > 0) clamped |= 32;
|
|
2756
2754
|
builder.write(intToChar[clamped]);
|
|
2757
|
-
} while (
|
|
2758
|
-
|
|
2755
|
+
} while (num > 0);
|
|
2756
|
+
}
|
|
2757
|
+
function encodeSign(num) {
|
|
2758
|
+
return num < 0 ? -num << 1 | 1 : num << 1;
|
|
2759
2759
|
}
|
|
2760
2760
|
var bufLength = 1024 * 16;
|
|
2761
2761
|
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? {
|
|
@@ -2805,19 +2805,24 @@ function encode(decoded) {
|
|
|
2805
2805
|
for (let j = 0; j < line.length; j++) {
|
|
2806
2806
|
const segment = line[j];
|
|
2807
2807
|
if (j > 0) writer.write(comma);
|
|
2808
|
-
|
|
2808
|
+
encodeInteger(writer, encodeSign(segment[0] - genColumn));
|
|
2809
|
+
genColumn = segment[0];
|
|
2809
2810
|
if (segment.length === 1) continue;
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2811
|
+
encodeInteger(writer, encodeSign(segment[1] - sourcesIndex));
|
|
2812
|
+
encodeInteger(writer, encodeSign(segment[2] - sourceLine));
|
|
2813
|
+
encodeInteger(writer, encodeSign(segment[3] - sourceColumn));
|
|
2814
|
+
sourcesIndex = segment[1];
|
|
2815
|
+
sourceLine = segment[2];
|
|
2816
|
+
sourceColumn = segment[3];
|
|
2813
2817
|
if (segment.length === 4) continue;
|
|
2814
|
-
|
|
2818
|
+
encodeInteger(writer, encodeSign(segment[4] - namesIndex));
|
|
2819
|
+
namesIndex = segment[4];
|
|
2815
2820
|
}
|
|
2816
2821
|
}
|
|
2817
2822
|
return writer.flush();
|
|
2818
2823
|
}
|
|
2819
2824
|
|
|
2820
|
-
//
|
|
2825
|
+
// node_modules/magic-string/dist/magic-string.es.mjs
|
|
2821
2826
|
var BitSet = class _BitSet {
|
|
2822
2827
|
constructor(arg) {
|
|
2823
2828
|
this.bits = arg instanceof _BitSet ? arg.bits.slice() : [];
|
|
@@ -3808,7 +3813,7 @@ var MagicString = class _MagicString {
|
|
|
3808
3813
|
}
|
|
3809
3814
|
};
|
|
3810
3815
|
|
|
3811
|
-
//
|
|
3816
|
+
// node_modules/@rollup/plugin-commonjs/dist/es/index.js
|
|
3812
3817
|
var import_is_reference = __toESM(require_is_reference(), 1);
|
|
3813
3818
|
var version = "28.0.9";
|
|
3814
3819
|
var peerDependencies = {
|