feat!: remove node 12 and node 14 (#545)

* feat!: remove node 12 and node 14

Node 12 has been EOL since the end of April 2022 and Node 14 just became EOL at the end of April 2023

Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
This commit is contained in:
Lucas Holmquist 2023-05-03 11:10:47 -04:00 committed by GitHub
parent 4626529d56
commit 2cb9364a25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v2

2
package-lock.json generated
View File

@ -53,7 +53,7 @@
"webpack-cli": "^4.10.0"
},
"engines": {
"node": ">=12 <=20.0.0"
"node": ">=16 <=20.0.0"
}
},
"node_modules/@ampproject/remapping": {

View File

@ -158,6 +158,6 @@
},
"types": "./dist/index.d.ts",
"engines": {
"node": ">=12 <=20.0.0"
"node": ">=16 <=20.0.0"
}
}

View File

@ -56,7 +56,7 @@ describe("JSON Event Format Parser", () => {
const parser = new Parser();
// TODO: Should the parser catch the SyntaxError and re-throw a ValidationError?
expect(parser.parse.bind(parser, payload)).to.throw(SyntaxError, "Unexpected token g in JSON at position 1");
expect(parser.parse.bind(parser, payload)).to.throw(SyntaxError);
});
it("Accepts a string as valid JSON", () => {