Skip to content

Latest commit

 

History

History
340 lines (237 loc) · 14.1 KB

CHANGES.md

File metadata and controls

340 lines (237 loc) · 14.1 KB

Changes

3.0.0

Released by Maximilian Antoni on 2024-01-17.

2.5.4

  • 363bcc2 Response with 403 if custom authorizer responds with deny

Released by Maximilian Antoni on 2024-01-09.

2.5.3

  • 🐛 e763f3e Handle deny policy response from authorizer

Released by Maximilian Antoni on 2024-01-09.

2.5.2

  • 🐛 e13d313 Fix mock response templates

Released by Maximilian Antoni on 2023-11-29.

2.5.1

  • 🐛 49d7dca Populate resource in proxy integration events

Released by Maximilian Antoni on 2023-11-29.

2.5.0

  • 🍏 bd5e7e4 Remove swagger basePath from pathname
  • ca38011 Fix platform dependent test

Released by Maximilian Antoni on 2023-01-20.

2.4.7

  • 🐛 2e39414 Fix default AWS account ID

Released by Maximilian Antoni on 2021-06-23.

2.4.6

  • 🐛 f319b9c Set pathParameters and queryStringParameters to null if empty

Released by Maximilian Antoni on 2021-06-14.

2.4.5

  • 🐛 6c8eb40 Fix authorizer data on request context
  • 🐛 dd54d0e Fix header casing

Released by Maximilian Antoni on 2021-05-25.

2.4.4

  • 🐛 fd55e13 Adjust logging received requests

Released by Maximilian Antoni on 2021-05-21.

2.4.3

  • 🐛 26390cf Adjust logging received requests

Released by Maximilian Antoni on 2021-05-21.

2.4.2

  • 🐛 b90a33d Fail if Lambda integration httpMethod is not POST (#9)

Released by Maximilian Antoni on 2021-05-05.

2.4.1

  • 🐛 8e5bcbc Do not require token validation

Released by Maximilian Antoni on 2021-04-12.

2.4.0

  • 🍏 2b001c7 Implement greedy path parameters
  • 🍏 b56fc27 Implement any method
  • 🍏 1b181e6 Implement proxy integration
  • 🐛 82433d8 Check for empty security config
  • a6d28d6 Configure npm token for CI build
  • a2fdd12 Pass parsed URL to integration
  • 18f8a3f Move parseLamdaName into own file
  • 3ab3cd2 Move template parsing into integration-aws
  • 5cf34ef Move response handling into integration-aws
  • af950fc Rename request to integration-aws
  • b8c3c03 Configure GitHub actions
  • 6eb66ba Upgrade mocha and referee-sinon
  • 293e9cd Upgrade eslint and eslint config
  • 0902da9 Update dependencies
  • 899987d Use npm 7
  • 469f15d Add .gitignore

Released by Maximilian Antoni on 2021-04-11.

2.3.4

  • 🐛 f16523f Fix message property when unauthorized

Released by Maximilian Antoni on 2020-07-29.

2.3.3

  • 🐛 6c5cf73 Fix status code when unauthorized

Released by Maximilian Antoni on 2020-07-29.

2.3.2

  • 🐛 5e88eb1 Log 404 failures
  • ebc0dea Add "files" section to package.json
  • bbd95a7 Upgrade referee-sinon to v7
  • 2d891da Update Mocha
  • 5b0586a Rename function variables to match naming convention
  • 945a249 npm audit
  • daad371 Upgrade eslint to latest
  • 5ca938d Upgrade Mocha to latest
  • 5635652 Upgrade @sinonjs/referee-sinon to latest
  • c4c7978 Update Studio Changes to v2
  • 📚 f64e232 Add copyright statement

Released by Maximilian Antoni on 2020-02-28.

2.3.1

  • 🐛 2db3e54 Allow schema-less body
  • 🐛 1f751a7 Allow any type if "type" is not specified

Released by Maximilian Antoni on 2018-12-05.

2.3.0

  • 🍏 a45e9e9 Add support for security policy context properties
  • 📚 758619c Update Studio Changes for --footer support

Released by Maximilian Antoni on 2018-09-10.

2.2.1

  • 🐛 887c0e6 Fix required fields check in body schema

2.2.0

  • 🍏 45bf0d9 Add support for stage and stageVariables options

2.1.1

  • 🐛 e412fbe Fix stage variable check

2.1.0

  • 🍏 3384515 Support stage variables

2.0.0

  • 💥 6100329 BREAKING: Upgrade Studio Log to v2
  • 🐛 cf5596e Use Buffer.from instead of deprecated new Buffer
  • b22cbd8 Use Sinon default sandbox
  • fb779b4 Use Sinon + Referee
  • 📚 d330f37 Add commit links with --commits

1.8.0

  • 🍏 Cache authorization tokens according to configured ttl
  • ✨ Update dependencies
  • 🐛 Add --exit option to mocha

1.7.1

1.7.0

  • 🍏 Support array parameters
  • 📚 Shorten API documentation
  • ✨ Change internal function naming convention

1.6.1

  • Reduce duplication in log message

1.6.0

  • Use @studio/log

1.5.0

  • Support boolean parameters

1.4.2

  • Look for content-type header instead of accept
  • Handle invalid request exceptions

1.4.1

  • Fix $input.path function to return first array element

1.4.0

  • Swagger models now allow nested objects. However, they're not recursively validated yet.
  • Fix swagger $ref within arrays and within $refed files.

1.3.1

This fix makes error returned by Lambda functions behave more like the AWS API Gateway implementation.

1.3.0

  • Support custom security Lambda functions
  • Fix template $context access

1.2.1

  • Handle JSON.parse exception for request templates

1.2.0

Any ${variables} in the swagger.json is now replaced with the corresponding environment variable. If a variable is not defined, an exception is thrown. The new swagger_env option allows to define a dotenv file to be loaded.

A swagger command was introduced to compile swagger.json into single file. These flags are available for the new swagger command:

  • --env loads the given dotenv config file
  • --file allows to override the default swagger.json file
  • --outfile write to the given file instead of standard out

1.1.0

Features:

  • The Gateway now supports Velocity templates and JSON Path queries for the AWS integration. This means the requestTemplates and the responseTemplates are parsed and invoked with full $input and $util support.
  • The request parameters now support "path" and URLs may contain placeholders, e.g. /users/:user. The corresponding value can then be used in the request template with $input.params('user').

Bugfixes:

  • Lambda error handling now works more like what AWS does, thanks to the request templates support the new behavior is closer to reality.

1.0.0

  • Inception