@kubohiroya/turbowarp-asset-cache 0.2.1 → 0.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/README.md +9 -2
- package/dist/asset-cache.js +911 -148
- package/dist/composition.js +934 -148
- package/dist/types/audio-output.d.ts +5 -0
- package/dist/types/audio-playback.d.ts +46 -0
- package/dist/types/composition.d.ts +3 -0
- package/dist/types/extension.d.ts +7 -0
- package/dist/types/fixed-input-editors.d.ts +10 -0
- package/dist/types/fixed-input-schema.d.ts +46 -0
- package/docs/audio-playback.md +49 -0
- package/docs/fixed-input-editors.ja.md +20 -0
- package/package.json +10 -6
- package/schemas/block-editor-fixed-inputs.schema.json +24 -0
package/README.md
CHANGED
|
@@ -4,6 +4,13 @@ A browser-local image, audio, and runtime-text asset cache for TurboWarp project
|
|
|
4
4
|
|
|
5
5
|
Asset Cache intentionally keeps the legacy `isLoaded` and cache lifecycle semantics. It is not a general server object store: every block is marked `server.supported: false` in the format 2 manifest. Use [`@kubohiroya/turbowarp-kvs`](https://github.com/kubohiroya/turbowarp-kvs) for portable namespace/key persistence and server lowering.
|
|
6
6
|
|
|
7
|
+
`@kubohiroya/turbowarp-asset-manager` is deprecated. Composition consumers can replace its import
|
|
8
|
+
path with `@kubohiroya/turbowarp-asset-cache/composition` for asset registration, rendering,
|
|
9
|
+
playback, DOM image resources, and verified remote-cache APIs. Import binary object, bundle, and
|
|
10
|
+
session-backing APIs directly from `@kubohiroya/turbowarp-kvs`. Standalone projects must also
|
|
11
|
+
replace the extension ID `kubohiroyaassetmanager` with `kubohiroyaassetcache`; published historical
|
|
12
|
+
SB3 artifacts should remain pinned to their original extension.
|
|
13
|
+
|
|
7
14
|
## User Guide
|
|
8
15
|
|
|
9
16
|
For setup, safety notes, recipes, and the illustrated block guide, see the [English user guide](https://kubohiroya.github.io/turbowarp-asset-cache/) or [Japanese user guide](https://kubohiroya.github.io/turbowarp-asset-cache/ja/).
|
|
@@ -41,13 +48,13 @@ The built JavaScript file is committed to this repository so users do not need t
|
|
|
41
48
|
The versioned npm package contains the same reviewed build:
|
|
42
49
|
|
|
43
50
|
```bash
|
|
44
|
-
pnpm add --save-exact @kubohiroya/turbowarp-asset-cache@0.
|
|
51
|
+
pnpm add --save-exact @kubohiroya/turbowarp-asset-cache@0.3.0
|
|
45
52
|
```
|
|
46
53
|
|
|
47
54
|
Load `node_modules/@kubohiroya/turbowarp-asset-cache/dist/asset-cache.js`, or use the version-pinned CDN URL:
|
|
48
55
|
|
|
49
56
|
```text
|
|
50
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-cache@0.
|
|
57
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-cache@0.3.0/dist/asset-cache.js
|
|
51
58
|
```
|
|
52
59
|
|
|
53
60
|
## Quick Start
|