Skip to content

Releases: serverless-heaven/serverless-webpack

5.7.1

10 May 08:13
e5c12a3
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.7.0...v5.7.1

5.7.0

09 Apr 11:54
69cce54
Compare
Choose a tag to compare

Main changes

  1. @medikoo changed the output log when using Serverless v3, it's less verbose and more clean

    progress:
    Screenshot 2021-10-13 at 17 50 37

    success:
    Screenshot 2021-10-13 at 17 50 08

  2. We switch back to archiver instead of bestzip 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.

  3. Support for NPM 8 was added by @moroine

What's Changed

New Contributors

Full Changelog: v5.6.1...v5.7.0

5.6.1

26 Jan 15:13
ca07a95
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.6.0...v5.6.1

5.6.0

22 Nov 11:51
de8475a
Compare
Choose a tag to compare

Detailed changes

  1. There is now a noInstall options in packagerOptions (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
  2. The --no-build CLI argument has been removed.
    You should now define it inside your Serverless configuration:

    custom:
      webpack:
        noBuild: true
  3. The --watch CLI argument has been improved and now works properly.

What's Changed

Full Changelog: v5.5.5...v5.6.0

5.5.5

18 Oct 12:28
4833a0f
Compare
Choose a tag to compare

What's Changed

New Contributors

  • @gwdp made their first contribution in #961

Full Changelog: v5.5.4...v5.5.5

5.5.4

08 Sep 07:35
a962787
Compare
Choose a tag to compare

This release include one fix (#953) when using serverless-webpack with webpack >= 5.52.0

5.5.3

01 Sep 07:43
5679961
Compare
Choose a tag to compare

This release include one fix (#944 thanks @mostthingsweb) when using sls deploy function --function=function-name for a function defined without an explicit runtime (that bug were introduced in 5.5.2).

5.5.2

26 Aug 14:27
dc4be8a
Compare
Choose a tag to compare

Here is a small release with few fixes.

  • Register serverless as peer dependency (#900 @medikoo)
  • Do not run webpack on a single non-node function (#879 @j0k3r)
  • Skip container function with uri defined (#877 @j0k3r)

5.5.1

10 Jun 08:02
033f504
Compare
Choose a tag to compare

Here is a small release with few fixes with one important improvement in memory usage when packaging function individually.

Thanks to contributors! 🤝

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