diff --git a/.changeset/tame-hairs-cheer.md b/.changeset/tame-hairs-cheer.md new file mode 100644 index 000000000000..fa1a1fe9b607 --- /dev/null +++ b/.changeset/tame-hairs-cheer.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Remove `network-information-types` package since TypeScript supports Network Information API natively. diff --git a/packages/astro/package.json b/packages/astro/package.json index 0936b9509327..00aa86af9f91 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -211,7 +211,6 @@ "eol": "^0.9.1", "memfs": "^4.2.1", "mocha": "^10.2.0", - "network-information-types": "^0.1.1", "node-mocks-http": "^1.13.0", "parse-srcset": "^1.0.2", "rehype-autolink-headings": "^6.1.1", diff --git a/packages/astro/tsconfig.json b/packages/astro/tsconfig.json index e36a58321e89..a9172654793b 100644 --- a/packages/astro/tsconfig.json +++ b/packages/astro/tsconfig.json @@ -6,6 +6,6 @@ "declarationDir": "./dist", "outDir": "./dist", "jsx": "preserve", - "types": ["@types/dom-view-transitions", "network-information-types"] + "types": ["@types/dom-view-transitions"] } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1d6c99c481a2..d3694d25adc4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -627,7 +627,7 @@ importers: version: 7.1.0 tsconfck: specifier: 3.0.0-next.9 - version: 3.0.0-next.9(typescript@5.1.6) + version: 3.0.0-next.9 unist-util-visit: specifier: ^4.1.2 version: 4.1.2 @@ -636,7 +636,7 @@ importers: version: 5.3.7 vite: specifier: ^4.4.9 - version: 4.4.9(@types/node@18.17.8)(sass@1.66.1) + version: 4.4.9(sass@1.66.1) vitefu: specifier: ^0.2.4 version: 0.2.4(vite@4.4.9) @@ -656,7 +656,7 @@ importers: devDependencies: '@astrojs/check': specifier: ^0.1.0 - version: 0.1.0(prettier-plugin-astro@0.12.0)(prettier@3.0.3)(typescript@5.1.6) + version: 0.1.0 '@playwright/test': specifier: ^1.37.1 version: 1.37.1 @@ -747,9 +747,6 @@ importers: mocha: specifier: ^10.2.0 version: 10.2.0 - network-information-types: - specifier: ^0.1.1 - version: 0.1.1(typescript@5.1.6) node-mocks-http: specifier: ^1.13.0 version: 1.13.0 @@ -5175,6 +5172,22 @@ packages: lite-youtube-embed: 0.2.0 dev: false + /@astrojs/check@0.1.0: + resolution: {integrity: sha512-tgjq+Vehgv0dwdsRlT4ai3QgT3etn8W5C4E4dvQ0Xe9ccwjKdMTWmpty5exfBtHLLAAOvwe5/OkYQsQ9OyKoVw==} + hasBin: true + peerDependencies: + typescript: ^5.0.0 + dependencies: + '@astrojs/language-server': 2.3.0 + chokidar: 3.5.3 + fast-glob: 3.3.1 + kleur: 4.1.5 + yargs: 17.7.2 + transitivePeerDependencies: + - prettier + - prettier-plugin-astro + dev: true + /@astrojs/check@0.1.0(prettier-plugin-astro@0.12.0)(prettier@3.0.3)(typescript@5.1.6): resolution: {integrity: sha512-tgjq+Vehgv0dwdsRlT4ai3QgT3etn8W5C4E4dvQ0Xe9ccwjKdMTWmpty5exfBtHLLAAOvwe5/OkYQsQ9OyKoVw==} hasBin: true @@ -5213,6 +5226,40 @@ packages: resolution: {integrity: sha512-Mp+qrNhly+27bL/Zq8lGeUY+YrdoU0eDfIlAeGIPrzt0PnI/jGpvPUdCaugv4zbCrDkOUScFfcbeEiYumrdJnw==} dev: false + /@astrojs/language-server@2.3.0: + resolution: {integrity: sha512-NFSzszjR4+f0+fTUCuFKXrLWusJFqWvHMrIzHB0lXUE8dt3Dm1Ok9Emrdj3s3BvlguJz05MV9xSIz1puMvomtQ==} + hasBin: true + peerDependencies: + prettier: ^3.0.0 + prettier-plugin-astro: '>=0.11.0' + peerDependenciesMeta: + prettier: + optional: true + prettier-plugin-astro: + optional: true + dependencies: + '@astrojs/compiler': 1.5.7 + '@jridgewell/sourcemap-codec': 1.4.15 + '@volar/kit': 1.10.0 + '@volar/language-core': 1.10.0 + '@volar/language-server': 1.10.0 + '@volar/language-service': 1.10.0 + '@volar/source-map': 1.10.0 + '@volar/typescript': 1.10.0 + fast-glob: 3.3.1 + muggle-string: 0.3.1 + volar-service-css: 0.0.11(@volar/language-service@1.10.0) + volar-service-emmet: 0.0.11(@volar/language-service@1.10.0) + volar-service-html: 0.0.11(@volar/language-service@1.10.0) + volar-service-prettier: 0.0.11(@volar/language-service@1.10.0) + volar-service-typescript: 0.0.11(@volar/language-service@1.10.0)(@volar/typescript@1.10.0) + volar-service-typescript-twoslash-queries: 0.0.11(@volar/language-service@1.10.0) + vscode-html-languageservice: 5.0.6 + vscode-uri: 3.0.7 + transitivePeerDependencies: + - typescript + dev: true + /@astrojs/language-server@2.3.0(prettier-plugin-astro@0.12.0)(prettier@3.0.3)(typescript@5.1.6): resolution: {integrity: sha512-NFSzszjR4+f0+fTUCuFKXrLWusJFqWvHMrIzHB0lXUE8dt3Dm1Ok9Emrdj3s3BvlguJz05MV9xSIz1puMvomtQ==} hasBin: true @@ -9325,6 +9372,17 @@ packages: pretty-format: 29.6.3 dev: false + /@volar/kit@1.10.0: + resolution: {integrity: sha512-3ijH2Gqe8kWnij58rwaBID22J/b+VT457ZEf5TwyPDqHTrfNCZIVitpdD5WlLD4Wy/D0Vymwj2ct9TNc1hkOmQ==} + peerDependencies: + typescript: '*' + dependencies: + '@volar/language-service': 1.10.0 + typesafe-path: 0.2.2 + vscode-languageserver-textdocument: 1.0.8 + vscode-uri: 3.0.7 + dev: true + /@volar/kit@1.10.0(typescript@5.1.6): resolution: {integrity: sha512-3ijH2Gqe8kWnij58rwaBID22J/b+VT457ZEf5TwyPDqHTrfNCZIVitpdD5WlLD4Wy/D0Vymwj2ct9TNc1hkOmQ==} peerDependencies: @@ -10945,6 +11003,7 @@ packages: /detect-libc@2.0.2: resolution: {integrity: sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==} engines: {node: '>=8'} + requiresBuild: true /devalue@4.3.2: resolution: {integrity: sha512-KqFl6pOgOW+Y6wJgu80rHpo2/3H07vr8ntR9rkkFIRETewbf5GaYYcakYfiKz89K+sLsuPkQIZaXDMjUObZwWg==} @@ -14281,6 +14340,7 @@ packages: /minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + requiresBuild: true /minipass@3.3.6: resolution: {integrity: sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==} @@ -14445,14 +14505,6 @@ packages: engines: {node: '>= 0.6'} dev: true - /network-information-types@0.1.1(typescript@5.1.6): - resolution: {integrity: sha512-mLXNafJYOkiJB6IlF727YWssTRpXitR+tKSLyA5VAdBi3SOvLf5gtizHgxf241YHPWocnAO/fAhVrB/68tPHDw==} - peerDependencies: - typescript: '>= 3.0.0' - dependencies: - typescript: 5.1.6 - dev: true - /nice-try@1.0.5: resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==} dev: true @@ -15433,6 +15485,7 @@ packages: resolution: {integrity: sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==} engines: {node: '>=10'} hasBin: true + requiresBuild: true dependencies: detect-libc: 2.0.2 expand-template: 2.0.3 @@ -16748,6 +16801,7 @@ packages: /strip-json-comments@2.0.1: resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==} engines: {node: '>=0.10.0'} + requiresBuild: true /strip-json-comments@3.1.1: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} @@ -17145,7 +17199,7 @@ packages: code-block-writer: 12.0.0 dev: true - /tsconfck@3.0.0-next.9(typescript@5.1.6): + /tsconfck@3.0.0-next.9: resolution: {integrity: sha512-bgVlu3qcRUZpm9Au1IHiPDkb8XU+72bRkXrBaJsiAjIlixtkbKLe4q1odrrqG0rVHvh0Q4R3adT/nh1FwzftXA==} engines: {node: ^18 || >=20} hasBin: true @@ -17154,8 +17208,6 @@ packages: peerDependenciesMeta: typescript: optional: true - dependencies: - typescript: 5.1.6 dev: false /tsconfig-resolver@3.0.1: @@ -17907,6 +17959,42 @@ packages: fsevents: 2.3.3 dev: false + /vite@4.4.9(sass@1.66.1): + resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} + engines: {node: ^14.18.0 || >=16.0.0} + hasBin: true + peerDependencies: + '@types/node': '>= 14' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + esbuild: 0.18.20 + postcss: 8.4.28 + rollup: 3.28.1 + sass: 1.66.1 + optionalDependencies: + fsevents: 2.3.3 + dev: false + /vitefu@0.2.4(vite@4.4.9): resolution: {integrity: sha512-fanAXjSaf9xXtOOeno8wZXIhgia+CZury481LsDaV++lSvcU2R9Ch2bPh3PYFyoHW+w9LqAeYRISVQjUIew14g==} peerDependencies: @@ -17915,7 +18003,7 @@ packages: vite: optional: true dependencies: - vite: 4.4.9(@types/node@18.17.8)(sass@1.66.1) + vite: 4.4.9(sass@1.66.1) dev: false /vitest@0.34.2: @@ -18022,6 +18110,20 @@ packages: vscode-uri: 3.0.7 dev: true + /volar-service-prettier@0.0.11(@volar/language-service@1.10.0): + resolution: {integrity: sha512-A4vEU5BUitNNAySb+t/fCjEoL01uYUkoe/Fe5UxR3JJbdgr2nTeXb5IlW90/1vzmnTKZznadJV4i1SoAf2CRbg==} + peerDependencies: + '@volar/language-service': ~1.10.0 + prettier: ^2.2 || ^3.0 + peerDependenciesMeta: + '@volar/language-service': + optional: true + prettier: + optional: true + dependencies: + '@volar/language-service': 1.10.0 + dev: true + /volar-service-prettier@0.0.11(@volar/language-service@1.10.0)(prettier@3.0.3): resolution: {integrity: sha512-A4vEU5BUitNNAySb+t/fCjEoL01uYUkoe/Fe5UxR3JJbdgr2nTeXb5IlW90/1vzmnTKZznadJV4i1SoAf2CRbg==} peerDependencies: