@hyperspan/plugin-preact 1.0.0-alpha.3 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperspan/plugin-preact",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.1",
4
4
  "description": "Hyperspan Plugin for Preact",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -23,16 +23,16 @@
23
23
  "url": "git+https://github.com/vlucas/hyperspan.git"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/bun": "^1.2.11",
27
- "prettier": "^3.2.5",
28
- "typescript": "^5.0.0"
26
+ "@types/bun": "^1.3.8",
27
+ "prettier": "^3.8.1",
28
+ "typescript": "^5.9.3"
29
29
  },
30
30
  "peerDependencies": {
31
- "@hyperspan/html": "^1.0.0-alpha",
32
- "@hyperspan/framework": "^1.0.0-alpha"
31
+ "@hyperspan/html": "^1.0.0",
32
+ "@hyperspan/framework": "^1.0.1"
33
33
  },
34
34
  "dependencies": {
35
- "preact": "^10.26.5",
36
- "preact-render-to-string": "^6.1.0"
35
+ "preact": "^10.28.3",
36
+ "preact-render-to-string": "^6.6.5"
37
37
  }
38
38
  }
package/src/index.ts CHANGED
@@ -105,7 +105,7 @@ export function preactPlugin(): HS.Plugin {
105
105
  }
106
106
 
107
107
  // Add to contents so this is in the client JS as well
108
- contents = `import { h, h as __hs_h, render as __hs_render, hydrate as __hs_hydrate } from 'preact';${contents}`;
108
+ contents = `import { h as __hs_h, render as __hs_render, hydrate as __hs_hydrate } from 'preact';${contents}`;
109
109
 
110
110
  // Some _interesting_ work at play here...
111
111
  // We have to modify the original file contents to add an __HS_PLUGIN export that the renderIsland() function can use to render the component.
@@ -1,3 +1,4 @@
1
1
  export * from 'preact/compat';
2
2
  export * from 'preact/hooks';
3
+ export * from 'preact/jsx-runtime';
3
4
  export { h, render, hydrate } from 'preact';