From 483bb3f84dbb336a55378c4f5604aa028f20a44e Mon Sep 17 00:00:00 2001 From: will Farrell Date: Sat, 11 Nov 2023 16:42:23 -0700 Subject: [PATCH] docs: add in aka --- website/docs/upgrade/0-1.md | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/website/docs/upgrade/0-1.md b/website/docs/upgrade/0-1.md index 6fa71f139..80b947ac2 100644 --- a/website/docs/upgrade/0-1.md +++ b/website/docs/upgrade/0-1.md @@ -3,6 +3,8 @@ title: Upgrade 0.x -> 1.x sidebar_position: 10000 --- +aka "The It's Stable Update" + ## Independent packages structure Version 1.x of Middy features decoupled independent packages published on npm under the `@middy` namespace. The core middleware engine has been moved to [`@middy/core`](https://www.npmjs.com/package/@middy/core) and all the other middlewares are moved into their own packages as well. This allows to only install the features that are needed and to keep your Lambda dependencies small. See the list below to check which packages you need based on the middlewares you use: @@ -11,20 +13,19 @@ Version 1.x of Middy features decoupled independent packages published on npm un - `cache` -> [`@middy/cache`](https://www.npmjs.com/package/@middy/cache) - `cors` -> [`@middy/http-cors`](https://www.npmjs.com/package/@middy/http-cors) - `doNotWaitForEmptyEventLoop` -> [`@middy/do-not-wait-for-empty-event-loop`](https://www.npmjs.com/package/@middy/do-not-wait-for-empty-event-loop) -- `httpContentNegotiation` -> [`@middy/http-content-negotiation`](https://www.npmjs.com/package/@middy/http-content-negotiation) -- `httpErrorHandler` -> [`@middy/http-error-handler`](https://www.npmjs.com/package/@middy/http-error-handler) -- `httpEventNormalizer` -> [`@middy/http-event-normalizer`](https://www.npmjs.com/package/@middy/http-event-normalizer) -- `httpHeaderNormalizer` -> [`@middy/http-header-normalizer`](https://www.npmjs.com/package/@middy/http-header-normalizer) -- `httpMultipartBodyParser` -> [`@middy/http-json-body-parser`](https://www.npmjs.com/package/@middy/http-json-body-parser) -- `httpPartialResponse` -> [`@middy/http-partial-response`](https://www.npmjs.com/package/@middy/http-partial-response) -- `jsonBodyParser` -> [`@middy/http-json-body-parser`](https://www.npmjs.com/package/@middy/http-json-body-parser) -- `s3KeyNormalizer` -> [`@middy/s3-key-normalizer`](https://www.npmjs.com/package/@middy/s3-key-normalizer) -- `secretsManager` -> [`@middy/secrets-manager`](https://www.npmjs.com/package/@middy/secrets-manager) -- `ssm` -> [`@middy/ssm`](https://www.npmjs.com/package/@middy/ssm) -- `validator` -> [`@middy/validator`](https://www.npmjs.com/package/@middy/validator) -- `urlEncodeBodyParser` -> [`@middy/http-urlencode-body-parser`](https://www.npmjs.com/package/@middy/http-urlencode-body-parser) -- `warmup` -> [`@middy/warmup`](https://www.npmjs.com/package/@middy/warmup) - +- `httpContentNegotiation` -> [`@middy/http-content-negotiation`](https://www.npmjs.com/package/@middy/http-content-negotiation) +- `httpErrorHandler` -> [`@middy/http-error-handler`](https://www.npmjs.com/package/@middy/http-error-handler) +- `httpEventNormalizer` -> [`@middy/http-event-normalizer`](https://www.npmjs.com/package/@middy/http-event-normalizer) +- `httpHeaderNormalizer` -> [`@middy/http-header-normalizer`](https://www.npmjs.com/package/@middy/http-header-normalizer) +- `httpMultipartBodyParser` -> [`@middy/http-json-body-parser`](https://www.npmjs.com/package/@middy/http-json-body-parser) +- `httpPartialResponse` -> [`@middy/http-partial-response`](https://www.npmjs.com/package/@middy/http-partial-response) +- `jsonBodyParser` -> [`@middy/http-json-body-parser`](https://www.npmjs.com/package/@middy/http-json-body-parser) +- `s3KeyNormalizer` -> [`@middy/s3-key-normalizer`](https://www.npmjs.com/package/@middy/s3-key-normalizer) +- `secretsManager` -> [`@middy/secrets-manager`](https://www.npmjs.com/package/@middy/secrets-manager) +- `ssm` -> [`@middy/ssm`](https://www.npmjs.com/package/@middy/ssm) +- `validator` -> [`@middy/validator`](https://www.npmjs.com/package/@middy/validator) +- `urlEncodeBodyParser` -> [`@middy/http-urlencode-body-parser`](https://www.npmjs.com/package/@middy/http-urlencode-body-parser) +- `warmup` -> [`@middy/warmup`](https://www.npmjs.com/package/@middy/warmup) ## Header normalization in `http-header-normalizer` @@ -32,8 +33,6 @@ In Middy 0.x the `httpHeaderNormalizer` middleware normalizes HTTP header names When updating to Middy 1.x, make sure you double check all your references to HTTP headers and switch to the lowercase version to read them. All the middy core modules have been already updated to support the new format, so you should worry only about your userland code. - ## Node.js 10 and 12 now supported / Node.js 6 and 8 now dropped Version 1.x of Middy no longer supports Node.js versions 6.x and 8.x as these versions have been dropped by the AWS Lambda runtime itself and not supported anymore by the Node.js community. You are highly encouraged to move to Node.js 12 or 10, which are the new supported versions in Middy 1.x. -