next-intl 4.13.4 → 4.13.6

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.
@@ -11,6 +11,10 @@ const getCache = cache(getCacheImpl);
11
11
  function getCachedRequestLocale() {
12
12
  return getCache().locale;
13
13
  }
14
+
15
+ /**
16
+ * @deprecated Please migrate to [`next/root-params`](https://next-intl.dev/blog/nextjs-root-params).
17
+ */
14
18
  function setCachedRequestLocale(locale) {
15
19
  getCache().locale = locale;
16
20
  }
@@ -395,6 +395,7 @@ export default function createNavigation<const AppLocales extends Locales, const
395
395
  forward(): void;
396
396
  refresh(): void;
397
397
  experimental_gesturePush?(href: string, options?: import("next/dist/shared/lib/app-router-context.shared-runtime.js").NavigateOptions): void;
398
+ bfcacheId: string;
398
399
  };
399
400
  getPathname: (args: {
400
401
  href: [AppPathnames] extends [never] ? string | {
@@ -1,3 +1,6 @@
1
1
  import type { Locale } from 'use-intl';
2
2
  export declare function getCachedRequestLocale(): string | undefined;
3
+ /**
4
+ * @deprecated Please migrate to [`next/root-params`](https://next-intl.dev/blog/nextjs-root-params).
5
+ */
3
6
  export declare function setCachedRequestLocale(locale: Locale): void;
@@ -25,6 +25,7 @@ export type GetRequestConfigParams = {
25
25
  * catch-all for unknown routes (e.g. `/unknown.txt`), invalid values should
26
26
  * be replaced with a valid locale.
27
27
  *
28
+ * @deprecated Please migrate to [`next/root-params`](https://next-intl.dev/blog/nextjs-root-params).
28
29
  * @see https://next-intl.dev/docs/usage/configuration#i18n-request
29
30
  */
30
31
  requestLocale: Promise<string | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-intl",
3
- "version": "4.13.4",
3
+ "version": "4.13.6",
4
4
  "sideEffects": false,
5
5
  "author": "Jan Amann <jan@amann.work>",
6
6
  "funding": [
@@ -127,11 +127,11 @@
127
127
  "@formatjs/intl-localematcher": "^0.8.1",
128
128
  "@parcel/watcher": "^2.4.1",
129
129
  "@swc/core": "^1.15.2",
130
- "icu-minify": "^4.13.4",
130
+ "icu-minify": "^4.13.6",
131
131
  "negotiator": "^1.0.0",
132
- "next-intl-swc-plugin-extractor": "^4.13.4",
132
+ "next-intl-swc-plugin-extractor": "^4.13.6",
133
133
  "po-parser": "^2.1.1",
134
- "use-intl": "^4.13.4"
134
+ "use-intl": "^4.13.6"
135
135
  },
136
136
  "peerDependencies": {
137
137
  "next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
@@ -142,5 +142,5 @@
142
142
  "optional": true
143
143
  }
144
144
  },
145
- "gitHead": "7fa175d0303804fea48aad0c8b5de89077948e9c"
145
+ "gitHead": "41e027ba12bef80e11e014bba365d33026f112dd"
146
146
  }