From 38c562f7755ed95a308f20f73b95254d399311e7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 24 Sep 2026 22:06:53 -0700 Subject: [PATCH] chore(deps): bump whatwg-mimetype and @types/whatwg-mimetype (#697) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gregory Schier --- apps/yaak-client/lib/contentType.ts | 8 ++++---- apps/yaak-client/package.json | 4 ++-- package-lock.json | 18 +++++++++--------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/apps/yaak-client/lib/contentType.ts b/apps/yaak-client/lib/contentType.ts index 326f8a8cd..2c198282f 100644 --- a/apps/yaak-client/lib/contentType.ts +++ b/apps/yaak-client/lib/contentType.ts @@ -1,4 +1,4 @@ -import MimeType from "whatwg-mimetype"; +import { MIMEType } from "whatwg-mimetype"; import type { EditorProps } from "../components/core/Editor/Editor"; export function languageFromContentType( @@ -90,10 +90,10 @@ export function isProbablyTextContentType(contentType: string | null): boolean { ].some((textType) => normalized === textType || normalized.endsWith(textType)); } -export function getMimeTypeFromContentType(contentType: string): MimeType { +export function getMimeTypeFromContentType(contentType: string): MIMEType { try { - return new MimeType(contentType); + return new MIMEType(contentType); } catch { - return new MimeType("text/plain"); + return new MIMEType("text/plain"); } } diff --git a/apps/yaak-client/package.json b/apps/yaak-client/package.json index 0410a881c..181ab367f 100644 --- a/apps/yaak-client/package.json +++ b/apps/yaak-client/package.json @@ -73,7 +73,7 @@ "slugify": "^1.6.6", "uuid": "^14.0.0", "vkbeautify": "^0.99.3", - "whatwg-mimetype": "^4.0.0", + "whatwg-mimetype": "^5.0.0", "yaml": "^2.8.3" }, "devDependencies": { @@ -88,7 +88,7 @@ "@types/react-dom": "^19.2.0", "@types/react-syntax-highlighter": "^15.5.13", "@types/uuid": "^10.0.0", - "@types/whatwg-mimetype": "^3.0.2", + "@types/whatwg-mimetype": "^5.0.0", "@vitejs/plugin-react": "^6.0.1", "@yaakapp-internal/theme": "^1.0.0", "@yaakapp-internal/ui": "^1.0.0", diff --git a/package-lock.json b/package-lock.json index 93f9c5373..3bb9d07c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -172,7 +172,7 @@ "slugify": "^1.6.6", "uuid": "^14.0.0", "vkbeautify": "^0.99.3", - "whatwg-mimetype": "^4.0.0", + "whatwg-mimetype": "^5.0.0", "yaml": "^2.8.3" }, "devDependencies": { @@ -187,7 +187,7 @@ "@types/react-dom": "^19.2.0", "@types/react-syntax-highlighter": "^15.5.13", "@types/uuid": "^10.0.0", - "@types/whatwg-mimetype": "^3.0.2", + "@types/whatwg-mimetype": "^5.0.0", "@vitejs/plugin-react": "^6.0.1", "@yaakapp-internal/theme": "^1.0.0", "@yaakapp-internal/ui": "^1.0.0", @@ -4664,9 +4664,9 @@ "license": "MIT" }, "node_modules/@types/whatwg-mimetype": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/whatwg-mimetype/-/whatwg-mimetype-3.0.2.tgz", - "integrity": "sha512-c2AKvDT8ToxLIOUlN51gTiHXflsfIFisS4pO7pDPoKouJCESkhZnEy623gwP9laCy5lnLDAw1vAzu2vM2YLOrA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@types/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz", + "integrity": "sha512-YYiBDCoqBgDIF2ByYn4qDb4RaXZ46cOQ6j2We1Ni3bikFNI7YFeL8jxSiYowWsriZrb1mw09CLZ+b+ZkIhsLVw==", "dev": true, "license": "MIT" }, @@ -14638,12 +14638,12 @@ "license": "MIT" }, "node_modules/whatwg-mimetype": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz", - "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz", + "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=20" } }, "node_modules/whatwg-url": {