Skip to content

v1.5.0

Latest

Choose a tag to compare

@leafo leafo released this 08 Jan 20:27
· 2 commits to master since this release

New Features

@require method for automatic dependency management

  • New @require class method automatically inserts widget dependencies into the ES module
  • Dependencies are passed through the class hierarchy, enabling proper inheritance
  • When requiring another widget with an es_module, it's automatically added as an import

Lapis subcommand integration

  • Migrated to the standardized Lapis action format
  • Now supports lapis eswidget as a native subcommand (requires Lapis ≥ v1.14.0)
  • Standalone lapis-eswidget binary remains available

New bundle methods

  • Added --bundle-method option with three choices:
    • esbuild (default) - Bundle using esbuild
    • module - Generate ES module imports without bundling
    • concat - Simple file concatenation

Debug command enhancements

  • Now shows ES module dependencies
  • Added -r/--recursive flag to display the full dependency tree

Improvements

Tup output

  • New --tup-compile-out-group and --tup-bundle-out-group options
  • Generated tupfiles now include version and command arguments in header
  • Removed intermediate joined file - modules are piped directly into esbuild

Bug Fixes

  • Fixed import line matching to not capture dynamic imports (import())
  • Fixed relative paths for module bundle method

Other Changes

  • Rockspec source URL no longer requires SSH (git+https instead of git+ssh)
  • Renamed --metafile to --esbuild-metafile for clarity