@csszyx/runtime 0.4.0 → 0.6.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/README.md +4 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -75,12 +75,15 @@ import { initRuntime } from "@csszyx/runtime";
|
|
|
75
75
|
// Initialize at app startup
|
|
76
76
|
initRuntime({
|
|
77
77
|
development: process.env.NODE_ENV === "development",
|
|
78
|
-
allowCSRRecovery: true,
|
|
79
78
|
strictHydration: true,
|
|
80
79
|
debug: false,
|
|
81
80
|
});
|
|
82
81
|
```
|
|
83
82
|
|
|
83
|
+
Per-element CSR recovery is opted in via the `szRecover` JSX attribute
|
|
84
|
+
on individual elements (`"csr"` or `"dev-only"`) rather than a global
|
|
85
|
+
runtime flag. See `@csszyx/runtime/verify` for token verification helpers.
|
|
86
|
+
|
|
84
87
|
### Recovery Token Verification
|
|
85
88
|
|
|
86
89
|
```typescript
|
|
@@ -237,7 +240,6 @@ Checks if the runtime has been initialized.
|
|
|
237
240
|
```typescript
|
|
238
241
|
interface RuntimeConfig {
|
|
239
242
|
development?: boolean; // Enable development mode features
|
|
240
|
-
allowCSRRecovery?: boolean; // Allow CSR recovery in development
|
|
241
243
|
strictHydration?: boolean; // Enable strict hydration checks
|
|
242
244
|
debug?: boolean; // Enable debug logging
|
|
243
245
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csszyx/runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Runtime helpers and hydration guards for csszyx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"csszyx",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"dist"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@csszyx/compiler": "0.
|
|
43
|
-
"@csszyx/core": "0.
|
|
42
|
+
"@csszyx/compiler": "0.6.0",
|
|
43
|
+
"@csszyx/core": "0.6.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^20.11.0",
|