Skip to content

Releases: mtranter/funamots

v3.6.0

09 Sep 23:00
Compare
Choose a tag to compare

Bug fix in serialising key conditions for multiple conditions on query

v3.5.0

23 Jul 22:57
Compare
Choose a tag to compare
  • Breaking change to ifNotExists API. Previously, a set operation could take an ifNotExists call with a single parameter:
table.set(key, { someValue: ifNotExists('1') })

This API, while simple, was a tad limiting. In this case, it checked for the existence of the "someValue" property on the object being updated. However, there are cases where you may wish to set someValue based on the existence of another property. This change makes this possible.

table.set(key, { someValue: ifNotExists('someOtherValue', '1') })

This API will typecheck the first parameter to ensure it exists on our object. Dot notation can be used e.g.

table.set(key, { someValue: ifNotExists('parent.child.someOtherValue', '1') })

Dot notation params will also be type checked.

  • An addition of mathematical expressions for Set functions.
table.set(key, { someNumberValue: plus('someNumberValue', 1) })
table.set(key, { someNumberValue: minus('someNumberValue', 1) })

Dot notation can also be used to identify the attribute to be updated. Also typechecked.

ifNotExists calls can be nested within the mathematical expressions

table.set(key, { someNumberValue: plus(ifNotExists('someNumberValue',0), 1) })

v3.4.2

02 Mar 22:13
Compare
Choose a tag to compare

Fix the types that define get operations with key expressions

v3.4.1

02 Mar 20:59
Compare
Choose a tag to compare

Fix type issues on GET operations for selected keys

v2.4.2

02 Mar 22:13
Compare
Choose a tag to compare

Fix the types that define get operations with key expressions

v2.4.1

02 Mar 21:00
Compare
Choose a tag to compare

Fix type issues on GET operations for selected keys

v3.4.0

01 Mar 07:45
Compare
Choose a tag to compare

Enable typescript strict mode

v2.4.0

01 Mar 07:46
Compare
Choose a tag to compare

Enable typescript strict mode.

v3.3.1

28 Feb 21:38
Compare
Choose a tag to compare

Fix type issue on CreateTable request

v2.3.1

28 Feb 21:39
Compare
Choose a tag to compare

Fix type issue on CreateTable request