@shop-on/create-theme 0.12.0 → 0.13.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/package.json +1 -1
- package/template/package.json +10 -10
- package/template/src/start.ts +8 -2
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@bprogress/core": "1.3.4",
|
|
20
|
-
"@shop-on/i18n": "^0.
|
|
21
|
-
"@shop-on/theme-contract": "^0.
|
|
22
|
-
"@shop-on/theme-loader": "^0.
|
|
23
|
-
"@shop-on/theme-react": "^0.
|
|
24
|
-
"@shop-on/theme-routes": "^0.
|
|
25
|
-
"@shop-on/theme-runtime": "^0.
|
|
26
|
-
"@shop-on/theme-server": "^0.
|
|
27
|
-
"@shop-on/theme-system": "^0.
|
|
20
|
+
"@shop-on/i18n": "^0.13.1",
|
|
21
|
+
"@shop-on/theme-contract": "^0.13.1",
|
|
22
|
+
"@shop-on/theme-loader": "^0.13.1",
|
|
23
|
+
"@shop-on/theme-react": "^0.13.1",
|
|
24
|
+
"@shop-on/theme-routes": "^0.13.1",
|
|
25
|
+
"@shop-on/theme-runtime": "^0.13.1",
|
|
26
|
+
"@shop-on/theme-server": "^0.13.1",
|
|
27
|
+
"@shop-on/theme-system": "^0.13.1",
|
|
28
28
|
"@tailwindcss/vite": "4.3.5",
|
|
29
29
|
"@tanstack/react-router": "1.170.46",
|
|
30
30
|
"@tanstack/react-start": "1.169.5",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"tailwindcss": "4.3.5"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@shop-on/theme-config": "^0.
|
|
39
|
-
"@shop-on/theme-dev-host": "^0.
|
|
38
|
+
"@shop-on/theme-config": "^0.13.1",
|
|
39
|
+
"@shop-on/theme-dev-host": "^0.13.1",
|
|
40
40
|
"@spiriit/vite-plugin-svg-spritemap": "7.2.0",
|
|
41
41
|
"@types/node": "26.6.6",
|
|
42
42
|
"@types/react": "19.3.0",
|
package/template/src/start.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { createStart } from "@tanstack/react-start";
|
|
2
2
|
import { storefrontActivityMiddleware } from "@shop-on/theme-server/activity";
|
|
3
3
|
import { storefrontAvailabilityMiddleware } from "@shop-on/theme-server/availability";
|
|
4
|
+
import { storefrontCsrfMiddleware } from "@shop-on/theme-server/server-fn-csrf";
|
|
4
5
|
|
|
5
6
|
// Order matters: the activity middleware answers `/health` before the
|
|
6
|
-
// availability check can turn a closed store's probe into a 503.
|
|
7
|
+
// availability check can turn a closed store's probe into a 503. The CSRF
|
|
8
|
+
// check is listed because a `start.ts` with its own middleware drops Start's.
|
|
7
9
|
export const startInstance = createStart(() => ({
|
|
8
|
-
requestMiddleware: [
|
|
10
|
+
requestMiddleware: [
|
|
11
|
+
storefrontActivityMiddleware,
|
|
12
|
+
storefrontAvailabilityMiddleware,
|
|
13
|
+
storefrontCsrfMiddleware,
|
|
14
|
+
],
|
|
9
15
|
}));
|