next-intl 4.0.0-beta-0825f08 → 4.0.0-beta-f10dbba

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.
@@ -10,8 +10,6 @@ function receiveRoutingConfig(input) {
10
10
  function receiveLocaleCookie(localeCookie) {
11
11
  return localeCookie ?? true ? {
12
12
  name: 'NEXT_LOCALE',
13
- maxAge: 5 * 60 * 60,
14
- // 5 hours
15
13
  sameSite: 'lax',
16
14
  ...(typeof localeCookie === 'object' && localeCookie)
17
15
 
@@ -1 +1 @@
1
- function e(e){return{...e,localePrefix:(a=e.localePrefix,"object"==typeof a?a:{mode:a||"always"}),localeCookie:(o=e.localeCookie,!!(o??1)&&{name:"NEXT_LOCALE",maxAge:18e3,sameSite:"lax",..."object"==typeof o&&o}),localeDetection:e.localeDetection??!0,alternateLinks:e.alternateLinks??!0};var o,a}export{e as receiveRoutingConfig};
1
+ function e(e){return{...e,localePrefix:(a=e.localePrefix,"object"==typeof a?a:{mode:a||"always"}),localeCookie:(o=e.localeCookie,!!(o??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof o&&o}),localeDetection:e.localeDetection??!0,alternateLinks:e.alternateLinks??!0};var o,a}export{e as receiveRoutingConfig};
@@ -69,5 +69,5 @@ export declare function receiveRoutingConfig<AppLocales extends Locales, AppLoca
69
69
  alternateLinks: boolean | NonNullable<RoutingConfig<AppLocales, AppLocalePrefixMode, AppPathnames, AppDomains>["alternateLinks"]>;
70
70
  };
71
71
  export type InitializedLocaleCookieConfig = false | LocaleCookieConfig;
72
- export type LocaleCookieConfig = Omit<CookieAttributes, 'name' | 'maxAge' | 'sameSite'> & Required<Pick<CookieAttributes, 'name' | 'maxAge' | 'sameSite'>>;
72
+ export type LocaleCookieConfig = Omit<CookieAttributes, 'name' | 'maxAge' | 'sameSite'> & Required<Pick<CookieAttributes, 'name' | 'sameSite'>>;
73
73
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-intl",
3
- "version": "4.0.0-beta-0825f08",
3
+ "version": "4.0.0-beta-f10dbba",
4
4
  "sideEffects": false,
5
5
  "author": "Jan Amann <jan@amann.work>",
6
6
  "funding": [
@@ -112,7 +112,7 @@
112
112
  "dependencies": {
113
113
  "@formatjs/intl-localematcher": "^0.5.4",
114
114
  "negotiator": "^1.0.0",
115
- "use-intl": "4.0.0-beta-0825f08"
115
+ "use-intl": "4.0.0-beta-f10dbba"
116
116
  },
117
117
  "peerDependencies": {
118
118
  "next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
@@ -124,5 +124,5 @@
124
124
  "optional": true
125
125
  }
126
126
  },
127
- "gitHead": "4c9f2f636b2ce73f2758b77035f94d47e9f91879"
127
+ "gitHead": "0b110fbdc662f812b077e5e3935cc3401c23aa46"
128
128
  }