@ilha/astro 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/dist/server.js +2 -4
  2. package/package.json +3 -3
package/dist/server.js CHANGED
@@ -70,8 +70,7 @@ async function renderPlainComponent(Component, props, slots, metadata) {
70
70
  if (!hasNestedIslandSlots(html)) return html;
71
71
  return wrapPlainAsIsland(Component, merged).hydratable({}, {
72
72
  name: metadata?.displayName ?? "IlhaPlain",
73
- snapshot: true,
74
- skipOnMount: true
73
+ snapshot: true
75
74
  });
76
75
  }
77
76
  async function check(Component, props, slots, metadata) {
@@ -87,8 +86,7 @@ async function check(Component, props, slots, metadata) {
87
86
  async function renderToStaticMarkup(Component, props, slots, metadata) {
88
87
  if (isIsland(Component)) return { html: await Component.hydratable(await resolveProps(props), {
89
88
  name: metadata?.displayName ?? "IlhaIsland",
90
- snapshot: true,
91
- skipOnMount: true
89
+ snapshot: true
92
90
  }) };
93
91
  const html = await renderPlainComponent(Component, props, slots, metadata);
94
92
  if (html === void 0) throw new Error(`[@ilha/astro] Unable to render "${metadata?.displayName ?? "component"}" — expected an ilha island or a function returning ilha RawHtml/string.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilha/astro",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Astro integration for Ilha islands",
5
5
  "keywords": [
6
6
  "astro-component",
@@ -53,10 +53,10 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "astro": "^7.2.4",
56
- "ilha": "^0.12.0"
56
+ "ilha": "^0.12.1"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "astro": "^7.2.4",
60
- "ilha": ">=0.12.0"
60
+ "ilha": ">=0.12.1"
61
61
  }
62
62
  }