- Add tag function #12
- Enable hmm by default in
cut
,cut_for_search
,tokenize
andtag
function 13bcc7e
Fix wasm-opt process, provided smaller wasm file e66e29a.
- Add deno exports condition and
deno
subpath exports #9 - Add npm provenance statements
- Add dedicated export paths for Node.js and web versions in package.json. Reorder exports field #8
- Switch to exports field instead of subpath import (#6)
Instead of
import init, {cut} from 'jieba-wasm/pkg/web/jieba_rs_wasm';
Use
import init, {cut} from 'jieba-wasm';
More info on exports field https://nodejs.org/api/packages.html#community-conditions-definitions and typescript customCondition config
- Stable semver version
- compress data at build time shrink wasm about 3MB
- add deno build at
pkg/deno
dir - add better documentation and github page playground