Releases: sensedeep/dynamodb-onetable
v1.4.3
v1.4.2
v1.4.1
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
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
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
See
v1.3.6
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
v1.3.4
v1.3.3
Minor Patch Release
Features
- none
Fixes
- Fix types ref in package.json to point to dist/mjs
- Stop catching conditional check exceptions