@verbaly/react 0.29.0 → 0.31.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.
Files changed (2) hide show
  1. package/README.md +3 -1
  2. package/package.json +9 -7
package/README.md CHANGED
@@ -13,6 +13,8 @@
13
13
 
14
14
  React hooks for [Verbaly](https://github.com/AronSoto/verbaly): a thin layer (React 18/19) over the reactive core via `useSyncExternalStore`.
15
15
 
16
+ **Preact works too**, through `preact/compat`, with no extra package and no configuration of ours: the test suite runs a second time with React resolved to `preact/compat` (hooks, locale switching, `<Trans>` and server rendering), so this is measured, not assumed.
17
+
16
18
  ## 🚀 Install
17
19
 
18
20
  ```bash
@@ -55,7 +57,7 @@ Named links without custom components; hrefs come from your code, never from mes
55
57
  <Trans id="cta" links={{ docs: { href: '/docs', target: '_blank', rel: 'noopener' } }} />
56
58
  ```
57
59
 
58
- 📖 Docs: **https://verbaly-web.vercel.app/docs/frameworks**
60
+ 📖 Docs: **https://verbaly-web.vercel.app/docs/frameworks/react**
59
61
 
60
62
  > ⚠️ Early development (`0.x`): API not stable yet.
61
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verbaly/react",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "description": "React bindings for Verbaly: hooks over the reactive core.",
5
5
  "keywords": [
6
6
  "i18n",
@@ -48,20 +48,22 @@
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": "^18.0.0 || ^19.0.0",
51
- "verbaly": "^0.29.0"
51
+ "verbaly": "^0.31.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "^19.2.17",
55
55
  "@types/react-dom": "^19.2.3",
56
- "happy-dom": "^20.11.0",
57
- "react": "^19.2.7",
58
- "react-dom": "^19.2.7",
59
- "verbaly": "0.29.0"
56
+ "happy-dom": "^20.11.1",
57
+ "preact": "^10.29.7",
58
+ "preact-render-to-string": "^6.7.0",
59
+ "react": "^19.2.8",
60
+ "react-dom": "^19.2.8",
61
+ "verbaly": "^0.31.0"
60
62
  },
61
63
  "scripts": {
62
64
  "build": "tsdown",
63
65
  "dev": "tsdown --watch",
64
- "test": "vitest run --passWithNoTests",
66
+ "test": "vitest run --passWithNoTests && vitest run --config vitest.preact.config.ts",
65
67
  "typecheck": "tsc --noEmit"
66
68
  }
67
69
  }