From 6263ca9a9da4973a272242a91b1cf70825d9540c Mon Sep 17 00:00:00 2001 From: tywalch Date: Sun, 10 Sep 2023 13:26:30 -0400 Subject: [PATCH] Adds reversion of 2.9.2 change --- CHANGELOG.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5242ccef..17b564b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). diff --git a/package.json b/package.json index 0f4874b7..1254c7e7 100644 --- a/package.json +++ b/package.json @@ -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": {