Skip to content

Latest commit

 

History

History
82 lines (65 loc) · 2.67 KB

CHANGELOG.md

File metadata and controls

82 lines (65 loc) · 2.67 KB

Change log

This is the changelog for OpenAPI Factory.

5.4

  • Invert the path map. This actually isn't a breaking change, but you are directly using the internals of this library, they are changing.
  • 204 & 304 response status codes shall never include the body.

5.3

  • Upgrade to node 14

5.2

  • Enable returning strings as response bodies.
  • Support API Gateway HTTP API (v2).
  • Support QUERY method verb.

5.1

  • Always trust APIGW event.path value and don't try to overwrite it.

5.0

  • Upgrade to node 12
  • Add greedy matching by add + at the end of any dynamic resource replacement.
  • Pass api route options back to the event for reuse in middlewares

4.4

  • Provide a way to override the DefaultPathResolver
  • Add request.route to be the dynamic path
  • Provide context as part of the requestMiddleware
  • Automatically url decode path parameters.
  • Allow * to be a valid path parameter
  • Populate multiValueHeaders instead of headers to support header lists

4.3

  • Return null bodies when body is not specified rather than defaulting {}
  • Provide the rawBody options parameter to keep the original body with the request instead of converting to JSON.

4.2

  • Include middleware for requests and responses
  • Always fallback to event handling when neither API or schedule is triggered.
  • When a path token is not specified the value of that token is null.

4.1

  • Optimize code to use es6 classes

4.0

  • Now comes with the async handler, feel free to await all the calls.
  • Default
    {
        "Content-Type": "application/link+json",
        "Access-Control-Allow-Origin": "*"
    }

3.2

  • Prevent registration of duplicate paths

3.1

  • Provide defaults for event parameters in the path, query, stage, and headers well not specified.
  • Added two new triggers onEvent and onSchedule which will get triggered via the appropriate mechanisms.

3.0

  • Change AWS authorizer type to REQUEST from TOKEN.
  • Improve logging for request failures.

2.2

  • paths can be specified at the top level instead of needing to put the paths in '{/proxy+}'.

2.1

  • Binary data can now be sent as a buffer.

2.0

  • Support new API Gateway format.
  • Set default AuthorizerPolicy with promises.

1.1

  • Convert to using singlu function to Lambda Functions will work with the API without class instantiation.
  • Add VPC Security Group and Subnet options.
  • Remove reference to configuration (moved to deployment configuration instead of API configuration).

1.0

  • Created npm library for building apis.
  • Pull api method and resource from AWS context.
  • Standardize names of ResourcePath, and Method