singularity-core 0.14.0 → 0.14.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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import z from "zod";
2
+ /**
3
+ * Side-effect module: import it first in the app's `router.tsx`. Zod 4 checks
4
+ * whether eval works (`new Function`) when it builds an object schema, to
5
+ * compile a faster parser. The production CSP has no `'unsafe-eval'`, so the
6
+ * browser reports that check as a violation even though Zod catches it.
7
+ * Jitless Zod skips the check, but only for schemas built after this runs.
8
+ */
9
+ z.config({ jitless: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "singularity-core",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Shared non-UI code for Singularity TanStack Start apps: auth sessions, API client middleware, API schemas, paging, route data, images, formatting, HTTP helpers, theme, cookie notice, SEO, security headers and telemetry.",
5
5
  "type": "module",
6
6
  "author": "Filip",
@@ -9,7 +9,9 @@
9
9
  "dist",
10
10
  "config"
11
11
  ],
12
- "sideEffects": false,
12
+ "sideEffects": [
13
+ "./dist/security/zod-jitless.js"
14
+ ],
13
15
  "packageManager": "pnpm@12.3.4",
14
16
  "engines": {
15
17
  "node": ">=26.0.0 <27.0.0",
@@ -72,6 +74,10 @@
72
74
  "types": "./dist/security/index.d.ts",
73
75
  "import": "./dist/security/index.js"
74
76
  },
77
+ "./security/zod-jitless": {
78
+ "types": "./dist/security/zod-jitless.d.ts",
79
+ "import": "./dist/security/zod-jitless.js"
80
+ },
75
81
  "./telemetry": {
76
82
  "types": "./dist/telemetry/index.d.ts",
77
83
  "import": "./dist/telemetry/index.js"