@verbaly/next 0.86.2 → 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/verbaly-i18n/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>Next.js integration for Verbaly: App Router/RSC with per-request locale negotiation, Turbopack and webpack support, flash-free hydration.</em></p>
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.86.2",
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",
@@ -68,23 +68,23 @@
68
68
  "access": "public"
69
69
  },
70
70
  "dependencies": {
71
- "@verbaly/compiler": "^0.86.2"
71
+ "@verbaly/compiler": "^0.87.0"
72
72
  },
73
73
  "peerDependencies": {
74
- "@verbaly/react": "^0.86.2",
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.86.2"
77
+ "verbaly": "^0.87.0"
78
78
  },
79
79
  "devDependencies": {
80
- "@types/react": "^19.3.0",
80
+ "@types/react": "^19.3.3",
81
81
  "@types/react-dom": "^19.3.0",
82
- "@verbaly/react": "^0.86.2",
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.86.2"
87
+ "verbaly": "^0.87.0"
88
88
  },
89
89
  "scripts": {
90
90
  "build": "tsdown",