Skip to content

Releases: coolreader18/legume-loader

v1.0.0-4

10 Oct 23:46
v1.0.0-4
1f998a5

Choose a tag to compare

v1.0.0-4 Pre-release
Pre-release

New features:

Changes:

v1.0.0-3

26 Sep 04:41
v1.0.0-3
9e515a5

Choose a tag to compare

v1.0.0-3 Pre-release
Pre-release

Fixes:

  • Stylesheet links in html imports weren't being resolved properly

v1.0.0-2

26 Sep 03:30
v1.0.0-2
bf808d3

Choose a tag to compare

v1.0.0-2 Pre-release
Pre-release

New features:

  • Add html imports, opens a new window with the contents of the imported html file.

v1.0.0-1

23 Sep 06:38
10af824

Choose a tag to compare

v1.0.0-1 Pre-release
Pre-release

Changes:

  • Fully fleshed out testing configuration.

Fixes:

  • The main field in package.json now points to the correct file.

v1.0.0-0

23 Sep 06:36
bde278b

Choose a tag to compare

v1.0.0-0 Pre-release
Pre-release

Prerelease for 1.0.0.

Brief overview of changes:

  • Completely remove all comment metadata stuff
  • Find import statements in the code and use that instead of @legume and @require
  • Support for CSS url()s, it finds those and resolves them too.
  • AMD module support, for stuff like jquery-ui that only does AMD.
  • Dynamic imports, they basically just convert to Legume()
  • Better and cleaner API.

v0.2.7

10 Apr 00:54

Choose a tag to compare

Minified, this replaces 0.2.6.

v0.2.6

09 Apr 03:34

Choose a tag to compare

Bookmarklet support:

  • use @bookmarklet to make the script run every time it's required

v0.2.5

09 Apr 03:31

Choose a tag to compare

Not much, just added a "main" to the package.json so that npm package tools work better.

v0.2.4

12 Mar 22:11

Choose a tag to compare

New features:

  • You can now load easily from gists. The format is: gist:<gist id>[@<sha hash>]/<file>.js
  • A url cache, so if two scripts have the same dependency from the same url, it won't fetch it twice.

Changes:

  • <script> tags will now be loaded synchronously, as they would be if they were as a normal <script> tag. This also supports the async attribute, but it's kind of useless as it wouldn't block loading anyway.
  • Inline <script> tags get a url for debugging, its format is inline-legume:<module name>

v0.2.3

01 Mar 05:02

Choose a tag to compare

New feature:

<script type=text/legume>
/* @legume
 * @name script
 * @require npm:jquery
 */
console.log(require("jquery"));
</script>

Changes:

  • @script has been changed to @require
  • process evals in a global scope, so there's no longer a closure with passargs or something.
  • legume.min.js now has a sourcemap.