From 1d98b27a6643d6b6cbc4d9d426d6d5acc4b45e2a Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 18 Jan 2023 14:46:27 +0100 Subject: [PATCH] chore: update node types version (#36924) --- npm/package.json | 2 +- package.json | 2 +- spec/types-spec.ts | 3 +-- yarn.lock | 8 ++++---- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/npm/package.json b/npm/package.json index c17b4afa7f..393ad0695c 100644 --- a/npm/package.json +++ b/npm/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@electron/get": "^2.0.0", - "@types/node": "^16.11.26", + "@types/node": "^18.11.18", "extract-zip": "^2.0.1" }, "engines": { diff --git a/package.json b/package.json index 76a6dec6c3..7c97073f14 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@types/klaw": "^3.0.1", "@types/minimist": "^1.2.0", "@types/mocha": "^7.0.2", - "@types/node": "^16.11.26", + "@types/node": "^18.11.18", "@types/semver": "^7.3.3", "@types/send": "^0.14.5", "@types/split": "^1.0.0", diff --git a/spec/types-spec.ts b/spec/types-spec.ts index 2ccf650aed..a635b64da6 100644 --- a/spec/types-spec.ts +++ b/spec/types-spec.ts @@ -5,7 +5,6 @@ describe('bundled @types/node', () => { expect(require('../npm/package.json').dependencies).to.have.property('@types/node'); const range = require('../npm/package.json').dependencies['@types/node']; expect(range).to.match(/^\^.+/, 'should allow any type dep in a major range'); - // TODO(codebytere): re-enable after https://github.com/DefinitelyTyped/DefinitelyTyped/pull/52594 is merged. - // expect(range.slice(1).split('.')[0]).to.equal(process.versions.node.split('.')[0]); + expect(range.slice(1).split('.')[0]).to.equal(process.versions.node.split('.')[0]); }); }); diff --git a/yarn.lock b/yarn.lock index c86ff3ca47..babd8a100d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -912,10 +912,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-16.4.13.tgz#7dfd9c14661edc65cccd43a29eb454174642370d" integrity sha512-bLL69sKtd25w7p1nvg9pigE4gtKVpGTPojBFLMkGHXuUgap2sLqQt2qUnqmVCDfzGUL0DRNZP+1prIZJbMeAXg== -"@types/node@^16.11.26": - version "16.11.26" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.26.tgz#63d204d136c9916fb4dcd1b50f9740fe86884e47" - integrity sha512-GZ7bu5A6+4DtG7q9GsoHXy3ALcgeIHP4NnL0Vv2wu0uUB/yQex26v0tf6/na1mm0+bS9Uw+0DFex7aaKr2qawQ== +"@types/node@^18.11.18": + version "18.11.18" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.18.tgz#8dfb97f0da23c2293e554c5a50d61ef134d7697f" + integrity sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA== "@types/parse-json@^4.0.0": version "4.0.0"