generator-code 1.11.11 → 1.11.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,16 +34,16 @@ extends:
34
34
  testPlatforms:
35
35
  - name: Linux
36
36
  nodeVersions:
37
- - 18.x
38
37
  - 20.x
38
+ - 22.x
39
39
  - name: MacOS
40
40
  nodeVersions:
41
- - 18.x
42
41
  - 20.x
42
+ - 22.x
43
43
  - name: Windows
44
44
  nodeVersions:
45
- - 18.x
46
45
  - 20.x
46
+ - 22.x
47
47
 
48
48
  testSteps:
49
49
  - script: npm i
@@ -7,32 +7,32 @@
7
7
  "@types/mocha": "^10.0.10",
8
8
  "@types/node": "22.x",
9
9
  "@types/assert": "^1.5.11",
10
- "@typescript-eslint/eslint-plugin": "^8.39.0",
11
- "@typescript-eslint/parser": "^8.39.0",
12
- "eslint": "^9.32.0",
10
+ "@typescript-eslint/eslint-plugin": "^8.45.0",
11
+ "@typescript-eslint/parser": "^8.45.0",
12
+ "eslint": "^9.36.0",
13
13
  "glob": "^11.0.3",
14
- "mocha": "^11.7.1",
15
- "typescript": "^5.9.2",
14
+ "mocha": "^11.7.4",
15
+ "typescript": "^5.9.3",
16
16
  "@vscode/test-cli": "^0.0.11",
17
17
  "@vscode/test-electron": "^2.5.2",
18
- "@vscode/test-web": "^0.0.72",
18
+ "@vscode/test-web": "^0.0.74",
19
19
  "@types/webpack-env": "^1.18.8",
20
- "@types/vscode-notebook-renderer": "^1.72.3",
21
- "concurrently": "^9.2.0",
20
+ "@types/vscode-notebook-renderer": "^1.72.4",
21
+ "concurrently": "^9.2.1",
22
22
  "css-loader": "^7.1.2",
23
23
  "fork-ts-checker-webpack-plugin": "^9.1.0",
24
24
  "style-loader": "^4.0.0",
25
- "ts-loader": "^9.5.2",
25
+ "ts-loader": "^9.5.4",
26
26
  "vscode-dts": "^0.3.3",
27
27
  "vscode-notebook-error-overlay": "^1.1.0",
28
- "webpack": "^5.101.0",
28
+ "webpack": "^5.102.0",
29
29
  "util": "^0.12.5",
30
30
  "webpack-cli": "^6.0.1",
31
31
  "webpack-dev-server": "^5.2.2",
32
32
  "assert": "^2.1.0",
33
33
  "process": "^0.11.10",
34
34
  "npm-run-all": "^4.1.5",
35
- "esbuild": "^0.25.8",
35
+ "esbuild": "^0.25.10",
36
36
  "@esbuild-plugins/node-globals-polyfill": "^0.2.3"
37
37
  }
38
38
  }
@@ -7,34 +7,38 @@ import * as fs from 'fs';
7
7
  import * as path from 'path';
8
8
  import { fileURLToPath } from 'url';
9
9
 
10
- const fallbackVersion = '^1.54.0';
10
+ const fallbackVersion = '^1.103.0';
11
11
  let versionPromise = undefined;
12
12
 
13
13
  export function getLatestVSCodeVersion() {
14
14
  if (!versionPromise) {
15
- versionPromise = request.xhr({ url: 'https://update.code.visualstudio.com/api/releases/stable', headers: { "X-API-Version": "2" } }).then(res => {
16
- if (res.status === 200) {
17
- try {
18
- var tagsAndCommits = JSON.parse(res.responseText);
19
- if (Array.isArray(tagsAndCommits) && tagsAndCommits.length > 0) {
20
- var segments = tagsAndCommits[0].version.split('.');
21
- if (segments.length === 3) {
22
- return '^' + segments[0] + '.' + segments[1] + '.0';
15
+ // Fetch the latest published @types/vscode version from the npm registry
16
+ // and return a caret-pinned range (e.g. ^1.93.0).
17
+ versionPromise = request
18
+ .xhr({ url: 'https://registry.npmjs.org/@types/vscode/latest', headers: { 'Accept': 'application/json' } })
19
+ .then(
20
+ res => {
21
+ if (res.status === 200) {
22
+ try {
23
+ const meta = JSON.parse(res.responseText);
24
+ if (meta && typeof meta.version === 'string' && meta.version) {
25
+ return '^' + meta.version;
26
+ }
27
+ } catch (e) {
28
+ console.log('Problem parsing @types/vscode metadata: ' + res.responseText, e);
23
29
  }
30
+ } else {
31
+ console.warn('Unable to evaluate the latest @types/vscode version: Status code: ' + res.status + ', ' + res.responseText);
24
32
  }
25
- } catch (e) {
26
- console.log('Problem parsing version: ' + res.responseText, e);
33
+ console.warn('Falling back to: ' + fallbackVersion);
34
+ return fallbackVersion;
35
+ },
36
+ err => {
37
+ console.warn('Unable to evaluate the latest @types/vscode version: Error: ', err);
38
+ console.warn('Falling back to: ' + fallbackVersion);
39
+ return fallbackVersion;
27
40
  }
28
- } else {
29
- console.warn('Unable to evaluate the latest vscode version: Status code: ' + res.status + ', ' + res.responseText);
30
- }
31
- console.warn('Falling back to: ' + fallbackVersion);
32
- return fallbackVersion;
33
- }, err => {
34
- console.warn('Unable to evaluate the latest vscode version: Error: ', err);
35
- console.warn('Falling back to: ' + fallbackVersion);
36
- return fallbackVersion;
37
- });
41
+ );
38
42
  }
39
43
  return versionPromise;
40
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-code",
3
- "version": "1.11.11",
3
+ "version": "1.11.13",
4
4
  "description": "Yeoman generator for Visual Studio Code extensions.",
5
5
  "keywords": [
6
6
  "yeoman-generator",
@@ -26,7 +26,7 @@
26
26
  "url": "https://github.com/Microsoft"
27
27
  },
28
28
  "engines": {
29
- "node": "^18.17.0 || >=20.5.0"
29
+ "node": ">=20.5.0"
30
30
  },
31
31
  "scripts": {
32
32
  "test": "mocha",
@@ -35,7 +35,7 @@
35
35
  "postversion": "git push && git push --tags"
36
36
  },
37
37
  "dependencies": {
38
- "chalk": "^5.5.0",
38
+ "chalk": "^5.6.2",
39
39
  "fast-plist": "^0.1.3",
40
40
  "request-light": "^0.8.0",
41
41
  "which": "^5.0.0",
@@ -44,10 +44,10 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/mocha": "^10.0.10",
47
- "@types/node": "^18.19.57",
48
- "mocha": "^11.7.1",
49
- "yeoman-environment": "^4.4.3",
50
- "yeoman-test": "^10.1.1",
47
+ "@types/node": "^20.x",
48
+ "mocha": "^11.7.4",
49
+ "yeoman-environment": "^5.0.0",
50
+ "yeoman-test": "^11.0.0",
51
51
  "jsonc-parser": "^3.3.1"
52
52
  }
53
53
  }