Releases: serverless-heaven/serverless-webpack
5.7.1
5.7.0
Main changes
-
@medikoo changed the output log when using Serverless v3, it's less verbose and more clean
-
We switch back to
archiver
instead ofbestzip
to ensure consistent artifact. The switch to bestzip was mostly for faster zip because it tend to use the native zip command instead of the one from Node. -
Support for NPM 8 was added by @moroine
What's Changed
- Clarify versions supported by the plugin by @mnapoli in #1056
- Fix tests with Serverless v3 by @j0k3r in #1062
- Modern logs for Serverless Framework v3 by @medikoo in #1013
- Ensure consistent artifact
sha
(removebestzip
and bring backarchiver
) by @russell-dot-js & @j0k3r in #1018 - Allow param values in
slsw.lib.options
by @coyoteecd in #1076 - Supports NPM 8 and convert tests from Mocha to Jest by @moroine in #1084
- Update Jest config by @j0k3r in #1110
- Fix filesystem cache not working when package individually is set by @hieuunguyeen in #1037
New Contributors
- @mnapoli made their first contribution in #1056
- @moroine made their first contribution in #1084
- @hieuunguyeen made their first contribution in #1037
Full Changelog: v5.6.1...v5.7.0
5.6.1
What's Changed
- Enable auto-merge for minor upgrades. by @vicary in #1008
- Fix handling of multiple compilation errors by @medikoo in #1011
- Mark plugin as Serverless Framework v3 compliant by @medikoo in #1016
- Prevent
includeModules
andnoInstall
at the same time. by @vicary in #1023 - 5.6.1 by @j0k3r in #1049
Full Changelog: v5.6.0...v5.6.1
5.6.0
Detailed changes
-
There is now a
noInstall
options inpackagerOptions
(for both NPM & Yarn) to skip deps installation during the Serverless package / deployment. If you enable that option, be sure packages are installed before.custom: webpack: packagerOptions: noInstall: true
-
The
--no-build
CLI argument has been removed.
You should now define it inside your Serverless configuration:custom: webpack: noBuild: true
-
The
--watch
CLI argument has been improved and now works properly.
What's Changed
- Avoid a JS error when the Webpack config is not found by @j0k3r in #1002
- feat(packager): add noInstall option by @russell-dot-js in #1003
- Centralize webpack stats config handling (refactor) by @medikoo in #1006
- Fix command resolution when watch is involved by @medikoo in #1004
- feat(compiler): add noBuild option by @vicary in #1007
- Fix user error reporting by @medikoo in #1005
- 5.6.0 by @j0k3r in #1010
Full Changelog: v5.5.5...v5.6.0
5.5.5
5.5.4
5.5.3
5.5.2
5.5.1
Here is a small release with few fixes with one important improvement in memory usage when packaging function individually.
Thanks to contributors! 🤝
- Use processed options to improve non-AWS provider support (#834 @CorentinDoue)
- Reduce memory usage by releasing webpack stats objects after compile (#858 @janicduplessis)
- Allow boolean or number values in
slsw.lib.options
(#857 @coyoteecd) - Fix packaging for non-node functions (#876 @FatalTouch)
5.5.0
New features were added in that release 🎉
Again, thanks to contributors! 🤝
We added the ability to specify the node_modules
relative dir
This'll help people using monorepo. You define this option like that:
# serverless.yml
custom:
webpack:
includeModules:
nodeModulesRelativeDir: '../../' # relative path to current working directory.
Fix the spawn E2BIG
error when zipping
While fixing a bug when using the excludeRegex
option a new one appear when we give a huge files list to the zip
command. It crashed with the E2BIG error.
Now, if you define the excludeRegex
option, we'll never use the zip
command but the NodeJS way to create the zip to avoid that error. It'll be slower but it'll work.
Extends the --no-build
option to serverless offline start
In #770, #649 & #501, thanks to @nponeccop, @francisu & @todda00
Extends the --no-build
option to serverless offline start
and serverless offline
, allowing the ability to use previously compiled files from either a previous serverless offline start
(when keeping output files) or from a direct serverless webpack
Add Serverless Container Support
It adds support for Docker Images as Custom Runtimes. Check the doc about that: https://github.com/serverless-heaven/serverless-webpack#support-for-docker-images-as-custom-runtimes
Add support for Yarn network-concurrency option
It adds the ability to specify the network-concurrency option when using Yarn as the packager.
# serverless.yml
custom:
webpack:
packager: 'yarn'
packagerOptions:
networkConcurrency: 1