Skip to content

Commit

Permalink
chore: changelog v2
Browse files Browse the repository at this point in the history
  • Loading branch information
fengkx committed Jun 7, 2024
1 parent babe646 commit c56ace8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# v2.0.0
- Switch to exports field instead of subpath import [(#6)](https://github.com/fengkx/jieba-wasm/pull/6)

Instead of
```javascript
import init, {cut} from 'jieba-wasm/pkg/web/jieba_rs_wasm';
```
Use
```typescript
import init, {cut} from 'jieba-wasm';
```

More info on exports field https://nodejs.org/api/packages.html#community-conditions-definitions and typescript [customCondition config](https://nodejs.org/api/packages.html#community-conditions-definitions)


# v1.0.0
- Stable semver version
- compress data at build time shrink wasm about 3MB
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jieba-wasm",
"version": "1.0.0",
"version": "2.0.0",
"description": "WASM binding to jieba-rs",
"main": "./pkg/nodejs/jieba_rs_wasm.js",
"types": "./pkg/nodejs/jieba_rs_wasm.d.ts",
Expand Down

0 comments on commit c56ace8

Please sign in to comment.