Skip to content

Releases: lwsjs/lws

v4.1.0

06 Aug 10:06
Compare
Choose a tag to compare

New features since v4.0.2

  • Support extended back to Node.js v12.20
    • This is because support for exports, conditional exports and exports patterns have been retro-fitted back to v12 (see the Package module history)

Upgrade notes

Users of Node.js v12.20 and above may now use lws (previously, you needed a minimum of node v14). There are no further changes.

v4.0.0

06 Jul 10:37
Compare
Choose a tag to compare

This is a refresher release - there are no functional or behavioural changes to the web server itself.

Breaking changes since v3.1.0

  • Dropped support for Node.js < v14
  • Dropped support for consuming the API from CommonJS modules
  • Dropped support for plugin prefixes
    • Previously, you could omit the lws- in plugin names, (i.e. you could use --stack static instead of --stack lws-static). This was ambigious and introduced the risk of incorrectly loading a module named static, if it existed.
  • Several of the API methods have changed from sync to async, most importantly the Lws.create method. You now need to await the result.
    const lws = await Lws.create()
    

New feature

  • The default config file lws.config.js may now also be named lws.config.mjs or lws.config.cjs if preferred.

Other improvements

  • All source code converted from CommonJS to ECMAScript modules.
  • All dependencies upgraded.

Upgrade notes

  • If you previously used shortened plugin names (e.g. --stack static) please use the full name (e.g. --stack lws-static)
  • If you launch a server using Lws.create you must now await the result.
  • Lws can now only be used programmatically from ECMAScript modules - you must use import to load the library.

v3.1.0

17 May 12:38
Compare
Choose a tag to compare

New features since v3.0.0

Other