astro-vscode 2.17.0 → 2.17.1

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.
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "color": "#17191E",
25
25
  "theme": "dark"
26
26
  },
27
- "version": "2.17.0",
27
+ "version": "2.17.1",
28
28
  "author": "withastro",
29
29
  "license": "MIT",
30
30
  "publisher": "astro-build",
@@ -237,29 +237,28 @@
237
237
  "devDependencies": {
238
238
  "@astrojs/language-server": "^2.17.0",
239
239
  "@astrojs/ts-plugin": "^1.10.12",
240
- "@types/js-yaml": "^4.0.9",
241
240
  "@types/mocha": "^10.0.10",
242
241
  "@types/node": "^22.10.6",
243
242
  "@types/vscode": "^1.101.0",
244
243
  "@volar/language-server": "~2.4.28",
245
244
  "@volar/vscode": "~2.4.28",
246
- "@vscode/test-cli": "^0.0.12",
245
+ "@vscode/test-cli": "^0.0.15",
247
246
  "@vscode/test-electron": "^3.1.0",
248
- "@vscode/vsce": "2.32.0",
247
+ "@vscode/vsce": "^4.0.0",
249
248
  "esbuild": "^0.17.19",
250
249
  "esbuild-plugin-copy": "^2.1.1",
251
- "js-yaml": "^4.3.0",
252
250
  "kleur": "^4.1.5",
253
- "mocha": "^11.7.5",
254
- "ovsx": "^0.10.10",
255
- "tsx": "^4.22.0",
256
- "vscode-languageclient": "^9.0.1",
257
- "vscode-tmgrammar-test": "^0.1.3"
251
+ "mocha": "^12.0.2",
252
+ "ovsx": "^1.2.0",
253
+ "tsx": "^4.23.13",
254
+ "vscode-languageclient": "^10.1.2",
255
+ "vscode-tmgrammar-test": "^0.1.3",
256
+ "yaml": "^2.9.1"
258
257
  },
259
258
  "dependencies": {
260
- "@astrojs/astro2tsx": "^0.1.0",
261
- "prettier": "^3.9.0",
262
- "prettier-plugin-astro": "^0.14.1"
259
+ "@astrojs/astro2tsx": "^0.1.2",
260
+ "prettier": "^3.9.6",
261
+ "prettier-plugin-astro": "^1.1.0"
263
262
  },
264
263
  "scripts": {
265
264
  "build": "tsc -b && node scripts/build.mjs -- --minify",
@@ -1,7 +1,7 @@
1
1
  // @ts-check
2
2
  import fs from 'node:fs';
3
3
  import { fileURLToPath } from 'node:url';
4
- import * as yaml from 'js-yaml';
4
+ import { parse } from 'yaml';
5
5
  import { dim, green } from 'kleur/colors';
6
6
 
7
7
  const dt = new Intl.DateTimeFormat('en-us', {
@@ -36,7 +36,7 @@ for (const grammarFile of grammarFiles) {
36
36
  * @param {URL} grammarFile
37
37
  */
38
38
  function buildGrammar(grammarFile) {
39
- const grammar = yaml.load(fs.readFileSync(grammarFile, 'utf8'));
39
+ const grammar = parse(fs.readFileSync(grammarFile, 'utf8'));
40
40
  const finalPath = fileURLToPath(grammarFile).replace('.src.yaml', '.json');
41
41
  fs.writeFileSync(finalPath, JSON.stringify(grammar, null, 2));
42
42