Skip to content

v0.2.0

Choose a tag to compare

@coolreader18 coolreader18 released this 18 Feb 04:45
· 75 commits to master since this release

Complete overhaul.

  • require, module, exports, and the new global are by default passed to scripts that seem to be legume-y.
  • Names are now determined from the url or metadata, without needing to specify them.
  • Should load faster, as it can load scripts asynchronously without worrying about possible dependencies.
  • Legume itself is a function, no longer any text or json functions, they were very unnecessary.
  • There's now a cache, so things should, again, load faster.
  • No more var or async metadata block tags, var is replaced by module and stuff being automatically included, async functions are not supported in IE and await throws errors in some parsers, as it's not supposed to be outside of an async function.
  • Global is just a normal object, it's the this keyword for legume scripts.