Skip to content

Releases: sensedeep/dynamodb-onetable

v1.4.3

31 May 07:05
Compare
Choose a tag to compare

Minor Patch Release

Features

  • Support Table({}, {logger: true})
  • Support Table.exists()
  • Add createTable, deleteTable to samples/crud

Fixes

  • Fix createTable with AWS V3 SDK #43

See

v1.4.2

29 May 04:50
Compare
Choose a tag to compare

Minor Patch Release

Features

  • Add samples/crud

Fixes

  • Fix #42 -- ordered processing of value templates dependent on other properties
  • Fix create() API without an SK
  • Clarify doc regarding limits, value templates

See

v1.4.1

13 May 08:30
Compare
Choose a tag to compare

Minor Patch Release

Features

  • Add createTable / deleteTable APIs.
  • Add params.maxPages to limit rounds in Model.find

Fixes

  • Fix hash reference #38
  • Clarify doc regarding LSIs and GSIs
  • Fix inheriting hidden and timestamp params from Table when set to false.
  • Fix BETWEEN KeyConditions
  • Fix Model.find params.limit

See

v1.4.0

05 May 06:48
Compare
Choose a tag to compare

Minor Feature Release

Features

  • Refactor params.metrics -> params.stats
  • Support value template padding
  • Doc updates

Metrics

The params.metrics is renamed to params.stats to make room for the onetable-metrics packages which provides CloudWatch metrics.
The old syntax of params.metrics is deprecated and will be removed in the future.

Value template padding

Value template variables may be of the form: ${name:size:pad} where the name will be padded to the specified size using the given pad character (which default to '0'). This is useful for zero padding numbers so that they sort numerically.

Fixes

  • Fix updating nested objects (addValue)

See

v1.3.7

05 May 00:20
Compare
Choose a tag to compare

Minor Patch Release

Features

  • Refactor the uuid, ulid, ksuid params.
  • More documentation updates.

UUID

Previously there were separate uuid, ulid and ksuid param options. This proliferation was not ideal. While the old syntax is still supported, it is deprecated. The new syntax is:

Schema

{
    models: {
        Account: {
            id:          { type: String, uuid: 'ulid' },
}

The schema entity model can set the uuid parameter to true, uuid or ulid. If set to true, that selects the default UUID function defined via the table constructor which may be a UUID, ULID or custom function (or UUID if unset). If set to uuid, it selects the UUID. If set to ulid, it selects the ULID function.

Table Constructor

new Table({
    uuid: string | function
})

The default uuid may be set to 'uuid' or 'ulid' or a custom function. This defines the default UUID function for entities.

Fixes

  • Fix TypeScript params.fields #33
  • Fix TypeScript array constructor #34

See

v1.3.6

04 May 01:25
Compare
Choose a tag to compare

Minor Patch Release

Features

  • Optimize attribute names and values by removing duplicates.
  • Refactor and cleanup attribute names and values.
  • Clarify the documentation for the type field.

Fixes

  • Fix params.fields. #31
  • Update doc samples for TypeScript. #32
  • Fix TypeScript default values for Numbers. #32

See

v1.3.5

03 May 01:50
Compare
Choose a tag to compare

Minor Patch Release

Features

  • Clarify doc on params.exists. Allow explicitly setting to null to permit create to update and update to create.

Fixes

  • Update README for typescript examples #32
  • Merge pull requests: #30 #29

See

v1.3.4

21 Apr 06:45
Compare
Choose a tag to compare

Minor Patch Release

Features

  • Clarify doc on params.exists. Allow explicitly setting to null to permit create to update and update to create.

Fixes

  • Fix unmarshall of LastEvaluatedKey. #25

See

v1.3.3

20 Apr 23:52
Compare
Choose a tag to compare

Minor Patch Release

Features

  • none

Fixes

  • Fix types ref in package.json to point to dist/mjs
  • Stop catching conditional check exceptions

See

v1.3.2

18 Apr 10:03
Compare
Choose a tag to compare

Minor Patch Release

Features

  • Clarify README Model params.log to require logger.

Fixes

  • Fix AWS V3 unmarshall LastEvaluatedKey #18
  • Fix OneParams.metrics type to be object #21

See