unhead 0.4.2 → 0.4.4

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/dist/index.cjs CHANGED
@@ -404,7 +404,7 @@ const HydrateStateFromSSRPlugin = () => {
404
404
  if (!HasElementTags.includes(tag.tag) || typeof tag._d === "undefined")
405
405
  return;
406
406
  tag._s = `data-h-${hashCode(tag._d)}`;
407
- if (entry._m === "server")
407
+ if (entry._m === "server" || tag.key)
408
408
  tag.props[tag._s] = "";
409
409
  }
410
410
  }
package/dist/index.mjs CHANGED
@@ -402,7 +402,7 @@ const HydrateStateFromSSRPlugin = () => {
402
402
  if (!HasElementTags.includes(tag.tag) || typeof tag._d === "undefined")
403
403
  return;
404
404
  tag._s = `data-h-${hashCode(tag._d)}`;
405
- if (entry._m === "server")
405
+ if (entry._m === "server" || tag.key)
406
406
  tag.props[tag._s] = "";
407
407
  }
408
408
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unhead",
3
3
  "type": "module",
4
- "version": "0.4.2",
4
+ "version": "0.4.4",
5
5
  "packageManager": "pnpm@7.14.0",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
@@ -30,8 +30,8 @@
30
30
  "dist"
31
31
  ],
32
32
  "dependencies": {
33
- "@unhead/dom": "0.4.2",
34
- "@unhead/schema": "0.4.2",
33
+ "@unhead/dom": "0.4.4",
34
+ "@unhead/schema": "0.4.4",
35
35
  "hookable": "^5.4.1"
36
36
  },
37
37
  "devDependencies": {