taglib-wasm 2.3.1 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/LICENSE +0 -29
  2. package/NOTICE +35 -0
  3. package/README.md +37 -33
  4. package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/assertClassBrand.js +1 -1
  5. package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/checkPrivateRedeclaration.js +1 -1
  6. package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/classPrivateFieldGet2.js +1 -1
  7. package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/classPrivateFieldInitSpec.js +1 -1
  8. package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/classPrivateFieldSet2.js +1 -1
  9. package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/defineProperty.js +1 -1
  10. package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/toPrimitive.js +1 -1
  11. package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/toPropertyKey.js +1 -1
  12. package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/typeof.js +1 -1
  13. package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/usingCtx.js +1 -1
  14. package/dist/constants/properties.d.ts +5 -839
  15. package/dist/constants/properties.d.ts.map +1 -1
  16. package/dist/constants/properties.js +2 -0
  17. package/dist/constants/specialized-properties.d.ts +14 -0
  18. package/dist/constants/specialized-properties.d.ts.map +1 -1
  19. package/dist/constants/specialized-properties.js +21 -0
  20. package/dist/deno-compile.d.ts +8 -4
  21. package/dist/deno-compile.d.ts.map +1 -1
  22. package/dist/deno-compile.js +9 -5
  23. package/dist/index.browser.js +36 -8
  24. package/dist/rating.js +1 -2
  25. package/dist/runtime/deno-detect.d.ts +11 -0
  26. package/dist/runtime/deno-detect.d.ts.map +1 -1
  27. package/dist/runtime/deno-detect.js +15 -1
  28. package/dist/runtime/platform-io.d.ts.map +1 -1
  29. package/dist/runtime/platform-io.js +15 -0
  30. package/dist/runtime/wasi-adapter/adapter.js +1 -1
  31. package/dist/runtime/wasi-adapter/audio-properties.d.ts.map +1 -1
  32. package/dist/runtime/wasi-adapter/audio-properties.js +1 -1
  33. package/dist/runtime/wasi-adapter/file-handle.js +1 -1
  34. package/dist/runtime/wasi-adapter/index.js +1 -2
  35. package/dist/runtime/wasi-adapter/wasm-io.js +1 -1
  36. package/dist/runtime/wasi-memory.js +3 -3
  37. package/dist/simple/picture-operations.d.ts +6 -0
  38. package/dist/simple/picture-operations.d.ts.map +1 -1
  39. package/dist/simple/picture-operations.js +6 -0
  40. package/dist/simple/tag-operations.d.ts +7 -0
  41. package/dist/simple/tag-operations.d.ts.map +1 -1
  42. package/dist/simple/tag-operations.js +7 -0
  43. package/dist/simple/with-audio-file.d.ts.map +1 -1
  44. package/dist/simple/with-audio-file.js +2 -1
  45. package/dist/simple.browser.js +32 -7
  46. package/dist/taglib/audio-file-base.js +1 -1
  47. package/dist/taglib/audio-file-impl.js +1 -1
  48. package/dist/taglib/embind-adapter.d.ts.map +1 -1
  49. package/dist/taglib/embind-adapter.js +2 -1
  50. package/dist/taglib/taglib-class.js +1 -1
  51. package/dist/taglib-wasi.wasm +0 -0
  52. package/dist/taglib-web.wasm +0 -0
  53. package/dist/taglib-wrapper.js +1 -1
  54. package/dist/types/audio-formats.d.ts +5 -1
  55. package/dist/types/audio-formats.d.ts.map +1 -1
  56. package/dist/types/metadata-mappings.d.ts.map +1 -1
  57. package/dist/types/metadata-mappings.js +8 -0
  58. package/dist/types/tags.d.ts +4 -0
  59. package/dist/types/tags.d.ts.map +1 -1
  60. package/dist/version.d.ts +1 -1
  61. package/dist/version.js +1 -1
  62. package/dist/web.browser.js +32 -7
  63. package/legal/COPYING.LGPL +502 -0
  64. package/package.json +34 -27
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taglib-wasm",
3
- "version": "2.3.1",
3
+ "version": "2.4.1",
4
4
  "description": "TagLib-Wasm is the universal tagging library for TypeScript/JavaScript platforms: Browsers, Node.js, Deno, Bun, Cloudflare Workers, and Electron apps",
5
5
  "keywords": [
6
6
  "acoustid",
@@ -36,7 +36,9 @@
36
36
  "files": [
37
37
  "dist/**/*",
38
38
  "README.md",
39
- "LICENSE"
39
+ "LICENSE",
40
+ "NOTICE",
41
+ "legal/COPYING.LGPL"
40
42
  ],
41
43
  "type": "module",
42
44
  "sideEffects": false,
@@ -110,29 +112,31 @@
110
112
  "registry": "https://registry.npmjs.org/"
111
113
  },
112
114
  "scripts": {
113
- "build:wasm": "npm run build:wasm:emscripten && npm run build:wasm:wasi",
115
+ "build:wasm": "pnpm run build:wasm:emscripten && pnpm run build:wasm:wasi",
114
116
  "build:wasm:emscripten": "./build/build-wasm.sh",
115
117
  "build:wasm:wasi": "./build/build-wasi.sh",
116
- "build:ts": "tsc && npm run build:js",
118
+ "build:ts": "tsc && pnpm run build:js",
117
119
  "postbuild": "node scripts/postbuild.mjs",
118
120
  "build:copy-wasm": "mkdir -p dist && cp build/taglib-web.wasm build/taglib-wasi.wasm build/taglib-wrapper.js build/taglib-wrapper.d.ts dist/",
119
121
  "build:clean": "mkdir -p dist && find dist -mindepth 1 -maxdepth 1 ! -name wasi -exec rm -rf {} +",
120
- "build": "npm run build:clean && npm run build:wasm:emscripten && npm run build:copy-wasm && npm run build:ts && npm run postbuild",
122
+ "build": "pnpm run build:clean && pnpm run build:wasm:emscripten && pnpm run build:copy-wasm && pnpm run build:ts && pnpm run postbuild",
121
123
  "build:js": "vp pack",
122
- "build:release": "npm run build:js && npm run build:wasm",
123
- "docs:coverage": "npx tsx scripts/docs-coverage.ts",
124
- "knip": "npx --no-install knip --no-progress --treat-config-hints-as-errors",
125
- "smoke:emscripten": "npx tsx scripts/smoke-emscripten.ts",
126
- "smoke:wasi": "npx tsx scripts/smoke-wasi.ts",
127
- "bench": "npx tsx tests/wasi-vs-emscripten.bench.ts",
128
- "version:patch": "npx tsx scripts/sync-version.ts patch",
129
- "version:minor": "npx tsx scripts/sync-version.ts minor",
130
- "version:major": "npx tsx scripts/sync-version.ts major",
131
- "version:set": "npx tsx scripts/sync-version.ts set",
132
- "version:check": "npx tsx scripts/sync-version.ts check",
124
+ "build:release": "pnpm run build:js && pnpm run build:wasm",
125
+ "docs:coverage": "pnpm exec tsx scripts/docs-coverage.ts",
126
+ "knip": "pnpm exec knip --no-progress --treat-config-hints-as-errors",
127
+ "smoke:emscripten": "pnpm exec tsx scripts/smoke-emscripten.ts",
128
+ "smoke:wasi": "pnpm exec tsx scripts/smoke-wasi.ts",
129
+ "smoke:dist": "node scripts/smoke-dist.mjs",
130
+ "bench": "pnpm exec tsx tests/wasi-vs-emscripten.bench.ts",
131
+ "version:patch": "pnpm exec tsx scripts/sync-version.ts patch",
132
+ "version:minor": "pnpm exec tsx scripts/sync-version.ts minor",
133
+ "version:major": "pnpm exec tsx scripts/sync-version.ts major",
134
+ "version:set": "pnpm exec tsx scripts/sync-version.ts set",
135
+ "version:check": "pnpm exec tsx scripts/sync-version.ts check",
133
136
  "lint:ast": "bash -c 'command -v ast-grep >/dev/null 2>&1 || { echo \"ast-grep not installed — skipping structural rules\"; exit 0; }; ast-grep test && ast-grep scan'",
134
137
  "test:sonar": "SONAR_REPORT=1 vp test --coverage",
135
- "check:all": "npx vp check && npm run lint:ast && npm run docs:coverage && npm run knip && npm run knip:strict && npx tsc --noEmit -p tsconfig.check.json && npx vp test && npm run build:js && npm run postbuild && node scripts/check-dist-resolution.mjs && node scripts/check-disc-folder.mjs && bash scripts/check-toolchain-pins.sh",
138
+ "check:examples": "pnpm exec tsx scripts/check-examples.ts",
139
+ "check:all": "pnpm exec vp check && pnpm run lint:ast && pnpm run docs:coverage && pnpm run knip && pnpm run knip:strict && pnpm exec tsc --noEmit -p tsconfig.check.json && pnpm exec tsc --noEmit -p tsconfig.examples.json && pnpm exec vp test && pnpm run check:examples && pnpm run build:js && pnpm run postbuild && node scripts/smoke-dist.mjs && node scripts/check-dist-resolution.mjs && node scripts/check-disc-folder.mjs && bash scripts/check-toolchain-pins.sh",
136
140
  "test": "vp test",
137
141
  "test:bun": "bun test tests/bun-integration.test.ts",
138
142
  "test:deno": "deno test --allow-read --allow-write --allow-env tests/deno-*.test.ts",
@@ -140,12 +144,12 @@
140
144
  "test:watch": "vp test --watch",
141
145
  "test:coverage": "vp test --coverage",
142
146
  "test:package": "./scripts/test-npm-package.sh",
143
- "docs:dev": "cd docs && npm install && npm run dev",
144
- "docs:build": "cd docs && npm install && npm run build",
147
+ "docs:dev": "cd docs && pnpm install && pnpm run dev",
148
+ "docs:build": "cd docs && pnpm install && pnpm run build",
145
149
  "update-taglib": "./scripts/update-taglib.sh",
146
150
  "release": "./scripts/release-safe.sh",
147
151
  "release:quick": "./scripts/release-safe.sh --skip-watch",
148
- "knip:strict": "npx --no-install knip --no-progress --strict --no-tag-hints",
152
+ "knip:strict": "pnpm exec knip --no-progress --strict --no-tag-hints",
149
153
  "verify:published": "node scripts/verify-published.mjs"
150
154
  },
151
155
  "dependencies": {
@@ -153,14 +157,14 @@
153
157
  },
154
158
  "devDependencies": {
155
159
  "@arethetypeswrong/cli": "^0.18.5",
156
- "@types/node": "^24.13.5",
157
- "@vitest/coverage-v8": "5.0.3",
158
- "fast-check": "^4.10.1",
159
- "knip": "^6.36.0",
160
+ "@types/node": "^24.19.2",
161
+ "@vitest/coverage-v8": "5.0.5",
162
+ "fast-check": "^4.10.2",
163
+ "knip": "^6.42.0",
160
164
  "publint": "^0.3.25",
161
- "tsx": "^4.23.13",
165
+ "tsx": "^4.23.15",
162
166
  "typescript": "^6.0.3",
163
- "vite-plus": "1.1.0",
167
+ "vite-plus": "1.3.0",
164
168
  "vitest-sonar-reporter": "^3.0.0"
165
169
  },
166
170
  "peerDependencies": {
@@ -174,7 +178,7 @@
174
178
  "engines": {
175
179
  "node": ">=24.0.0"
176
180
  },
177
- "packageManager": "npm@11.19.0",
181
+ "packageManager": "pnpm@12.14.0",
178
182
  "knip": {
179
183
  "entry": [
180
184
  "src/{index,index.browser,simple,simple.browser,folder,disc-folder,web,web.browser,rating}.ts!",
@@ -198,6 +202,9 @@
198
202
  "ignoreDependencies": [
199
203
  "vitest-sonar-reporter"
200
204
  ],
205
+ "ignoreBinaries": [
206
+ "vite"
207
+ ],
201
208
  "ignoreExportsUsedInFile": true,
202
209
  "ignoreIssues": {
203
210
  "src/file-utils/index.ts": [