Skip to content

Commit

Permalink
update to next 14.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dcporter44 committed Feb 1, 2024
1 parent d00b729 commit b3e839c
Show file tree
Hide file tree
Showing 8 changed files with 1,328 additions and 692 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 5.2.1

- Update dependencies

## 5.2.0

- Change to cookie redirect behavior: When visiting a pathname that includes a locale, the middleware will now redirect if the `localeCookie` is set. Previously the redirecting based on cookie only occured on pathnames without a locale, but we've decided this is inconsistent behavior.
Expand Down
3 changes: 1 addition & 2 deletions examples/i18next-example/components/LanguageChanger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export default function LanguageChanger() {
const days = 30;
const date = new Date();
date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
const expires = '; expires=' + date.toUTCString();
document.cookie = `NEXT_LOCALE=${newLocale};expires=${expires};path=/`;
document.cookie = `NEXT_LOCALE=${newLocale};expires=${date.toUTCString()};path=/`;

// redirect to the new locale path
if (
Expand Down
950 changes: 609 additions & 341 deletions examples/i18next-example/package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions examples/i18next-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
"lint": "next lint"
},
"dependencies": {
"i18next": "^23.5.1",
"i18next-resources-to-backend": "^1.1.4",
"next": "^14.0.4",
"i18next": "^23.8.2",
"i18next-resources-to-backend": "^1.2.0",
"next": "^14.1.0",
"next-i18n-router": "file:../../",
"react": "^18",
"react-dom": "^18",
"react-i18next": "^13.2.2"
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^14.0.1"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "13.5.4",
"typescript": "^5"
"@types/node": "^20.11.14",
"@types/react": "^18.2.49",
"@types/react-dom": "^18.2.18",
"eslint": "^8.56.0",
"eslint-config-next": "^14.1.0",
"typescript": "^5.3.3"
}
}
594 changes: 395 additions & 199 deletions examples/react-intl-example/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/react-intl-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"@types/react": "18.2.22",
"@types/react-dom": "18.2.7",
"eslint": "8.49.0",
"eslint-config-next": "13.5.2",
"next": "^14.0.4",
"eslint-config-next": "^14.1.0",
"next": "^14.1.0",
"next-i18n-router": "file:../../",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
423 changes: 296 additions & 127 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-i18n-router",
"version": "5.2.0",
"version": "5.2.1",
"description": "Next.js App Router internationalized routing and locale detection.",
"repository": "https://github.com/i18nexus/next-i18n-router",
"keywords": [
Expand All @@ -26,22 +26,22 @@
"author": "i18nexus",
"license": "MIT",
"devDependencies": {
"@types/eslint": "^8.40.2",
"@types/eslint": "^8.56.2",
"@types/jest": "^29.5.2",
"@types/negotiator": "^0.6.1",
"@types/node": "^20.10.5",
"@types/react": "^18.2.45",
"@types/node": "^20.11.14",
"@types/react": "^18.2.49",
"@types/react-dom": "^18.2.18",
"eslint": "^8.40.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-next": "^14.0.4",
"eslint-plugin-jest": "^27.2.1",
"eslint-config-next": "^14.1.0",
"eslint-plugin-jest": "^27.6.3",
"jest": "^29.5.0",
"next": "^14.0.4",
"next": "^14.1.0",
"react": "^18.2.0",
"ts-jest": "^29.1.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.1",
"typescript": "^5.1.3"
"typescript": "^5.3.3"
},
"dependencies": {
"@formatjs/intl-localematcher": "^0.5.2",
Expand Down

0 comments on commit b3e839c

Please sign in to comment.