electrodb
Advanced tools
Changelog
[2.9.1]
2.9.0
was accidentally published without the dependency @aws-sdk/lib-dynamodb
Changelog
[2.9.0]
composite()
method for update
and patch
operations. The composite
method is used to help electrodb complete and format keys when updating a subset of the key's composite attributes. Prior to this update, updating a key partially resulted in an invalid query error, which caused difficulties when some composite attributes were flagged as readOnly. [read more]Changelog
[2.8.2] - 2023-08-19
field
name when it was updated via watch
.Changelog
[2.8.1] - 2023-08-06
Changelog
[2.8.0] - 2023-08-06
cast
option for indexes to allow users to cast index values to a different type than their composite attribute. This change comers from a user requested feature and addresses issue #237ignoreOwnership
from correctly gating return recordsChangelog
[2.7.2] - 2023-07-03
Changelog
[2.7.1] - 2023-07-03
if_not_exists()
if the attribute is not a composite attribute in an index.Changelog
[2.7.0] - 2023-07-01
delete
, remove
, update
and upsert
operations. These types were incorrect and did not reflect the real values returned. Instead of breaking the APIs, changing response types to T | null
, the new response type is now the Entity's key composite values by default. You can also now use the Execution Option response
to get back the item as it exists in the table. This is the closed I could get to a non-breaking change that also fixes the incorrect return typing for these methods.contains
where conditions to accept collection element values (e.g., set
and list
type attributes).UpdateEntityItem
was incorrectly typed, it now includes the correct typing as the values that can be passed to the set
methodreadOnly
attributes when applying changes. If an attribute is configured as readOnly
ElectroDB will apply the property with an if_not_exists
set operation to prevent overwriting the existing value if one is set.Changelog
[2.6.1] - 2023-06-09
Changelog
[2.6.0] - 2023-05-22
hydrate
. When a GSI uses a KEYS_ONLY
projection, the hydrate
option will perform the query and then a subsequent batchGet
to "hydrate" the results.conversion
methods to help transform values between "composite attributes", "keys", and "cursors".patch
operations. The response type for patch
now returns an Entity item when passed the execution options { response: 'all_new' }
or { response: 'all_old' }
..params()
to log out parameters and then call .go()
on the same chain. The fix was to prevent duplicative side effects from occurring on each subsequent terminal method call.response.data
as never
when the transaction included more than one element.