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(main): release serverless-adapter 4.0.0 #152

Conversation

H4ad
Copy link
Owner

@H4ad H4ad commented Dec 22, 2023

🤖 I have created a release beep boop

4.0.0 (2023-12-22)

⚠ BREAKING CHANGES

  • api-gateway-v2: now we don't flatten the headers
  • core: now regex is not support anymore due the slow performance and we don't lower case all the headers, so the content-encoding and content-type must be lowercase
  • vitest: removed support for fastify 3.0.0 & hapi 20.x & firebase-admin < 11
  • nodejs: Now we will no longer support old nodejs versions
  • library-structure: New path to export handlers, frameworks, adapters and resolvers.

Features

  • adapters: added apollo server mutation adapter (aa7e3e3)
  • adapters: added dummy adapter to be used by clouds that don't require adapter to work (d59890a)
  • adapters: added some aws adapters (744d73f)
  • adapters: added support to api gateway (6726c0e)
  • all: added support to typescript (6a93747)
  • apollo-server: added support for apollo server (4d6f35b)
  • aws-stream: added support for aws lambda stream (6782563)
  • aws: added adapter for request lambda edge (b8791da)
  • azure: added adapter to http trigger v4 (15c1473)
  • azure: added handler to receive events from azure functions (0310e15)
  • batch-support: added aws simple adapter to abstract batch support to simple aws adapters (e6c17bb)
  • body-parser: added body-parsers frameworks (69b746a)
  • cors: added cors framework (8bf3425)
  • deepkit: try to add support to deepkit (6cc40fa)
  • digital-ocean: added handler and adapter to add support for digital ocean (0a29085)
  • draft-apollo-server: added initial implementation for apollo server (c2f2f11)
  • eslint & tools-version: added better rules to eslint and added tools version for nodejs (86f790f)
  • firebase-v2: added support for gen2 of firebase functions (90eba3f)
  • firebase: added handler for firebase (9a4d9a7)
  • firebase: bump supported firebase functions to 4.x (b717240)
  • frameworks: added lazy framework to enable users to create instance of the app asynchronously (be61c22)
  • gcp: added gcp handler (eef1183)
  • http-trigger-v4: make the adapter more flexible to v3 (96a5c15)
  • huawei: added support to event function with api gateway adapter (a92254a)
  • huawei: added support to functiongraph of type http function on huawei (697c6dd)
  • husky: added npm run test before each commit (f6becdb)
  • library-structure: rewrite exports to not broke with peer dependencies (b7fa0fa), closes #4
  • resolvers: added dummy resolver to clouds that don't require resolvers to work (d3e0840)
  • response: added support for next.js ssr response data in Uint8Array (9202ed0)
  • s3: added s3 adapter to aws (1c0ceb3)
  • stream: expose method to validate if stream is ended (ea6ca68)
  • trpc: added support to framework trpc (2c0168c)
  • trpc: bump support for 10.x (5d3124a)
  • tsconfig: set tsconfig to es2019 because nodejs is set to 12.x (7925fbb)
  • v2: added initial implementation of v2 (91680fe)

Bug Fixes

  • alb: alb not working when header value is not string (10d72ac)
  • api-gateway-v1: force headers to lower case (4a271db)
  • api-gateway-v1: force lower case for headers (4a271db)
  • api-gateway-v1: probably missing query string value when multiple (78b9f18)
  • api-gateway-v2: not returning correctly the cookies when they came with set-cookies (3f58cdd), closes #8
  • build: disable minify identifiers (0a285a6)
  • docs: simple adapters now throw error when status is different than success (2cf72e5)
  • firebase-handler: issue when firebase send body as object instead buffer (a20ca99), closes #40
  • firebase: issue with body-parser internally in firebase environment (3ec9a6f)
  • http-firebase: wrong path on import inside test file (7f1cb7d)
  • http-trigger-v4: issue after upgrade typescript (b047b56)
  • http-trigger-v4: make the parseCookie function be case sensitive (0092124)
  • lazy: added correct export in index.ts (71016b2)
  • network: overriding _readableState causes weird bugs of process exiting in deadlock (e3c46bc)
  • network: writeHead broken on nodejs 14.x (252dfbe)
  • package: added missing publish access to semantic release (6655d97)
  • package: removed resolutions because they break when using with peers (2922600)
  • package: types not being emitted (2bc1244)
  • readme: broken links in readme (c049498)
  • serverless-adapter: passing wrong constant to binary settings content types property (1d121eb), closes #12
  • test-adapters & husky: run command of build before commit & fix problem with resolver type (f1f39fc)
  • tsconfig: created build config that excludes test folder (23952db)

Documentation

  • .github: added more steps inside pull request template (68cc956)
  • adapter-contract: added deprecation notice for host and hostname (3461ebc)
  • adapter: added final version of creating an adapter doc (9dd6d30)
  • adapters-aws: added docs about alb and lambda edge & fixed some docs in other adapters (f69a663)
  • adapters: added docs for huawei, sqs, sns and dynamodb (1acb9d6)
  • adapters: continue to work on adapters documentation (772363f)
  • algolia: added support to algolia (0e6eae4)
  • apollo server: fixing some typos and redirect links (95645e0)
  • apollo-server: added documentation for apollo server (56c4a74)
  • aws-adapters: added docs about api gateway v1/v2 and event bridge & fixed issues in other docs (49b1bc6)
  • aws-lambda-response-streaming: added docs about the new handler (c05b035)
  • azure: added documentation about how to integrate with azure (4cbbfaa)
  • base-body-parser: added correct docs description to mount api section (6edb996)
  • benchmark: added benchmark documentation (c4c8dea)
  • benchmark: update benchmark information (1ba7fa0)
  • blog: added new article to the blog (72f07d9)
  • blog: fixed issue with broken link (6761974)
  • body-parser: added documentation to body-parser (5295cbb)
  • breadcrumb: fixed missing breadcrumbs (2aa8823)
  • breadcrumb: fixed typo issue with breadcrumb (59b8ec6)
  • cname: try to fix issue with cname everytime I deploy (af44840)
  • contracts: added missing documentation for adapter contract (4ed9e46)
  • correct typo (2209a66)
  • cors: added docs about cors (01d1a35)
  • custom-css: added scroll behaviour smooth (3fe089e)
  • deepkit: added docs for deepkit (69c484a)
  • deepkit: added more instructions to use deepkit in aws (d401a8d)
  • default.handler: removed unused jsdoc parameter (e26219e)
  • digital-ocean: added docs about cli (45e54de)
  • digital-ocean: added docs about how to integrate with digital ocean (0a88847)
  • docs & readme: added many fixes and update docs & changed readme to point to docs site (ae7b1c7)
  • docsearch: added support for docsearch crawler (d673cef)
  • docusaurus: added initial version of website built with docusaurus (e7d18cd)
  • docusaurus: added more info about maintainer (edaa5da)
  • eslint & build: issue with build docs and eslint (195c397)
  • eslint & index.doc: fixed eslint & added more files inside index.doc (7ee1a1b)
  • etc: added back this folder just to not get errors when generate docs (355e49d)
  • event-bridge: added better documentation of schedule expression (dfd1fed)
  • files: moved files from docs to www folder (1995515)
  • firebase: added docs about firebase v2 (3a74353)
  • firebase: added documentation to use firebase (2f4dbcf)
  • frameworks: added documentation about all frameworks (42a50a0)
  • gcp: added docs about how to use (a9c209c)
  • getting-started & adapters: continue to add more documenation to start and adapters (c2bd60f)
  • getting-started: added version 16.x and 18.x to the docs (3b00431)
  • handlers: added documentation about default and huawei handlers (2233d64)
  • helpers/lazy.mdx: fixing a small typo (8513089)
  • http-trigger-v4: fixed broken link (0f8f35b)
  • huawei & dummy: added missing descriptions and fixed breadcrumbs (e6baee9)
  • installation: removed support doc for older nodejs versions (5e02fcd)
  • intro: added missing azure handler (cc71587)
  • intro: fixed align mistake in huawei api gateway (2a7680b)
  • intro: fixed usage of wrong adapter (ed96726)
  • intro: removed beta banner (2e2dea2)
  • lambda-edge: added docs about request lambda edge (455e881)
  • lazy: added missing import and removed unused import (2ec822e)
  • lazy: fixed issue of passing app instead null for adapter (fa42ee0)
  • mdx.description: added description to resolvers, frameworks and getting started blocks (5e78ec0)
  • nestjs: fixed issue with lazy framework integration (b433f1c)
  • package & www: updated some old texts and descriptions (88eb123)
  • pages: restructure all pages (05bdff8)
  • pr: added support to test in nodejs 16.x and 18.x (db94cfb)
  • pt_br: removed any reference to pt_br docs (b1deea9)
  • pull-request-template: fixed path of main docs (0c2af01)
  • readme & intro: fixed typo issue with breaking change and pin (5221f8c)
  • readme & intro: improved documentation of readme and intro (5d2ceb7)
  • readme & www: added some fixes and better description for azure (682b406)
  • readme: added benchmark section in the readme (e25c31c)
  • readme: added docs about breaking changes (d15fdff)
  • readme: added docs about the library (8b8603e)
  • readme: added documentation about how to use huawei (6e33f44)
  • readme: added examples section to link with example repository (28c488c)
  • readme: added imports in the usage example (0e4d660)
  • readme: added plans to support firebase and gcp (677c0d9)
  • readme: fixed broken link of documentation (9450ec6)
  • readme: fixed typo in support section - event sources (1813ec1)
  • readme: fixed url of the docs (20f1676)
  • readme: removed semantic release badge (fe85304)
  • resolver.contract: added missing documentation for run method in resolver (b31f153)
  • resolvers: added better explanation about callbackWaitsForEmptyEventLoop (ff20236)
  • resolvers: added documentation about all resolvers (8e51268)
  • scripts: added scripts to generate markdown, api pages and other stuffs using tsdoc (6bacee7)
  • sidebars: changed order and collapse some sections (abbd86f)
  • sqs & dynamodb: added documentation about batch support (fd802aa)
  • src: better comments to the code (7e47a50)
  • trpc: add check of header for sqs and be more explicit about security flaw (bca0b28)
  • trpc: added documentation about new framework (49577a3)
  • trpc: fixed broken link to sqs (18826cd)
  • trpc: fixed typo mistake (0739679)
  • tsdoc: added better namig strategy to files (4136094)
  • www: added missing digital ocean adapter docs on sidebars (c968211)
  • www: changed base url of sitemap (8e3e72f)
  • www: update documentation for trpc 10.x (ab6c62b)

Chores

  • .tools-versions: changed default node version to 14.18.2 (a763a59)
  • benchmark: added cpuprofile to gitignore (b81f372)
  • benchmark: bump package versions (b6aa539)
  • benchmark: improved benchmarks (09e12ee)
  • benchmark: set default nodejs to 18.x (fff380b)
  • bootstrap releases for path: . (e68506e)
  • bump @apollo/server from 4.7.1 to 4.7.4 (cb25f1b)
  • bump @apollo/server from 4.7.4 to 4.9.3 (52c8b83)
  • bump semver from 5.7.1 to 5.7.2 in /benchmark (0a6a3e0)
  • bump semver from 5.7.1 to 5.7.2 in /www (49c7baf)
  • bump vite from 4.3.5 to 4.4.9 (ecd1252)
  • bump vite from 4.4.9 to 5.0.10 (8eadf40)
  • bump word-wrap from 1.2.3 to 1.2.4 (218d3a9)
  • contributing: added CONTRIBUTING.md (1a077af)
  • default.handler: merged two imports (84f73ee)
  • deps-dev: bump ejs from 3.1.6 to 3.1.7 (b084258)
  • deps-dev: bump fastify from 4.3.0 to 4.8.1 (7e6b419)
  • deps-dev: bump fastify from 4.8.1 to 4.10.2 (66bbf28)
  • deps-dev: bump semantic-release from 19.0.2 to 19.0.3 (712f46e)
  • deps: bump jose from 2.0.5 to 2.0.6 (5f6998b)
  • deps: bump loader-utils from 2.0.2 to 2.0.4 in /www (6ce799e)
  • deps: bump minimatch, recursive-readdir and serve-handler in /www (438e662)
  • deps: bump minimist and minimist (6804e27)
  • deps: bump npm from 8.4.0 to 8.12.0 (7472376)
  • deps: bump qs and formidable (086a0c5)
  • deps: bump semver-regex from 3.1.3 to 3.1.4 (b92d3f4)
  • deps: bump terser from 5.12.1 to 5.14.2 in /www (f6d0c2b)
  • deps: bump xml2js and aws-sdk in /benchmark (664ea9b)
  • docs: try added docs with tsdoc (f3e6864)
  • docs: update to docusaurus v3 (51a104e)
  • docusaurus: changed base url domain (d8cbf0f)
  • docusaurus: changed url of docs (a5c25c3)
  • env: removed unused env variables (2f91886)
  • jest: removed index.doc from coverage (62795d0)
  • nodejs: deprecate node 12.x, 14.x and 16.x (4c734d4)
  • package & tools-versions: changed nodejs to develop to 16.x & sync package-lock with nodejs16 (cdb8393)
  • package: added missing peer dependencies in dev dependencies (b73fb10)
  • package: added more keywords (ff5a9dc)
  • package: better description to this package (53541f3)
  • package: bump package versions (fe0a0fc)
  • package: bump package versions (dfd0b4e)
  • package: bump versions of microsoft packages to the same version (d2554ec)
  • package: fix missing apollo server as peer (b5718f7)
  • package: make cors and reflect-metadata optional to not be installed on npm i (087b37b)
  • package: moved some dev dependencies to peer dependencies and marked as optional (ce44879)
  • package: removed unused peer dependency (d09fc59)
  • package: upgrade dependencies, added more keywords & added command to install peers deps (ad2a341)
  • package: upgrade tsdocs packages to fix build (757133c)
  • release-please: set latest version (69110ec)
  • release: 3.0.0 [skip ci] (84ff718)
  • release: 3.1.0 [skip ci] (2ce2729)
  • scripts: added another script and renamed parse to generate:parsing (d9eb7c3)
  • scripts: fixed script on typescript 4.7 (968c963)
  • scripts: fixed some issues with sidebar and links (3027bda)
  • semantic-release: removed unused package (2c60275)
  • tmuxinator: changed organization of panes and windows (1d6289d)
  • tmuxinator: fixed path for docs website (6ee5bf1)
  • tools-versions: added file to define which version of nodejs to use during development (597f1c1)
  • tsconfig: enable go to source definition (483856e)
  • tsconfig: reduce lib size by removing declaration map (cdbae6e)
  • www: bump versions (153e6e6)

Performance Improvements

  • api-gateway-v1: faster getRequest (70f7020)
  • api-gateway-v2: faster getRequest method (3b08708)
  • api-gateway-v2: single pass when collecting headers and cookies on response (3d65895)
  • aws: optimized strip base path (f72967a)
  • default-handler: always log using fn (36950b3)
  • headers: use object.keys + reduce instead of entries (41339c6)
  • logger: faster logger (103817c)
  • logging: add defer log for util inspect (2a7389e)
  • optional: use strict equal instead of typeof (1fba12c)
  • tsconfig: do not use define because is slower (35ce7c7)

CI

  • codeql: added typescript as language (73f8c04)
  • codeql: run only when changing code files (93d8f1c)
  • codeql: updated configuration (9ffa3e8)
  • docs: added command to install peer dependencies (591e65c)
  • docs: added docs action to deploy docs when merge (84ec8a0)
  • docs: added missing build commands to generate API pages (4380dc2)
  • docs: changed nodejs version to 16.x after upgrade docusaurus (43ff776)
  • docs: fixed issue with build folder (e1bb970)
  • docs: fixed issue with not deploying docs (edc3cd3)
  • docs: include scripts folder to diff paths (d754a8f)
  • docs: only trigger when update workflows of docs (c1e7f8a)
  • docs: removed deploy for each pull request and added deploy by manual trigger (5f3a220)
  • docs: removed install peers command (ca483c5)
  • docs: removed step to notify crawler (0c4a0fa)
  • pr & firebase: fixed test firebase on nodejs 12.x (df2ecf1)
  • pr & release: added command to install peer dependencies (1e9b603)
  • pr & release: fixed install latest npm on nodejs and fixed nodejs version in release (9e450df)
  • pr: added command to update npm (ec02429)
  • pr: added job to build docs (f4ef684)
  • pr: fixed wrong cache key when restore for docs (a1e2c4d)
  • pr: only run when update specific files (0085520)
  • pr: removed install peers because already have the dependency in dev (7ed9148)
  • pr: removed nodejs 10.x from tests (7c96d4c)
  • pr: stop running the pr on main (7c7a05a)
  • release: added coverage (57f1e09)
  • release: added provenance during publish (1161e42)
  • release: fixed issue with nodejs version (fc02f57)
  • release: fixed issue with release ci (8e5588f)
  • release: include all commits on release (9185a0b)
  • release: moved configuration to the correct place (b8c6156)
  • release: use release manager instead of merge-and-release (ef278e6)
  • tests: skip apollo server on nodejs 12.x & changed verification for deepkit (0e069ab)
  • workflows: bump action versions (647e694)
  • workflows: just some improvements on ci of release (6961feb)

Refactoring

  • core: removed support for regex on binary validation and case-sensitive headers (4fb3a39)
  • digital-ocean: event based on correct option and removed args parser strategy (38c61c4)
  • digital-ocean: force uppercase of http method (9119579)
  • docs & exporting: added new handler and adapter to docs & fixed issue with exporting handler (ca15263)
  • dummy.resolver: added index file to short import path (0b61a24)
  • framework.contract: added better types to framework contract (caace98)
  • generic: removed default any from generics to better typing & added tests for handlers (5ace6ba)
  • huawei: removed unused folder types, it's not necessary without event function support (c3d20f2)
  • network-request: removed object.assign and set property directly (654d5ce)
  • resolvers: rewrite resolver contract to expose better api (3c87d0a)
  • serverless-builder: renamed to serverless adapter (f084d17)
  • trpc: deprecate BufferToJSObjectTransformer to promote body-parser (760d2e1)
  • v2: removed old files and only leave the v2 version (d0fd44e)

Tests

  • alb-event & api-gateway: added tests for alb adapter & added event source api gateway v1 (120e791)
  • api-gateway-v1: added tests and fixed some issues during the tests (ebee2a1)
  • api-gateway-v2: added tests to api gateway v2 adapter (49c8633)
  • aws & core: wrong tests after bump jest (9bda83d)
  • azure: added test when useContextLogWhenInternalLogger is false (9664f6b)
  • core: added test for event body methods (bb5ea6e)
  • core: added tests for headers file (5dac5a9)
  • core: added tests for logger file (b309444)
  • core: added tests for path file (6fd4c7a)
  • core: added tests for stream file (00860ad)
  • core: added tests to is binary file (1ad531f)
  • core: added tests to no-op file (c651a64)
  • core: added tests to optional file (e72baf4)
  • core: added tests to the current-invoke file (cabe88e)
  • deepkit: added missing tests for deepkit (89b3b50)
  • deepkit: added tests for deepkit (3661ab8)
  • deepkit: fixed issues with local testing of deepkit (7fe122b)
  • deepkit: skip tests for deepkit in node 12.x (8c2af8c)
  • deepkit: try to skip in nodejs 12.x (6308317)
  • dynamodb: added tests for dynamo db adapter and improved other tests (1bffb81)
  • event-bridge: added tests to event bridge (de8c3a8)
  • fastify & cors: added missing mock fn in nodejs 12.x for cors framework tests (46acb15)
  • fastify: fixed issue with test of fastify & added support to test [email protected] on nodejs12 (b1b73f4)
  • framework.mock: added content type in headers to fix response when fetch from mock (eb50a45)
  • frameworks: added tests to all frameworks (ad42027)
  • huawei: removed .only tests (f78160f)
  • lambda-edge: added tests to lambda edge adapter (247630e)
  • network-response: added tests to response file (333eb7a)
  • network: added tests to request (60f8524)
  • request-lambda-edge: added tests for the adapter (c033ea9)
  • resolvers: added aws context resolver tests (9c6ccbd)
  • resolvers: added callback resolver tests (936eb55)
  • resolvers: added tests for promise resolver (064a2ac)
  • response: added tests to missing coverage and better organization to test (90d7f29)
  • serverless-builder: added tests to serverless builder (d44e5bf)
  • sns: added tests to sns (32e2a33)
  • sqs: added tests for sqs (003b075)
  • trpc: issue with 204 on nodejs 20.x (f2637f7)
  • vitest: replaced jest for vitest (7505fad)

This PR was generated with Release Please. See documentation.

@H4ad H4ad force-pushed the release-please--branches--main--components--serverless-adapter branch from 110a49f to e11bca5 Compare December 22, 2023 22:30
@H4ad H4ad closed this Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant