@shop-on/create-theme 0.12.0 → 0.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shop-on/create-theme",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Scaffolds a Shop-On storefront theme: `npm create @shop-on/theme <dir>`.",
5
5
  "license": "SEE LICENSE IN dist/LICENSE.md",
6
6
  "bin": {
@@ -17,14 +17,14 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@bprogress/core": "1.3.4",
20
- "@shop-on/i18n": "^0.12.0",
21
- "@shop-on/theme-contract": "^0.12.0",
22
- "@shop-on/theme-loader": "^0.12.0",
23
- "@shop-on/theme-react": "^0.12.0",
24
- "@shop-on/theme-routes": "^0.12.0",
25
- "@shop-on/theme-runtime": "^0.12.0",
26
- "@shop-on/theme-server": "^0.12.0",
27
- "@shop-on/theme-system": "^0.12.0",
20
+ "@shop-on/i18n": "^0.13.0",
21
+ "@shop-on/theme-contract": "^0.13.0",
22
+ "@shop-on/theme-loader": "^0.13.0",
23
+ "@shop-on/theme-react": "^0.13.0",
24
+ "@shop-on/theme-routes": "^0.13.0",
25
+ "@shop-on/theme-runtime": "^0.13.0",
26
+ "@shop-on/theme-server": "^0.13.0",
27
+ "@shop-on/theme-system": "^0.13.0",
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.12.0",
39
- "@shop-on/theme-dev-host": "^0.12.0",
38
+ "@shop-on/theme-config": "^0.13.0",
39
+ "@shop-on/theme-dev-host": "^0.13.0",
40
40
  "@spiriit/vite-plugin-svg-spritemap": "7.2.0",
41
41
  "@types/node": "26.6.6",
42
42
  "@types/react": "19.3.0",
@@ -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: [storefrontActivityMiddleware, storefrontAvailabilityMiddleware],
10
+ requestMiddleware: [
11
+ storefrontActivityMiddleware,
12
+ storefrontAvailabilityMiddleware,
13
+ storefrontCsrfMiddleware,
14
+ ],
9
15
  }));