Skip to content

Commit 6daf5a7

Browse files
authored
Upgrade dependencies
1 parent 8685638 commit 6daf5a7

File tree

5 files changed

+1624
-2253
lines changed

5 files changed

+1624
-2253
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ jobs:
55
lint:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
9-
- uses: actions/cache@v2
8+
- uses: actions/checkout@v3
9+
- uses: actions/cache@v3
1010
with:
1111
path: '**/node_modules'
1212
key: ${{ runner.os }}-lint-modules-${{ hashFiles('**/yarn.lock') }}
13-
- uses: actions/setup-node@v2
13+
- uses: actions/setup-node@v3
1414
with:
15-
node-version: 14.x
15+
node-version: 18.x
1616
- run: yarn install
1717
- run: yarn run lint
1818

@@ -25,16 +25,17 @@ jobs:
2525
- 12.x
2626
- 14.x
2727
- 16.x
28+
- 18.x
2829
steps:
2930
- name: Use Node.js ${{ matrix.node-version }}
30-
uses: actions/setup-node@v2
31+
uses: actions/setup-node@v3
3132
with:
3233
node-version: ${{ matrix.node-version }}
3334
- name: Ensure line endings are consistent
3435
run: git config --global core.autocrlf input
3536
- name: Check out repository
36-
uses: actions/checkout@v2
37-
- uses: actions/cache@v2
37+
uses: actions/checkout@v3
38+
- uses: actions/cache@v3
3839
with:
3940
path: '**/node_modules'
4041
key: ${{ runner.os }}-test-modules-${{ hashFiles('**/yarn.lock') }}
@@ -60,6 +61,7 @@ jobs:
6061
with:
6162
github-token: ${{ secrets.github_token }}
6263
parallel-finished: true
64+
6365
spec:
6466
runs-on: ${{ matrix.os }}
6567
strategy:
@@ -69,14 +71,15 @@ jobs:
6971
- 12.x
7072
- 14.x
7173
- 16.x
74+
- 18.x
7275
steps:
7376
- name: Use Node.js ${{ matrix.node-version }}
74-
uses: actions/setup-node@v2
77+
uses: actions/setup-node@v3
7578
with:
7679
node-version: ${{ matrix.node-version }}
7780
- name: Check out repository
78-
uses: actions/checkout@v2
79-
- uses: actions/cache@v2
81+
uses: actions/checkout@v3
82+
- uses: actions/cache@v3
8083
with:
8184
path: |
8285
**/node_modules

lib/RdfXmlParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export class RdfXmlParser extends Transform implements RDF.Sink<EventEmitter, RD
184184
return parsed;
185185
}
186186

187-
public _transform(chunk: any, encoding: string, callback: TransformCallback) {
187+
public _transform(chunk: any, encoding: BufferEncoding, callback: TransformCallback) {
188188
try {
189189
this.saxStream.write(chunk, encoding);
190190
} catch (e) {

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,28 @@
3232
"test"
3333
],
3434
"devDependencies": {
35-
"@types/jest": "^27.0.0",
35+
"@types/jest": "^28.1.4",
3636
"@types/minimist": "^1.2.0",
3737
"@types/sax": "^1.0.1",
38-
"arrayify-stream": "^1.0.0",
38+
"arrayify-stream": "^2.0.0",
3939
"coveralls": "^3.0.0",
40-
"jest": "^27.0.1",
40+
"jest": "^28.1.2",
4141
"jest-rdf": "^1.7.0",
4242
"manual-git-changelog": "^1.0.0",
4343
"pre-commit": "^1.2.2",
4444
"rdf-quad": "^1.5.0",
4545
"rdf-test-suite": "^1.13.4",
4646
"streamify-array": "^1.0.0",
4747
"streamify-string": "^1.0.1",
48-
"ts-jest": "^27.0.1",
48+
"ts-jest": "^28.0.5",
4949
"tslint": "^6.0.0",
5050
"tslint-eslint-rules": "^5.3.1",
5151
"typescript": "^4.3.5"
5252
},
5353
"jest": {
5454
"globals": {
5555
"ts-jest": {
56-
"tsConfig": "test/tsconfig.json"
56+
"tsconfig": "test/tsconfig.json"
5757
}
5858
},
5959
"setupFilesAfterEnv": [

test/RdfXmlParser-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {RdfXmlParser} from "../lib/RdfXmlParser";
66
import {DataFactory} from "rdf-data-factory";
77
const streamifyString = require('streamify-string');
88
const streamifyArray = require('streamify-array');
9-
const arrayifyStream = require('arrayify-stream');
9+
import arrayifyStream from 'arrayify-stream';
1010
const quad = require('rdf-quad');
1111
const DF = new DataFactory();
1212

@@ -334,7 +334,7 @@ abc`)).rejects.toBeTruthy();
334334

335335
it('throw an error on a relative URI when no baseIRI is given', () => {
336336
expect(() => parser.valueToUri('abc', {}))
337-
.toThrow(new Error('Invalid URI: abc'));
337+
.toThrow(new Error('Found invalid relative IRI \'abc\' for a missing baseIRI'));
338338
});
339339

340340
it('create error on a URI with an invalid scheme', () => {

0 commit comments

Comments
 (0)