electrodb
Advanced tools
Changelog
[2.14.2] - 2024-07-07
@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!Changelog
[2.14.1] - 2024-05-17
undefined
. This caused empty strings, zero values, and the boolean value false
to incorrectly be considered missing.Changelog
[2.14.0] - 2024-04-29
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.Changelog
[2.13.0] - 2023-12-28
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.Changelog
[2.12.3] - 2023-12-26
undefined
cursor (currently typed as string | null
) when using the raw:true
execution option. Fixed to return null
instead of undefined
../library-data.json
and test.csv
, accidentally published in version 2.12.2
.Changelog
[2.12.2] - 2023-12-18
scan
appended invalid filters if some cases. In cases where attributes are used as keys or composite templates contain no prefixes the scan
operation would append invalid filters to parameters. This bug was identified by discord user @engi22, thank you!Changelog
[2.12.0] - 2023-11-27
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.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.Changelog
[2.11.0] - 2023-11-12
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!