@verbaly/next 0.77.0 → 0.78.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
@@ -150,7 +150,7 @@ Inside a `'use cache'` function there, pass the language: `getT({ locale })`.
150
150
  // app/[locale]/layout.tsx
151
151
  import { setRequestLocale, getVerbalyProps, getAlternates } from '@verbaly/next/server';
152
152
  import { VerbalyProvider } from '@verbaly/next/client';
153
- import { locales } from 'virtual:verbaly';
153
+ import { locales } from 'verbaly/app';
154
154
 
155
155
  export function generateStaticParams() {
156
156
  return locales.map((locale) => ({ locale }));
package/dist/index.cjs CHANGED
@@ -213,6 +213,7 @@ const DEV_PHASE = "phase-development-server";
213
213
  const BUILD_PHASE = "phase-production-build";
214
214
  const ANALYZE_PHASE = "phase-analyze";
215
215
  const LOADER = "@verbaly/next/loader";
216
+ const APP_ID = "verbaly/app";
216
217
  const SERVER_ID = "virtual:verbaly/server";
217
218
  const SOURCE_PATH_RE = /\.[cm]?[jt]sx?$/;
218
219
  function withVerbaly(nextConfig, options = {}) {
@@ -294,6 +295,7 @@ function composeConfig(base, root, scope, gate) {
294
295
  ...turbopack,
295
296
  resolveAlias: {
296
297
  ...turbopack?.resolveAlias,
298
+ [APP_ID]: `./${GENERATED_DIR}/index.js`,
297
299
  "virtual:verbaly": `./${GENERATED_DIR}/index.js`,
298
300
  [SERVER_ID]: `./${GENERATED_DIR}/server.js`
299
301
  },
@@ -307,6 +309,7 @@ function composeConfig(base, root, scope, gate) {
307
309
  }
308
310
  config.resolve ??= {};
309
311
  config.resolve.alias ??= {};
312
+ config.resolve.alias[`${APP_ID}$`] = runtimeModule;
310
313
  config.resolve.alias["virtual:verbaly"] = runtimeModule;
311
314
  config.resolve.alias[SERVER_ID] = serverModule;
312
315
  config.module ??= {};
package/dist/index.js CHANGED
@@ -212,6 +212,7 @@ const DEV_PHASE = "phase-development-server";
212
212
  const BUILD_PHASE = "phase-production-build";
213
213
  const ANALYZE_PHASE = "phase-analyze";
214
214
  const LOADER = "@verbaly/next/loader";
215
+ const APP_ID = "verbaly/app";
215
216
  const SERVER_ID = "virtual:verbaly/server";
216
217
  const SOURCE_PATH_RE = /\.[cm]?[jt]sx?$/;
217
218
  function withVerbaly(nextConfig, options = {}) {
@@ -293,6 +294,7 @@ function composeConfig(base, root, scope, gate) {
293
294
  ...turbopack,
294
295
  resolveAlias: {
295
296
  ...turbopack?.resolveAlias,
297
+ [APP_ID]: `./${GENERATED_DIR}/index.js`,
296
298
  "virtual:verbaly": `./${GENERATED_DIR}/index.js`,
297
299
  [SERVER_ID]: `./${GENERATED_DIR}/server.js`
298
300
  },
@@ -306,6 +308,7 @@ function composeConfig(base, root, scope, gate) {
306
308
  }
307
309
  config.resolve ??= {};
308
310
  config.resolve.alias ??= {};
311
+ config.resolve.alias[`${APP_ID}$`] = runtimeModule;
309
312
  config.resolve.alias["virtual:verbaly"] = runtimeModule;
310
313
  config.resolve.alias[SERVER_ID] = serverModule;
311
314
  config.module ??= {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verbaly/next",
3
- "version": "0.77.0",
3
+ "version": "0.78.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.77.0"
71
+ "@verbaly/compiler": "^0.78.0"
72
72
  },
73
73
  "peerDependencies": {
74
- "@verbaly/react": "^0.77.0",
74
+ "@verbaly/react": "^0.78.0",
75
75
  "next": "^15.0.0 || ^16.0.0",
76
76
  "react": "^18.0.0 || ^19.0.0",
77
- "verbaly": "^0.77.0"
77
+ "verbaly": "^0.78.0"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@types/react": "^19.3.0",
81
81
  "@types/react-dom": "^19.3.0",
82
- "@verbaly/react": "^0.77.0",
82
+ "@verbaly/react": "^0.78.0",
83
83
  "happy-dom": "^21.0.4",
84
84
  "next": "^16.4.3",
85
85
  "react": "^19.3.1",
86
86
  "react-dom": "^19.3.1",
87
- "verbaly": "^0.77.0"
87
+ "verbaly": "^0.78.0"
88
88
  },
89
89
  "scripts": {
90
90
  "build": "tsdown",