diff --git a/.changeset/fresh-dodos-switch.md b/.changeset/fresh-dodos-switch.md new file mode 100644 index 00000000..fc242e9d --- /dev/null +++ b/.changeset/fresh-dodos-switch.md @@ -0,0 +1,6 @@ +--- +"@marko/language-server": patch +"marko-vscode": patch +--- + +Upgrade prettier-plugin-marko to fix script tag printing. diff --git a/package-lock.json b/package-lock.json index 029b9262..3bec1519 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,20 +13,20 @@ "@changesets/cli": "^2.27.10", "@eslint/js": "^9.16.0", "@types/mocha": "^10.0.10", - "@types/node": "^22.10.1", + "@types/node": "^22.10.2", "esbuild": "^0.24.0", "eslint": "^9.16.0", "eslint-formatter-unix": "^8.40.0", "eslint-plugin-simple-import-sort": "^12.1.1", "fast-glob": "^3.3.2", "husky": "^9.1.7", - "lint-staged": "^15.2.10", + "lint-staged": "^15.2.11", "mocha": "^11.0.1", "mocha-snap": "^5.0.0", "prettier": "^3.4.2", "tsx": "^4.19.2", "typescript": "^5.7.2", - "typescript-eslint": "^8.17.0" + "typescript-eslint": "^8.18.0" } }, "node_modules/@ampproject/remapping": { @@ -1655,9 +1655,9 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", + "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", "license": "MIT", "dependencies": { "@jridgewell/set-array": "^1.2.1", @@ -3011,6 +3011,23 @@ "node": ">= 0.4" } }, + "node_modules/call-bound": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.2.tgz", + "integrity": "sha512-0lk0PHFe/uz0vl527fG9CgdE9WdafjDbCXvBbs+LUv000TVt2Jjhqbs4Jwm8gz070w8xXyEAxrPOMullsxXeGg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "get-intrinsic": "^1.2.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -3904,6 +3921,19 @@ "node": ">= 0.4" } }, + "node_modules/es-object-atoms": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", + "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/esbuild": { "version": "0.24.0", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.24.0.tgz", @@ -4577,20 +4607,22 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.5.tgz", - "integrity": "sha512-Y4+pKa7XeRUPWFNvOOYHkRYrfzW07oraURSvjDmRVOJ748OrVmeXtpE4+GCEHncjCjkTxPNRt8kEbxDhsn6VTg==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.6.tgz", + "integrity": "sha512-qxsEs+9A+u85HhllWJJFicJfPDhRmjzoYdl64aMWW9yRIJmSyxdn8IEkuIM530/7T+lv0TIHd8L6Q/ra0tEoeA==", "dev": true, "license": "MIT", "dependencies": { - "call-bind-apply-helpers": "^1.0.0", + "call-bind-apply-helpers": "^1.0.1", "dunder-proto": "^1.0.0", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", "function-bind": "^1.1.2", "gopd": "^1.2.0", "has-symbols": "^1.1.0", - "hasown": "^2.0.2" + "hasown": "^2.0.2", + "math-intrinsics": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -5953,6 +5985,16 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/math-intrinsics": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.0.0.tgz", + "integrity": "sha512-4MqMiKP90ybymYvsut0CH2g4XWbfLtmlCkXmtmdcDCxNB+mQcu1w/1+L/VD7vi/PSv7X2JYV7SCcR+jiPXnQtA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/mdurl": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", @@ -7064,9 +7106,9 @@ } }, "node_modules/prettier-plugin-marko": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/prettier-plugin-marko/-/prettier-plugin-marko-3.1.9.tgz", - "integrity": "sha512-Q+4G8+6RtfnbZrfQfAHCj4+blKbSS5gOSOuHMQOHWe99L6SqXAgWSY1ayUhWGwYe56EUxn38u39ZdlPTwELfEg==", + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/prettier-plugin-marko/-/prettier-plugin-marko-3.1.10.tgz", + "integrity": "sha512-lRp3FyyHqJI58SZcRYYubtFL4BrH9Jx0PTQR9xAWH1oUvAiHy5o1UgRls8ZFAhbZQv8TdhMo/uu4pylO4L/uCg==", "license": "MIT", "peerDependencies": { "@marko/compiler": "^5", @@ -7518,16 +7560,73 @@ } }, "node_modules/side-channel": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", - "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", "dev": true, "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4", - "object-inspect": "^1.13.1" + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -9282,7 +9381,7 @@ "jsdom": "^25.0.1", "marko": "^5.36.3", "prettier": "^3.4.2", - "prettier-plugin-marko": "^3.1.9", + "prettier-plugin-marko": "^3.1.10", "relative-import-path": "^1.0.0", "typescript": "^5.7.2", "vscode-css-languageservice": "^6.3.2", @@ -9358,6 +9457,9 @@ "engines": { "vscode": "^1.80.0" } + }, + "packages/vscode/node_modules/marko-ts-plugin": { + "extraneous": true } } } diff --git a/package.json b/package.json index 113fda58..de0226d1 100644 --- a/package.json +++ b/package.json @@ -5,20 +5,20 @@ "@changesets/cli": "^2.27.10", "@eslint/js": "^9.16.0", "@types/mocha": "^10.0.10", - "@types/node": "^22.10.1", + "@types/node": "^22.10.2", "esbuild": "^0.24.0", "eslint": "^9.16.0", "eslint-formatter-unix": "^8.40.0", "eslint-plugin-simple-import-sort": "^12.1.1", "fast-glob": "^3.3.2", "husky": "^9.1.7", - "lint-staged": "^15.2.10", + "lint-staged": "^15.2.11", "mocha": "^11.0.1", "mocha-snap": "^5.0.0", "prettier": "^3.4.2", "tsx": "^4.19.2", "typescript": "^5.7.2", - "typescript-eslint": "^8.17.0" + "typescript-eslint": "^8.18.0" }, "private": true, "scripts": { diff --git a/packages/language-server/package.json b/packages/language-server/package.json index 3c7f271e..dcf0e8e6 100644 --- a/packages/language-server/package.json +++ b/packages/language-server/package.json @@ -15,7 +15,7 @@ "htmljs-parser": "^5.5.3", "marko": "^5.36.3", "prettier": "^3.4.2", - "prettier-plugin-marko": "^3.1.9", + "prettier-plugin-marko": "^3.1.10", "relative-import-path": "^1.0.0", "typescript": "^5.7.2", "vscode-css-languageservice": "^6.3.2",