Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: H4ad/serverless-adapter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.15.1
Choose a base ref
...
head repository: H4ad/serverless-adapter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Jan 4, 2023

  1. Copy the full SHA
    90eba3f View commit details
  2. Copy the full SHA
    3a74353 View commit details
  3. Merge pull request #79 from H4ad/feature/firebase-v2

    feat: firebase v2
    H4ad authored Jan 4, 2023
    Copy the full SHA
    1e1c89b View commit details

Commits on Jan 5, 2023

  1. Copy the full SHA
    760d2e1 View commit details
  2. Merge pull request #80 from H4ad/docs/deprecate-buffer-transformer-of…

    …-trpc
    
    refactor(trpc): deprecate BufferToJSObjectTransformer to promote body-parser
    H4ad authored Jan 5, 2023
    Copy the full SHA
    90526f0 View commit details

Commits on Apr 28, 2023

  1. docs(helpers/lazy.mdx): fixing a small typo

    fixing a small typo at the lazy framework documentation
    leonardodimarchi committed Apr 28, 2023
    Copy the full SHA
    8513089 View commit details

Commits on Apr 29, 2023

  1. Merge pull request #91 from leonardodimarchi/docs/helpers-typo

    docs(helpers): fixing a small typo
    H4ad authored Apr 29, 2023
    Copy the full SHA
    26f40c0 View commit details
  2. Copy the full SHA
    6782563 View commit details
  3. Copy the full SHA
    c05b035 View commit details
  4. chore(www): bump versions

    H4ad committed Apr 29, 2023
    Copy the full SHA
    153e6e6 View commit details
  5. Merge pull request #90 from H4ad/feat/aws-lambda-stream

    feat(aws-stream): added support for aws lambda response streaming
    H4ad authored Apr 29, 2023
    Copy the full SHA
    d98fddd View commit details

Commits on Apr 30, 2023

  1. Copy the full SHA
    95645e0 View commit details

Commits on May 1, 2023

  1. Merge pull request #92 from leonardodimarchi/docs/apollo-server-typos

    docs(apollo server): fixing some typos and redirect links
    H4ad authored May 1, 2023
    Copy the full SHA
    504a62e View commit details

Commits on Jun 7, 2023

  1. chore(nodejs)!: deprecate node 12.x, 14.x and 16.x

    BREAKING CHANGE: Now we will no longer support old nodejs versions
    H4ad committed Jun 7, 2023
    Copy the full SHA
    4c734d4 View commit details
  2. Copy the full SHA
    dfd0b4e View commit details
  3. test(vitest): replaced jest for vitest

    BREAKING CHANGE: removed support for fastify 3.0.0 & hapi 20.x & firebase-admin < 11
    H4ad committed Jun 7, 2023
    Copy the full SHA
    7505fad View commit details
  4. Copy the full SHA
    483856e View commit details
  5. refactor(core)!: removed support for regex on binary validation and c…

    …ase-sensitive headers
    
    BREAKING CHANGE: 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
    H4ad committed Jun 7, 2023
    Copy the full SHA
    4fb3a39 View commit details
  6. Copy the full SHA
    b81f372 View commit details
  7. Copy the full SHA
    fff380b View commit details
  8. Copy the full SHA
    35ce7c7 View commit details
  9. perf(api-gateway-v2)!: single pass when collecting headers and cookie…

    …s on response
    
    BREAKING CHANGE: now we don't flatten the headers
    H4ad committed Jun 7, 2023
    Copy the full SHA
    3d65895 View commit details
  10. Copy the full SHA
    1fba12c View commit details
  11. Copy the full SHA
    f72967a View commit details
  12. Copy the full SHA
    41339c6 View commit details
  13. Copy the full SHA
    3b08708 View commit details
  14. Copy the full SHA
    70f7020 View commit details
  15. Copy the full SHA
    78b9f18 View commit details
  16. Copy the full SHA
    36950b3 View commit details
  17. perf(logger): faster logger

    H4ad committed Jun 7, 2023
    Copy the full SHA
    103817c View commit details

Commits on Jun 9, 2023

  1. Copy the full SHA
    09e12ee View commit details
  2. Copy the full SHA
    6961feb View commit details
  3. Copy the full SHA
    f78160f View commit details
  4. Copy the full SHA
    5d3124a View commit details
  5. Copy the full SHA
    d15fdff View commit details
  6. Copy the full SHA
    f2637f7 View commit details
  7. Copy the full SHA
    73f8c04 View commit details
  8. Copy the full SHA
    1ba7fa0 View commit details
  9. Copy the full SHA
    ab6c62b View commit details
  10. Copy the full SHA
    5e02fcd View commit details
  11. Merge pull request #94 from H4ad/chore/deprecate-old-nodejs

    Deprecate NodeJS 12.x, 14.x and 16.x
    H4ad authored Jun 9, 2023
    Copy the full SHA
    8685daf View commit details
  12. chore(release): 3.0.0 [skip ci]

    # [3.0.0](v2.17.0...v3.0.0) (2023-06-09)
    
    ### Bug Fixes
    
    * **api-gateway-v1:** probably missing query string value when multiple ([78b9f18](78b9f18))
    
    * perf(api-gateway-v2)!: single pass when collecting headers and cookies on response ([3d65895](3d65895))
    * refactor(core)!: removed support for regex on binary validation and case-sensitive headers ([4fb3a39](4fb3a39))
    * chore(nodejs)!: deprecate node 12.x, 14.x and 16.x ([4c734d4](4c734d4))
    
    ### Features
    
    * **trpc:** bump support for 10.x ([5d3124a](5d3124a))
    
    ### Performance Improvements
    
    * **api-gateway-v1:** faster getRequest ([70f7020](70f7020))
    * **api-gateway-v2:** faster getRequest method ([3b08708](3b08708))
    * **aws:** optimized strip base path ([f72967a](f72967a))
    * **default-handler:** always log using fn ([36950b3](36950b3))
    * **headers:** use object.keys + reduce instead of entries ([41339c6](41339c6))
    * **logger:** faster logger ([103817c](103817c))
    * **optional:** use strict equal instead of typeof ([1fba12c](1fba12c))
    * **tsconfig:** do not use define because is slower ([35ce7c7](35ce7c7))
    
    ### Tests
    
    * **vitest:** replaced jest for vitest ([7505fad](7505fad))
    
    ### BREAKING CHANGES
    
    * now we don't flatten the headers
    * 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
    * Now we will no longer support old nodejs versions
    semantic-release-bot committed Jun 9, 2023
    Copy the full SHA
    84ff718 View commit details
  13. chore(deps): bump xml2js and aws-sdk in /benchmark

    Bumps [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js) and [aws-sdk](https://github.com/aws/aws-sdk-js). These dependencies needed to be updated together.
    
    Updates `xml2js` from 0.4.19 to 0.5.0
    - [Commits](Leonidas-from-XIV/node-xml2js@0.4.19...0.5.0)
    
    Updates `aws-sdk` from 2.1286.0 to 2.1395.0
    - [Release notes](https://github.com/aws/aws-sdk-js/releases)
    - [Commits](aws/aws-sdk-js@v2.1286.0...v2.1395.0)
    
    ---
    updated-dependencies:
    - dependency-name: xml2js
      dependency-type: indirect
    - dependency-name: aws-sdk
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jun 9, 2023
    Copy the full SHA
    664ea9b View commit details

Commits on Jun 16, 2023

  1. chore: bump @apollo/server from 4.7.1 to 4.7.4

    Bumps [@apollo/server](https://github.com/apollographql/apollo-server/tree/HEAD/packages/server) from 4.7.1 to 4.7.4.
    - [Release notes](https://github.com/apollographql/apollo-server/releases)
    - [Changelog](https://github.com/apollographql/apollo-server/blob/main/packages/server/CHANGELOG.md)
    - [Commits](https://github.com/apollographql/apollo-server/commits/@apollo/server@4.7.4/packages/server)
    
    ---
    updated-dependencies:
    - dependency-name: "@apollo/server"
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jun 16, 2023
    Copy the full SHA
    cb25f1b View commit details
  2. Merge pull request #102 from H4ad/dependabot/npm_and_yarn/apollo/serv…

    …er-4.7.4
    
    chore: bump @apollo/server from 4.7.1 to 4.7.4
    H4ad authored Jun 16, 2023
    Copy the full SHA
    642cf8e View commit details

Commits on Jun 30, 2023

  1. Copy the full SHA
    2bc1244 View commit details
  2. Copy the full SHA
    0a285a6 View commit details
  3. Copy the full SHA
    b8791da View commit details

Commits on Jul 1, 2023

  1. Copy the full SHA
    c033ea9 View commit details
  2. Copy the full SHA
    455e881 View commit details
Showing with 25,826 additions and 49,422 deletions.
  1. +9 −4 .eslintrc
  2. +3 −0 .github/ISSUE_TEMPLATE/config.yml
  3. +17 −0 .github/dependabot.yml
  4. +20 −0 .github/settings.yml
  5. +43 −53 .github/workflows/codeql-analysis.yml
  6. +7 −7 .github/workflows/docs.yml
  7. +27 −23 .github/workflows/pr.yml
  8. +40 −18 .github/workflows/release.yml
  9. +1 −0 .gitignore
  10. +1 −1 .husky/pre-commit
  11. +3 −0 .npmrc
  12. +3 −0 .release-please-manifest.json
  13. +1 −1 .tool-versions
  14. +265 −0 CHANGELOG.md
  15. +8 −6 README.md
  16. +2 −0 benchmark/.gitignore
  17. +5 −1 benchmark/.swcrc
  18. +4 −10 benchmark/README.md
  19. +1,377 −1,384 benchmark/package-lock.json
  20. +13 −13 benchmark/package.json
  21. +1 −1 benchmark/src/framework.mock.ts
  22. +38 −0 benchmark/src/samples/clone-headers.ts
  23. +38 −29 benchmark/src/samples/compare-libraries.ts
  24. +81 −0 benchmark/src/samples/format-headers.ts
  25. +1 −1 benchmark/tsconfig.json
  26. +0 −20 jest.config.js
  27. +8,502 −29,950 package-lock.json
  28. +658 −93 package.json
  29. +73 −0 release-please-config.json
  30. +4 −4 scripts/generate-api-pages.ts
  31. +1 −1 scripts/generate-markdown.ts
  32. +7 −35 scripts/libs/CustomMarkdownDocumenter.ts
  33. +2 −2 scripts/libs/MarkdownEmitter.ts
  34. +1 −1 src/@types/binary-settings.ts
  35. +1 −1 src/@types/digital-ocean/digital-ocean-http-event.ts
  36. +1 −1 src/@types/digital-ocean/digital-ocean-http-response.ts
  37. +1 −0 src/@types/digital-ocean/index.ts
  38. +1 −1 src/@types/huawei/huawei-api-gateway-event.ts
  39. +1 −1 src/@types/huawei/huawei-api-gateway-response.ts
  40. +9 −9 src/adapters/apollo-server/apollo-server-mutation.adapter.ts
  41. +25 −9 src/adapters/aws/alb.adapter.ts
  42. +83 −28 src/adapters/aws/api-gateway-v1.adapter.ts
  43. +48 −31 src/adapters/aws/api-gateway-v2.adapter.ts
  44. +5 −5 src/adapters/aws/base/aws-simple-adapter.ts
  45. +3 −3 src/adapters/aws/dynamodb.adapter.ts
  46. +3 −3 src/adapters/aws/event-bridge.adapter.ts
  47. +1 −0 src/adapters/aws/index.ts
  48. +20 −17 src/adapters/aws/lambda-edge.adapter.ts
  49. +372 −0 src/adapters/aws/request-lambda-edge.adapter.ts
  50. +3 −3 src/adapters/aws/s3.adapter.ts
  51. +4 −4 src/adapters/aws/sns.adapter.ts
  52. +4 −4 src/adapters/aws/sqs.adapter.ts
  53. +7 −8 src/adapters/azure/http-trigger-v4.adapter.ts
  54. +7 −3 src/adapters/digital-ocean/http-function.adapter.ts
  55. +6 −2 src/adapters/dummy/dummy.adapter.ts
  56. +2 −2 src/adapters/huawei/huawei-api-gateway.adapter.ts
  57. +3 −3 src/contracts/adapter.contract.ts
  58. +1 −1 src/contracts/framework.contract.ts
  59. +5 −5 src/contracts/handler.contract.ts
  60. +2 −2 src/contracts/resolver.contract.ts
  61. +3 −3 src/core/base-handler.ts
  62. +11 −4 src/core/constants.ts
  63. +104 −15 src/core/headers.ts
  64. +25 −25 src/core/is-binary.ts
  65. +50 −47 src/core/logger.ts
  66. +1 −1 src/core/optional.ts
  67. +33 −0 src/core/path.ts
  68. +2 −2 src/core/stream.ts
  69. +4 −4 src/frameworks/apollo-server/apollo-server.framework.ts
  70. +4 −4 src/frameworks/body-parser/base-body-parser.framework.ts
  71. +4 −4 src/frameworks/body-parser/json-body-parser.framework.ts
  72. +4 −4 src/frameworks/body-parser/raw-body-parser.framework.ts
  73. +4 −4 src/frameworks/body-parser/text-body-parser.framework.ts
  74. +4 −4 src/frameworks/body-parser/urlencoded-body-parser.framework.ts
  75. +3 −3 src/frameworks/cors/cors.framework.ts
  76. +2 −2 src/frameworks/deepkit/http-deepkit.framework.ts
  77. +2 −2 src/frameworks/express/express.framework.ts
  78. +2 −2 src/frameworks/fastify/fastify.framework.ts
  79. +1 −1 src/frameworks/fastify/helpers/no-op-content-parser.ts
  80. +3 −3 src/frameworks/hapi/hapi.framework.ts
  81. +2 −2 src/frameworks/koa/koa.framework.ts
  82. +1 −1 src/frameworks/lazy/index.ts
  83. +4 −4 src/frameworks/lazy/lazy.framework.ts
  84. +1 −0 src/frameworks/polka/index.ts
  85. +26 −0 src/frameworks/polka/polka.framework.ts
  86. +15 −12 src/frameworks/trpc/trpc.framework.ts
  87. +355 −0 src/handlers/aws/aws-stream.handler.ts
  88. +1 −0 src/handlers/aws/index.ts
  89. +8 −4 src/handlers/azure/azure.handler.ts
  90. +4 −4 src/handlers/base/raw-request.ts
  91. +15 −14 src/handlers/default/default.handler.ts
  92. +5 −5 src/handlers/digital-ocean/digital-ocean.handler.ts
  93. +82 −0 src/handlers/firebase/http-firebase-v2.handler.ts
  94. +5 −5 src/handlers/firebase/http-firebase.handler.ts
  95. +1 −0 src/handlers/firebase/index.ts
  96. +3 −3 src/handlers/gcp/gcp.handler.ts
  97. +12 −12 src/handlers/huawei/http-huawei.handler.ts
  98. +2 −0 src/index.doc.ts
  99. +2 −0 src/network/index.ts
  100. +8 −5 src/network/request.ts
  101. +161 −0 src/network/response-stream.ts
  102. +25 −14 src/network/response.ts
  103. +12 −0 src/network/utils.ts
  104. +1 −1 src/resolvers/aws-context/aws-context.resolver.ts
  105. +2 −8 src/resolvers/callback/callback.resolver.ts
  106. +2 −1 src/resolvers/dummy/dummy.resolver.ts
  107. +1 −1 src/resolvers/promise/promise.resolver.ts
  108. +7 −4 src/serverless-adapter.ts
  109. +312 −6 test/adapters/apollo-server/apollo-mutation.adapter.spec.ts
  110. +0 −326 test/adapters/apollo-server/utils-apollo-mutation.ts
  111. +50 −9 test/adapters/aws/alb.adapter.spec.ts
  112. +103 −12 test/adapters/aws/api-gateway-v1.adapter.spec.ts
  113. +91 −10 test/adapters/aws/api-gateway-v2.adapter.spec.ts
  114. +8 −7 test/adapters/aws/aws-simple-adapter.spec.ts
  115. +1 −0 test/adapters/aws/dynamodb.adapter.spec.ts
  116. +1 −0 test/adapters/aws/event-bridge.adapter.spec.ts
  117. +15 −12 test/adapters/aws/lambda-edge.adapter.spec.ts
  118. +474 −0 test/adapters/aws/request-lambda-edge.adapter.spec.ts
  119. +1 −0 test/adapters/aws/s3.adapter.spec.ts
  120. +1 −0 test/adapters/aws/sns.adapter.spec.ts
  121. +1 −0 test/adapters/aws/sqs.adapter.spec.ts
  122. +2 −2 test/adapters/aws/utils/api-gateway-v1.ts
  123. +11 −10 test/adapters/azure/http-trigger.adapter.spec.ts
  124. +14 −12 test/adapters/azure/utils/http-trigger.ts
  125. +14 −11 test/adapters/digital-ocean/http-function.adapter.spec.ts
  126. +1 −1 test/adapters/digital-ocean/utils/http-function.ts
  127. +4 −3 test/adapters/dummy/dummy.adapter.spec.ts
  128. +11 −10 test/adapters/huawei/huawei-api-gateway.adapter.spec.ts
  129. +2 −2 test/adapters/huawei/utils/huawei-api-gateway.ts
  130. +2 −1 test/adapters/utils/can-handle.ts
  131. +25 −16 test/core/base-handler.spec.ts
  132. +1 −0 test/core/current-invoke.spec.ts
  133. +1 −0 test/core/event-body.spec.ts
  134. +42 −1 test/core/headers.spec.ts
  135. +46 −38 test/core/is-binary.spec.ts
  136. +24 −10 test/core/logger.spec.ts
  137. +1 −0 test/core/no-op.spec.ts
  138. +1 −0 test/core/optional.spec.ts
  139. +23 −0 test/core/path.spec.ts
  140. +1 −0 test/core/stream.spec.ts
  141. +3 −3 test/core/utils/stream.ts
  142. +237 −6 test/frameworks/apollo-server.framework.spec.ts
  143. +10 −0 test/frameworks/body-parser-v2.framework.spec.ts
  144. +563 −0 test/frameworks/body-parser.framework.helper.ts
  145. +4 −470 test/frameworks/body-parser.framework.spec.ts
  146. +30 −27 test/frameworks/cors.framework.spec.ts
  147. +35 −0 test/frameworks/express-v5.framework.spec.ts
  148. +3 −2 test/frameworks/express.framework.spec.ts
  149. +32 −0 test/frameworks/fastify-v5.framework.spec.ts
  150. +3 −18 test/frameworks/fastify.framework.spec.ts
  151. +3 −3 test/frameworks/hapi.framework.spec.ts
  152. +82 −6 test/frameworks/http-deepkit.framework.spec.ts
  153. +4 −3 test/frameworks/koa.framework.spec.ts
  154. +6 −5 test/frameworks/lazy.framework.spec.ts
  155. +36 −0 test/frameworks/polka.framework.spec.ts
  156. +36 −37 test/frameworks/trpc.framework.spec.ts
  157. +0 −240 test/frameworks/utils-apollo-server.ts
  158. +0 −100 test/frameworks/utils-deepkit.ts
  159. +2 −1 test/frameworks/utils.ts
  160. +512 −0 test/handlers/aws-stream.handler.spec.ts
  161. +22 −14 test/handlers/azure.handler.spec.ts
  162. BIN test/handlers/bitcoin.pdf
  163. +17 −10 test/handlers/default.handler.spec.ts
  164. +19 −12 test/handlers/digital-ocean.handler.spec.ts
  165. +10 −9 test/handlers/gcp.handler.spec.ts
  166. +114 −0 test/handlers/http-firebase-v2.handler.spec.ts
  167. +119 −0 test/handlers/http-firebase-v2.sdk-v5.handler.spec.ts
  168. +119 −0 test/handlers/http-firebase-v2.sdk-v6.handler.spec.ts
  169. +9 −22 test/handlers/http-firebase.handler.spec.ts
  170. +28 −29 test/handlers/huawei.handler.spec.ts
  171. +6 −5 test/issues/alb-express-static/alb-express-static.spec.ts
  172. +114 −0 test/issues/issue-165/transfer-encoding-chunked-support.spec.ts
  173. +3 −3 test/mocks/framework.mock.ts
  174. +4 −3 test/network/request.spec.ts
  175. +9 −8 test/network/response.spec.ts
  176. +23 −18 test/resolvers/aws-context.resolver.spec.ts
  177. +22 −17 test/resolvers/callback.resolver.spec.ts
  178. +2 −1 test/resolvers/dummy.resolver.spec.ts
  179. +6 −5 test/resolvers/promise.resolver.spec.ts
  180. +8 −7 test/serverless-adapter.spec.ts
  181. +6 −0 tsconfig.doc.json
  182. +21 −2 tsconfig.eslint.json
  183. +40 −70 tsconfig.json
  184. +97 −0 tsup.config.ts
  185. +19 −0 vite.config.ts
  186. +1 −1 www/.tool-versions
  187. +2 −2 www/blog/2022-06-17-the-beginning.mdx
  188. +93 −0 www/blog/2023-04-28-aws-lambda-response-streaming.mdx
  189. +337 −0 www/blog/2023-12-25-dual-package-publish.mdx
  190. BIN www/blog/first-time-meme-first-time.gif
  191. +6 −2 www/docs/main/adapters/aws/alb.mdx
  192. +20 −5 www/docs/main/adapters/aws/api-gateway-v1.mdx
  193. +13 −6 www/docs/main/adapters/aws/api-gateway-v2.mdx
  194. +2 −2 www/docs/main/adapters/aws/dynamodb.mdx
  195. +2 −2 www/docs/main/adapters/aws/event-bridge.mdx
  196. +27 −0 www/docs/main/adapters/aws/function-url.mdx
  197. +63 −2 www/docs/main/adapters/aws/lambda-edge.mdx
  198. +3 −3 www/docs/main/adapters/aws/s3.mdx
  199. +3 −3 www/docs/main/adapters/aws/sns.mdx
  200. +3 −3 www/docs/main/adapters/aws/sqs.mdx
  201. +3 −3 www/docs/main/adapters/azure/http-trigger-v4.mdx
  202. +3 −3 www/docs/main/adapters/digital-ocean/http-function.mdx
  203. +4 −4 www/docs/main/adapters/huawei/huawei-api-gateway.mdx
  204. +1 −1 www/docs/main/advanced/adapters/creating-an-adapter.mdx
  205. +25 −25 www/docs/main/frameworks/apollo-server.mdx
  206. +1 −1 www/docs/main/frameworks/deepkit.mdx
  207. +3 −1 www/docs/main/frameworks/express.mdx
  208. +3 −1 www/docs/main/frameworks/fastify.mdx
  209. +1 −1 www/docs/main/frameworks/hapi.mdx
  210. +7 −7 www/docs/main/frameworks/helpers/body-parser.mdx
  211. +2 −2 www/docs/main/frameworks/helpers/cors.mdx
  212. +4 −5 www/docs/main/frameworks/helpers/lazy.mdx
  213. +1 −1 www/docs/main/frameworks/koa.mdx
  214. +6 −4 www/docs/main/frameworks/nestjs.mdx
  215. +44 −0 www/docs/main/frameworks/polka.mdx
  216. +39 −46 www/docs/main/frameworks/trpc.mdx
  217. +2 −6 www/docs/main/getting-started/installation.mdx
  218. +12 −4 www/docs/main/getting-started/usage.mdx
  219. +75 −1 www/docs/main/handlers/aws.mdx
  220. +4 −4 www/docs/main/handlers/azure.mdx
  221. +3 −3 www/docs/main/handlers/digital-ocean.mdx
  222. +15 −7 www/docs/main/handlers/firebase.mdx
  223. +3 −3 www/docs/main/handlers/gcp.mdx
  224. +8 −8 www/docs/main/handlers/huawei.mdx
  225. +14 −4 www/docs/main/intro.mdx
  226. +1 −1 www/docs/main/resolvers/aws-context.mdx
  227. +1 −1 www/docs/main/resolvers/callback.mdx
  228. +1 −1 www/docs/main/resolvers/promise.mdx
  229. +24 −8 www/docusaurus.config.js
  230. +8,301 −15,528 www/package-lock.json
  231. +11 −11 www/package.json
  232. +4 −3 www/sidebars.js
13 changes: 9 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -85,6 +85,15 @@
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/member-ordering": [
"error",
{
@@ -98,7 +107,6 @@
// Fields
"protected-abstract-field",
"public-abstract-field",
"private-abstract-field",
"protected-static-field",
"public-static-field",
"private-static-field",
@@ -120,7 +128,6 @@
"private-instance-get",
"protected-abstract-get",
"public-abstract-get",
"private-abstract-get",
"decorated-get",
"abstract-get",
"protected-get",
@@ -132,7 +139,6 @@
// Setters
"protected-abstract-set",
"public-abstract-set",
"private-abstract-set",
"abstract-set",
"protected-decorated-set",
"public-decorated-set",
@@ -159,7 +165,6 @@
"private-decorated-method",
"public-abstract-method",
"protected-abstract-method",
"private-abstract-method",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

blank_issues_enabled: true
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

version: 2

updates:
- package-ecosystem: npm
directory: /
schedule:
interval: daily
allow:
- dependency-type: direct
versioning-strategy: increase-if-necessary
commit-message:
prefix: deps
prefix-development: chore
labels:
- "Dependencies"
20 changes: 20 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

repository:
allow_merge_commit: false
allow_rebase_merge: true
allow_squash_merge: true
squash_merge_commit_title: PR_TITLE
squash_merge_commit_message: PR_BODY
delete_branch_on_merge: true
enable_automated_security_fixes: true
enable_vulnerability_alerts: true

branches:
- name: main
protection:
required_status_checks: null
enforce_admins: true
required_pull_request_reviews:
require_last_push_approval: true
dismiss_stale_reviews: true
96 changes: 43 additions & 53 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,71 +1,61 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: CodeQL

on:
push:
branches: [ main ]
paths:
- 'src/**'
- 'package-lock.json'
- 'package.json'
- 'tsconfig.json'
- 'tsconfig.*.json'
- 'vite.config.ts'
branches:
- main
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
paths:
- 'src/**'
- 'package-lock.json'
- 'package.json'
- 'tsconfig.json'
- 'tsconfig.*.json'
- 'vite.config.ts'
branches:
- main
schedule:
- cron: '36 7 * * 6'
# "At 10:00 UTC (03:00 PT) on Monday" https://crontab.guru/#0_10_*_*_1
- cron: "0 10 * * 1"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 120
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

language: [ 'javascript-typescript' ]
steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Checkout
uses: actions/checkout@v4

- name: Setup Git User
run: |
git config --global user.email "h4ad+bot@viniciusl.com.br"
git config --global user.name "H4ad CLI robot"
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
14 changes: 7 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- '.github/workflows/**'
- '.github/workflows/docs.yml'
- 'www/**'
- 'src/**'
- 'scripts/**'
@@ -19,20 +19,20 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '18.x'

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-18-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-node-18-
- name: Install Lib Dependencies
run: npm ci
50 changes: 27 additions & 23 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
name: Pull Request

on: [ pull_request ]
on:
workflow_dispatch:
pull_request:
paths:
- 'src/**'
- 'package-lock.json'
- 'package.json'
- 'tsconfig.json'
- 'tsconfig.*.json'
- 'vite.config.ts'

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 12.x, 14.x, 16.x, 18.x ]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Update NPM Version On NodeJS 12
run: npm i -g npm@8.x
if: matrix.node-version == '12.x'

- name: Update NPM Version
run: npm i -g npm
if: matrix.node-version != '12.x'

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
@@ -38,36 +42,36 @@ jobs:
run: npm ci

- name: Build
run: npm run build --if-present

- name: Override Packages Versions for NodeJS 12.x
if: matrix.node-version == '12.x'
run: echo "TEST_NODE_VERSION=12.x" >> $GITHUB_ENV
run: npm run build

- name: Run tests
run: npm test

- name: Get Coverage Info
run: npm run coverage
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js 16
uses: actions/setup-node@v3
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '18.x'

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-16.x-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-18.x-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-16.x-
${{ runner.os }}-node-18.x-
- name: Install Lib Dependencies
run: npm ci
Loading