Skip to content

Releases: chadkluck/npm-chadkluck-cache-data

v1.1.2

11 Feb 18:15
Compare
Choose a tag to compare

Feature: Added new options to specify how duplicate parameters in a query string should be handled. This allows you to craft your query string to match what your endpoint expects when it parses the query string. See changelog or readme for more information.

v1.1.1 Minor fixes and updates

26 Nov 02:41
Compare
Choose a tag to compare

Just a few fixes and tweaks. One change is the way the cache hash id/key is generated. It used to use all properties of the connection such as host, pat, method, query-string parameters, etc. It also used options if it was sent. However, options does not affect the content, and when using dynamic timeouts, can change the hash id causing cache misses.
Options is now removed before calculating the cache id.

v1.1.0 First Minor Release!

19 Nov 19:24
Compare
Choose a tag to compare

There should be no breaking changes, but this is being released as a minor rather than a patch.

  • Enhancement: Shared cache stores are readily available. You can share one DynamoDb table and one S3 bucket among your applications. As always, the data encryption key keeps your data secure. As an added feature, each Cache Id is hashed with the application name (Lambda function name) to keep the data separate among applications and instances. (There is currently no support for sharing cached data among different applications.)
  • Feature: New Response and ClientRequest classes. In the past, you needed to extend the RequestDataModel and RequestInfo classes. While the RequestDataModel and RequestInfo classes are still available, they should help with organizing your application and logging. The ClientRequest class can handle incoming parameter validation and route parsing. The Response class can handle assembling the response and logging.
  • Began restructuring of the library. No noticeable differences on the end user end, but this better organizes the underlying Classes and methods.

v1.0.39 X-Ray and Chai 5.x tests

07 May 03:17
Compare
Choose a tag to compare

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 to true 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 provided tools.hashThisData() function rather than the current hash object package. By default, it is false, 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

29 Apr 21:21
Compare
Choose a tag to compare

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

18 Apr 18:32
Compare
Choose a tag to compare
v1.0.37b

updating version for release

v1.0.37 Bug fix for issue #109

18 Apr 18:20
Compare
Choose a tag to compare
fix: #109 Write to DynamoDb failed for id_hash Special numeric value …

v1.0.36 Same as v1.0.34 - Fixing GitHub actions issue

17 Apr 02:50
Compare
Choose a tag to compare

v1.0.35 Same as v1.0.34 but updated GitHub actions

17 Apr 02:44
Compare
Choose a tag to compare

v1.0.34 Dependency bumps, security fix, beta hashThisData function

17 Apr 02:32
Compare
Choose a tag to compare

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.