@kubohiroya/turbowarp-asset-cache 0.3.2 → 0.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/README.ja.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # TurboWarp-Asset-Cache
2
2
 
3
- [English](README.md)
3
+ <img src="assets/block-icon.svg" alt="" width="48" height="48">
4
+
5
+ [English](README.md) | 日本語
4
6
 
5
7
  TurboWarpのプロジェクト向けに、画像・音声・実行時テキストをブラウザ内へ保持するasset cacheです。
6
8
  composition hostには、OPFSを明示的に選べるhybridなbinary backingを提供します。外部ファイル、
@@ -73,14 +75,14 @@ SVG入力は既定で拒否します。remote binaryのcache entryは、保存
73
75
  versionを付けたnpm packageにも、同じレビュー済みビルドが入っています。
74
76
 
75
77
  ```bash
76
- pnpm add --save-exact @kubohiroya/turbowarp-asset-cache@0.3.2
78
+ pnpm add --save-exact @kubohiroya/turbowarp-asset-cache@0.4.0
77
79
  ```
78
80
 
79
81
  `node_modules/@kubohiroya/turbowarp-asset-cache/dist/asset-cache.js`を読み込むか、version固定の
80
82
  CDN URLを使います。
81
83
 
82
84
  ```text
83
- https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-cache@0.3.2/dist/asset-cache.js
85
+ https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-cache@0.4.0/dist/asset-cache.js
84
86
  ```
85
87
 
86
88
  ## クイックスタート
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # TurboWarp-Asset-Cache
2
2
 
3
- [日本語](README.ja.md)
3
+ <img src="assets/block-icon.svg" alt="" width="48" height="48">
4
+
5
+ English | [日本語](README.ja.md)
4
6
 
5
7
  A browser-local image, audio, and runtime-text asset cache for TurboWarp projects, with an explicit OPFS hybrid binary backing for composition hosts. It registers external files, project-local costumes/backdrops/sounds, and Temporary Variables text references for use from TurboWarp blocks or composition hosts.
6
8
 
@@ -56,13 +58,13 @@ The built JavaScript file is committed to this repository so users do not need t
56
58
  The versioned npm package contains the same reviewed build:
57
59
 
58
60
  ```bash
59
- pnpm add --save-exact @kubohiroya/turbowarp-asset-cache@0.3.2
61
+ pnpm add --save-exact @kubohiroya/turbowarp-asset-cache@0.4.0
60
62
  ```
61
63
 
62
64
  Load `node_modules/@kubohiroya/turbowarp-asset-cache/dist/asset-cache.js`, or use the version-pinned CDN URL:
63
65
 
64
66
  ```text
65
- https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-cache@0.3.2/dist/asset-cache.js
67
+ https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-cache@0.4.0/dist/asset-cache.js
66
68
  ```
67
69
 
68
70
  ## Quick Start
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><rect x="4" y="8" width="40" height="32" rx="6" fill="#59C059"/><path d="M14 20h12l3 3h7v12a2 2 0 0 1-2 2H14a2 2 0 0 1-2-2V22a2 2 0 0 1 2-2z" fill="#fff"/><path d="M24 17v8M21 22l3 3 3-3" fill="none" stroke="#59C059" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"/></svg>