Skip to content

Latest commit

 

History

History
131 lines (109 loc) · 4.51 KB

File metadata and controls

131 lines (109 loc) · 4.51 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[0.7.3]

Added

  • Export query/scan/parallelScan iterator and paginator classes.

[0.7.2]

Fixed

  • Sort key configurations in CreateTableInput so that hash keys always appear first.

[0.7.1]

Removed

  • Remove package rollup at ./build/index.mjs due to bundler incompatibilities.

[0.7.0]

Added

  • Add a package rollup at ./build/index.mjs to support tree shaking.

[0.6.0]

Fixed

  • Update query and scan to serialize whatever key properties are provided without injecting any defaulted values.
  • Update DataMapper for TypeScript 2.9 compatibility.

Added

  • Use purpose-built async iterable objects as the return value for query, scan, and parallelScan.
  • Report the count, scannedCount, and consumedCapacity tallied over the lifetime of a query, scan, or parallelScan as properties on the returned iterable.
  • Provide a method to get the underlying paginator for a query, scan, or parallelScan iterator. The paginator may be used to suspend and resume iteration at any page boundary.
  • Add limit parameter to scan and query to automatically cease iteration once a certain number of items have been returned or the results have been exhausted, whichever comes first.

[0.5.0]

Fixed

  • Add default message to ItemNotFoundException
  • Ensure options provided are used when query is called with a named parameter bag.

Added

  • Add support for executing custom update expressions.

[0.4.2]

Fixed

  • Ensure query and scan marshall exclusive start keys for the specified index.

[0.4.1]

Fixed

  • Ensure query returns instances of the provided model class.

[0.4.0]

Added

  • Add createTable to create tables based on table names and schemas bound to constructor prototypes
  • Add ensureTableExists to create a table only if it does not already exist
  • Add deleteTable to delete tables based on table names bound to constructor prototypes
  • Add ensureTableNotExists to delete a table only if it is not already deleted

[0.3.2]

Fixed

  • Only include expression name or value substitions when a substitution has occurred

[0.3.1]

Fixed

  • Ensure retried writes in a batchDelete, batchPut, or batchWrite are only yielded once

[0.3.0]

Added

  • Add batchGet, which allows a synchronous or asynchronous iterable of items (like those supplied to get) to be automatically grouped into BatchGetItem operations.
  • Add batchDelete, which allows a synchronous or asynchronous iterable of items (like those supplied to delete) to be automatically grouped into BatchWriteItem operations.
  • Add batchPut, which allows a synchronous or asynchronous iterable of items (like those supplied to put) to be automatically grouped into BatchWriteItem operations.
  • Add batchWrite, which allows a synchronous or asynchronous iterable of tuples of tags ('put' or 'delete') and items (like those supplied to the put or delete methods, respectively) to be automatically grouped into BatchWriteItem operations.

[0.2.1]

Added

  • Add the ability to call all DataMapper methods with positional rather than named parameters
  • Add API documentation

Deprecated

  • Deprecate calling DataMapper methods with a single bag of named parameters

[0.2.0]

Removed

  • BREAKING CHANGE: Removed the returnValues parameter from put. put will now always return the value that was persisted, thereby providing access to injected defaults and accurate version numbers.

Added

  • Add a parallelScan method to the DataMapper.
  • Add optional parameters to the scan method to allow its use as a parallel scan worker
  • Add a pageSize parameter to query and scan to limit the size of pages fetched during a read. pageSize was previously called limit.

Changed

  • Use TSLib instead of having TypeScript generate helpers to reduce bundle size

Deprecated

  • Deprecate limit parameter on query and scan. It has been renamed to pageSize, though a value provided for limit will still be used if no pageSize parameter is provided.

[0.1.1]

Fixed

  • Update dependency version to match released version identifier

[0.1.0]

Initial release