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:
parent
4626529d56
commit
2cb9364a25
|
@ -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
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
"webpack-cli": "^4.10.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12 <=20.0.0"
|
||||
"node": ">=16 <=20.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@ampproject/remapping": {
|
||||
|
|
|
@ -158,6 +158,6 @@
|
|||
},
|
||||
"types": "./dist/index.d.ts",
|
||||
"engines": {
|
||||
"node": ">=12 <=20.0.0"
|
||||
"node": ">=16 <=20.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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", () => {
|
||||
|
|
Loading…
Reference in New Issue