This is the changelog for OpenAPI Factory.
- 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.
- Upgrade to node 14
- Enable returning strings as response bodies.
- Support API Gateway HTTP API (v2).
- Support
QUERY
method verb.
- Always trust APIGW
event.path
value and don't try to overwrite it.
- 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
- 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
- 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.
- 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
.
- Optimize code to use es6 classes
- Now comes with the
async
handler, feel free to await all the calls. - Default
{
"Content-Type": "application/link+json",
"Access-Control-Allow-Origin": "*"
}
- Prevent registration of duplicate paths
- Provide defaults for event parameters in the path, query, stage, and headers well not specified.
- Added two new triggers
onEvent
andonSchedule
which will get triggered via the appropriate mechanisms.
- Change AWS authorizer type to REQUEST from TOKEN.
- Improve logging for request failures.
- paths can be specified at the top level instead of needing to put the paths in '{/proxy+}'.
- Binary data can now be sent as a buffer.
- Support new API Gateway format.
- Set default AuthorizerPolicy with promises.
- 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).
- Created npm library for building apis.
- Pull api method and resource from AWS context.
- Standardize names of ResourcePath, and Method