Releases: chadkluck/npm-chadkluck-cache-data
v1.0.39 X-Ray and Chai 5.x tests
3 of 3 new features added in April are now fully functional and documented. See documentation for AWS X-Ray and AWS Parameters and Secrets Lambda Extension.
The experimental feature tools.hashThisData() from v1.0.33 is still experimental and undocumented.
- Feature: Added AWS XRay to HTTP, SSM, S3, and DynamoDb requests. Add Lambda environment variable
CacheData_AWSXRayOn
and set totrue
to enable. Check the X-Ray traces using CloudWatch. - Feature: Added a switch for experimental tools.hashThisData(). Passing the
useToolsHash: true
property during Cache.init() will use the providedtools.hashThisData()
function rather than the current hash object package. By default, it isfalse
, and the current hash object function is used. - Documentation: Added documentation for both X-Ray and CachedParameterSecret
- Chore: Updated tests so it would work with chai 5.x
v1.0.38 Added experimental Parameters and Secrets functionality to work with AWS Extension
This release has an experimental Classes to provide an option to use the AWS Parameters and Secrets Lambda Extension to access and cache AWS SSM Parameters and Secrets Manager secrets.
Documentation of use will come at a later date after the update proves stable.
v1.0.37 Bug fix for issue #109
v1.0.37b updating version for release
v1.0.37 Bug fix for issue #109
fix: #109 Write to DynamoDb failed for id_hash Special numeric value … …NaN is not allowed
v1.0.36 Same as v1.0.34 - Fixing GitHub actions issue
v1.0.35 Same as v1.0.34 but updated GitHub actions
updated version
v1.0.34 Dependency bumps, security fix, beta hashThisData function
A few dependency bumps, Chai is pinned to 4.x for testing since Chai must use "import" modules rather than "require" in Node.js.
tools.DebugAndLog outputs to the console.x functions got a security update to better sanitize messages sent from code.
tools.hashThisData('SHA256', data) was added for beta. It is a possible replacement for the object-hash dependency. The new function is lightweight and does precisely what is needed to create an ID for cached objects. It is not in use yet but is available for testing. In the future, it could be used as an alternative to object-hash if you prefer to limit your dependencies.
v1.0.33 More AWS SDK goodness
See CHANGELOG, but added additional methods for accessing the DynamoDb document client in either AWS SDK v2 or v3.
v1.0.32 AWS SDK v3 and Lambda Node v18
Lambda Node v18 and AWS SDK v3 is here!
Cache-Data will automatically detect the Lambda Node environment and use either AWS SDK v2 or v3. (Lambda running Node 16.x uses AWS SDK v2 and Lambda running on 18.x uses AWS SDK v3)