diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ac90975..7c17ae7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,70 @@ +## [2.0.0](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/compare/v1.4.0...v2.0.0) (2024-05-16) + + +### ⚠ BREAKING CHANGES + +* use node 20 + +### Features + +* add ability to override API hosts in AWS Secret ([11af4c4](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/11af4c4617050f404995c5ed297b97443afb67ff)) +* add endpoints structure and error handlers ([c473539](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/c473539d7613ae444b8f4746f0b5a21b5f8c521e)) +* add event and ctx types ([82c053b](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/82c053b805dbd93b82683c57d85771b891b49792)) +* add lambda function update ([38b445f](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/38b445f8c04c71936e92432f2586e8ca09a811b7)) +* add settings secret, update mgmt lambda permissions ([#162](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/issues/162)) ([ab3caa5](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/ab3caa58276da4492f316b2a6a53ddd3149b00ce)) +* check CodeSha256 before upgrading consequent resources ([7fdbd21](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/7fdbd21c9c339112baf524ab231bd60b81a639d3)) +* check version's state after Lambda@Edge function upgrade ([12e5aad](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/12e5aadec9e0100a82880ed2aa39b6158d90ad48)) +* do not throw error if the secret manager has unexpected key ([c6e3078](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/c6e3078b62a3e77c2b51b456e0ffea198958faf1)) +* improve error handling in mgmt-lambda ([3736d14](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/3736d14c55d596271ad7f077fa17fabebd9681f2)) +* increase timeout for Fingerprint lambda ([1e0ae54](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/1e0ae5486c93b51136e59e1369641aad6de3c8f7)) +* introduce deployment settings ([ec13d5f](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/ec13d5f8f6e4c84f20b2f91bbcbb56ef16a8237d)) +* introduce mgmt-token scheme for authorization ([#176](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/issues/176)) ([c884027](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/c88402799c96a97f4f1ea99601c8fdba357dd20b)) +* **mgmt-lambda-update:** introduce error codes ([6929756](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/6929756b015f10d76b08c35dbf2f96db8fe4ddb3)) +* pass AWS clients into handlers ([1aa3dc8](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/1aa3dc839a8724c7b4c224dfbaeb9ff54c440300)) +* remove fpjs_behavior_path variable ([4c78f62](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/4c78f627462302959a88f0f3fc2207bd76fb58c8)) +* rework logging ([#184](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/issues/184)) ([a88941c](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/a88941cdd58a41fbec23e23d4cf5201afc24105e)) +* reworked getting env, updated tests ([0b29764](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/0b29764d366ca2266a67473882fd87f3a6b03529)) +* rollout as a code ([#161](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/issues/161)) ([0636c1a](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/0636c1aa4f230f466e6f1d49542559cc9f5b5ede)) +* status endpoint: return necessary information about Lambda and CloudFront ([2f3ceed](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/2f3ceed6f21abe21db5ad22960c6e4f91097b678)) +* update all cache behavior that has fingerprint pro association ([#186](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/issues/186)) ([2970364](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/2970364d224245b3fbc12e83c0a46abe0c1c6755)) +* update lambda existence check ([403680c](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/403680cf76058fbfa75ad38619466fc2fcf2d522)) +* update package management ([#189](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/issues/189)) ([5135b1b](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/5135b1b6068b68c085bbb6429b22d85d529dccd5)) +* update secrets manager to V3, retrieve secret in mgmt-lambda ([a60bee4](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/a60bee41bd1e4759b86230671d3fde61185d5560)) +* upgrade Lambda functions runtime to Node 20 ([2818c30](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/2818c3065331b2565e7bc55f318d564b1d80bb3c)) +* use AWS SDK v3 Client mock for testing ([0bb22ce](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/0bb22ce72eb3424cc712b6b386f13ac1d6dad248)) +* use revisionId for Lambda code deployment ([934dd37](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/934dd37f77969328b6e4d15147dac3895301a22c)) + + +### Bug Fixes + +* agent download reqs did not keep custom queries ([e9ee3c4](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/e9ee3c42d842cc32015addf11db6437a651ad3e5)) +* agent download request headers ([b2dcb89](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/b2dcb89b1537987abee6377c0f915c7c459f7e43)) +* browser cache req headers ([4569f5e](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/4569f5e0d75d03e05a748ad4c1665af451ce3e48)) +* cache behavior origin matching logic ([7b1ff11](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/7b1ff11aaae90d7b6ed798d6a867b9f65b10fca6)) +* check set log level if true ([15d9d53](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/15d9d53b27bebd5121f2e24a5deca8d04fb70688)) +* cloudformation templatex ([#188](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/issues/188)) ([a32e4ff](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/a32e4ffee5086321355fffc2e5f0f2a6d87ee972)) +* cloudfront update logic add attempt ([106b332](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/106b3322af55df3df4c3ebdeb08a53d3f488712b)) +* don't set code 500 in status endpoint responses ([b4a4d04](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/b4a4d04f9d36848c4242bd8674c279059e1572c2)) +* handle requests with trailing and leading slashes in URI ([cabe27a](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/cabe27ad3cf53448fdd883ffc78366d8e88660f0)) +* mgmt lambda counter bug ([dbd4642](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/dbd4642dce93ee58b8ef945359351be9af921336)) +* normalize secret before retrieving values ([26ab35f](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/26ab35fdfae90a796f8a6822bcfe26613a95653d)) +* remove aws-sdk v2 usage ([b1d0d72](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/b1d0d7281bc25a286fa842249de512df9b21e641)) +* remove CodePipeline client ([ed7d52d](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/ed7d52d3c8e67e97bb8276f4b39143c45bb63529)) +* remove CodePipeline part from mgmt code ([fb79578](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/fb79578b29199ca09f71bdf5bd9b83fb21f3beab)) +* remove FPJS_DEBUG header from the template ([e58d6cd](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/e58d6cdc5338edb7df2e0d8c15fb26d0b1187283)) +* set correct type for public URL events ([379ec65](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/379ec65a5cbdf6da0fb370bc435ac470831ad558)) +* set log level ([a02fbf9](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/a02fbf9595851dad67b52c7b6edfb5c5db0b5540)) +* treat request.uri as the path, not the URL ([131f2b7](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/131f2b74a394c851fa8dbe01115108f3549ea696)) +* update handleResult tests with comparing hrefs ([aeb49c8](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/aeb49c8e3c0a3007cd8891fe74bb86ecf449c817)) +* update logging ([07664bc](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/07664bc351a914365c9fef1adff67295dfc0dfa4)) +* use default region for getting secret ([ec596ec](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/ec596ec9d28869a082d783c8af491b7be65e9699)) + + +### Documentation + +* **README:** fix typo ([cac192c](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/cac192cf6225320ffa97c75bc663d71b8ed3a9c9)) +* **README:** update links to v2, add deprecation notice ([caa5cfa](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/commit/caa5cfa355fb59d174e258d49e38f4433ba7c0ca)) + ## [2.0.0-rc.2](https://github.com/fingerprintjs/fingerprint-pro-cloudfront-integration/compare/v2.0.0-rc.1...v2.0.0-rc.2) (2024-05-15) diff --git a/package.json b/package.json index 1aa743c9..33909f6c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fingerprintjs/fingerprint-pro-cloudfront-lambda-function", - "version": "2.0.0-rc.2", + "version": "2.0.0", "description": "Fingerprint Pro CloudFront lambda@edge function", "author": "FingerprintJS, Inc (https://fingerprint.com)", "license": "MIT",