Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @middy/core to v3 #110

Merged
merged 1 commit into from May 19, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 13, 2022

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@middy/core (source) 2.5.7 -> 3.0.3 age adoption passing confidence

Release Notes

middyjs/middy

v3.0.3

Compare Source

What's Changed

New Contributors

Full Changelog: middyjs/middy@3.0.2...3.0.3

v3.0.2

Compare Source

What's Changed

New Contributors

Full Changelog: middyjs/middy@3.0.1...3.0.2

v3.0.1

Compare Source

What's Changed

  • Updated dependencies

Full Changelog: middyjs/middy@3.0.0...3.0.1

v3.0.0

Compare Source

Checkout UPGRADE.md to see what are the main breaking changes and how to migrate to this new version if coming from 2.x.

Version 3.x of Middy no longer supports Node.js versions 12.x. You are highly encouraged to move to Node.js 16.x.
With the Node.js version change all packages are now ECMAScript Modules along side CommonJS Modules.

Notable changes

  • New WebSocket middlewares
  • HTTP & WebSocket Routers!
  • Better error handling
  • Timeout error handling
  • Errors now use { cause } for better context

Additions

  • New middleware (http-content-encoding, http-router, service-discovery, ws-json-body-parser, ws-response, ws-router)
  • core
    • Added .handler() method to allow easier understanding of the execution cycle
    • lambdaHandler can now be passed an AbortController signal
    • internal events can now be monitored using Proxy
  • util
    • getInternal error now includes cause set to an array of Errors
    • Catch when X-Ray is applied outside of handler invocation scope

Breaking Changes

  • core
    • The order onError being called is now reversed to match after
      • If you only use @middy/* middlewares no change should be required
      • If you have custom error handling middleware or other custom middleware that return response, additional testing is high recommended
    • Deprecate applyMiddleware() and __middlewares
  • util
    • normalizeHttpResponse now takes request and mutates response
    • getCache will return {} instead of undefined when not found
  • Deprecated setToEnv option from all middleware
  • Will now throw error if not an http event in http-event-normalizer
  • Change default charset from binary/latin1 to utf-8 within http-multipart-body-parser
  • Renamed default option to defaultContentType to improve maintainability in http-response-serializer
  • Deprecate expectCt in http-security-headers
  • sqs-partial-batch-failure completely rewritten
  • Renamed default option to defaultContentType http-response-serializer
  • normalizeHttpResponse now takes request and mutates response
  • Change where errors are stored, from request.error.details to request.error.cause in validator

Removed

  • s3-key-normalizer in favour of event-normalizer
  • sqs-json-body-parser in favour of event-normalizer

Maintenance

  • Better error reporting when dealing with Promise arrays

Full Changelog: middyjs/middy@2.5.7...3.0.0


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot added dependencies Pull requests that update a dependency file MAJOR labels May 13, 2022
@renovate renovate bot force-pushed the renovate/middy-core-3.x branch 8 times, most recently from e6ec8b9 to 477ba10 Compare May 19, 2022 10:17
@renovate renovate bot force-pushed the renovate/middy-core-3.x branch from 477ba10 to 33a08db Compare May 19, 2022 10:44
@domeq domeq merged commit 2805bcf into main May 19, 2022
@domeq domeq deleted the renovate/middy-core-3.x branch May 19, 2022 11:06
domeq added a commit that referenced this pull request May 19, 2022
### [4.0.1](v4.0.0...v4.0.1) (2022-05-19)

### Miscellaneous Chores

* **deps:** update dependency @middy/core to v3 ([#110](#110)) ([2805bcf](2805bcf))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file MAJOR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants