diff --git a/.changeset/shiny-balloons-try.md b/.changeset/shiny-balloons-try.md new file mode 100644 index 000000000000..44e71ff08056 --- /dev/null +++ b/.changeset/shiny-balloons-try.md @@ -0,0 +1,6 @@ +--- +"@sveltejs/adapter-node": patch +"@sveltejs/kit": patch +--- + +fix: upgrade `sirv` and `mrmime` to modernize javascript mime type diff --git a/packages/adapter-node/package.json b/packages/adapter-node/package.json index b5ce415cc5c5..e236e91c2555 100644 --- a/packages/adapter-node/package.json +++ b/packages/adapter-node/package.json @@ -39,7 +39,7 @@ "@types/node": "^18.19.3", "c8": "^8.0.1", "polka": "1.0.0-next.24", - "sirv": "^2.0.3", + "sirv": "^2.0.4", "typescript": "^5.3.3", "vitest": "^1.0.4" }, diff --git a/packages/adapter-static/package.json b/packages/adapter-static/package.json index 4a97079d27a7..f6188d8ce8f2 100644 --- a/packages/adapter-static/package.json +++ b/packages/adapter-static/package.json @@ -34,7 +34,7 @@ "@sveltejs/kit": "workspace:^", "@sveltejs/vite-plugin-svelte": "^3.0.1", "@types/node": "^18.19.3", - "sirv": "^2.0.3", + "sirv": "^2.0.4", "svelte": "^4.2.8", "typescript": "^5.3.3", "vite": "^5.0.8" diff --git a/packages/kit/package.json b/packages/kit/package.json index 2ab837cdc672..28be8889dd97 100644 --- a/packages/kit/package.json +++ b/packages/kit/package.json @@ -17,10 +17,10 @@ "esm-env": "^1.0.0", "kleur": "^4.1.5", "magic-string": "^0.30.5", - "mrmime": "^1.0.1", + "mrmime": "^2.0.0", "sade": "^1.8.1", "set-cookie-parser": "^2.6.0", - "sirv": "^2.0.3", + "sirv": "^2.0.4", "tiny-glob": "^0.2.9" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6dab71904371..06d7df027c06 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -197,8 +197,8 @@ importers: specifier: 1.0.0-next.24 version: 1.0.0-next.24 sirv: - specifier: ^2.0.3 - version: 2.0.3 + specifier: ^2.0.4 + version: 2.0.4 typescript: specifier: ^5.3.3 version: 5.3.3 @@ -221,8 +221,8 @@ importers: specifier: ^18.19.3 version: 18.19.3 sirv: - specifier: ^2.0.3 - version: 2.0.3 + specifier: ^2.0.4 + version: 2.0.4 svelte: specifier: ^4.2.8 version: 4.2.8 @@ -432,8 +432,8 @@ importers: specifier: ^0.30.5 version: 0.30.5 mrmime: - specifier: ^1.0.1 - version: 1.0.1 + specifier: ^2.0.0 + version: 2.0.0 sade: specifier: ^1.8.1 version: 1.8.1 @@ -441,8 +441,8 @@ importers: specifier: ^2.6.0 version: 2.6.0 sirv: - specifier: ^2.0.3 - version: 2.0.3 + specifier: ^2.0.4 + version: 2.0.4 tiny-glob: specifier: ^0.2.9 version: 0.2.9 @@ -4777,6 +4777,11 @@ packages: /mrmime@1.0.1: resolution: {integrity: sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==} engines: {node: '>=10'} + dev: false + + /mrmime@2.0.0: + resolution: {integrity: sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==} + engines: {node: '>=10'} /ms@2.1.2: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} @@ -5602,16 +5607,16 @@ packages: local-access: 1.1.0 sade: 1.8.1 semiver: 1.1.0 - sirv: 2.0.3 + sirv: 2.0.4 tinydate: 1.3.0 dev: true - /sirv@2.0.3: - resolution: {integrity: sha512-O9jm9BsID1P+0HOi81VpXPoDxYP374pkOLzACAoyUQ/3OUVndNpsz6wMnY2z+yOxzbllCKZrM+9QrWsv4THnyA==} + /sirv@2.0.4: + resolution: {integrity: sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==} engines: {node: '>= 10'} dependencies: '@polka/url': 1.0.0-next.24 - mrmime: 1.0.1 + mrmime: 2.0.0 totalist: 3.0.1 /sisteransi@1.0.5: