Skip to content

Commit

Permalink
Bump to 8.x.x
Browse files Browse the repository at this point in the history
  • Loading branch information
karellm committed May 8, 2023
1 parent 11c9485 commit 10f3d69
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

# 8.0.0

- Drop support for node 14
- Add support for node 20

# 7.9.0

- Add support for string concatenation in default values #817
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ Finally, if you want to make this process even less painful, I invite you to che
- Supports i18next features:
- **Context**: keys of the form `key_context`
- **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)
- `6.x` is tested on Node 14 and 16.

## Versions

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.

- `8.x` is tested on Node 16, 18 and 20.
- `7.x` is tested on Node 14, 16 and 18.
- `6.x` is tested on Node 14 and 16.

## Usage

### CLI
Expand Down
6 changes: 6 additions & 0 deletions docs/migration.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Migrating from `7.x` to `8.x`

## Breaking changes

- Support for Node 14 is dropped. Node 16, 18 and 20 are supported.

# Migrating from `6.x` to `7.x`

## Breaking changes
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "i18next-parser",
"description": "Command Line tool for i18next",
"version": "7.9.0",
"version": "8.0.0",
"type": "module",
"license": "MIT",
"author": "Karel Ledru",
Expand All @@ -11,7 +11,7 @@
"i18next": "./bin/cli.js"
},
"engines": {
"node": "^14.13.1 || >=16.0.0 || >=18.0.0",
"node": ">=16.0.0 || >=18.0.0 || >=20.0.0",
"npm": ">=6",
"yarn": ">=1"
},
Expand Down
4 changes: 2 additions & 2 deletions test/parser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2484,7 +2484,7 @@ describe('parser', () => {
i18nextParser.end(fakeFile)
})

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

i18nextParser.on('error', (error) => {
assert.equal(error.message.startsWith('Unexpected token /'), true)
assert.match(error.message, /^Unexpected token '?\/'?/)
done()
})
i18nextParser.end(fakeFile)
Expand Down

0 comments on commit 10f3d69

Please sign in to comment.