New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

electrodb

Package Overview
Dependencies
Maintainers
0
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electrodb - npm Package Versions

13
17

2.14.2

Diff

Changelog

Source

[2.14.2] - 2024-07-07

Fixed

  • Raised via Issue #196 and Issue #390, a breaking change was made to the project's dependency @aws-sdk/lib-dynamodb. The change resulted in the error Error: Cannot find module '@aws-sdk/lib-dynamodb/dist-cjs/commands/utils'. This change updates ElectroDB's dependency version to the static version 3.395.0, a version known to be compadible. Thank you github users @miyamonz, @kevinlonigro, @srodriki, @pablote, @sargisshahinyan, and @arpadgabor!
tywalch
published 2.14.1 •

Changelog

Source

[2.14.1] - 2024-05-17

Fixed

  • Further fixes in service of Issue #366. A bug was discovered that the logic to validate the presence of an attribute was a simple falsey check instead of a check that the value was undefined. This caused empty strings, zero values, and the boolean value false to incorrectly be considered missing.
tywalch
published 2.14.0 •

Changelog

Source

[2.14.0] - 2024-04-29

Fixed/Changed

  • Addresses Issue #366 with unexpected outcomes from index condition usage. Discussion inside the issue ticket revealed complexities associated with the implementation of the condition callback. Previously, a callback returning false would simply not write the fields associated with an index on update. Through discussion with @sam3d and @nonken, it was revealed that this behavior could lead to inconsistencies between indexes and attributes. Furthermore, this behavior did not align with user expectations/intuitions, which expected a false response to trigger the removal of the item from the index. To achieve this, it was discussed that the presence of a condition callback should add a new runtime validation check on all mutations to verify all member attributes of the index must be provided if a mutation operation affects one of the attributes. Previously ElectroDB would validate only that composite members of an index field (a partition or sort key) within an index were fully provided; now, when a condition callback is present, it will validate that all members from both fields are provided. If you are unable to update/patch all member attributes, because some are readOnly, you can also use the composite method on update and patch. More information and the discussion around the reasoning behind this change can be found here. Failure to provide all attributes will result in an Invalid Index Composite Attributes Provided Error.
tywalch
published 2.13.1 •

Changelog

Source

[2.13.1] - 2024-01-23

Fixed

  • Fixes custom attribute type extraction for union types with RecordItem. Patch provided by GitHub user @wentsul via PR #346. Thank you for another great addition!
tywalch
published 2.13.0 •

Changelog

Source

[2.13.0] - 2023-12-28

Added

  • Adds new query execution option count which allows you to specify a specific item count to return from a query. This is useful for cases where you must return a specific/consistent number of items from a query, a deceptively difficult task with DynamoDB and Single Table Design.
tywalch
published 2.12.3 •

Changelog

Source

[2.12.3] - 2023-12-26

Fixed

  • Collection queries returned an undefined cursor (currently typed as string | null) when using the raw:true execution option. Fixed to return null instead of undefined.
  • Removed superfluous and unused files, ./library-data.json and test.csv, accidentally published in version 2.12.2.
tywalch
published 2.12.2 •

Changelog

Source

[2.12.2] - 2023-12-18

Fixed

tywalch
published 2.12.1 •

Changelog

Source

[2.12.1] - 2023-11-29

Fixed

  • Adds more sophisticated custom attribute type extraction. Patch provided by GitHub user @wentsul with an assist by @adriancooney via PR #332. Thank you both for this great addition!
tywalch
published 2.12.0 •

Changelog

Source

[2.12.0] - 2023-11-27

Added

  • Adds support for nested usage of any and CustomAttributeType attribute types. Prior to this release, any and CustomAttributeType could only be used with root attributes. This change adds support for CustomAttributeType to be used with map attributes.
  • Adds new condition property on index definitions to prevent unnecessary GSI writes & hot partitions for certain data models. The provided condition callback will be invoked at query-time, passed all attributes set on that mutation, and if it returns false the index will not be written to your DynamoDB table. Addresses Issue #330.
tywalch
published 2.11.0 •

Changelog

Source

[2.11.0] - 2023-11-12

Added

  • Adds new property scope to index definitions, allowing users to further isolate partition keys beyond just service participation. This implements an RFC that was thoughtfully put forward by @Sam3d in Issue #290. Thank you, Brooke for your contribution!
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc