next-intl 4.3.12 → 4.4.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.
|
@@ -176,7 +176,9 @@ function getNextConfig(pluginConfig, nextConfig) {
|
|
|
176
176
|
// paths (see error handling above)
|
|
177
177
|
'next-intl/config': resolveI18nPath(pluginConfig.requestConfig)
|
|
178
178
|
};
|
|
179
|
-
if (hasStableTurboConfig &&
|
|
179
|
+
if (hasStableTurboConfig &&
|
|
180
|
+
// @ts-expect-error -- For Next.js <16
|
|
181
|
+
!nextConfig?.experimental?.turbo) {
|
|
180
182
|
nextIntlConfig.turbopack = {
|
|
181
183
|
...nextConfig?.turbopack,
|
|
182
184
|
resolveAlias: {
|
|
@@ -187,9 +189,12 @@ function getNextConfig(pluginConfig, nextConfig) {
|
|
|
187
189
|
} else {
|
|
188
190
|
nextIntlConfig.experimental = {
|
|
189
191
|
...nextConfig?.experimental,
|
|
192
|
+
// @ts-expect-error -- For Next.js <16
|
|
190
193
|
turbo: {
|
|
194
|
+
// @ts-expect-error -- For Next.js <16
|
|
191
195
|
...nextConfig?.experimental?.turbo,
|
|
192
196
|
resolveAlias: {
|
|
197
|
+
// @ts-expect-error -- For Next.js <16
|
|
193
198
|
...nextConfig?.experimental?.turbo?.resolveAlias,
|
|
194
199
|
...resolveAlias
|
|
195
200
|
}
|
|
@@ -50,7 +50,9 @@ function getNextConfig(pluginConfig, nextConfig) {
|
|
|
50
50
|
// paths (see error handling above)
|
|
51
51
|
'next-intl/config': resolveI18nPath(pluginConfig.requestConfig)
|
|
52
52
|
};
|
|
53
|
-
if (hasStableTurboConfig &&
|
|
53
|
+
if (hasStableTurboConfig &&
|
|
54
|
+
// @ts-expect-error -- For Next.js <16
|
|
55
|
+
!nextConfig?.experimental?.turbo) {
|
|
54
56
|
nextIntlConfig.turbopack = {
|
|
55
57
|
...nextConfig?.turbopack,
|
|
56
58
|
resolveAlias: {
|
|
@@ -61,9 +63,12 @@ function getNextConfig(pluginConfig, nextConfig) {
|
|
|
61
63
|
} else {
|
|
62
64
|
nextIntlConfig.experimental = {
|
|
63
65
|
...nextConfig?.experimental,
|
|
66
|
+
// @ts-expect-error -- For Next.js <16
|
|
64
67
|
turbo: {
|
|
68
|
+
// @ts-expect-error -- For Next.js <16
|
|
65
69
|
...nextConfig?.experimental?.turbo,
|
|
66
70
|
resolveAlias: {
|
|
71
|
+
// @ts-expect-error -- For Next.js <16
|
|
67
72
|
...nextConfig?.experimental?.turbo?.resolveAlias,
|
|
68
73
|
...resolveAlias
|
|
69
74
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-intl",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"author": "Jan Amann <jan@amann.work>",
|
|
6
6
|
"funding": [
|
|
@@ -112,10 +112,10 @@
|
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"@formatjs/intl-localematcher": "^0.5.4",
|
|
114
114
|
"negotiator": "^1.0.0",
|
|
115
|
-
"use-intl": "^4.
|
|
115
|
+
"use-intl": "^4.4.0"
|
|
116
116
|
},
|
|
117
117
|
"peerDependencies": {
|
|
118
|
-
"next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
|
|
118
|
+
"next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
119
119
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0",
|
|
120
120
|
"typescript": "^5.0.0"
|
|
121
121
|
},
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"optional": true
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "bc09e3c77a2776af7124259a9166e80d44f9b651"
|
|
128
128
|
}
|