taglib-wasm 2.3.1 → 2.4.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 +8 -6
- package/dist/constants/properties.d.ts +5 -839
- package/dist/constants/properties.d.ts.map +1 -1
- package/dist/deno-compile.d.ts +8 -4
- package/dist/deno-compile.d.ts.map +1 -1
- package/dist/deno-compile.js +9 -5
- package/dist/index.browser.js +7 -3
- package/dist/runtime/deno-detect.d.ts +11 -0
- package/dist/runtime/deno-detect.d.ts.map +1 -1
- package/dist/runtime/deno-detect.js +15 -1
- package/dist/runtime/platform-io.d.ts.map +1 -1
- package/dist/runtime/platform-io.js +15 -0
- package/dist/runtime/wasi-adapter/audio-properties.d.ts.map +1 -1
- package/dist/runtime/wasi-adapter/audio-properties.js +1 -1
- package/dist/simple.browser.js +3 -2
- package/dist/taglib/embind-adapter.d.ts.map +1 -1
- package/dist/taglib/embind-adapter.js +2 -1
- package/dist/taglib-wasi.wasm +0 -0
- package/dist/taglib-wrapper.js +1 -1
- package/dist/types/audio-formats.d.ts +5 -1
- package/dist/types/audio-formats.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/web.browser.js +3 -2
- package/package.json +21 -20
package/LICENSE
CHANGED
|
@@ -41,7 +41,7 @@ The WebAssembly binaries are subject to LGPL requirements. This means:
|
|
|
41
41
|
|
|
42
42
|
To rebuild the WebAssembly binaries with a modified TagLib:
|
|
43
43
|
1. Modify the TagLib source in lib/taglib/
|
|
44
|
-
2. Run:
|
|
44
|
+
2. Run: pnpm run build:wasm (builds both backends; requires the
|
|
45
45
|
Emscripten SDK and WASI SDK 34 — see .github/CONTRIBUTING.md)
|
|
46
46
|
3. The new binaries will be in build/taglib-web.wasm and
|
|
47
47
|
build/taglib-wasi.wasm
|
package/README.md
CHANGED
|
@@ -59,11 +59,12 @@ npm install taglib-wasm
|
|
|
59
59
|
|
|
60
60
|
### Deno
|
|
61
61
|
|
|
62
|
-
Deno installs from
|
|
63
|
-
package `@charlesw/taglib-wasm` is deprecated.
|
|
62
|
+
Deno installs from JSR or from npm:
|
|
64
63
|
|
|
65
64
|
```typescript
|
|
66
|
-
import { TagLib } from "
|
|
65
|
+
import { TagLib } from "jsr:@charlesw/taglib-wasm"; // JSR
|
|
66
|
+
// or
|
|
67
|
+
import { TagLib } from "npm:taglib-wasm"; // npm
|
|
67
68
|
```
|
|
68
69
|
|
|
69
70
|
### Bun
|
|
@@ -135,8 +136,9 @@ path or URL instead — use `wasmUrl` with it.
|
|
|
135
136
|
|
|
136
137
|
## Quick Start
|
|
137
138
|
|
|
138
|
-
> **Import paths:** all runtimes use the npm package `taglib-wasm
|
|
139
|
-
>
|
|
139
|
+
> **Import paths:** all runtimes use the npm package `taglib-wasm`; Deno can
|
|
140
|
+
> also install from JSR (`jsr:@charlesw/taglib-wasm`). Both are published for
|
|
141
|
+
> every release.
|
|
140
142
|
|
|
141
143
|
### Simple API
|
|
142
144
|
|
|
@@ -709,7 +711,7 @@ under every bundler:
|
|
|
709
711
|
| ---------------------- | ------- | ------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
710
712
|
| **Node.js** | Full | `npm install taglib-wasm` | TypeScript via tsx |
|
|
711
713
|
| **Deno** | Full | `npm:taglib-wasm` | Native TypeScript |
|
|
712
|
-
| **Bun** | Partial | `bun add taglib-wasm` | Import + init verified; covered by `
|
|
714
|
+
| **Bun** | Partial | `bun add taglib-wasm` | Import + init verified; covered by `pnpm run test:bun` and the cross-runtime smoke |
|
|
713
715
|
| **Browser** | Full | Via bundler | Full API support |
|
|
714
716
|
| **Cloudflare Workers** | Full | `npm install taglib-wasm` | Buffer-based (Emscripten); no filesystem. See [Workers guide](docs/advanced/cloudflare-workers.md) |
|
|
715
717
|
| **Electron** | Node.js | `npm install taglib-wasm` | Main process; renderer via IPC |
|