@csszyx/runtime 0.9.0 → 0.9.2

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 CHANGED
@@ -183,7 +183,8 @@ Guards the hydration process by verifying mangle map integrity.
183
183
 
184
184
  #### `loadMangleMapFromDOM(): MangleMap | null`
185
185
 
186
- Loads the mangle map from the DOM.
186
+ Loads the checksum mangle map from `#__CSSZYX_MANGLE_MAP__`, with a fallback
187
+ for the legacy `#__SZ_MANGLE_MAP__` id.
187
188
 
188
189
  #### `verifyMangleChecksum(expectedChecksum): boolean`
189
190
 
package/dist/index.cjs CHANGED
@@ -98,7 +98,7 @@ function loadMangleMapFromDOM() {
98
98
  if (typeof document === "undefined") {
99
99
  return null;
100
100
  }
101
- const scriptElement = document.getElementById("__SZ_MANGLE_MAP__");
101
+ const scriptElement = document.getElementById("__CSSZYX_MANGLE_MAP__") ?? document.getElementById("__SZ_MANGLE_MAP__");
102
102
  if (!scriptElement) {
103
103
  return null;
104
104
  }
package/dist/index.mjs CHANGED
@@ -96,7 +96,7 @@ function loadMangleMapFromDOM() {
96
96
  if (typeof document === "undefined") {
97
97
  return null;
98
98
  }
99
- const scriptElement = document.getElementById("__SZ_MANGLE_MAP__");
99
+ const scriptElement = document.getElementById("__CSSZYX_MANGLE_MAP__") ?? document.getElementById("__SZ_MANGLE_MAP__");
100
100
  if (!scriptElement) {
101
101
  return null;
102
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@csszyx/runtime",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Runtime helpers and hydration guards for csszyx",
5
5
  "keywords": [
6
6
  "csszyx",
@@ -49,8 +49,8 @@
49
49
  "dist"
50
50
  ],
51
51
  "dependencies": {
52
- "@csszyx/compiler": "0.9.0",
53
- "@csszyx/core": "0.9.0"
52
+ "@csszyx/core": "0.9.2",
53
+ "@csszyx/compiler": "0.9.2"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/node": "^20.11.0",