npm serverless-offline 9.0.0
v9.0.0

latest releases: 13.5.0, 13.4.0, 13.3.4...
22 months ago

BREAKING CHANGES

  • requires serverless v3.2 or higher, support for serverless v1 and v2 was removed.
  • requires node.js v14.18 or higher. note that this only applies to run the plugin, you can still use nodejs12.x as a lambda runtime.
  • this plugin is now a pure esm module. this should not matter to most users as the plugin is usually being loaded by serverless itself. you might run into issues if you are running the plugin programmatically or if you are using a plugin for this plugin.
  • worker threads are now being used by default. this resembles closer characteristics to how lambdas behave. the --useWorkerThreads flag was therefore removed. if you want to run in the previously default in-process mode you have to use the new --useInProcess flag.
  • reloading handlers for development is now an opt-in, as opposed to be an opt-out. for that reason (and others) the flag name was changed to --reloadHandler. --allowCache has been removed.
  • handler reloading within the node.js process (in-process mode) was removed and is not possible anymore, as it was buggy and the cause for countless memory leaks. removing this also sets the stage for supporting esm handlers, which are not accessible within require.cache. if the in-process mode is being preferred, one might want to use nodemon or similar to trigger handler reloading (which would restart the entire node process)

Features

  • add 'configValidationMode: error' option (8de4008)
  • add 'configValidationMode: error' option, Part 2 (3610786)
  • add 'configValidationMode: error' option, Part 3 (6f3e66b)
  • add 'configValidationMode: error' option, Part 4 (b7e73f2)
  • add 'configValidationMode: error' option, Part 5 (39d37cb)
  • add new runtimes (#1464) (3ae08c4)
  • add object.hasown shim (ea0aebf)
  • add package.json exports field (2c263d0)
  • add reload handler flag (f662dc5)
  • bump esm-only deps (#1456) (5faa4d1)
  • display memory leak warning for in-process handlers (2192a5f)
  • remove babel, use esm (#1455) (1f4d836)
  • remove even more serverless v2 logging (677d1b1)
  • remove more serverless v2 logging (6b101aa)
  • remove serverless v2 logging (404093c)
  • support serverless v3 (#1444) (1e9445e)

Bug Fixes

ci

Maintenance Improvements

Don't miss a new serverless-offline release

NewReleases is sending notifications on new releases.