@verbaly/next 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 +4 -4
- package/dist/client.d.ts +1 -1
- package/dist/client.js +2 -2
- package/dist/index.js +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/
|
|
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>Next.js integration for Verbaly: App Router/RSC with per-request locale negotiation, Turbopack and webpack support, flash-free hydration.</em></p>
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
<p align="center">
|
|
8
8
|
<a href="https://www.npmjs.com/package/@verbaly/next"><img src="https://img.shields.io/npm/v/@verbaly/next?logo=npm&color=cb3837" alt="npm version" /></a>
|
|
9
9
|
<a href="https://verbaly.dev/docs/frameworks/react#next"><img src="https://img.shields.io/npm/dependency-version/@verbaly/next/peer/next?logo=nextdotjs&logoColor=white&label=Next.js&color=000000" alt="supported Next.js versions" /></a>
|
|
10
|
-
<a href="https://scorecard.dev/viewer/?uri=github.com/
|
|
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/next#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/
|
|
12
|
+
<a href="https://github.com/verbaly-i18n/verbaly/blob/develop/LICENSE"><img src="https://img.shields.io/npm/l/@verbaly/next?color=blue" alt="MIT" /></a>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -202,4 +202,4 @@ Full guide: [verbaly.dev/docs/frameworks/react#next](https://verbaly.dev/docs/fr
|
|
|
202
202
|
|
|
203
203
|
## License
|
|
204
204
|
|
|
205
|
-
[MIT](https://github.com/
|
|
205
|
+
[MIT](https://github.com/verbaly-i18n/verbaly/blob/develop/LICENSE) © Aron Soto
|
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VerbalyProviderProps as VerbalyProviderProps$1 } from "./server.js";
|
|
2
1
|
import { ReactElement, ReactNode } from "react";
|
|
3
2
|
import { SwitchLocaleOptions } from "verbaly";
|
|
3
|
+
import { VerbalyProviderProps as VerbalyProviderProps$1 } from "./server.js";
|
|
4
4
|
import { Trans, useLocale, useT, useVerbaly } from "@verbaly/react";
|
|
5
5
|
export interface VerbalyProviderProps extends VerbalyProviderProps$1 {
|
|
6
6
|
children?: ReactNode;
|
package/dist/client.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { useRouter } from "next/navigation";
|
|
2
3
|
import { createElement, useCallback, useEffect, useState } from "react";
|
|
4
|
+
import { Trans, VerbalyProvider as VerbalyProvider$1, useLocale, useT, useVerbaly, useVerbaly as useVerbaly$1 } from "@verbaly/react";
|
|
3
5
|
import { switchLocale } from "verbaly";
|
|
4
6
|
import { createInstance, locales, requestOptions, routing, sourceLocale, trailingSlash } from "virtual:verbaly";
|
|
5
|
-
import { useRouter } from "next/navigation";
|
|
6
|
-
import { Trans, VerbalyProvider as VerbalyProvider$1, useLocale, useT, useVerbaly, useVerbaly as useVerbaly$1 } from "@verbaly/react";
|
|
7
7
|
// src/client.ts
|
|
8
8
|
function VerbalyProvider(props) {
|
|
9
9
|
const [instance] = useState(() => {
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
1
|
import { basename, dirname, join, relative } from "node:path";
|
|
3
2
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
4
|
// src/report.ts
|
|
5
5
|
const reporters = /* @__PURE__ */ new Map();
|
|
6
6
|
function reportDev(compiler, cfg, result, previous) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verbaly/next",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.87.0",
|
|
4
4
|
"description": "Next.js integration for Verbaly: App Router/RSC with per-request locale negotiation, Turbopack and webpack support, flash-free hydration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"author": "Aron Soto",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/
|
|
19
|
+
"url": "git+https://github.com/verbaly-i18n/verbaly.git",
|
|
20
20
|
"directory": "packages/next"
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://verbaly.dev/docs/frameworks/react#next",
|
|
23
23
|
"bugs": {
|
|
24
|
-
"url": "https://github.com/
|
|
24
|
+
"url": "https://github.com/verbaly-i18n/verbaly/issues"
|
|
25
25
|
},
|
|
26
26
|
"funding": {
|
|
27
27
|
"type": "github",
|
|
@@ -68,23 +68,23 @@
|
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@verbaly/compiler": "^0.
|
|
71
|
+
"@verbaly/compiler": "^0.87.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@verbaly/react": "^0.
|
|
74
|
+
"@verbaly/react": "^0.87.0",
|
|
75
75
|
"next": "^15.0.0 || ^16.0.0",
|
|
76
76
|
"react": "^18.0.0 || ^19.0.0",
|
|
77
|
-
"verbaly": "^0.
|
|
77
|
+
"verbaly": "^0.87.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@types/react": "^19.3.
|
|
80
|
+
"@types/react": "^19.3.3",
|
|
81
81
|
"@types/react-dom": "^19.3.0",
|
|
82
|
-
"@verbaly/react": "^0.
|
|
82
|
+
"@verbaly/react": "^0.87.0",
|
|
83
83
|
"happy-dom": "^21.0.4",
|
|
84
84
|
"next": "^16.4.6",
|
|
85
85
|
"react": "^19.3.1",
|
|
86
86
|
"react-dom": "^19.3.1",
|
|
87
|
-
"verbaly": "^0.
|
|
87
|
+
"verbaly": "^0.87.0"
|
|
88
88
|
},
|
|
89
89
|
"scripts": {
|
|
90
90
|
"build": "tsdown",
|