From 757859f29ce5ccfabbe06368cc8d440c84f46f46 Mon Sep 17 00:00:00 2001 From: Borewit Date: Wed, 16 Jul 2025 11:19:39 +0200 Subject: [PATCH] Update Biome to 2.1.1 --- README.md | 1 - biome.jsonc | 2 +- example/javascript/parseWebStream.js | 3 +- package.json | 5 +- yarn.lock | 74 ++++++++++++++-------------- 5 files changed, 42 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index 7d7ddcd0..98cf19f2 100644 --- a/README.md +++ b/README.md @@ -328,7 +328,6 @@ import { parseWebStream } from 'music-metadata'; // Extract the Content-Length header and convert it to a number const contentLength = response.headers.get('Content-Length'); - const contentType = response.headers.get('Content-Type'); const size = contentLength ? parseInt(contentLength, 10) : undefined; // Parse the metadata from the web stream diff --git a/biome.jsonc b/biome.jsonc index c3b9c457..babaec87 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/2.0.6/schema.json", + "$schema": "https://biomejs.dev/schemas/2.1.1/schema.json", "assist": { "actions": { "source": { "organizeImports": "off" } } }, "formatter": { "enabled": false diff --git a/example/javascript/parseWebStream.js b/example/javascript/parseWebStream.js index f457a33e..9ac6ef57 100644 --- a/example/javascript/parseWebStream.js +++ b/example/javascript/parseWebStream.js @@ -7,8 +7,7 @@ import { parseWebStream } from 'music-metadata'; // Extract the Content-Length header and convert it to a number const contentLength = response.headers.get('Content-Length'); - const contentType = response.headers.get('Content-Type'); - const size = contentLength ? parseInt(contentLength, 10) : undefined; + const size = contentLength ? Number.parseInt(contentLength, 10) : undefined; // Parse the metadata from the web stream const metadata = await parseWebStream(response.body, { diff --git a/package.json b/package.json index c45d8340..e882483c 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,8 @@ "test-coverage": "c8 yarn run test", "send-codacy": "c8 report --reporter=text-lcov | codacy-coverage", "doc-gen": "yarn node doc-gen/gen.js", - "typecheck": "tsc --project ./lib/tsconfig.json --noEmit && tsc --project ./test/tsconfig.json --noEmit" + "typecheck": "tsc --project ./lib/tsconfig.json --noEmit && tsc --project ./test/tsconfig.json --noEmit", + "update-biome": "yarn add -D --exact @biomejs/biome && npx @biomejs/biome migrate --write" }, "dependencies": { "@tokenizer/token": "^0.3.0", @@ -115,7 +116,7 @@ "uint8array-extras": "^1.4.0" }, "devDependencies": { - "@biomejs/biome": "2.0.6", + "@biomejs/biome": "2.1.1", "@types/chai": "^5.2.2", "@types/chai-as-promised": "^8.0.2", "@types/content-type": "^1.1.9", diff --git a/yarn.lock b/yarn.lock index 52e6fc73..87ac9af5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -41,18 +41,18 @@ __metadata: languageName: node linkType: hard -"@biomejs/biome@npm:2.0.6": - version: 2.0.6 - resolution: "@biomejs/biome@npm:2.0.6" +"@biomejs/biome@npm:2.1.1": + version: 2.1.1 + resolution: "@biomejs/biome@npm:2.1.1" dependencies: - "@biomejs/cli-darwin-arm64": "npm:2.0.6" - "@biomejs/cli-darwin-x64": "npm:2.0.6" - "@biomejs/cli-linux-arm64": "npm:2.0.6" - "@biomejs/cli-linux-arm64-musl": "npm:2.0.6" - "@biomejs/cli-linux-x64": "npm:2.0.6" - "@biomejs/cli-linux-x64-musl": "npm:2.0.6" - "@biomejs/cli-win32-arm64": "npm:2.0.6" - "@biomejs/cli-win32-x64": "npm:2.0.6" + "@biomejs/cli-darwin-arm64": "npm:2.1.1" + "@biomejs/cli-darwin-x64": "npm:2.1.1" + "@biomejs/cli-linux-arm64": "npm:2.1.1" + "@biomejs/cli-linux-arm64-musl": "npm:2.1.1" + "@biomejs/cli-linux-x64": "npm:2.1.1" + "@biomejs/cli-linux-x64-musl": "npm:2.1.1" + "@biomejs/cli-win32-arm64": "npm:2.1.1" + "@biomejs/cli-win32-x64": "npm:2.1.1" dependenciesMeta: "@biomejs/cli-darwin-arm64": optional: true @@ -72,62 +72,62 @@ __metadata: optional: true bin: biome: bin/biome - checksum: 10c0/eafaf3981580314c08085542152396f3417637d08d7b8aaee6a5173a978435d7688b1b6b547096e3a9d3573f03cfe526f7342dd341143c322c03d545df126f18 + checksum: 10c0/16efcf85b5b4434802b5541f9068ce9f58f2e195824936991c7217fda7b290b9a0e2ae6bc9e3c3e65e9f5492a3a3f0d0a9cf024cfae84ddc2b05b6e260b3bd2d languageName: node linkType: hard -"@biomejs/cli-darwin-arm64@npm:2.0.6": - version: 2.0.6 - resolution: "@biomejs/cli-darwin-arm64@npm:2.0.6" +"@biomejs/cli-darwin-arm64@npm:2.1.1": + version: 2.1.1 + resolution: "@biomejs/cli-darwin-arm64@npm:2.1.1" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@biomejs/cli-darwin-x64@npm:2.0.6": - version: 2.0.6 - resolution: "@biomejs/cli-darwin-x64@npm:2.0.6" +"@biomejs/cli-darwin-x64@npm:2.1.1": + version: 2.1.1 + resolution: "@biomejs/cli-darwin-x64@npm:2.1.1" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@biomejs/cli-linux-arm64-musl@npm:2.0.6": - version: 2.0.6 - resolution: "@biomejs/cli-linux-arm64-musl@npm:2.0.6" +"@biomejs/cli-linux-arm64-musl@npm:2.1.1": + version: 2.1.1 + resolution: "@biomejs/cli-linux-arm64-musl@npm:2.1.1" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@biomejs/cli-linux-arm64@npm:2.0.6": - version: 2.0.6 - resolution: "@biomejs/cli-linux-arm64@npm:2.0.6" +"@biomejs/cli-linux-arm64@npm:2.1.1": + version: 2.1.1 + resolution: "@biomejs/cli-linux-arm64@npm:2.1.1" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@biomejs/cli-linux-x64-musl@npm:2.0.6": - version: 2.0.6 - resolution: "@biomejs/cli-linux-x64-musl@npm:2.0.6" +"@biomejs/cli-linux-x64-musl@npm:2.1.1": + version: 2.1.1 + resolution: "@biomejs/cli-linux-x64-musl@npm:2.1.1" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@biomejs/cli-linux-x64@npm:2.0.6": - version: 2.0.6 - resolution: "@biomejs/cli-linux-x64@npm:2.0.6" +"@biomejs/cli-linux-x64@npm:2.1.1": + version: 2.1.1 + resolution: "@biomejs/cli-linux-x64@npm:2.1.1" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@biomejs/cli-win32-arm64@npm:2.0.6": - version: 2.0.6 - resolution: "@biomejs/cli-win32-arm64@npm:2.0.6" +"@biomejs/cli-win32-arm64@npm:2.1.1": + version: 2.1.1 + resolution: "@biomejs/cli-win32-arm64@npm:2.1.1" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@biomejs/cli-win32-x64@npm:2.0.6": - version: 2.0.6 - resolution: "@biomejs/cli-win32-x64@npm:2.0.6" +"@biomejs/cli-win32-x64@npm:2.1.1": + version: 2.1.1 + resolution: "@biomejs/cli-win32-x64@npm:2.1.1" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -2320,7 +2320,7 @@ __metadata: version: 0.0.0-use.local resolution: "music-metadata@workspace:." dependencies: - "@biomejs/biome": "npm:2.0.6" + "@biomejs/biome": "npm:2.1.1" "@tokenizer/token": "npm:^0.3.0" "@types/chai": "npm:^5.2.2" "@types/chai-as-promised": "npm:^8.0.2"