v0.3.0
BREAKING CHANGE: compile
API change
As we mentioned in the v0.2.0 release, the support of using lang
as the first argument of compile
is now REMOVED. Please use the new API instead.
// before
compile('js', source, { ... })
// after
compile(source, { lang: 'js', ... })
New Online IDE
The fresh new Online IDE is now landed. With file explorer, rendering, a better editor, auto-complete, wyg support, dark mode and more. Please do check it out! (PR #515 #526 #535 #536 #537 #546 #551 #552)
We are now moved to Typescript!
We have rewritten our codebase to Typescript. The typing declaration file is also shipped in @wanyanlang/core.
Check out for #543 for more details.
Features
Fixes
- Functions containing elseif is miscompiled (PR #523, thanks @statementreply)
Stdlib
- New 格物 library (PR #553, thanks @Fros1er)
- Fix atan2(Infinity, Infinity) (PR #538 , thanks @statementreply)
Tests
- A lot of tests have been added (#527, #530, thanks @statementreply)