Skip to content

Latest commit

 

History

History
780 lines (364 loc) · 34.7 KB

CHANGELOG.md

File metadata and controls

780 lines (364 loc) · 34.7 KB

4.11.2 (2024-06-05)

Bug Fixes

  • passing conditions from PrimaryKey.update to Table.update (32a6807), closes #699

4.11.1 (2024-04-04)

Bug Fixes

  • ability to set default DynamoDB Connection globally and easily (31123d6), closes #680

4.11.0 (2024-04-02)

Features

  • add someOf an allOf filter condition utilities (d6c3f65)
  • allow creation of Dynamic attribute with only metadata (62d7a52), closes #673

4.10.2 (2024-03-28)

Bug Fixes

  • querying maps when the attribute and property names don't match (d05b57f), closes #678

4.10.1 (2024-03-07)

Bug Fixes

  • using not contains query filter (98d3c7f)

4.10.0 (2023-11-16)

Bug Fixes

  • using a conditional check on a nowOnUpdate Date attribute (074fe81)

Features

  • expose a way to get the Transaction write items (d0d0c6a)

4.9.1 (2023-10-30)

Bug Fixes

  • make MagicSearch.page public again (b9de391)

4.9.0 (2023-10-30)

Features

4.8.2 (2023-10-14)

Bug Fixes

  • store original value when removing an attribute (0f444ab)

4.8.1 (2023-10-14)

Bug Fixes

  • tracking when the entire document is loaded (e22902a)

4.8.0 (2023-10-14)

Bug Fixes

  • afterSave: updatedAttributes and deletedAttributes always empty (c47aeb7)

Features

  • abort controller support (77da825)

4.7.1 (2023-09-15)

Bug Fixes

  • restore support for AWS XRAY (1d972ba)

4.7.0 (2023-09-15)

Bug Fixes

  • re-add support for DYNAMO_ACCESS_KEY_ID & DYNAMO_SECRET_ACCESS_KEY (b438325)

Features

  • allow removing multiple properties or attributes (4bb1ca4)

4.6.0 (2023-09-14)

Features

4.5.0 (2023-09-14)

Bug Fixes

  • expose proper typing for isTrulyEmpty (ae04049)

Features

  • accept number and string arrays on set properties (72b57cc)

4.4.0 (2023-09-14)

Features

  • allow arrays to be passed via set (7c19ff6)

4.3.1 (2023-09-14)

Bug Fixes

  • convert string sets to an array when outputting to JSON (6258812)

4.3.0 (2023-09-14)

Features

  • improve searching using contains operator for sets (7ae830b), closes #667

4.2.0 (2023-09-14)

Bug Fixes

  • creation of update expression duplicated remove segment (d21bfe4)
  • migrateTable comparison of indexes (e1599c7), closes #645

Features

  • add support for using add and remove update operators with sets (33bf76e)
  • allow sets to continue to be native javascript arrays (c137a74), closes #667

4.1.2 (2023-08-25)

Bug Fixes

  • cdk utility needs to use unique resource id for every table (c8c6f0b)

4.1.1 (2023-08-15)

Bug Fixes

  • clear update operators after saving (cc97567)
  • compatibility with TypeScript 5.1 (a634d68)

4.1.0 (2023-04-10)

Bug Fixes

  • map attributes using independent property names (57a0132)

Features

  • arbitrary attributes on maps (c6fce9d)
  • standardize to primary key nomenclature (b03b26a)

4.0.0 (2023-04-08)

Bug Fixes

  • assign a default value for range key (3f3de65), closes #569
  • ci: dynamodb port needs to be exposed (d54a548)
  • ci: running in container is breaking semantic-release (424d8d5)
  • conditions when using a transaction (95d4cdd), closes #609
  • ensure date attribute with nowOnUpdate update on partial updates (374d02e), closes #613
  • passing undefined to Table.new clears default values (ea33dd3), closes #602

Features

  • add support for List attributes (4abf8f4), closes #608
  • convert sets to use Set types (f35ace4)
  • generate CDK table (1162d6e)
  • improve autoscaling support and interfaces (2f80f0b), closes #544
  • upgrade to aws-sdk v3 (e4fca19)

BREAKING CHANGES

  • this converts StringSet, NumberSet, and BinarySet to use a Set type in TypeScript, which provides better typing and ensures values are unique. This will later help with processing the changes to sets only, rather than having to re-save the entire set of values which is inefficient for larger sets.
  • Very necessary.

3.1.3 (2022-07-28)

Bug Fixes

  • date: passing invalid date values to fromJSON would error (14904d5)

3.1.2 (2022-06-13)

Bug Fixes

  • provide a helpful error when a delete item fails (c16b1b6)
  • updateSet could fail to remove items from the set (7e30de5)

3.1.1 (2022-04-22)

Bug Fixes

  • allow use of updateSet with nullable properties (a6d8736)

3.1.0 (2022-04-22)

Features

  • utility to update sets more intelligently (#570) (0e23430)

3.0.2 (2021-09-27)

Bug Fixes

  • allow attributes with the property name of 'name' (d044c3d)

3.0.1 (2021-09-27)

Bug Fixes

  • do not force Dyngoose-generated properties when the property is set (fb7f9e8)
  • ignore unknown properties when reading a map when told to ignore (991a7b3)

3.0.0 (2021-08-21)

Bug Fixes

  • additional testing to prevent [null] output #482 (59f0541)
  • querying by property names does not work as expected (12e4d5d), closes #494

Features

BREAKING CHANGES

  • This has changed the way the Table.save method accepts arguments. It now accepts an object of parameters, rather than two hard-coded arguments. In addition, I've removed the Table.forceSave method, that functionality is now integrated into the Table.save method and is available by passing { force: true } in the parameters object.

2.16.5 (2021-05-25)

Bug Fixes

  • the order of arguments for beforeSave #479 (821fcb5)
  • use of MagicSearch without filters for paging entire table/index (9ba0309), closes #478

2.16.4 (2021-03-18)

Bug Fixes

  • apply defaults before importing values when using Table.fromJSON (2d92a76)

2.16.3 (2021-03-03)

Bug Fixes

  • excludes operator incorrectly formatting the query (7e37678)

2.16.2 (2021-03-01)

Bug Fixes

  • date attributes should accept number timestamps (75a88e6)

2.16.1 (2021-03-01)

Bug Fixes

  • allow manipulateRead to be used even when the value is null (f2f2935)
  • allow manipulateWrite to be used when the value is null (a204fcd)

2.16.0 (2021-02-26)

Features

  • accept ISO formatted strings for Date attributes (843396a)
  • add better typing for MagicSearch conditions (27f01c9)

2.15.3 (2021-02-23)

Bug Fixes

  • 🐛 Billing mode pay per request for GSIs (#453) (7bce6be)
  • cannot specify BillingMode on the GSI input (148d041)

2.15.2 (2021-02-22)

Bug Fixes

  • do not specify ProjectionExpression when performing a COUNT (634f9e1)

2.15.1 (2021-02-22)

Bug Fixes

  • projection expression for MagicSearch (aa09be3)

2.15.0 (2021-02-22)

Features

  • throw helpful errors when using MagicSearch and Batch utilities (6ffb945)

2.14.0 (2021-02-19)

Features

  • support specifying the CloudFormation resource name for a Table (7f2598b)

2.13.4 (2021-02-05)

Bug Fixes

  • utility to expose whether a record is new (0ec99e2)

2.13.3 (2021-02-05)

Bug Fixes

  • expose transaction CancellationReasons on the error (92c73cd)

2.13.2 (2021-02-04)

Bug Fixes

  • using Table.fromJSON() with a Map attribute (1cce51b)

2.13.1 (2021-02-04)

Bug Fixes

  • using Table.toJSON() with a Map attribute (9feef8e)

2.13.0 (2021-01-23)

Features

  • support enabling point-in-time recovery (0462f52)

2.12.3 (2021-01-22)

Bug Fixes

  • remove isTrulyEmpty's reliance on lodash's identity (d227771), closes #445

2.12.2 (2021-01-21)

Bug Fixes

  • support for typescript 4.1.x (74a8b83)

2.12.1 (2021-01-21)

Bug Fixes

  • provide the query input to the PrimaryKey put and update handlers (14cb4e3)

2.12.0 (2021-01-16)

Features

  • throw helpful errors with useful stacks (b7c5f05)

2.11.1 (2020-12-15)

Bug Fixes

  • pass the lastEvaluatedKey from the last output object during merge (c15be05)

2.11.0 (2020-12-10)

Features

  • add Query.PrimaryKey.search (595847e)

2.10.1 (2020-12-05)

Bug Fixes

  • usage of fromDynamo was not consistent (88b23b2)

2.10.0 (2020-12-05)

Bug Fixes

  • allow deleting of attributes when loaded from primaryKey.fromKey (5568d6c)

Features

  • allow filtering on scans of the primary key (f753097)

2.9.2 (2020-11-27)

Bug Fixes

  • using MagicSearch with indexes was not building KeyConditions (95ae96d)

2.9.1 (2020-11-14)

Bug Fixes

  • fix using dates as range key and calling primarKey.get (5284298)

2.9.0 (2020-11-14)

Bug Fixes

  • require the table name to be specified (5651e1b)

Features

  • allow strict property name pathing into maps (9078ccb)
  • atomic batch get operations (590f268)
  • primary key .get method accepts filters object (d08618c)
  • semaphore batch writes (ab42567)
  • use projection expression builder for MagicSearch (132ca9b)

2.8.1 (2020-11-14)

Bug Fixes

  • do not apply defaults when loading from DynamoDB (adac797)

2.8.0 (2020-11-14)

Features

  • remove items not found from batch results (ed698df)
  • support deep maps (042bde9)

2.7.1 (2020-11-04)

Bug Fixes

  • projections were failing when no reserved words were used (20cbe7b)

2.7.0 (2020-11-03)

Features

  • build projection expressions to support reserved word attributes (c005758)

2.6.0 (2020-11-03)

Features

  • add batch get utility class (75fa6c9)

2.5.0 (2020-10-29)

Features

  • add .minimum(min) execution utility to MagicSearch (fa987a4)

2.4.0 (2020-10-29)

Features

  • allow throughput to be specified as a number on GSIs (e5cbbae)
  • check the nonKeyAttributes specified to a GSI (8d0962e)
  • include the src files, which are referenced by the js maps (11e3f77)
  • query output as an native array (ac8111c)
  • set limit of 1 when performing a gsi.get query (a519758)

2.3.2 (2020-10-23)

Bug Fixes

  • allow void to be used as the range key type for primary keys (2a181bc)

2.3.1 (2020-10-23)

Bug Fixes

  • allow any property name, but maintain the intelligent autocomplete (fd31498)

2.3.0 (2020-10-22)

Bug Fixes

  • any attribute using binary's metadata (8c4d077)
  • ensure specs are excluded from npm package (37252b7)
  • npm run test command referencing removing tsconfig (d85d898)

Features

  • add del to table to delete by property name (c9a0647)
  • upgrade to eslint, add bigint support to NS, type set/get on table (9aec8c3)

2.2.0 (2020-10-14)

Features

  • remove moment in favor of using native Date functions (#292) (4cc0807)

2.1.0 (2020-10-14)

Features

  • 🐛 Added transact write to dynamoClient (#290) (7c7270e)

2.0.0 (2020-09-29)

Features

  • add call-chaining search support for advanced filtering and querying operations (#133) (19366dd), closes #130

BREAKING CHANGES

  • The existing Table.search() function has changed and it now requires you to call .exec() on the result, like: Table.search({ id: 'something' }).exec().

1.12.3 (2020-08-06)

Bug Fixes

1.12.2 (2020-03-11)

Bug Fixes

  • BigInt support is causing a conflict with number attributes (fc97e5d), closes #33

1.12.1 (2020-02-27)

Bug Fixes

  • make aws-sdk a peerDependency to allow users to specify a version (c15a097)

1.12.0 (2020-02-25)

Bug Fixes

  • make new 'extra' optional (23b7814)

Features

  • support "extra" on tables and attributes (fc076c7)

1.11.4 (2020-02-21)

Bug Fixes

  • date attributes should honor desired format when output to JSON (b6fa238)

1.11.3 (2020-02-21)

Bug Fixes

  • do not use official process.env.AWS_* variables by default (60444d5)

1.11.2 (2020-02-21)

Bug Fixes

  • output log messages from utils/cloudformation (4284fcb)

1.11.1 (2020-02-21)

Bug Fixes

  • prevent use of INCLUDE without nonKeyAttributes (9e39ab9)
  • usage of incorrect suffix variable in utils/cloudforamtion (45c36a3)

1.11.0 (2020-02-20)

Bug Fixes

  • bug with migrate utility, typo using the wrong variable (5a0d612)

Features

  • allow any DynamoDB configuration option to be defined (67bb421)

1.10.0 (2020-02-19)

Features

  • support migrating the TTL attribute as part of migrateTable (7a1761b)

1.9.0 (2020-02-19)

Features

  • add explicit support for unix and millisecond timestamps (17dd6ae)
  • support setting a table's billing mode to PAY_PER_REQUEST (5536e66)
  • support storing BigInts as numbers (ab28bf7)

1.8.0 (2020-02-19)

Features

  • add type checks to prevent errors when performing queries (c11ae98)

1.7.0 (2020-02-19)

Features

  • pass an event with more useful data to the afterSave handler (5aa3a0c)

1.6.0 (2020-02-18)

Features

  • export a Dyngoose object to help intelligent IDEs import Dyngoose (da7bf07)

1.5.0 (2020-02-17)

Features

  • support conditions for deleting records (66a82b3)

1.4.0 (2020-02-17)

Features

  • add strong typing for Query.PrimaryKey.update (f5042e5)

1.3.0 (2020-02-17)

Features

  • support conditional writes when saving records (a52d1ee)

1.2.0 (2020-02-17)

Bug Fixes

  • issue with dynamic attributes and date nowOnCreate and nowOnUpdate (76eeccb)
  • issues with use of map attributes (4703289)

Features

  • make Table.search avoid use of indexes for operational searches (6547b54)

1.1.0 (2020-02-17)

Features

  • add custom error classes (94f7329)
  • add query filter support for LocalSecondaryIndexes (9d79660)
  • add Table.new for strongly typed creation of new records (fe821a6)
  • add Table.search generic search utility that looks for indexes (94cd2c1)
  • add utilities to migrate and seed tables for development (8e81b3e)
  • add utility to generate CloudFormation resources (f0d07e2)
  • make Table.get and Table.set use property names (2104c03)
  • stickly type queries using filters (634c368)

1.0.1 (2020-02-16)

Bug Fixes

1.0.0 (2020-02-16)

Features

  • merge DateTime, DateOnly, and Timestamp attributes into Date (0d546f4)

0.0.9 (2020-02-15)

Initial Release