Releases: serverless-heaven/serverless-webpack
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: 1Full changelog
5.4.2
Finally, some annoying bugs introduced in 5.4.0 are now fixed. Thanks to contributors! 🤝
- Regression Fix: Empty lines while stats: 'errors-only' (#773 @Enase)
- Add type to CLI options (#774 @j0k3r)
- Add Serverless v2 compatibility (#775 @nponeccop)
- Support local errors with NPM 7 workspaces (#782 @mikejpeters)
- Fix
excludeRegexoption and allow dotfiles to be packaged (#780 @l1b3r) - Correctly handle packaging for function during
deploy -f(#794 @pgrzesik)
The next release will be the 5.5.0 with some additional features ✨
5.4.1
Here is a small release with few fixes. Thanks to contributors! 🤝
There are still some bugs reported since 5.4.0 was released that we need to work on.
- Display the zip method used (#735 @j0k3r)
- Dependabot should now updates package.json too (#742 @j0k3r)
- Fix configuration check for
keepOutputDirectoryin cleanup (#748 @daryl-c) - Prevent ts-node being registered twice (#766 @apancutt)
- Fix external modules with webpack 5 (#746 @janicduplessis)
- Allow custom webpack config files to export as an ES6 module (interop default) (#767 @apancutt)
5.4.0
After a long silence, here the latest release ✌️
We have new options, new arguments and some optimizations 🚀
📚 The full changelog is available here. But here are some highlights:
New options:
noFrozenLockfile(boolean) under thepackagerOptionsfor the Yarn packager allows you to not have an up to dateyarn.lock. See #687excludeRegex(string) allows you to filter files that match the regex before adding to the zip. See #612serializedCompile(boolean) allows you to run each webpack buid one at a time to reduce memory usage. See #517allowCustomRuntime(boolean) added to the function level in yourserverless.ymlallows you force the packaging when you are using a nodejs custom runtime ONLY. See #675concurrency(integer) allow to set the concurrency (defaults to the number of available cores), only works when packing functions individually. See #681
New arguments:
- the
--no-buildused when deploying won't re-build everything if you already build it (usingsls webpackfor example). See #560
Optimizations:
5.3.5
5.3.4
Release Notes
- Bump lodash from 4.17.15 to 4.17.19 #597
- Bump lodash from 4.17.15 to 4.17.19 in /examples/typescript #598
- Bump lodash from 4.17.4 to 4.17.19 in /examples/multiple-statically-entries #599
- Bump lodash from 4.17.4 to 4.17.19 in /examples/include-external-npm-packages #600
- Bump lodash from 4.17.4 to 4.17.19 in /examples/babel-multiple-statically-entries #601
- Bump lodash from 4.17.4 to 4.17.19 in /examples/babel #603
- Ignore more files from NPM #609
- Update all examples #626