-
Notifications
You must be signed in to change notification settings - Fork 155
Comparing changes
Open a pull request
base repository: aws-powertools/powertools-lambda-typescript
base: v1.4.1
head repository: aws-powertools/powertools-lambda-typescript
compare: v1.5.0
- 15 commits
- 158 files changed
- 11 contributors
Commits on Nov 9, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8533abe - Browse repository at this point
Copy the full SHA 8533abeView commit details
Commits on Nov 10, 2022
-
feat(logger): pretty printing logs in local and non-prod environment (#…
…1141) * test(logger): add tests for POWERTOOLS_DEV env var and for pretty printing logs when var is set to truthy value * feat(logger): add POWERTOOLS_DEV env var and method to get its value * test(logger): fix tests adding method that gets value of POWERTOOLS_DEV env var * feat(logger): add pretty printing to logs if POWERTOOLS_DEV env var set to truthy value * refactor(review): add private class property for indent size, move evaluation of this property to setOptions() * test(logger): fix tests according to the changes in default logger config * docs(logger): update sections for pretty printing logs using POWERTOOLS_DEV env var * Update docs/core/logger.md * Update docs/core/logger.md Co-authored-by: ijemmy <[email protected]> * fix(docs): update default value for POWERTOOLS_DEV env var * feat(logger): add isValueTrue method that checks the string value for truthiness * test(logger): adjust tests for config interface * test(logger): add tests for isValueTrue method, remove redundunt tests Co-authored-by: Andrea Amorosi <[email protected]> Co-authored-by: ijemmy <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8d52660 - Browse repository at this point
Copy the full SHA 8d52660View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7326db - Browse repository at this point
Copy the full SHA d7326dbView commit details
Commits on Nov 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8af1c17 - Browse repository at this point
Copy the full SHA 8af1c17View commit details -
feat(idempotency): Add persistence layer and DynamoDB implementation (#…
…1110) * feat: initial idempotency classes * feat: refactor persistence layer classes into their own folder * feat: rename idempotency config to differentiate from idempotency options * feat: added type for a generic function * feat: remove idempotency configuration for this FR * feat: refactored type of function to accept any combo of parameters * feat: adding PersistenceLayer * feat: PersistenceLayer unit tests for saveInProgress * feat: added saveSuccess * feat: added getRecord * feat: added delete record * feat: branch coverage and cleaning up imports * feat: added more tests * feat: deleted unused methods * feat: added comments * feat: implement get command for dynamo persistence layer * feat: implement get command for dynamo persistence layer * feat: allow for data attr to be passed and return in persistence layer get * feat: added implementation for delete, update, put * feat: create condition on put for not in progress status * feat: use inprogress enum for status * feat: added error when unable to get record for idempotency key * feat: added error for conditional write of an existing record * feat: tests added for put record on dynamo persistence layer * feat: implemented the idempotency record functions for status, expiry, and json response * test: check if the status is expired * test: idempotency record is not expired and status maintained * feat: added tests for get record * feat: add aws-sdk-client-mock jest assertion library * feat: add unit tests for update record and delete record * feat: remove optional chaining from item made unnecessary with error branch * feat: remove unused block * feat: refactored mock child class to be shared amongst dynamo persistence layer tests * test: add path to get the response data from the data record * feat: added branch to handle conditional check failure * feat: add configuration option to dynamo client creation to remove undefined values * feat: change how time is measured to seconds * feat: change type of the response/result to a record * feat:updated imports * refactor: create constructor object for dynamo persistence layer * fix: remove temp eslint disable * fix: adjust verbiage on test blocks Co-authored-by: ijemmy <[email protected]> * style: put constructor parameters onto one line for readability * fix: update dynamo persistence layer tests to use new construtor options * fix: remove unneeded eslint ignore from persistence layer * style: put parameters for dynamo client command object onto one line for readability * fix: move lib-dynamo dep under the correct package * refactor: change idempotency record to use options object in contructor * feat: add consistent read to dynamo persistence layer * fix: revert changes to layer-publisher package-lock Co-authored-by: vgphoenixcampos <[email protected]> Co-authored-by: KevenFuentes9 <[email protected]> Co-authored-by: Phoenix Campos <[email protected]> Co-authored-by: ijemmy <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0a6676a - Browse repository at this point
Copy the full SHA 0a6676aView commit details
Commits on Nov 13, 2022
-
chore(internal): remove unused test folder from project's root (#1162)
* chore: removed redundant test folder * test: import event & context from commons
Configuration menu - View commit details
-
Copy full SHA for 664c4da - Browse repository at this point
Copy the full SHA 664c4daView commit details
Commits on Nov 15, 2022
-
docs: update environment variable tables for utilities (#1153)
* chore(docs): update environment variable table * Correct the default value for the POWERTOOLS_METRICS_NAMESPACE env var * Refer reader to utility page for further info on env vars * chore(docs): add default, allowed and example values to utility docs * Extract default and allowed values from description to their own cols * Add allowed values, example and default columns * Correct default value for metrics namespace * refactor: set default service name in utility class Previously the Metric and Tracer classes did not set a service name if one was not provided. There was no default service name. This commit sets a default service name in the Utility class, and updates the Tracer, Metric and Logger classes to use it. * test: fix Logger tests Add missing `defaultServiceName` property to expected Logger object Correct typo in test names * test(tracer): remove invalid test Remove a test that is no longer valid. As there is a default service name, the tracer should not be enabled even if there is a service name Update the `addServiceAnnotation` function to remove redundant check * docs(metrics): correct default value * test(metrics): update metric tests to account for default service dim The `service_name` is now set by default. This means it is always present in metric dimensions. This commit updates the tests to account for this change * test(tracer): add test for default service name * test(utility): add test for new method Add test for getDefaultServiceName method * test(utility): fix getdefaultservicename test * refactor: extract isvalidservicename method to utility class This commit extracts the isValidServiceName method from the Tracer class to the Utility class. * test(utility): fix test description * refactor: change utility class methods from public to protected * test(utility): refactor tests to allow for protected methods * docs(index): remove quotation marks from default values * test(metrics): add comments to explain magic numbers * doc(tracer): add explanation for definite assignment assertion operator * test(tracer): refactor test to match project norms
Configuration menu - View commit details
-
Copy full SHA for c37932d - Browse repository at this point
Copy the full SHA c37932dView commit details -
feat(logger): disable logs while testing with
jest --silent
in dev ……env (#1165) * feat(logger): disable logs while testing with jest --silent in dev env * refactor(logger): rename method * docs(logger): add testing section with jest --silent option, which is also suppresses logs (#1165) * Update docs/core/logger.md Co-authored-by: Andrea Amorosi <[email protected]> * test(logger): add test for setConsole() method * test(logger): add comment for assertion * docs(logger): add an example of using POWERTOOLS_DEV with jest --silent * Update packages/logger/src/Logger.ts Co-authored-by: Andrea Amorosi <[email protected]> Co-authored-by: Andrea Amorosi <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6f0c307 - Browse repository at this point
Copy the full SHA 6f0c307View commit details
Commits on Nov 19, 2022
-
docs: add maintainers and public roadmap (#1167)
* docs: added maintainers handbook page * docs: added maintainers handbook page * docs: update mkdocs & nav * docs: updated toc * chore: update gh-issue templates * docs: update notes about languages * docs: update label * chore: update stalebot + removed autoassign bot * chore: update labels in scripts * docs: updates to maintainers & labels * fix: label name * fix: label name * Update .github/stale.yml
Configuration menu - View commit details
-
Copy full SHA for 36caa4e - Browse repository at this point
Copy the full SHA 36caa4eView commit details
Commits on Nov 21, 2022
-
feat(parameters): added
BaseProvider
class (#1168)* feat: added baseprovider class * tests: added unit tests * chore: added package to unit tests run * chore: added comments * chore: break down classes in files * chore: remove redundant store init value * refactor: moved constants in separate file * chore: made store protected * fix: removed cache pruning * feat: added baseprovider class
Configuration menu - View commit details
-
Copy full SHA for d717a26 - Browse repository at this point
Copy the full SHA d717a26View commit details
Commits on Nov 23, 2022
-
chore(layer): reduce size by 3 by removing @types packages (#1181)
Co-authored-by: Florian Chazal <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cb9eaf9 - Browse repository at this point
Copy the full SHA cb9eaf9View commit details -
fix(logger): merge child logger options correctly (#1178)
* bug(logger): fix bug when child logger with overwritten options clears all other options * test(logger): add tests for createChild method * refactor(logger): remove clonedeep dependency * refactor(logger): move initOptions initializer to setOptions * feat(logger): add addPersistentLogAttributes from parent to child logger * test(logger): add tests for createChild with persistent log attrs * feat(logger): added addContext support, remove redundant initOption * refactor(logger): add parent's context to child explicitly, without merging
Configuration menu - View commit details
-
Copy full SHA for cb91374 - Browse repository at this point
Copy the full SHA cb91374View commit details
Commits on Nov 24, 2022
-
tests(idempotency): add utility to workspace unit tests and CI (#1160)
* chore: fix package.lock & package * ci: add idempotency to ci checks on PRs * refactor: minor styling changes to folder structure, exports, types * test: unit tests style + added missing * chore: temporarily excluded makeFunctionIdempotent from coverage report * refactor: rename npx DynamoDbPersistenceLayer to DynamoDBPersistenceLayer * refactor: rename npx DynamoDbPersistenceLayer to DynamoDBPersistenceLayer * refactor: rename npx DynamoDbPersistenceLayer to DynamoDBPersistenceLayer * chore: revert changes to PersistenceLayerInterface * Trigger Build * Update packages/idempotency/src/persistence/PersistenceLayer.ts Co-authored-by: ijemmy <[email protected]> Co-authored-by: ijemmy <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 34ef180 - Browse repository at this point
Copy the full SHA 34ef180View commit details -
chore: add install step in docs workflow (#1183)
* fix: add build on cache miss * chore: excluded unreleased utils from api docs
Configuration menu - View commit details
-
Copy full SHA for 16529fc - Browse repository at this point
Copy the full SHA 16529fcView commit details
Commits on Nov 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3da04d7 - Browse repository at this point
Copy the full SHA 3da04d7View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.4.1...v1.5.0