Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electrodb

Package Overview
Dependencies
Maintainers
1
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electrodb - npm Package Versions

1
17

1.7.0

Diff

Changelog

Source

[1.7.0] - 2022-03-13

Added

  • New feature: "Listeners". Listeners open the door to some really cool tooling that was not possible because of how ElectroDB augments raw DynamoDB responses and did not provide easy access to raw DynamoDB parameters. [read more]
tywalch
published 1.6.3 •

Changelog

Source

[1.6.3] - 2022-02-22

Added

  • Add data update operation ifNotExists to allow for use of the UpdateExpression function "if_not_exists()".
tywalch
published 1.6.2 •

Changelog

Source

[1.6.2] - 2022-01-27

Changed

  • The methods create, patch, and remove will now refer to primary table keys through parameters via ExpressionAttributeNames when using attribute_exists()/attribute_not_exists() DynamoDB conditions. Prior to this they were referenced directly which would fail in cases where key names include illegal characters. Parameter implementation change only, non-breaking.
tywalch
published 1.6.1 •

Changelog

Source

[1.6.1] - 2021-12-05

Fixed

  • In some cases the find() and match() methods would incorrectly select an index without a complete partition key. This would result in validation exceptions preventing the user from querying if an index definition and provided attribute object aligned improperly. This was fixed and a slightly more robust mechanism for ranking indexes was made.
tywalch
published 1.6.0 •

Changelog

Source

[1.6.0] - 2021-11-21

Added

  • Exporting TypeScript interfaces for ElectroError and ElectroValidationError
  • Errors thrown within an attribute's validate callback are now wrapped and accessible after being thrown. Prior to this change, only the message of the error thrown by a validation function was persisted back through to the user, now the error itself is also accessible. Reference the exported interface typedef for ElectroValidationError here to see the new properties available on a thrown validation error.

Changed

  • As a byproduct of enhancing validation errors, the format of message text on a validation error has changed. This could be breaking if your app had a hardcoded dependency on the exact text of a thrown validation error.

Fixed

  • For Set attributes, the callback functions get, set, and validate are now consistently given an Array of values. These functions would sometimes (incorrectly) be called with a DynamoDB DocClient Set.
tywalch
published 1.5.0 •

Changelog

Source

[1.5.0] - 2021-11-07

Changed

  • Queries will now fully paginate all responses. Prior to this change, ElectroDB would only return items from a single ElectroDB query result. Now ElectroDB will paginate through all query results. This will impact both uses of entity queries and service collections. [read more]
  • The query option limit has an extended meaning with the change to automatically paginate records on query. The option limit now represents a target for the number of items to return from DynamoDB. If this option is passed, Queries on entities and through collections will paginate DynamoDB until this limit is reached or all items for that query have been returned. [read more]

Added

  • A new query option pages has been added to coincide with the change to automatically paginate all records when queried. The pages option sets a max number of pagination iterations ElectroDB will perform on a query. When this option is paired with limit, ElectroDB will respect the first condition reached. [read more]
tywalch
published 1.4.8 •

Changelog

Source

[1.4.8] - 2021-11-01

Fixed

  • Addressed issue#90 to flip batchGet's response tuple type definition.
tywalch
published 1.4.7 •

Changelog

Source

[1.4.7] - 2021-10-20

Changed

  • Using add() update mutation now resolves to ADD #prop :prop update expression instead of a SET #prop = #prop + :prop

Fixed

  • Fixed param naming conflict during updates, when map attribute shares a name with another (separate) attribute.
tywalch
published 1.4.6 •

Changelog

Source

[1.4.6] - 2021-10-20

Added, Fixed

  • Adding Entity identifiers to all update operations. When primary index composite attributes were added in 1.4.4, entities were written properly but did not include the identifiers. This resulted in entities being written but not being readable without the query option ignoreOwnership being used.
tywalch
published 0.11.2 •

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