@verbaly/react 0.86.1 → 0.87.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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="https://raw.githubusercontent.com/AronSoto/verbaly/develop/assets/logo.png" alt="Verbaly" width="300" />
2
+ <img src="https://raw.githubusercontent.com/verbaly-i18n/verbaly/develop/assets/lockup-light.svg" alt="Verbaly" height="64" />
3
3
  </p>
4
4
 
5
5
  <p align="center"><em>React bindings for Verbaly: hooks over the reactive core.</em></p>
@@ -7,14 +7,14 @@
7
7
  <p align="center">
8
8
  <a href="https://www.npmjs.com/package/@verbaly/react"><img src="https://img.shields.io/npm/v/@verbaly/react?logo=npm&color=cb3837" alt="npm version" /></a>
9
9
  <a href="https://verbaly.dev/docs/frameworks/react"><img src="https://img.shields.io/npm/dependency-version/@verbaly/react/peer/react?logo=react&logoColor=61DAFB&label=React&color=20232A" alt="supported React versions" /></a>
10
- <a href="https://scorecard.dev/viewer/?uri=github.com/AronSoto/verbaly"><img src="https://api.scorecard.dev/projects/github.com/AronSoto/verbaly/badge" alt="OpenSSF Scorecard" /></a>
10
+ <a href="https://scorecard.dev/viewer/?uri=github.com/verbaly-i18n/verbaly"><img src="https://api.scorecard.dev/projects/github.com/verbaly-i18n/verbaly/badge" alt="OpenSSF Scorecard" /></a>
11
11
  <a href="https://www.npmjs.com/package/@verbaly/react#provenance"><img src="https://img.shields.io/badge/provenance-SLSA%20v1-3fb950?logo=npm" alt="published with npm provenance" /></a>
12
- <a href="https://github.com/AronSoto/verbaly/blob/develop/LICENSE"><img src="https://img.shields.io/npm/l/@verbaly/react?color=blue" alt="MIT" /></a>
12
+ <a href="https://github.com/verbaly-i18n/verbaly/blob/develop/LICENSE"><img src="https://img.shields.io/npm/l/@verbaly/react?color=blue" alt="MIT" /></a>
13
13
  </p>
14
14
 
15
15
  ---
16
16
 
17
- React hooks for [Verbaly](https://github.com/AronSoto/verbaly): a thin layer (React 18/19) over the reactive core via `useSyncExternalStore`.
17
+ React hooks for [Verbaly](https://github.com/verbaly-i18n/verbaly): a thin layer (React 18/19) over the reactive core via `useSyncExternalStore`.
18
18
 
19
19
  **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.
20
20
 
@@ -112,4 +112,4 @@ In Next.js, `@verbaly/next/server` exports a `<Trans>` that finds the request's
112
112
 
113
113
  ## License
114
114
 
115
- [MIT](https://github.com/AronSoto/verbaly/blob/develop/LICENSE) © Aron Soto
115
+ [MIT](https://github.com/verbaly-i18n/verbaly/blob/develop/LICENSE) © Aron Soto
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_render = require("./render-4doKDlxH.cjs");
3
2
  let react = require("react");
4
3
  let verbaly = require("verbaly");
4
+ const require_render = require("./render-4doKDlxH.cjs");
5
5
  // src/index.ts
6
6
  const VerbalyContext = (0, react.createContext)(null);
7
7
  const APP_INSTANCE = Symbol.for("verbaly.app");
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { n as TransProps, t as TransOptions } from "./render-CKhXoteq.cjs";
2
1
  import { ReactElement, ReactNode } from "react";
3
2
  import { DictionaryInput, Params, TFunction, Verbaly } from "verbaly";
3
+ import { n as TransProps, t as TransOptions } from "./render-CKhXoteq.cjs";
4
4
  export interface VerbalyProviderProps<D extends DictionaryInput> {
5
5
  instance: Verbaly<D>;
6
6
  children?: ReactNode;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { n as TransProps, t as TransOptions } from "./render-CKhXoteq.js";
2
1
  import { ReactElement, ReactNode } from "react";
3
2
  import { DictionaryInput, Params, TFunction, Verbaly } from "verbaly";
3
+ import { n as TransProps, t as TransOptions } from "./render-CKhXoteq.js";
4
4
  export interface VerbalyProviderProps<D extends DictionaryInput> {
5
5
  instance: Verbaly<D>;
6
6
  children?: ReactNode;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { t as renderTrans } from "./render-DitbbbzJ.js";
2
1
  import { createContext, createElement, useContext, useMemo, useSyncExternalStore } from "react";
3
2
  import { persistLocale } from "verbaly";
3
+ import { t as renderTrans } from "./render-DitbbbzJ.js";
4
4
  // src/index.ts
5
5
  const VerbalyContext = createContext(null);
6
6
  const APP_INSTANCE = Symbol.for("verbaly.app");
package/dist/server.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { n as TransProps, r as renderTrans, t as TransOptions } from "./render-CKhXoteq.cjs";
2
1
  import { ReactElement } from "react";
3
2
  import { Verbaly } from "verbaly";
3
+ import { n as TransProps, r as renderTrans, t as TransOptions } from "./render-CKhXoteq.cjs";
4
4
  export declare function Trans(props: TransProps & {
5
5
  instance: Verbaly;
6
6
  }): ReactElement;
package/dist/server.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { n as TransProps, r as renderTrans, t as TransOptions } from "./render-CKhXoteq.js";
2
1
  import { ReactElement } from "react";
3
2
  import { Verbaly } from "verbaly";
3
+ import { n as TransProps, r as renderTrans, t as TransOptions } from "./render-CKhXoteq.js";
4
4
  export declare function Trans(props: TransProps & {
5
5
  instance: Verbaly;
6
6
  }): ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verbaly/react",
3
- "version": "0.86.1",
3
+ "version": "0.87.0",
4
4
  "description": "React bindings for Verbaly: hooks over the reactive core.",
5
5
  "keywords": [
6
6
  "i18n",
@@ -12,12 +12,12 @@
12
12
  "author": "Aron Soto",
13
13
  "repository": {
14
14
  "type": "git",
15
- "url": "git+https://github.com/AronSoto/verbaly.git",
15
+ "url": "git+https://github.com/verbaly-i18n/verbaly.git",
16
16
  "directory": "packages/react"
17
17
  },
18
18
  "homepage": "https://verbaly.dev/docs/frameworks/react",
19
19
  "bugs": {
20
- "url": "https://github.com/AronSoto/verbaly/issues"
20
+ "url": "https://github.com/verbaly-i18n/verbaly/issues"
21
21
  },
22
22
  "funding": {
23
23
  "type": "github",
@@ -62,17 +62,17 @@
62
62
  },
63
63
  "peerDependencies": {
64
64
  "react": "^18.0.0 || ^19.0.0",
65
- "verbaly": "^0.86.1"
65
+ "verbaly": "^0.87.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@types/react": "^19.3.0",
68
+ "@types/react": "^19.3.3",
69
69
  "@types/react-dom": "^19.3.0",
70
70
  "happy-dom": "^21.0.4",
71
71
  "preact": "^11.2.0",
72
72
  "preact-render-to-string": "^6.8.3",
73
73
  "react": "^19.3.1",
74
74
  "react-dom": "^19.3.1",
75
- "verbaly": "^0.86.1"
75
+ "verbaly": "^0.87.0"
76
76
  },
77
77
  "scripts": {
78
78
  "build": "tsdown",