@unhead/ssr 1.2.2 → 1.3.0-beta.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/dist/index.cjs CHANGED
@@ -77,20 +77,6 @@ async function renderSSRHead(head) {
77
77
  };
78
78
  }
79
79
  const ctx = { tags: await head.resolveTags() };
80
- if (head.resolvedOptions.experimentalHashHydration) {
81
- ctx.tags.push({
82
- tag: "meta",
83
- props: {
84
- name: "unhead:ssr",
85
- content: shared.computeHashes(
86
- ctx.tags.filter((t) => {
87
- const entry = head.headEntries().find((entry2) => entry2._i === t._e);
88
- return entry?.mode !== "server";
89
- }).map((tag) => tag._h)
90
- )
91
- }
92
- });
93
- }
94
80
  await head.hooks.callHook("ssr:render", ctx);
95
81
  const html = ssrRenderTags(ctx.tags);
96
82
  const renderCtx = { tags: ctx.tags, html };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { TagsWithInnerContent, SelfClosingTags, computeHashes } from '@unhead/shared';
1
+ import { TagsWithInnerContent, SelfClosingTags } from '@unhead/shared';
2
2
 
3
3
  function propsToString(props) {
4
4
  const handledAttributes = [];
@@ -75,20 +75,6 @@ async function renderSSRHead(head) {
75
75
  };
76
76
  }
77
77
  const ctx = { tags: await head.resolveTags() };
78
- if (head.resolvedOptions.experimentalHashHydration) {
79
- ctx.tags.push({
80
- tag: "meta",
81
- props: {
82
- name: "unhead:ssr",
83
- content: computeHashes(
84
- ctx.tags.filter((t) => {
85
- const entry = head.headEntries().find((entry2) => entry2._i === t._e);
86
- return entry?.mode !== "server";
87
- }).map((tag) => tag._h)
88
- )
89
- }
90
- });
91
- }
92
78
  await head.hooks.callHook("ssr:render", ctx);
93
79
  const html = ssrRenderTags(ctx.tags);
94
80
  const renderCtx = { tags: ctx.tags, html };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/ssr",
3
3
  "type": "module",
4
- "version": "1.2.2",
4
+ "version": "1.3.0-beta.0",
5
5
  "author": "Harlan Wilton <harlan@harlanzw.com>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -29,8 +29,8 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@unhead/schema": "1.2.2",
33
- "@unhead/shared": "1.2.2"
32
+ "@unhead/schema": "1.3.0-beta.0",
33
+ "@unhead/shared": "1.3.0-beta.0"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "unbuild .",