Releases: lwsjs/lws
Releases · lwsjs/lws
v4.1.0
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)
- This is because support for
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
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 namedstatic
, if it existed.
- Previously, you could omit the
- Several of the API methods have changed from sync to async, most importantly the
Lws.create
method. You now need toawait
the result.const lws = await Lws.create()
New feature
- The default config file
lws.config.js
may now also be namedlws.config.mjs
orlws.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
New features since v3.0.0
- Added
--qr
option to display a QR Code for the chosen URL.- Feature request: lwsjs/local-web-server#148, PR: #16.
- Usage instructions: Open a web app in your mobile browser by scanning a QR code
- Added
--list-network-interfaces
to display the available network interface names. Used in conjunction with the--qr
option.
Other
- Added contribution guidelines.