Skip to content

Commit 10f3d69

Browse files
committed
Bump to 8.x.x
1 parent 11c9485 commit 10f3d69

File tree

6 files changed

+20
-6
lines changed

6 files changed

+20
-6
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
node-version: [14.x, 16.x, 18.x]
17+
node-version: [16.x, 18.x, 20.x]
1818
steps:
1919
- uses: actions/checkout@v3
2020
- name: Use Node.js ${{ matrix.node-version }}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
# 8.0.0
4+
5+
- Drop support for node 14
6+
- Add support for node 20
7+
38
# 7.9.0
49

510
- Add support for string concatenation in default values #817

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@ Finally, if you want to make this process even less painful, I invite you to che
2323
- Supports i18next features:
2424
- **Context**: keys of the form `key_context`
2525
- **Plural**: keys of the form `key_zero`, `key_one`, `key_two`, `key_few`, `key_many` and `key_other` as described [here](https://www.i18next.com/translation-function/plurals)
26-
- `6.x` is tested on Node 14 and 16.
2726

2827
## Versions
2928

3029
You can find information about major releases on the [dedicated page](https://github.com/i18next/i18next-parser/releases). The [migration documentation](docs/migration.md) will help you figure out the breaking changes between versions.
3130

31+
- `8.x` is tested on Node 16, 18 and 20.
32+
- `7.x` is tested on Node 14, 16 and 18.
33+
- `6.x` is tested on Node 14 and 16.
34+
3235
## Usage
3336

3437
### CLI

docs/migration.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Migrating from `7.x` to `8.x`
2+
3+
## Breaking changes
4+
5+
- Support for Node 14 is dropped. Node 16, 18 and 20 are supported.
6+
17
# Migrating from `6.x` to `7.x`
28

39
## Breaking changes

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "i18next-parser",
33
"description": "Command Line tool for i18next",
4-
"version": "7.9.0",
4+
"version": "8.0.0",
55
"type": "module",
66
"license": "MIT",
77
"author": "Karel Ledru",
@@ -11,7 +11,7 @@
1111
"i18next": "./bin/cli.js"
1212
},
1313
"engines": {
14-
"node": "^14.13.1 || >=16.0.0 || >=18.0.0",
14+
"node": ">=16.0.0 || >=18.0.0 || >=20.0.0",
1515
"npm": ">=6",
1616
"yarn": ">=1"
1717
},

test/parser.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2484,7 +2484,7 @@ describe('parser', () => {
24842484
i18nextParser.end(fakeFile)
24852485
})
24862486

2487-
it('emits a `error` event if the catalog is not valid json', (done) => {
2487+
it.only('emits a `error` event if the catalog is not valid json', (done) => {
24882488
const i18nextParser = new i18nTransform({
24892489
output: 'test/locales/$LOCALE/$NAMESPACE.json',
24902490
})
@@ -2494,7 +2494,7 @@ describe('parser', () => {
24942494
})
24952495

24962496
i18nextParser.on('error', (error) => {
2497-
assert.equal(error.message.startsWith('Unexpected token /'), true)
2497+
assert.match(error.message, /^Unexpected token '?\/'?/)
24982498
done()
24992499
})
25002500
i18nextParser.end(fakeFile)

0 commit comments

Comments
 (0)