@modern-js/runtime 2.60.2-alpha.6 → 2.60.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/cjs/core/server/index.js +2 -0
- package/dist/cjs/core/server/react/index.js +3 -0
- package/dist/cjs/core/server/react/no-ssr-cache/index.js +36 -0
- package/dist/esm/core/server/index.js +2 -1
- package/dist/esm/core/server/react/index.js +2 -0
- package/dist/esm/core/server/react/no-ssr-cache/index.js +12 -0
- package/dist/esm-node/core/server/index.js +2 -1
- package/dist/esm-node/core/server/react/index.js +2 -0
- package/dist/esm-node/core/server/react/no-ssr-cache/index.js +12 -0
- package/dist/types/core/server/index.d.ts +1 -1
- package/dist/types/core/server/react/index.d.ts +1 -0
- package/dist/types/core/server/react/no-ssr-cache/index.d.ts +2 -0
- package/package.json +12 -12
|
@@ -19,6 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
var server_exports = {};
|
|
20
20
|
__export(server_exports, {
|
|
21
21
|
NoSSR: () => import_react.NoSSR,
|
|
22
|
+
NoSSRCache: () => import_react.NoSSRCache,
|
|
22
23
|
PreRender: () => import_react.PreRender,
|
|
23
24
|
default: () => server_default,
|
|
24
25
|
ssr: () => ssr
|
|
@@ -33,6 +34,7 @@ var server_default = ssr;
|
|
|
33
34
|
// Annotate the CommonJS export names for ESM import in node:
|
|
34
35
|
0 && (module.exports = {
|
|
35
36
|
NoSSR,
|
|
37
|
+
NoSSRCache,
|
|
36
38
|
PreRender,
|
|
37
39
|
ssr
|
|
38
40
|
});
|
|
@@ -19,13 +19,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
var react_exports = {};
|
|
20
20
|
__export(react_exports, {
|
|
21
21
|
NoSSR: () => import_nossr.NoSSR,
|
|
22
|
+
NoSSRCache: () => import_no_ssr_cache.NoSSRCache,
|
|
22
23
|
PreRender: () => import_prerender.PreRender
|
|
23
24
|
});
|
|
24
25
|
module.exports = __toCommonJS(react_exports);
|
|
25
26
|
var import_prerender = require("./prerender");
|
|
26
27
|
var import_nossr = require("./nossr");
|
|
28
|
+
var import_no_ssr_cache = require("./no-ssr-cache");
|
|
27
29
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
30
|
0 && (module.exports = {
|
|
29
31
|
NoSSR,
|
|
32
|
+
NoSSRCache,
|
|
30
33
|
PreRender
|
|
31
34
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var no_ssr_cache_exports = {};
|
|
20
|
+
__export(no_ssr_cache_exports, {
|
|
21
|
+
NoSSRCache: () => NoSSRCache
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(no_ssr_cache_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_head = require("../../../../exports/head");
|
|
26
|
+
const NoSSRCache = () => {
|
|
27
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_head.Helmet, {
|
|
28
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("meta", {
|
|
29
|
+
name: "no-ssr-cache"
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
NoSSRCache
|
|
36
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PreRender, NoSSR } from "./react";
|
|
1
|
+
import { PreRender, NoSSR, NoSSRCache } from "./react";
|
|
2
2
|
var ssr = function(_config) {
|
|
3
3
|
return {
|
|
4
4
|
name: "@modern-js/plugin-ssr",
|
|
@@ -10,6 +10,7 @@ var ssr = function(_config) {
|
|
|
10
10
|
var server_default = ssr;
|
|
11
11
|
export {
|
|
12
12
|
NoSSR,
|
|
13
|
+
NoSSRCache,
|
|
13
14
|
PreRender,
|
|
14
15
|
server_default as default,
|
|
15
16
|
ssr
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Helmet } from "../../../../exports/head";
|
|
3
|
+
var NoSSRCache = function() {
|
|
4
|
+
return /* @__PURE__ */ _jsx(Helmet, {
|
|
5
|
+
children: /* @__PURE__ */ _jsx("meta", {
|
|
6
|
+
name: "no-ssr-cache"
|
|
7
|
+
})
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
NoSSRCache
|
|
12
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PreRender, NoSSR } from "./react";
|
|
1
|
+
import { PreRender, NoSSR, NoSSRCache } from "./react";
|
|
2
2
|
const ssr = (_config) => ({
|
|
3
3
|
name: "@modern-js/plugin-ssr",
|
|
4
4
|
setup: () => ({})
|
|
@@ -6,6 +6,7 @@ const ssr = (_config) => ({
|
|
|
6
6
|
var server_default = ssr;
|
|
7
7
|
export {
|
|
8
8
|
NoSSR,
|
|
9
|
+
NoSSRCache,
|
|
9
10
|
PreRender,
|
|
10
11
|
server_default as default,
|
|
11
12
|
ssr
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Helmet } from "../../../../exports/head";
|
|
3
|
+
const NoSSRCache = () => {
|
|
4
|
+
return /* @__PURE__ */ _jsx(Helmet, {
|
|
5
|
+
children: /* @__PURE__ */ _jsx("meta", {
|
|
6
|
+
name: "no-ssr-cache"
|
|
7
|
+
})
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
NoSSRCache
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.60.2
|
|
18
|
+
"version": "2.60.2",
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=14.17.6"
|
|
21
21
|
},
|
|
@@ -199,11 +199,11 @@
|
|
|
199
199
|
"react-is": "^18",
|
|
200
200
|
"react-side-effect": "^2.1.1",
|
|
201
201
|
"styled-components": "^5.3.1",
|
|
202
|
-
"@modern-js/plugin": "2.60.
|
|
203
|
-
"@modern-js/plugin
|
|
204
|
-
"@modern-js/
|
|
205
|
-
"@modern-js/
|
|
206
|
-
"@modern-js/
|
|
202
|
+
"@modern-js/plugin-data-loader": "2.60.2",
|
|
203
|
+
"@modern-js/plugin": "2.60.2",
|
|
204
|
+
"@modern-js/runtime-utils": "2.60.2",
|
|
205
|
+
"@modern-js/utils": "2.60.2",
|
|
206
|
+
"@modern-js/types": "2.60.2"
|
|
207
207
|
},
|
|
208
208
|
"peerDependencies": {
|
|
209
209
|
"react": ">=17",
|
|
@@ -211,9 +211,9 @@
|
|
|
211
211
|
},
|
|
212
212
|
"devDependencies": {
|
|
213
213
|
"@remix-run/web-fetch": "^4.1.3",
|
|
214
|
-
"@rsbuild/core": "1.0.
|
|
214
|
+
"@rsbuild/core": "1.0.7",
|
|
215
215
|
"@testing-library/react": "^13.4.0",
|
|
216
|
-
"@types/cookie": "0.
|
|
216
|
+
"@types/cookie": "0.6.0",
|
|
217
217
|
"@types/invariant": "^2.2.30",
|
|
218
218
|
"@types/jest": "^29",
|
|
219
219
|
"@types/loadable__server": "5.12.11",
|
|
@@ -226,10 +226,10 @@
|
|
|
226
226
|
"ts-jest": "^29.1.0",
|
|
227
227
|
"typescript": "^5",
|
|
228
228
|
"webpack": "^5.94.0",
|
|
229
|
-
"@modern-js/core": "2.60.
|
|
230
|
-
"@scripts/
|
|
231
|
-
"@
|
|
232
|
-
"@
|
|
229
|
+
"@modern-js/core": "2.60.2",
|
|
230
|
+
"@scripts/jest-config": "2.60.2",
|
|
231
|
+
"@scripts/build": "2.60.2",
|
|
232
|
+
"@modern-js/app-tools": "2.60.2"
|
|
233
233
|
},
|
|
234
234
|
"sideEffects": false,
|
|
235
235
|
"publishConfig": {
|