Skip to content

Commit a1dcd3b

Browse files
authored
Drop support for Node 16 (#77)
Co-authored-by: surilindur <surilindur@users.noreply.github.com>
1 parent 837e944 commit a1dcd3b

File tree

5 files changed

+2
-48
lines changed

5 files changed

+2
-48
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
os:
3737
- ubuntu-latest
3838
node-version:
39-
- 16.x
4039
- 18.x
4140
- 20.x
4241
steps:

lib/SparqlEndpointFetcher.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'cross-fetch/polyfill';
21
import type { Readable } from 'node:stream';
32
import type * as RDF from '@rdfjs/types';
43
import { ReadableWebToNodeStream } from '@smessie/readable-web-to-node-stream';

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"@types/n3": "^1.0.0",
5050
"@types/readable-stream": "^4.0.0",
5151
"@types/sparqljs": "^3.0.0",
52-
"cross-fetch": "^4.0.0",
5352
"is-stream": "^2.0.0",
5453
"n3": "^1.0.0",
5554
"rdf-string": "^1.0.0",
@@ -75,7 +74,6 @@
7574
"ts-jest": "^29.0.0",
7675
"ts-loader": "^9.0.0",
7776
"typescript": "^5.0.0",
78-
"web-streams-ponyfill": "^1.0.0",
7977
"webpack": "^5.0.0",
8078
"webpack-cli": "^5.0.0"
8179
},

test/SparqlEndpointFetcher-test.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,12 @@ import arrayifyStream from 'arrayify-stream';
44
import { DataFactory } from 'rdf-data-factory';
55
import { SparqlEndpointFetcher } from '../lib/SparqlEndpointFetcher';
66

7-
const DF = new DataFactory();
8-
9-
if (!globalThis.ReadableStream) {
10-
// TODO: Remove this workaround and ponyfill when Node 16 support is dropped
11-
globalThis.ReadableStream = require('web-streams-ponyfill').ReadableStream;
12-
}
13-
147
// The import of 'readable-stream-node-to-web' is down here because of the above workaround
158
const readableStreamNodeToWeb = require('readable-stream-node-to-web');
169
const streamifyString = require('streamify-string');
1710

11+
const DF = new DataFactory();
12+
1813
describe('SparqlEndpointFetcher', () => {
1914
describe('constructed without fetch callback', () => {
2015
it('should have an undefined fetch function', async() => {

yarn.lock

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,13 +1979,6 @@ create-jest@^29.7.0:
19791979
jest-util "^29.7.0"
19801980
prompts "^2.0.1"
19811981

1982-
cross-fetch@^4.0.0:
1983-
version "4.0.0"
1984-
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-4.0.0.tgz#f037aef1580bb3a1a35164ea2a848ba81b445983"
1985-
integrity sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==
1986-
dependencies:
1987-
node-fetch "^2.6.12"
1988-
19891982
cross-spawn@^7.0.2, cross-spawn@^7.0.3:
19901983
version "7.0.3"
19911984
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
@@ -4516,13 +4509,6 @@ neo-async@^2.6.2:
45164509
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
45174510
integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==
45184511

4519-
node-fetch@^2.6.12:
4520-
version "2.7.0"
4521-
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d"
4522-
integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==
4523-
dependencies:
4524-
whatwg-url "^5.0.0"
4525-
45264512
node-int64@^0.4.0:
45274513
version "0.4.0"
45284514
resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b"
@@ -5711,11 +5697,6 @@ tough-cookie@~2.5.0:
57115697
psl "^1.1.28"
57125698
punycode "^2.1.1"
57135699

5714-
tr46@~0.0.3:
5715-
version "0.0.3"
5716-
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
5717-
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==
5718-
57195700
trim-newlines@^3.0.0:
57205701
version "3.0.1"
57215702
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144"
@@ -5997,16 +5978,6 @@ watchpack@^2.4.0:
59975978
glob-to-regexp "^0.4.1"
59985979
graceful-fs "^4.1.2"
59995980

6000-
web-streams-ponyfill@^1.0.0:
6001-
version "1.4.2"
6002-
resolved "https://registry.yarnpkg.com/web-streams-ponyfill/-/web-streams-ponyfill-1.4.2.tgz#0ae863cc5f7493903679f16b08cbf14d432b62f4"
6003-
integrity sha512-LCHW+fE2UBJ2vjhqJujqmoxh1ytEDEr0dPO3CabMdMDJPKmsaxzS90V1Ar6LtNE5VHLqxR4YMEj1i4lzMAccIA==
6004-
6005-
webidl-conversions@^3.0.0:
6006-
version "3.0.1"
6007-
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
6008-
integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==
6009-
60105981
webpack-cli@^5.0.0:
60115982
version "5.1.4"
60125983
resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-5.1.4.tgz#c8e046ba7eaae4911d7e71e2b25b776fcc35759b"
@@ -6070,14 +6041,6 @@ webpack@^5.0.0:
60706041
watchpack "^2.4.0"
60716042
webpack-sources "^3.2.3"
60726043

6073-
whatwg-url@^5.0.0:
6074-
version "5.0.0"
6075-
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
6076-
integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==
6077-
dependencies:
6078-
tr46 "~0.0.3"
6079-
webidl-conversions "^3.0.0"
6080-
60816044
which-boxed-primitive@^1.0.2:
60826045
version "1.0.2"
60836046
resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6"

0 commit comments

Comments
 (0)