Skip to content

chore(deps-dev): update serverless requirement from ^4.38.1 to ^4.40.0 in /examples/deploy-aws-lambda - #3004

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/examples/deploy-aws-lambda/serverless-tw-4.39.0
Jul 23, 2026
Merged

chore(deps-dev): update serverless requirement from ^4.38.1 to ^4.40.0 in /examples/deploy-aws-lambda#3004
github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/examples/deploy-aws-lambda/serverless-tw-4.39.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 10, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on serverless to permit the latest version.

Release notes

Sourced from serverless's releases.

4.40.0

Features

  • Lambda self-managed code storage. Setting provider.deploymentBucket.codeStorageMode: reference makes Lambda run function and layer code directly from your deployment bucket instead of copying it into Lambda-managed storage, so your code no longer counts against the Lambda code storage quota. Every deployment pins each function and layer to the exact uploaded S3 object version, so later uploads never affect what runs. Because deployment artifacts back live Lambda versions in this mode, automatic post-deploy artifact cleanup is disabled — retire artifacts that no longer back any function or layer version with serverless prune --includeArtifacts (also available as custom.prune.includeArtifacts). Read more in the deployment bucket guide and the prune CLI reference, and see the aws-node-self-managed-code-storage example. (#13725)
provider:
  deploymentBucket:
    codeStorageMode: reference # default: copy
# Keep the 3 most recent function versions, then retire deployment
# artifacts that no longer back any surviving function or layer version
serverless prune -n 3 --includeArtifacts

Note reference mode requires a versioned deployment bucket that Lambda is allowed to read. The Framework-managed deployment bucket is configured automatically; custom buckets are validated and the deployment stops with instructions when a prerequisite is missing.

  • Compose: run a command on an exact subset of services. The --service option now accepts a comma-separated list for deploy, remove, info, print, and package. The command runs on exactly the named services, ordered by dependsOn; services not named are left untouched, and their outputs stay available for ${param:...} resolution — so a subset can reference services already deployed elsewhere. Read more in the Compose guide. (#13705)
serverless deploy --service=service-a,service-d --stage my-feature
  • Removed Serverless Container Framework and Serverless AI Framework. These products are no longer part of the CLI. Projects with a serverless.containers.* or serverless.ai.* configuration file now get a clear error with guidance: pin frameworkVersion: "4.39.0" (the last version supporting them) and the CLI automatically runs that version for the project. (#13698)
frameworkVersion: '4.39.0'

Bug Fixes

  • Fixed corrupted bundles when multiple functions share a handler file. The built-in esbuild packaging ran one build per function, so functions sharing a handler file wrote the same output concurrently — occasionally producing a corrupted bundle that failed at Lambda startup with Runtime.UserCodeSyntaxError. Each unique handler file is now built exactly once and reused across the functions that share it, which also removes the redundant rebuilds. (#13716, #13717) - Thanks @​dekpient for the report!
  • Fixed unchanged services being redeployed on every deploy. Artifacts produced by the built-in esbuild packaging embedded fresh file timestamps on every build, so identical code always looked changed to deploy change detection. Archive entry timestamps are now pinned, identical content produces byte-identical artifacts, and unchanged deployments are skipped as intended. (#13696)
  • Fixed the shared IAM role accumulating permissions for functions with dedicated roles. When only some functions use per-function IAM roles, the shared execution role no longer collects event-source and feature grants belonging to functions that have their own role — previously its inline policy grew with every function and could exceed the IAM policy size limit ("Maximum policy size exceeded"). Dedicated per-function roles also now receive grants that previously only existed on the shared role, including Kinesis enhanced fan-out consumer actions, stream onFailure destination grants, and kms:Decrypt for kmsKeyArn. (#13704)
  • Fixed a crash when frameworkVersion is "*". Version ranges without a concrete version, such as '*', no longer throw TypeError: Cannot read properties of null (reading 'major'). Since such ranges accept every version, the version check is skipped for them; all other values behave as before — pinning a different major version still fails with the version mismatch error, and invalid version strings still fail under configValidationMode: error. (#13714)
  • Safer development-dependency exclusion during packaging. When the production dependency listing cannot be determined, packaging now stops with a clear error instead of risking an artifact that excludes production dependencies (opt out with package.excludeDevDependencies: false); when no dependency listing is available at all, exclusion is skipped with a warning and the artifact ships fully functional. Dependency listing output is also captured directly rather than through the shell, making packaging robust in temporary directories containing spaces or special characters. (#13724, #13699)
  • Hardened validation of pinned canary versions in the installer. Malformed canary version values are rejected with a clear error, and release downloads are contained to the expected releases directory. (#13700)

Maintenance

  • Updated multiple dependencies:
    • Bumped the AWS SDK group with 36 updates (#13715)
    • Upgraded adm-zip to v0.6.0 (#13720)
    • Upgraded fast-uri to v3.1.4 (#13722)
    • Upgraded js-yaml to v4.3.0 (#13712)
    • Upgraded body-parser to v2.3.0 in the Bedrock AgentCore examples, addressing GHSA-v422-hmwv-36x6 (#13723)

... (truncated)

Commits
  • e2c559e chore: release 4.40.0 (#13726)
  • a5ad2d6 feat(aws): support Lambda self-managed code storage (reference mode) (#13725)
  • 60badd3 fix(packaging): stop packaging when the production dependency listing is unav...
  • eb0af13 fix(aws): scope shared IAM role to functions without dedicated per-function r...
  • 8159e96 fix(esbuild): build shared handler files once to prevent corrupted bundles (#...
  • 052eb97 chore(deps): bump the npm_and_yarn group across 5 directories with 1 update (...
  • c425f77 feat(compose): accept a comma-separated service list in --service (#13705)
  • 570a830 chore(deps): bump fast-uri from 3.1.3 to 3.1.4 (#13722)
  • 0acff69 chore(deps): bump adm-zip from 0.5.18 to 0.6.0 (#13720)
  • 3dcbfa7 chore: standardize development toolchain on Node 24 LTS and npm 12 (#13721)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added area:examples issues related to example or sample code dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jul 10, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner July 10, 2026 15:53
@dependabot dependabot Bot added area:examples issues related to example or sample code dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jul 10, 2026
@changeset-bot

changeset-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0930b55

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
github-actions Bot enabled auto-merge (squash) July 10, 2026 15:53
@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.33%. Comparing base (7401d4f) to head (0930b55).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3004   +/-   ##
=======================================
  Coverage   94.33%   94.33%           
=======================================
  Files          43       43           
  Lines        7360     7360           
  Branches      679      679           
=======================================
  Hits         6943     6943           
  Misses        409      409           
  Partials        8        8           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/examples/deploy-aws-lambda/serverless-tw-4.39.0 branch from c89301f to 05ac318 Compare July 10, 2026 15:58
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/examples/deploy-aws-lambda/serverless-tw-4.39.0 branch from 05ac318 to b242f50 Compare July 15, 2026 18:38
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/examples/deploy-aws-lambda/serverless-tw-4.39.0 branch from b242f50 to 99b1f81 Compare July 17, 2026 15:58
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/examples/deploy-aws-lambda/serverless-tw-4.39.0 branch from 99b1f81 to e4cbcfc Compare July 17, 2026 19:54
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/examples/deploy-aws-lambda/serverless-tw-4.39.0 branch from e4cbcfc to 9619414 Compare July 17, 2026 20:04
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/examples/deploy-aws-lambda/serverless-tw-4.39.0 branch from 9619414 to 81c353c Compare July 18, 2026 01:26
Updates the requirements on [serverless](https://github.com/serverless/serverless) to permit the latest version.
- [Release notes](https://github.com/serverless/serverless/releases)
- [Changelog](https://github.com/serverless/serverless/blob/main/RELEASE_PROCESS.md)
- [Commits](https://github.com/serverless/serverless/compare/sf-core@4.38.1...sf-core@4.40.0)

---
updated-dependencies:
- dependency-name: serverless
  dependency-version: 4.39.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore(deps-dev): update serverless requirement from ^4.38.1 to ^4.39.0 in /examples/deploy-aws-lambda chore(deps-dev): update serverless requirement from ^4.38.1 to ^4.40.0 in /examples/deploy-aws-lambda Jul 23, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/examples/deploy-aws-lambda/serverless-tw-4.39.0 branch from 81c353c to 0930b55 Compare July 23, 2026 13:03
@github-actions
github-actions Bot merged commit 25cb5a1 into main Jul 23, 2026
25 checks passed
@github-actions
github-actions Bot deleted the dependabot/npm_and_yarn/examples/deploy-aws-lambda/serverless-tw-4.39.0 branch July 23, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:examples issues related to example or sample code dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants