@cmssy/next 19.34.1 → 19.35.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/dist/server.cjs +3 -1
- package/dist/server.js +3 -1
- package/package.json +4 -4
package/dist/server.cjs
CHANGED
|
@@ -381,9 +381,11 @@ var requestLayoutStore = perRequest(internal.createCmssyLayoutStore);
|
|
|
381
381
|
function resolveCmssyLayout(config, options) {
|
|
382
382
|
const { cache: cache2, ...rest } = options;
|
|
383
383
|
const live = rest.editMode || rest.preview === true;
|
|
384
|
-
const
|
|
384
|
+
const cached = Boolean(cache2) && !live;
|
|
385
|
+
const fetchImpl = rest.fetch ?? (cached && cache2 ? cmssyCachedFetch(cache2) : void 0);
|
|
385
386
|
return react.resolveCmssyLayout(config, {
|
|
386
387
|
...rest,
|
|
388
|
+
readByLayoutKey: rest.readByLayoutKey ?? cached,
|
|
387
389
|
retry: rest.retry ?? nextRetryMode(),
|
|
388
390
|
layoutStore: rest.layoutStore ?? requestLayoutStore(),
|
|
389
391
|
...fetchImpl ? { fetch: fetchImpl } : {}
|
package/dist/server.js
CHANGED
|
@@ -359,9 +359,11 @@ var requestLayoutStore = perRequest(createCmssyLayoutStore);
|
|
|
359
359
|
function resolveCmssyLayout(config, options) {
|
|
360
360
|
const { cache: cache2, ...rest } = options;
|
|
361
361
|
const live = rest.editMode || rest.preview === true;
|
|
362
|
-
const
|
|
362
|
+
const cached = Boolean(cache2) && !live;
|
|
363
|
+
const fetchImpl = rest.fetch ?? (cached && cache2 ? cmssyCachedFetch(cache2) : void 0);
|
|
363
364
|
return resolveCmssyLayout$1(config, {
|
|
364
365
|
...rest,
|
|
366
|
+
readByLayoutKey: rest.readByLayoutKey ?? cached,
|
|
365
367
|
retry: rest.retry ?? nextRetryMode(),
|
|
366
368
|
layoutStore: rest.layoutStore ?? requestLayoutStore(),
|
|
367
369
|
...fetchImpl ? { fetch: fetchImpl } : {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/next",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.35.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20"
|
|
6
6
|
},
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"dist"
|
|
75
75
|
],
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@cmssy/react": "^19.
|
|
77
|
+
"@cmssy/react": "^19.35.0",
|
|
78
78
|
"next": ">=15",
|
|
79
79
|
"react": "^18.2.0 || ^19.0.0",
|
|
80
80
|
"react-dom": "^18.2.0 || ^19.0.0"
|
|
@@ -88,12 +88,12 @@
|
|
|
88
88
|
"tsup": "^8.3.0",
|
|
89
89
|
"typescript": "^5.6.0",
|
|
90
90
|
"vitest": "^2.1.0",
|
|
91
|
-
"@cmssy/react": "19.
|
|
91
|
+
"@cmssy/react": "19.35.0"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"@cmssy/types": "0.77.0",
|
|
95
95
|
"server-only": "^0.0.1",
|
|
96
|
-
"@cmssy/core": "19.
|
|
96
|
+
"@cmssy/core": "19.35.0"
|
|
97
97
|
},
|
|
98
98
|
"scripts": {
|
|
99
99
|
"build": "tsup",
|