Skip to content

Commit

Permalink
Adds reversion of 2.9.2 change
Browse files Browse the repository at this point in the history
  • Loading branch information
tywalch committed Sep 10, 2023
1 parent 834c92a commit 6263ca9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,12 @@ All notable changes to this project will be documented in this file. Breaking ch
- Version `2.9.0` was accidentally published without the dependency `@aws-sdk/lib-dynamodb`

## [2.9.2]
### Changed
- The `composite()` method for `update` and `patch` now adds a condition expression that allows for cases where the composite attribute doesn't exist. Prior to this change the condition used a strict equals check on the attribute value (e.g. `#prop1 = :prop1`). This change now revises that expression to `(#prop1 = :prop1 OR attribute_not_exists(#prop1))`.

## [2.9.3]
### Revert
- Reverts change in `2.9.2`. The `composite()` method no longer allows for `attribute_not_exists()`.
### Fixed
- Composite attributes that used the attribute option `watch`, and were not provided to the `create` or `put` methods, were not property applied to their composite keys. This addresses the issue brough forward in [discussion #292](https://github.com/tywalch/electrodb/discussions/292).

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electrodb",
"version": "2.9.2",
"version": "2.9.3",
"description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 6263ca9

Please sign in to comment.