You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,38 @@
1
1
# Changelog
2
2
3
+
## 1.0.0
4
+
5
+
### Major Changes
6
+
7
+
- d95f3dd: Add native middleware pattern with per-request nonce generation for TanStack Start applications. This is a major update that introduces a new recommended API while maintaining backward compatibility.
8
+
9
+
**New Features:**
10
+
11
+
-`createCspMiddleware()` - Middleware factory for TanStack Start with per-request nonce generation
12
+
-`createNonceGetter()` - Isomorphic nonce retrieval (works on server and client)
13
+
-`generateNonce()` - Cryptographically secure random nonce generator
14
+
-`buildCspHeader()` - Low-level CSP header building utility
15
+
- CSP Level 3 support with automatic granular directive copying (`-elem`, `-attr`)
16
+
- Strict nonce-based CSP for scripts (no `'unsafe-inline'` in production)
17
+
- Integration with TanStack router's native `ssr.nonce` option
18
+
19
+
**Breaking Changes:**
20
+
21
+
- This release is a major version because it introduces a new peer dependency: `@tanstack/start-storage-context >= 1.0.0`
22
+
- The recommended API has changed from handler wrapper (`createSecureHandler`) to middleware pattern (`createCspMiddleware`)
23
+
- Projects should migrate to the new API for better security (per-request nonces vs static headers)
24
+
25
+
**Migration:**
26
+
27
+
The old `createSecureHandler` API is still available and fully functional, but is now deprecated. See README for migration guide from v0.1 to v0.2.
28
+
29
+
**Security Improvements:**
30
+
31
+
- Per-request nonce generation (previously static at startup)
32
+
- No `'unsafe-inline'` fallback for scripts in production
33
+
- Support for `'strict-dynamic'` CSP directive
34
+
- Automatic nonce application to all TanStack framework scripts
0 commit comments