Skip to content

Commit 3bfb772

Browse files
committed
update dependencies, require react-intl v7 and use Node.js 22
1 parent 1b2a819 commit 3bfb772

9 files changed

Lines changed: 2244 additions & 2050 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ concurrency:
88

99
jobs:
1010
checks:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-24.04
1212
timeout-minutes: 10
1313
strategy:
1414
matrix:
15-
node_version: [16, 18, 20]
15+
node_version: [16, 18, 20, 22]
1616
steps:
1717
- uses: actions/checkout@v4
1818
- uses: aboutbits/github-actions-node/setup-and-install@v2
@@ -26,11 +26,11 @@ jobs:
2626
shell: bash
2727

2828
test:
29-
runs-on: ubuntu-22.04
29+
runs-on: ubuntu-24.04
3030
timeout-minutes: 10
3131
strategy:
3232
matrix:
33-
node_version: [16, 18, 20]
33+
node_version: [16, 18, 20, 22]
3434
steps:
3535
- uses: actions/checkout@v4
3636
- uses: aboutbits/github-actions-node/setup-and-install@v2

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ on:
66
- 'v*'
77

88
env:
9-
NODE_VERSION: 20
9+
NODE_VERSION: 22
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-24.04
1414
timeout-minutes: 5
1515
steps:
1616
- uses: actions/checkout@v4

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

package-lock.json

Lines changed: 2214 additions & 2025 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,32 +52,33 @@
5252
"postversion": "git push && git push --tags"
5353
},
5454
"dependencies": {
55-
"@formatjs/intl": "^2.6.5",
56-
"zod": "^3.22.4"
55+
"@formatjs/intl": "^3.1.6",
56+
"zod": "^3.25.67"
5757
},
5858
"devDependencies": {
59-
"@formatjs/cli": "^6.2.8",
60-
"@types/jest": "^29.5.12",
61-
"@types/node": "^18.19.26",
62-
"@typescript-eslint/eslint-plugin": "^7.3.1",
63-
"@typescript-eslint/parser": "^7.3.1",
59+
"@formatjs/cli": "^6.7.2",
60+
"@types/jest": "^29.5.14",
61+
"@types/node": "^22.15.34",
62+
"@types/react": "^18.3.23",
63+
"@typescript-eslint/eslint-plugin": "^7.2.0",
64+
"@typescript-eslint/parser": "^7.2.0",
6465
"babel-jest": "^29.7.0",
65-
"eslint": "^8.57.0",
66+
"eslint": "^8.57.1",
6667
"eslint-config-prettier": "^9.1.0",
67-
"eslint-plugin-formatjs": "^4.12.2",
68-
"eslint-plugin-import": "^2.29.1",
69-
"eslint-plugin-jest": "^27.9.0",
70-
"eslint-plugin-prettier": "^5.1.3",
71-
"eslint-plugin-react": "^7.34.1",
72-
"eslint-plugin-react-hooks": "^4.6.0",
68+
"eslint-plugin-formatjs": "~4.13.3",
69+
"eslint-plugin-import": "^2.32.0",
70+
"eslint-plugin-jest": "^28.14.0",
71+
"eslint-plugin-prettier": "^5.5.1",
72+
"eslint-plugin-react": "^7.37.5",
73+
"eslint-plugin-react-hooks": "^4.6.2",
7374
"jest": "^29.7.0",
7475
"json-diff": "^1.0.6",
75-
"prettier": "^3.2.5",
76-
"react-intl": "^6.6.3",
77-
"typescript": "^5.4.3"
76+
"prettier": "^3.6.2",
77+
"react-intl": "^7.1.11",
78+
"typescript": "^5.5.4"
7879
},
7980
"peerDependencies": {
80-
"react-intl": "^6.2.8"
81+
"react-intl": "^7.0.0"
8182
},
8283
"peerDependenciesMeta": {
8384
"react-intl": {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ npm install @aboutbits/zod-locales-formatjs
2323
Second, add the custom language packages to your `IntlProvider`:
2424

2525
```js
26-
import { de } from '@aboutbits/zod-locales-formatjs'
26+
import { de } from '@aboutbits/zod-locales-formatjs'
2727
import { IntlProvider } from 'react-intl'
2828

2929
<IntlProvider messages={{...yourMessages, ...de }} {...}>{children}</IntlProvider>

tsconfig.build.cjs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"target": "ES5",
5+
"lib": ["ES2021.Intl"],
56
"outDir": "./dist/cjs"
67
}
78
}

tsconfig.build.esm.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"target": "ES6",
5+
"lib": ["ES2021.Intl"],
56
"allowSyntheticDefaultImports": true,
67
"outDir": "./dist/esm"
78
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"strict": true,
44
"esModuleInterop": true,
55
"moduleResolution": "node",
6+
"lib": ["ES2021.Intl"],
67
"declaration": true,
78
"importHelpers": true,
89
"resolveJsonModule": true

0 commit comments

Comments
 (0)