@jasonshimmy/vite-plugin-cer-app 0.27.0 → 0.27.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/cli/create/index.js +2 -2
- package/dist/cli/create/templates/spa/package.json.tpl +3 -3
- package/dist/cli/create/templates/ssg/package.json.tpl +3 -3
- package/dist/cli/create/templates/ssr/package.json.tpl +3 -3
- package/dist/runtime/app-template.d.ts.map +1 -1
- package/dist/runtime/app-template.js +20 -6
- package/dist/runtime/app-template.js.map +1 -1
- package/package.json +22 -18
package/dist/cli/create/index.js
CHANGED
|
@@ -116,8 +116,8 @@ async function readOwnVersion() {
|
|
|
116
116
|
async function addMaterialPreset(targetDir) {
|
|
117
117
|
const packagePath = join(targetDir, 'package.json');
|
|
118
118
|
const pkg = JSON.parse(await readFile(packagePath, 'utf-8'));
|
|
119
|
-
pkg.dependencies['@jasonshimmy/cer-material'] = '^0.
|
|
120
|
-
pkg.dependencies['material-symbols'] = '^0.
|
|
119
|
+
pkg.dependencies['@jasonshimmy/cer-material'] = '^0.9.2';
|
|
120
|
+
pkg.dependencies['material-symbols'] = '^0.47.2';
|
|
121
121
|
await writeFile(packagePath, `${JSON.stringify(pkg, null, 2)}\n`, 'utf-8');
|
|
122
122
|
const configPath = join(targetDir, 'cer.config.ts');
|
|
123
123
|
const config = await readFile(configPath, 'utf-8');
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"validate": "npm run typecheck && npm run build"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@jasonshimmy/custom-elements-runtime": "^3.
|
|
13
|
+
"@jasonshimmy/custom-elements-runtime": "^3.9.1"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@jasonshimmy/vite-plugin-cer-app": "^{{pluginVersion}}",
|
|
17
|
-
"typescript": "^
|
|
18
|
-
"vite": "^8.0
|
|
17
|
+
"typescript": "^7.0.2",
|
|
18
|
+
"vite": "^8.3.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"validate": "npm run typecheck && npm run build && cer-app check links && cer-app check performance"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@jasonshimmy/custom-elements-runtime": "^3.
|
|
14
|
+
"@jasonshimmy/custom-elements-runtime": "^3.9.1"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@jasonshimmy/vite-plugin-cer-app": "^{{pluginVersion}}",
|
|
18
|
-
"typescript": "^
|
|
19
|
-
"vite": "^8.0
|
|
18
|
+
"typescript": "^7.0.2",
|
|
19
|
+
"vite": "^8.3.0"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"validate": "npm run typecheck && npm run build"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@jasonshimmy/custom-elements-runtime": "^3.
|
|
13
|
+
"@jasonshimmy/custom-elements-runtime": "^3.9.1"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@jasonshimmy/vite-plugin-cer-app": "^{{pluginVersion}}",
|
|
17
|
-
"typescript": "^
|
|
18
|
-
"vite": "^8.0
|
|
17
|
+
"typescript": "^7.0.2",
|
|
18
|
+
"vite": "^8.3.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-template.d.ts","sourceRoot":"","sources":["../../src/runtime/app-template.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,aAAa,GAAE,SAAS,MAAM,EAAO,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"app-template.d.ts","sourceRoot":"","sources":["../../src/runtime/app-template.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,aAAa,GAAE,SAAS,MAAM,EAAO,GAAG,MAAM,CAmlBtF"}
|
|
@@ -180,8 +180,13 @@ let _navigationIntent = 0
|
|
|
180
180
|
router.push = async (path) => {
|
|
181
181
|
const navigationIntent = ++_navigationIntent
|
|
182
182
|
isNavigating.value = true
|
|
183
|
-
_activateClientRouteRendering()
|
|
184
183
|
currentError.value = null
|
|
184
|
+
// A loading component is an explicit request to replace the current tree
|
|
185
|
+
// while the destination is prepared. Without one, retain an initial
|
|
186
|
+
// SSR/SSG tree until both the loader and router commit are complete. This
|
|
187
|
+
// prevents loader-backed catch-all pages from rendering their not-found
|
|
188
|
+
// state during the temporary gap where __CER_DATA__ is intentionally empty.
|
|
189
|
+
if (hasLoading && loadingTag) _activateClientRouteRendering()
|
|
185
190
|
try {
|
|
186
191
|
// Clear stale loader data from the previous route before loading the new one.
|
|
187
192
|
// If the new route has no loader, __CER_DATA__ stays undefined so usePageData()
|
|
@@ -193,15 +198,18 @@ router.push = async (path) => {
|
|
|
193
198
|
} catch (err) {
|
|
194
199
|
currentError.value = err instanceof Error ? err.message : String(err)
|
|
195
200
|
} finally {
|
|
196
|
-
if (navigationIntent === _navigationIntent)
|
|
201
|
+
if (navigationIntent === _navigationIntent) {
|
|
202
|
+
_activateClientRouteRendering()
|
|
203
|
+
isNavigating.value = false
|
|
204
|
+
}
|
|
197
205
|
}
|
|
198
206
|
}
|
|
199
207
|
|
|
200
208
|
router.replace = async (path) => {
|
|
201
209
|
const navigationIntent = ++_navigationIntent
|
|
202
210
|
isNavigating.value = true
|
|
203
|
-
_activateClientRouteRendering()
|
|
204
211
|
currentError.value = null
|
|
212
|
+
if (hasLoading && loadingTag) _activateClientRouteRendering()
|
|
205
213
|
try {
|
|
206
214
|
// Clear stale loader data from the previous route before loading the new one.
|
|
207
215
|
delete (globalThis).__CER_DATA__
|
|
@@ -211,7 +219,10 @@ router.replace = async (path) => {
|
|
|
211
219
|
} catch (err) {
|
|
212
220
|
currentError.value = err instanceof Error ? err.message : String(err)
|
|
213
221
|
} finally {
|
|
214
|
-
if (navigationIntent === _navigationIntent)
|
|
222
|
+
if (navigationIntent === _navigationIntent) {
|
|
223
|
+
_activateClientRouteRendering()
|
|
224
|
+
isNavigating.value = false
|
|
225
|
+
}
|
|
215
226
|
}
|
|
216
227
|
}
|
|
217
228
|
|
|
@@ -232,8 +243,8 @@ window.addEventListener('popstate', () => {
|
|
|
232
243
|
|
|
233
244
|
const navigationIntent = ++_navigationIntent
|
|
234
245
|
isNavigating.value = true
|
|
235
|
-
_activateClientRouteRendering()
|
|
236
246
|
currentError.value = null
|
|
247
|
+
if (hasLoading && loadingTag) _activateClientRouteRendering()
|
|
237
248
|
|
|
238
249
|
void (async () => {
|
|
239
250
|
try {
|
|
@@ -244,7 +255,10 @@ window.addEventListener('popstate', () => {
|
|
|
244
255
|
currentError.value = err instanceof Error ? err.message : String(err)
|
|
245
256
|
}
|
|
246
257
|
} finally {
|
|
247
|
-
if (navigationIntent === _navigationIntent)
|
|
258
|
+
if (navigationIntent === _navigationIntent) {
|
|
259
|
+
_activateClientRouteRendering()
|
|
260
|
+
isNavigating.value = false
|
|
261
|
+
}
|
|
248
262
|
}
|
|
249
263
|
})()
|
|
250
264
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-template.js","sourceRoot":"","sources":["../../src/runtime/app-template.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,UAAU,wBAAwB,CAAC,gBAAmC,EAAE;IAC5E,MAAM,kBAAkB,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,CAAC;SACnD,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,WAAW,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;SACvF,IAAI,CAAC,IAAI,CAAC,CAAA;IACb,OAAO;;;;EAIP,kBAAkB,GAAG,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC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pD,CAAA;AACD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jasonshimmy/vite-plugin-cer-app",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.2",
|
|
4
4
|
"description": "Nuxt-style meta-framework for @jasonshimmy/custom-elements-runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -88,33 +88,37 @@
|
|
|
88
88
|
"cypress:open": "cypress open"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"@jasonshimmy/custom-elements-runtime": ">=3.9.
|
|
91
|
+
"@jasonshimmy/custom-elements-runtime": ">=3.9.1",
|
|
92
92
|
"vite": ">=5.0.0"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"commander": "^
|
|
95
|
+
"commander": "^15.0.0",
|
|
96
96
|
"fast-glob": "^3.3.3",
|
|
97
|
-
"magic-string": "^
|
|
98
|
-
"marked": "^18.0.
|
|
97
|
+
"magic-string": "^1.3.1",
|
|
98
|
+
"marked": "^18.0.12",
|
|
99
99
|
"minisearch": "^7.2.0",
|
|
100
100
|
"pathe": "^2.0.3",
|
|
101
|
-
"yaml": "^2.9.
|
|
101
|
+
"yaml": "^2.9.1"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@jasonshimmy/custom-elements-runtime": "^3.9.
|
|
105
|
-
"@types/node": "^
|
|
106
|
-
"@vitest/coverage-v8": "^
|
|
107
|
-
"cypress": "^
|
|
108
|
-
"eslint": "^10.
|
|
109
|
-
"happy-dom": "^20.
|
|
110
|
-
"jiti": "^2.
|
|
111
|
-
"start-server-and-test": "^3.0.
|
|
112
|
-
"typescript": "^
|
|
113
|
-
"typescript-eslint": "^8.
|
|
114
|
-
"vite": "^8.0
|
|
115
|
-
"vitest": "^
|
|
104
|
+
"@jasonshimmy/custom-elements-runtime": "^3.9.1",
|
|
105
|
+
"@types/node": "^24.13.4",
|
|
106
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
107
|
+
"cypress": "^16.0.0",
|
|
108
|
+
"eslint": "^10.10.0",
|
|
109
|
+
"happy-dom": "^20.14.5",
|
|
110
|
+
"jiti": "^2.7.0",
|
|
111
|
+
"start-server-and-test": "^3.0.12",
|
|
112
|
+
"typescript": "^6.0.3",
|
|
113
|
+
"typescript-eslint": "^8.70.0",
|
|
114
|
+
"vite": "^8.3.0",
|
|
115
|
+
"vitest": "^5.0.0"
|
|
116
116
|
},
|
|
117
117
|
"publishConfig": {
|
|
118
118
|
"access": "public"
|
|
119
|
+
},
|
|
120
|
+
"allowScripts": {
|
|
121
|
+
"cypress@16.0.0": true,
|
|
122
|
+
"fsevents@2.3.3": true
|
|
119
123
|
}
|
|
120
124
|
}
|