Repository navigation
v.0.19.5
This version fixes a bug that prevents compilation with the internals feature.
It also speeds up importing modules.
Version 0.19.5 released to crates.io.
Bug fixes
- Fixes compilation error when using the
internalsfeature. Bug introduced in0.19.4. - Importing script files recursively no longer panics.
Breaking changes
- Modules imported at global level can now be accessed in functions.
ModuleResolver::resolvenow returnsShared<Module>for better resources sharing when loading modules.ParseErrorType::DuplicatedExportis removed as multipleexport's are now allowed.
Enhancements
- Modules imported via
importstatements at global level can now be used in functions. There is no longer any need to re-importthe modules at the beginning of each function block. - Modules imported via
importstatements are encapsulated into theASTwhen loading a module from a script file. exportkeyword can now be tagged ontoletandconststatements as a short-hand, e.g.:export let x = 42;- Variables can now be
export-ed multiple times under different names. index_of,==and!=are defined for arrays.==and!=are defined for object maps.