Skip to content

Commit 6706daa

Browse files
committed
docs: update CHANGELOG
1 parent 7eec6ec commit 6706daa

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
# v0.2.0
2+
3+
## ⚠ BREAKING CHANGE: `compile` API change
4+
The first argument lang move to option, please switch to new API.
5+
6+
```js
7+
//before
8+
compile('js', source, { ... })
9+
// after
10+
compile(source, { lang: 'js', ... })
11+
```
12+
13+
The old API is still functional for temporary backward compatible, the support **will be REMOVED in the next minor update.**
14+
15+
## Wenyan Snippets Site, #459
16+
17+
Please do check it out. Any feedbacks are welcome!
18+
19+
![](https://user-images.githubusercontent.com/7929704/71650125-049f4800-2ce2-11ea-9f44-31c9b7e626d7.png)
20+
21+
## New Execute API
22+
Check out [API Document](https://github.com/LingDong-/wenyan-lang/blob/master/documentation/Compiler-API.md) and #473
23+
24+
25+
### Fixes
26+
- Fix compiler crash with 0-argument macros (PR #453, thanks @statementreply)
27+
- stdlib: Improve sin, cos and tan (^/1/3) (PR #457, thanks @statementreply)
28+
- bool2hanzi (PR #465, thanks @Fros1er)
29+
30+
### Docs
31+
- Auto generates examples for README.md (PR #448, thanks @cuixiping)
32+
33+
134
# v0.1.3
235

336
## Macros (Experimental)

0 commit comments

Comments
 (0)