Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: aws-powertools/powertools-lambda-typescript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.4.1
Choose a base ref
...
head repository: aws-powertools/powertools-lambda-typescript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.5.0
Choose a head ref
  • 15 commits
  • 158 files changed
  • 11 contributors

Commits on Nov 9, 2022

  1. Configuration menu
    Copy the full SHA
    8533abe View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2022

  1. 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]>
    3 people authored Nov 10, 2022
    Configuration menu
    Copy the full SHA
    8d52660 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d7326db View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2022

  1. Configuration menu
    Copy the full SHA
    8af1c17 View commit details
    Browse the repository at this point in the history
  2. 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]>
    5 people authored Nov 11, 2022
    Configuration menu
    Copy the full SHA
    0a6676a View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2022

  1. chore(internal): remove unused test folder from project's root (#1162)

    * chore: removed redundant test folder
    
    * test: import event & context from commons
    dreamorosi authored Nov 13, 2022
    Configuration menu
    Copy the full SHA
    664c4da View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2022

  1. 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
    ConnorKirk authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    c37932d View commit details
    Browse the repository at this point in the history
  2. 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]>
    shdq and dreamorosi authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    6f0c307 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2022

  1. 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
    dreamorosi authored Nov 19, 2022
    Configuration menu
    Copy the full SHA
    36caa4e View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2022

  1. 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
    dreamorosi authored Nov 21, 2022
    Configuration menu
    Copy the full SHA
    d717a26 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2022

  1. chore(layer): reduce size by 3 by removing @types packages (#1181)

    Co-authored-by: Florian Chazal <[email protected]>
    flochaz and Florian Chazal authored Nov 23, 2022
    Configuration menu
    Copy the full SHA
    cb9eaf9 View commit details
    Browse the repository at this point in the history
  2. 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
    shdq authored Nov 23, 2022
    Configuration menu
    Copy the full SHA
    cb91374 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2022

  1. 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]>
    dreamorosi and ijemmy authored Nov 24, 2022
    Configuration menu
    Copy the full SHA
    34ef180 View commit details
    Browse the repository at this point in the history
  2. chore: add install step in docs workflow (#1183)

    * fix: add build on cache miss
    
    * chore: excluded unreleased utils from api docs
    dreamorosi authored Nov 24, 2022
    Configuration menu
    Copy the full SHA
    16529fc View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2022

  1. Configuration menu
    Copy the full SHA
    3da04d7 View commit details
    Browse the repository at this point in the history
Loading