Skip to content

Releases: serverless-heaven/serverless-webpack

5.5.0

10 May 19:18
912134a
Compare
Choose a tag to compare

New features were added in that release 🎉

Again, thanks to contributors! 🤝

We added the ability to specify the node_modules relative dir

In #689, thanks to @ypxing

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

In #813, thanks to @j0k3r

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

In #723, thanks to @rogersgt

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

In #550, thanks @cfroese

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

Full changelog

  • Add ability to specify the node_modules relative dir #689
  • Fix the spawn E2BIG error when zipping #813
  • Extends the --no-build option to serverless offline start #770
  • Add Serverless Container Support #723
  • Add support for Yarn network-concurrency option #550

5.4.2

28 Apr 06:29
a4b2677
Compare
Choose a tag to compare

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 excludeRegex option 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

07 Apr 13:47
320dea7
Compare
Choose a tag to compare

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 keepOutputDirectory in 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

17 Mar 14:50
8212cfc
Compare
Choose a tag to compare

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 the packagerOptions for the Yarn packager allows you to not have an up to date yarn.lock. See #687
  • excludeRegex (string) allows you to filter files that match the regex before adding to the zip. See #612
  • serializedCompile (boolean) allows you to run each webpack buid one at a time to reduce memory usage. See #517
  • allowCustomRuntime (boolean) added to the function level in your serverless.yml allows you force the packaging when you are using a nodejs custom runtime ONLY. See #675
  • concurrency (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-build used when deploying won't re-build everything if you already build it (using sls webpack for example). See #560

Optimizations:

  • switched to bestzip instead of archiver to use natine zip command if it exists. See #596
  • speed up cleanup process when removing .webpack folder. See #462

5.3.5

14 Sep 06:21
38135e4
Compare
Choose a tag to compare
  • Improve runtime validation #629
  • Move ts-node as optional dependency #636
  • Upgrade deps #637

5.3.4

24 Aug 15:03
9f4fee8
Compare
Choose a tag to compare

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

5.3.3

23 Jul 03:51
935679e
Compare
Choose a tag to compare

Release notes

  • default webpackConfig.node should be false #502
  • Fix yarn list --json stdOut parsing. fixes #388 #516
  • Updated release notes #585
  • Updated Node versions in CI #587
  • Remove optional peer dependencies #542
  • Check for node runtimes first #579
  • Bumps lodash from 4.17.15 to 4.17.19 #602

5.3.2

04 May 14:04
8859f1b
Compare
Choose a tag to compare

Release Notes

  • Fix eslint prettier #518
  • Add TypeScript definition #520
  • Project dependencies updated #524
  • fix typescript example lockfile #526
  • Typescript example babel loader #527
  • Bump tar from 2.2.1 to 2.2.2 in /examples/babel #544
  • Bump acorn from 6.3.0 to 6.4.1 in /examples/typescript #562
  • Bump eslint-utils from 1.4.0 to 1.4.3 #567
  • Bump handlebars from 4.1.2 to 4.7.6 #568
  • Addressed npm security vulnerabilities #569
  • Bump https-proxy-agent from 2.2.2 to 2.2.4 #572
  • Bump https-proxy-agent from 2.2.2 to 2.2.4 in /examples/typescript #573
  • Bump extend from 3.0.1 to 3.0.2 in /examples/babel #574
  • Bump stringstream from 0.0.5 to 0.0.6 in /examples/babel #575
  • Bump tough-cookie from 2.3.2 to 2.3.4 in /examples/babel #576
  • Bump sshpk from 1.13.1 to 1.16.1 in /examples/babel #577
  • Bump debug from 2.6.8 to 2.6.9 in /examples/babel #578

5.3.1

07 Jun 19:29
eaee022
Compare
Choose a tag to compare

Release notes

  • Fixed bug that prevented to use handlers using import #505
  • Do not print empty lines in webpack stats #499
  • Added git hooks to improved code quality and developer experience #496

5.3.0

30 Apr 12:21
Compare
Choose a tag to compare

Release Notes

  • Restore compatibility with TypeScript #449 #465
  • Allow glob for excludeFiles #471
  • Support Webpack 5 #472
  • Use colored output depending on tty #480
  • Allow to keep webpack folder #453 #467
  • Add ability to exclude files from handler lookup #433
  • Documentation fixes #429

Special thanks to @hassankhan and @designfrontier for the help to get this release out 🥇