dinou 6.1.1 → 7.0.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/CHANGELOG.md +94 -0
- package/README.md +9461 -1080
- package/cli.js +392 -169
- package/dinou/adapters/bun.js +62 -0
- package/dinou/adapters/cloudflare.js +65 -0
- package/dinou/adapters/deno.js +48 -0
- package/dinou/adapters/netlify.js +85 -0
- package/dinou/adapters/node.mjs +31 -0
- package/dinou/bun/build.mjs +1077 -0
- package/dinou/cloudflare/build.mjs +1121 -0
- package/dinou/cloudflare/shims/child_process.js +14 -0
- package/dinou/cloudflare/shims/empty.js +2 -0
- package/dinou/cloudflare/shims/fs.js +99 -0
- package/dinou/cloudflare/shims/os.js +29 -0
- package/dinou/config.js +1 -0
- package/dinou/config.mjs +2 -0
- package/dinou/constants.js +29 -4
- package/dinou/core/babel-esm-loader.js +66 -37
- package/dinou/core/bailout-proxy.js +61 -0
- package/dinou/core/build-static-pages.js +309 -157
- package/dinou/core/cache-revalidate.js +471 -144
- package/dinou/core/cache-slot.js +387 -0
- package/dinou/core/client-redirect.jsx +12 -7
- package/dinou/core/client-webpack.jsx +457 -82
- package/dinou/core/client.jsx +452 -82
- package/dinou/core/config.js +11 -0
- package/dinou/core/dinou-paths.js +52 -0
- package/dinou/core/edge-ssr.js +122 -0
- package/dinou/core/export-static.mjs +64 -0
- package/dinou/core/generate-route-types.js +252 -0
- package/dinou/core/generate-static-page.js +55 -94
- package/dinou/core/generate-static-rsc.js +47 -15
- package/dinou/core/generate-static.js +212 -10
- package/dinou/core/generating-isg.js +5 -0
- package/dinou/core/get-asset-from-manifest.js +9 -3
- package/dinou/core/get-error-jsx.js +221 -41
- package/dinou/core/get-file-path-and-dynamic-params.js +9 -13
- package/dinou/core/get-jsx.js +172 -95
- package/dinou/core/handler.js +2296 -0
- package/dinou/core/http-adapter.js +115 -0
- package/dinou/core/import-module.js +83 -53
- package/dinou/core/layout-functions.js +181 -0
- package/dinou/core/link.jsx +18 -6
- package/dinou/core/load-dinou-config.js +60 -0
- package/dinou/core/manifest-provider.js +261 -0
- package/dinou/core/navigation-utils.js +4 -0
- package/dinou/core/navigation.js +50 -39
- package/dinou/core/parse-exports.js +207 -2
- package/dinou/core/ppr-context.js +105 -0
- package/dinou/core/ppr-runtime.js +263 -0
- package/dinou/core/redirect.jsx +20 -19
- package/dinou/core/render-jsx-to-client-jsx.js +133 -15
- package/dinou/core/request-context.js +47 -13
- package/dinou/core/resolve-module-ppr.js +32 -0
- package/dinou/core/revalidating.js +28 -9
- package/dinou/core/route-generator.js +107 -0
- package/dinou/core/rsc-renderer.js +90 -0
- package/dinou/core/run-ssg.js +19 -0
- package/dinou/core/scan-dependency-components.js +218 -0
- package/dinou/core/server-function-proxy-webpack.js +3 -0
- package/dinou/core/server-function-proxy.js +3 -0
- package/dinou/core/slot.js +302 -0
- package/dinou/core/status-manifest.js +41 -1
- package/dinou/core/storage-adapter.js +522 -0
- package/dinou/core/url-resolver.js +16 -16
- package/dinou/core/vfs.js +139 -68
- package/dinou/deno/build.mjs +1112 -0
- package/dinou/deno/seed-kv.js +115 -0
- package/dinou/esbuild/build.mjs +51 -1
- package/dinou/esbuild/dev.mjs +290 -224
- package/dinou/esbuild/helpers-esbuild/get-config-esbuild-prod.mjs +3 -2
- package/dinou/esbuild/helpers-esbuild/get-config-esbuild.mjs +104 -16
- package/dinou/esbuild/helpers-esbuild/get-esbuild-entries.mjs +31 -19
- package/dinou/esbuild/helpers-esbuild/strip-namespace.mjs +9 -0
- package/dinou/esbuild/helpers-esbuild/swc-disk-cache.mjs +225 -0
- package/dinou/esbuild/helpers-esbuild/update-manifest-for-module.mjs +7 -0
- package/dinou/esbuild/helpers-esbuild/write.mjs +111 -2
- package/dinou/esbuild/plugins-esbuild/assets-plugin.mjs +236 -161
- package/dinou/esbuild/plugins-esbuild/css-processor-plugin.mjs +101 -5
- package/dinou/esbuild/plugins-esbuild/react-client-manifest-plugin.mjs +63 -24
- package/dinou/esbuild/plugins-esbuild/server-functions-plugin.mjs +177 -56
- package/dinou/esbuild/plugins-esbuild/skip-missing-entry-points-plugin.mjs +3 -0
- package/dinou/esbuild/plugins-esbuild/stable-chunk-names-and-maps-plugin.mjs +182 -137
- package/dinou/esbuild/plugins-postcss/postcss-extract-plugin.js +38 -11
- package/dinou/esbuild/react-refresh/esm-hmr/client.mjs +55 -8
- package/dinou/esbuild/react-refresh/esm-hmr/server.js +1 -1
- package/dinou/esbuild/react-refresh/esm-hmr-plugin.mjs +238 -101
- package/dinou/esbuild/react-refresh/is-react-refresh-boundary.mjs +18 -4
- package/dinou/index.d.ts +315 -11
- package/dinou/index.js +12 -6
- package/dinou/index.mjs +9 -0
- package/dinou/node/build.mjs +195 -0
- package/dinou/node/bundle-dual-engine.mjs +1012 -0
- package/dinou/node/dev.mjs +2589 -0
- package/dinou/node/port-selector.mjs +164 -0
- package/dinou/node/terminal-status.mjs +345 -0
- package/dinou/package.json +16 -14
- package/dinou/rollup/react-refresh/esm-hmr/client.js +66 -10
- package/dinou/rollup/react-refresh/esm-hmr/server.js +1 -1
- package/dinou/rollup/react-refresh/is-react-refresh-boundary.js +24 -5
- package/dinou/rollup/react-refresh/react-refresh-runtime.js +13 -6
- package/dinou/rollup/react-refresh/react-refresh-wrap-modules.js +56 -11
- package/dinou/rollup/react-refresh/rollup-plugin-esm-hmr.js +176 -48
- package/dinou/rollup/rollup-plugins/dinou-asset-plugin.js +9 -5
- package/dinou/rollup/rollup-plugins/rollup-plugin-memory.js +66 -0
- package/dinou/rollup/rollup-plugins/rollup-plugin-react-client-manifest.js +468 -123
- package/dinou/rollup/rollup-plugins/rollup-plugin-server-functions.js +44 -12
- package/dinou/rollup/rollup-plugins/rollup-plugin-swc.js +100 -0
- package/dinou/rollup/rollup.config.js +155 -43
- package/dinou/server.d.ts +114 -12
- package/dinou/server.js +35 -10
- package/dinou/server.mjs +30 -9
- package/dinou/webpack/helpers/get-webpack-entries.js +14 -19
- package/dinou/webpack/loaders/server-functions-loader.js +22 -1
- package/dinou/webpack/loaders/swc-loader.js +76 -0
- package/dinou/webpack/plugins/manifest-generator-plugin.js +1 -0
- package/dinou/webpack/plugins/server-functions-plugin.js +75 -19
- package/dinou/webpack/plugins/webpack-memory-plugin.js +66 -0
- package/dinou/webpack/webpack.config.js +227 -29
- package/eject.js +173 -94
- package/package.json +110 -108
- package/dinou/core/asset-require-hook.js +0 -58
- package/dinou/core/client-error-webpack.jsx +0 -432
- package/dinou/core/client-error.jsx +0 -432
- package/dinou/core/concurrency-manager.js +0 -48
- package/dinou/core/context-proxy.js +0 -68
- package/dinou/core/generate-static-pages.js +0 -130
- package/dinou/core/generate-static-rscs.js +0 -151
- package/dinou/core/get-ssg-metadata.js +0 -31
- package/dinou/core/register-loader.mjs +0 -11
- package/dinou/core/register-paths.js +0 -27
- package/dinou/core/render-app-to-html.js +0 -430
- package/dinou/core/render-html.js +0 -407
- package/dinou/core/server.js +0 -1542
- package/dinou/esbuild/plugins-esbuild/write-metafile-plugin.mjs +0 -16
package/package.json
CHANGED
|
@@ -1,108 +1,110 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dinou",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"dinou": "./cli.js"
|
|
8
|
-
},
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./dinou/index.d.ts",
|
|
12
|
-
"import": "./dinou/index.mjs",
|
|
13
|
-
"require": "./dinou/index.js"
|
|
14
|
-
},
|
|
15
|
-
"./env": {
|
|
16
|
-
"types": "./dinou/env.d.ts"
|
|
17
|
-
},
|
|
18
|
-
"./server": {
|
|
19
|
-
"types": "./dinou/server.d.ts",
|
|
20
|
-
"import": "./dinou/server.mjs",
|
|
21
|
-
"require": "./dinou/server.js"
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"
|
|
68
|
-
"babel
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"loader
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"postcss
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"rollup
|
|
95
|
-
"rollup-plugin-
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"tsconfig-paths
|
|
99
|
-
"
|
|
100
|
-
"webpack-
|
|
101
|
-
"webpack
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "dinou",
|
|
3
|
+
"version": "7.0.0",
|
|
4
|
+
"description": "Full-stack React 19 framework with native RSC, Server Functions, progressive streaming, and zero vendor lock-in.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"dinou": "./cli.js"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dinou/index.d.ts",
|
|
12
|
+
"import": "./dinou/index.mjs",
|
|
13
|
+
"require": "./dinou/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./env": {
|
|
16
|
+
"types": "./dinou/env.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./server": {
|
|
19
|
+
"types": "./dinou/server.d.ts",
|
|
20
|
+
"import": "./dinou/server.mjs",
|
|
21
|
+
"require": "./dinou/server.js"
|
|
22
|
+
},
|
|
23
|
+
"./config": {
|
|
24
|
+
"types": "./dinou/index.d.ts",
|
|
25
|
+
"import": "./dinou/core/config.js",
|
|
26
|
+
"require": "./dinou/core/config.js"
|
|
27
|
+
},
|
|
28
|
+
"./adapters/node": "./dinou/adapters/node.mjs",
|
|
29
|
+
"./adapters/bun": "./dinou/adapters/bun.js",
|
|
30
|
+
"./adapters/deno": "./dinou/adapters/deno.js",
|
|
31
|
+
"./adapters/cloudflare": "./dinou/adapters/cloudflare.js",
|
|
32
|
+
"./adapters/netlify": "./dinou/adapters/netlify.js"
|
|
33
|
+
},
|
|
34
|
+
"types": "./dinou/index.d.ts",
|
|
35
|
+
"scripts": {
|
|
36
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"react",
|
|
40
|
+
"react-19",
|
|
41
|
+
"react-server-components",
|
|
42
|
+
"rsc",
|
|
43
|
+
"react-server-functions",
|
|
44
|
+
"framework",
|
|
45
|
+
"react-framework",
|
|
46
|
+
"esbuild",
|
|
47
|
+
"rollup",
|
|
48
|
+
"webpack",
|
|
49
|
+
"ssr",
|
|
50
|
+
"streaming",
|
|
51
|
+
"dinou"
|
|
52
|
+
],
|
|
53
|
+
"author": "Roger Gomez Castells (https://github.com/roggc)",
|
|
54
|
+
"license": "MIT",
|
|
55
|
+
"repository": {
|
|
56
|
+
"type": "git",
|
|
57
|
+
"url": "https://github.com/roggc/dinou.git"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@babel/core": "^7.27.4",
|
|
61
|
+
"@babel/parser": "^7.28.3",
|
|
62
|
+
"@babel/plugin-syntax-import-meta": "^7.10.4",
|
|
63
|
+
"@babel/preset-react": "^7.27.1",
|
|
64
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
65
|
+
"@babel/traverse": "^7.28.3",
|
|
66
|
+
"@esbuild-plugins/tsconfig-paths": "^0.1.2",
|
|
67
|
+
"@roggc/react-server-dom-esm": "^19.3.0",
|
|
68
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
69
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
70
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
71
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
72
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
73
|
+
"@swc/core": "^1.15.10",
|
|
74
|
+
"@tailwindcss/postcss": "^4.1.10",
|
|
75
|
+
"autoprefixer": "^10.4.21",
|
|
76
|
+
"babel-loader": "^10.0.0",
|
|
77
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
78
|
+
"chokidar": "^4.0.3",
|
|
79
|
+
"commander": "^14.0.0",
|
|
80
|
+
"copy-webpack-plugin": "^14.0.0",
|
|
81
|
+
"cross-env": "^7.0.3",
|
|
82
|
+
"css-loader": "^7.1.2",
|
|
83
|
+
"dotenv": "^16.5.0",
|
|
84
|
+
"esbuild": "^0.27.0",
|
|
85
|
+
"esbuild-copy-static-files": "^0.1.0",
|
|
86
|
+
"generic-names": "^4.0.0",
|
|
87
|
+
"mini-css-extract-plugin": "^2.9.4",
|
|
88
|
+
"postcss": "^8.5.5",
|
|
89
|
+
"postcss-import": "^16.1.1",
|
|
90
|
+
"postcss-loader": "^8.2.0",
|
|
91
|
+
"postcss-modules": "^6.0.1",
|
|
92
|
+
"react-refresh": "^0.17.0",
|
|
93
|
+
"react-server-dom-webpack": "^19.3.0",
|
|
94
|
+
"rollup": "^4.46.2",
|
|
95
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
96
|
+
"rollup-plugin-delete": "^3.0.1",
|
|
97
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
98
|
+
"rollup-plugin-tsconfig-paths": "^1.5.2",
|
|
99
|
+
"tailwindcss": "^4.1.10",
|
|
100
|
+
"tsconfig-paths-webpack-plugin": "^4.2.0",
|
|
101
|
+
"webpack": "^5.103.0",
|
|
102
|
+
"webpack-cli": "^6.0.1",
|
|
103
|
+
"webpack-dev-server": "^5.2.2",
|
|
104
|
+
"ws": "^8.18.3"
|
|
105
|
+
},
|
|
106
|
+
"peerDependencies": {
|
|
107
|
+
"react": ">=19.3.0",
|
|
108
|
+
"react-dom": ">=19.3.0"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
var fs = require("fs");
|
|
2
|
-
var path = require("path");
|
|
3
|
-
var interpolateName = require("loader-utils").interpolateName;
|
|
4
|
-
|
|
5
|
-
function compiler(name, options) {
|
|
6
|
-
return function compile(file) {
|
|
7
|
-
var content = fs.readFileSync(file);
|
|
8
|
-
var context = { resourcePath: file };
|
|
9
|
-
|
|
10
|
-
var resolvedName;
|
|
11
|
-
if (typeof name === "function") {
|
|
12
|
-
var localName = path.basename(file, path.extname(file));
|
|
13
|
-
resolvedName = name(localName, file);
|
|
14
|
-
} else {
|
|
15
|
-
resolvedName = name;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
var result = interpolateName(context, resolvedName, {
|
|
19
|
-
content: content,
|
|
20
|
-
regExp: options.regExp,
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
if (options.publicPath) {
|
|
24
|
-
result =
|
|
25
|
-
typeof options.publicPath === "function"
|
|
26
|
-
? options.publicPath(result)
|
|
27
|
-
: options.publicPath + result;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return result;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function hook(extension, compile) {
|
|
35
|
-
require.extensions[extension] = function (module, file) {
|
|
36
|
-
try {
|
|
37
|
-
const url = compile(file);
|
|
38
|
-
module._compile("module.exports = " + JSON.stringify(url), file);
|
|
39
|
-
} catch (err) {
|
|
40
|
-
console.error("Error processing file", file, err);
|
|
41
|
-
throw err;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function addHook(opts) {
|
|
47
|
-
opts = opts || {};
|
|
48
|
-
var extensions = (opts.extensions || []).map(function (ext) {
|
|
49
|
-
return ext.replace(".", "");
|
|
50
|
-
});
|
|
51
|
-
var comp = compiler(opts.name, opts);
|
|
52
|
-
|
|
53
|
-
extensions.forEach(function (ext) {
|
|
54
|
-
hook("." + ext, comp);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
module.exports = addHook;
|