v5.0.0
This is a refresher release - there are no functional or behavioural changes to the web server itself.
Breaking changes since v4.2.1
- Dropped support for Node.js < v14
- Dropped support for CommonJS in general
- 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.