taglib-wasm 2.2.2 → 2.3.0
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.
- package/LICENSE +1 -1
- package/README.md +197 -16
- package/dist/index.browser.d.ts +24 -4
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/index.browser.js +1139 -217
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/simple.browser.js +539 -209
- package/dist/src/constants/properties.d.ts +2 -2
- package/dist/src/constants/specialized-properties.d.ts +2 -2
- package/dist/src/constants/specialized-properties.js +2 -2
- package/dist/src/errors/base.d.ts +17 -2
- package/dist/src/errors/base.d.ts.map +1 -1
- package/dist/src/errors/base.js +18 -0
- package/dist/src/runtime/detector.d.ts +16 -1
- package/dist/src/runtime/detector.d.ts.map +1 -1
- package/dist/src/runtime/detector.js +58 -52
- package/dist/src/runtime/platform-io.d.ts +8 -0
- package/dist/src/runtime/platform-io.d.ts.map +1 -1
- package/dist/src/runtime/platform-io.js +11 -11
- package/dist/src/runtime/unified-loader/module-selection.d.ts +2 -2
- package/dist/src/runtime/unified-loader/module-selection.d.ts.map +1 -1
- package/dist/src/runtime/unified-loader/module-selection.js +3 -5
- package/dist/src/runtime/wasi-adapter/adapter.d.ts +13 -1
- package/dist/src/runtime/wasi-adapter/adapter.d.ts.map +1 -1
- package/dist/src/runtime/wasi-adapter/adapter.js +17 -0
- package/dist/src/runtime/wasi-adapter/audio-properties.d.ts +4 -1
- package/dist/src/runtime/wasi-adapter/audio-properties.d.ts.map +1 -1
- package/dist/src/runtime/wasi-adapter/audio-properties.js +24 -6
- package/dist/src/runtime/wasi-adapter/path-open.d.ts +68 -0
- package/dist/src/runtime/wasi-adapter/path-open.d.ts.map +1 -0
- package/dist/src/runtime/wasi-adapter/path-open.js +76 -0
- package/dist/src/runtime/wasi-adapter/wasm-io.d.ts.map +1 -1
- package/dist/src/runtime/wasi-adapter/wasm-io.js +36 -28
- package/dist/src/runtime/wasi-host-loader.js +8 -3
- package/dist/src/runtime/wasmer-sdk-loader/types.d.ts +13 -0
- package/dist/src/runtime/wasmer-sdk-loader/types.d.ts.map +1 -1
- package/dist/src/simple/checksum-operations.d.ts +25 -0
- package/dist/src/simple/checksum-operations.d.ts.map +1 -0
- package/dist/src/simple/checksum-operations.js +7 -0
- package/dist/src/simple/index.d.ts +2 -0
- package/dist/src/simple/index.d.ts.map +1 -1
- package/dist/src/simple/index.js +2 -0
- package/dist/src/taglib/audio-file-checksum.d.ts +47 -0
- package/dist/src/taglib/audio-file-checksum.d.ts.map +1 -0
- package/dist/src/taglib/audio-file-checksum.js +77 -0
- package/dist/src/taglib/audio-file-impl.d.ts +4 -0
- package/dist/src/taglib/audio-file-impl.d.ts.map +1 -1
- package/dist/src/taglib/audio-file-impl.js +34 -2
- package/dist/src/taglib/audio-file-interface.d.ts +17 -0
- package/dist/src/taglib/audio-file-interface.d.ts.map +1 -1
- package/dist/src/taglib/embind-adapter.d.ts.map +1 -1
- package/dist/src/taglib/embind-adapter.js +4 -1
- package/dist/src/taglib/id3v2-frames.d.ts.map +1 -1
- package/dist/src/taglib/id3v2-frames.js +2 -2
- package/dist/src/taglib/media-ranges.d.ts +85 -0
- package/dist/src/taglib/media-ranges.d.ts.map +1 -0
- package/dist/src/taglib/media-ranges.js +192 -0
- package/dist/src/taglib/metadata-extent.d.ts +55 -0
- package/dist/src/taglib/metadata-extent.d.ts.map +1 -1
- package/dist/src/taglib/metadata-extent.js +24 -6
- package/dist/src/taglib/taglib-class.d.ts.map +1 -1
- package/dist/src/taglib/taglib-class.js +13 -24
- package/dist/src/types/audio-formats.d.ts +5 -5
- package/dist/src/types/audio-formats.d.ts.map +1 -1
- package/dist/src/types/format-property-keys.d.ts +1 -1
- package/dist/src/types/format-property-keys.d.ts.map +1 -1
- package/dist/src/types/tags.d.ts +8 -1
- package/dist/src/types/tags.d.ts.map +1 -1
- package/dist/src/utils/path.d.ts +12 -0
- package/dist/src/utils/path.d.ts.map +1 -1
- package/dist/src/utils/path.js +19 -0
- package/dist/src/utils/tag-mapping.d.ts.map +1 -1
- package/dist/src/utils/tag-mapping.js +2 -0
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/wasm.d.ts +9 -0
- package/dist/src/wasm.d.ts.map +1 -1
- package/dist/src/web-utils/data-url.d.ts.map +1 -1
- package/dist/src/web-utils/data-url.js +4 -2
- package/dist/taglib-wasi.wasm +0 -0
- package/dist/taglib-web.wasm +0 -0
- package/dist/web.browser.d.ts +13 -0
- package/dist/web.browser.d.ts.map +1 -0
- package/dist/web.browser.js +3630 -0
- package/package.json +19 -17
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taglib-wasm",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
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
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "./dist/index.browser.js",
|
|
9
|
+
"sideEffects": false,
|
|
9
10
|
"exports": {
|
|
10
11
|
".": {
|
|
11
12
|
"browser": {
|
|
@@ -36,8 +37,14 @@
|
|
|
36
37
|
"default": "./dist/disc-folder.js"
|
|
37
38
|
},
|
|
38
39
|
"./web": {
|
|
39
|
-
"
|
|
40
|
-
|
|
40
|
+
"browser": {
|
|
41
|
+
"types": "./dist/web.browser.d.ts",
|
|
42
|
+
"default": "./dist/web.browser.js"
|
|
43
|
+
},
|
|
44
|
+
"default": {
|
|
45
|
+
"types": "./dist/web.d.ts",
|
|
46
|
+
"default": "./dist/web.js"
|
|
47
|
+
}
|
|
41
48
|
},
|
|
42
49
|
"./rating": {
|
|
43
50
|
"types": "./dist/rating.d.ts",
|
|
@@ -74,6 +81,7 @@
|
|
|
74
81
|
"folder.ts",
|
|
75
82
|
"disc-folder.ts",
|
|
76
83
|
"web.ts",
|
|
84
|
+
"web.browser.ts",
|
|
77
85
|
"rating.ts",
|
|
78
86
|
"src/**/*.ts",
|
|
79
87
|
"!src/**/*.test.ts",
|
|
@@ -91,29 +99,23 @@
|
|
|
91
99
|
"build:clean": "mkdir -p dist && find dist -mindepth 1 -maxdepth 1 ! -name wasi -exec rm -rf {} +",
|
|
92
100
|
"build": "npm run build:clean && npm run build:wasm:emscripten && npm run build:copy-wasm && npm run build:ts && npm run postbuild",
|
|
93
101
|
"test": "deno test --allow-read --allow-write --allow-env --v8-flags=--expose-gc tests/",
|
|
94
|
-
"test:all": "deno test --allow-read --allow-write --allow-env --v8-flags=--expose-gc tests/index.test.ts",
|
|
95
102
|
"test:core": "deno test --allow-read --allow-write --allow-env --v8-flags=--expose-gc tests/taglib.test.ts",
|
|
96
103
|
"test:pictures": "deno test --allow-read --allow-write --allow-env --v8-flags=--expose-gc tests/picture-api.test.ts",
|
|
97
104
|
"test:edge": "deno test --allow-read --allow-write --allow-env --v8-flags=--expose-gc tests/edge-cases.test.ts",
|
|
98
105
|
"test:errors": "deno test --allow-read --allow-write --allow-env --v8-flags=--expose-gc tests/error-handling.test.ts",
|
|
99
106
|
"test:memory": "deno test --allow-read --allow-write --allow-env --v8-flags=--expose-gc tests/memory.test.ts",
|
|
100
107
|
"test:extended": "deno test --allow-read --allow-write --allow-env --v8-flags=--expose-gc tests/extended-metadata.test.ts",
|
|
101
|
-
"test:multi-runtime": "./tests/test-runtimes.sh",
|
|
102
108
|
"test:bun": "bun test tests/bun-integration.test.ts",
|
|
103
|
-
"test:
|
|
109
|
+
"test:cross-runtime": "./tests/cross-runtime/run.sh",
|
|
104
110
|
"test:watch": "deno test --allow-read --allow-write --allow-env --v8-flags=--expose-gc --watch tests/",
|
|
105
111
|
"test:coverage": "deno test --allow-read --allow-write --allow-env --coverage=coverage tests/ && deno coverage coverage",
|
|
106
112
|
"test:coverage:lcov": "deno test --allow-read --allow-write --allow-env --coverage=coverage tests/ && deno coverage coverage --lcov --output=coverage/lcov.info",
|
|
107
|
-
"test:local": "./scripts/test-local-package.sh",
|
|
108
|
-
"test:deno-quick": "./scripts/quick-deno-test.ts",
|
|
109
|
-
"test:deno-imports": "./scripts/test-deno-imports.sh",
|
|
110
|
-
"test:amusic": "./scripts/test-with-amusic.sh",
|
|
111
113
|
"test:package": "./scripts/test-npm-package.sh",
|
|
112
114
|
"docs:dev": "cd docs && npm install && npm run dev",
|
|
113
115
|
"docs:build": "cd docs && npm install && npm run build",
|
|
114
116
|
"update-taglib": "./scripts/update-taglib.sh",
|
|
115
117
|
"release": "./scripts/release-safe.sh",
|
|
116
|
-
"release:quick": "./scripts/release.sh",
|
|
118
|
+
"release:quick": "./scripts/release-safe.sh --skip-watch",
|
|
117
119
|
"publish:npm": "echo 'Use GitHub Actions workflow for publishing'",
|
|
118
120
|
"publish:github": "echo 'Use GitHub Actions workflow for publishing'",
|
|
119
121
|
"lint:ts": "eslint .",
|
|
@@ -160,14 +162,14 @@
|
|
|
160
162
|
"@msgpack/msgpack": "^3.1.3"
|
|
161
163
|
},
|
|
162
164
|
"devDependencies": {
|
|
163
|
-
"@types/node": "^24.13.
|
|
165
|
+
"@types/node": "^24.13.5",
|
|
164
166
|
"esbuild": "^0.28.2",
|
|
165
|
-
"eslint": "^10.
|
|
166
|
-
"fast-check": "^4.
|
|
167
|
-
"knip": "^6.
|
|
168
|
-
"tsx": "^4.23.
|
|
167
|
+
"eslint": "^10.10.0",
|
|
168
|
+
"fast-check": "^4.10.1",
|
|
169
|
+
"knip": "^6.36.0",
|
|
170
|
+
"tsx": "^4.23.13",
|
|
169
171
|
"typescript": "^6.0.3",
|
|
170
|
-
"typescript-eslint": "^8.
|
|
172
|
+
"typescript-eslint": "^8.70.0"
|
|
171
173
|
},
|
|
172
174
|
"peerDependencies": {
|
|
173
175
|
"typescript": ">=4.5.0"
|