opencc-wasm 0.8.0 → 0.8.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.
- package/README.md +6 -0
- package/README.zh.md +6 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -402,6 +402,12 @@ A: Initial load downloads configs + dicts (~1-2MB). Subsequent conversions are f
|
|
|
402
402
|
|
|
403
403
|
## 📜 Changelog
|
|
404
404
|
|
|
405
|
+
### 0.8.1 - 2026-04-22
|
|
406
|
+
|
|
407
|
+
- Fixed the publish pipeline so `npm run build` / `prepack` refresh bundled assets before generating `dist`
|
|
408
|
+
- Ensured `jieba_merged.ocd2` is included in published packages
|
|
409
|
+
- Added usage notes for `t2cngov_jieba` and `t2cngov_keep_simp_jieba`
|
|
410
|
+
|
|
405
411
|
### 0.8.0 - 2026-04-22
|
|
406
412
|
|
|
407
413
|
- Added `converter.inspect(text)` to the WASM API, returning segmentation, per-stage conversion output, and the final output as structured JSON
|
package/README.zh.md
CHANGED
|
@@ -402,6 +402,12 @@ A:首次載入需要下載設定檔和字典檔(約 1-2MB)。後續轉換
|
|
|
402
402
|
|
|
403
403
|
## 📜 變更歷史
|
|
404
404
|
|
|
405
|
+
### 0.8.1 - 2026-04-22
|
|
406
|
+
|
|
407
|
+
- 修正發布流程,讓 `npm run build` / `prepack` 會先刷新資源,再產生 `dist`
|
|
408
|
+
- 確保已發布套件會包含 `jieba_merged.ocd2`
|
|
409
|
+
- 補上 `t2cngov_jieba` 與 `t2cngov_keep_simp_jieba` 的使用說明
|
|
410
|
+
|
|
405
411
|
### 0.8.0 - 2026-04-22
|
|
406
412
|
|
|
407
413
|
- 在 WASM API 中新增 `converter.inspect(text)`,可回傳分詞結果、每個階段的轉換輸出,以及最終輸出的結構化 JSON
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencc-wasm",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "WebAssembly backend for OpenCC with opencc-js compatible API and official configs/ocd2 dictionaries.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"opencc",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"NOTICE"
|
|
35
35
|
],
|
|
36
36
|
"scripts": {
|
|
37
|
-
"
|
|
37
|
+
"refresh-assets": "./scripts/refresh_assets.sh",
|
|
38
|
+
"build": "npm run refresh-assets && ./build.sh && node scripts/build-api.js",
|
|
38
39
|
"prepack": "npm run build",
|
|
39
40
|
"test": "npm run test:core && npm run test:cdn",
|
|
40
41
|
"test:core": "node --test test/opencc.test.js",
|