-
IE11 support: The browser builds (
lindenmayer.browser.jsandlindenmayer.browser.min.js) are now transpiled to ES5, supporting IE11. -
regular build are targeted for node support, esm builds support all environments that have native es6 import syntax.
-
updated dev packages, replaced uglify-es with terser
-
renamed
lindenmayer.es.jstolindemayer.esm.jsaccording the common practice for ES module. This is relevant only if you have been directly importing the module file via its full filename. If you have been importing lindenmayer via webpack or rollup likeimport {LSystem} from 'lindenmayer', you shouldn't see a difference.
In general:
lindenmayer.jsfor Node.jslindenmayer.browser.jsfor browsers (supports IE11)lindenmayer.esm.jsfor browsers and environments that natively support theimportsyntax
Assets
8
Thanks to @TMiguelT this release makes use of ES6 class syntax resulting in clearer and more concise syntax and easier extendability for users.
Also a critical bug was fixed that was not tested before and therefore slipped through for a long time: When using a context sensitive production that should match for both sides, eg: 'A<B>C:' 'X', only the left side was checked, instead of both. This would lead to incorrect results in situation that the left matches but the right side does not. It has been fixed and a new test case has been added to cover this situation.
Assets
8
- add missing default
ignoredSymbolsas expected from the README. Be advised that this could break your results if you previously relyied on an emptyignoredSymbolsfor some reason, when using CS-prods.
Assets
8
- minor version bump, built with more ES6 language features resulting in smaller packages.
Assets
8
Add minify build script