Skip to content

v2.0.0-beta.5

Pre-release
Pre-release
Compare
Choose a tag to compare
@fishcharlie fishcharlie released this 21 Mar 02:17
d8dd8c9

Version 2.0.0 Beta 5

  • BREAKING CHANGE FROM BETA 4: Scan.null & Query.null have been removed
  • BREAKING CHANGE FROM BETA 4: Changed behavior of enum to only check enum if value exists (if you want previous behavior add required to attribute settings)
  • Added support for get and set function settings on Schema Attribute settings
  • Added support for Scan.exists & Query.exists
  • Fixed bug where creating tables would use wrong hash key in certain situations
  • Fixed issues where Query's and Scan's would have errors from AWS due to invalid request
  • Fixed an issue where trying to use saveUnknown with an attribute that was of type Array wouldn't work as expected
  • Fixed issues related to creation of tables, especially related to throughput
  • Fixed a bug where new Model() to create a new document with no object passed in would fail
  • Fixed a bug where falsey default values (ex. false or 0) wouldn't work as expected
  • Fixed a bug where Model.transaction.update wouldn't work correctly and would throw an error from AWS
  • Fixed a race condition when passing in single object with update types to Model.update which would cause the wrong request to be sent to AWS and therefore an error was thrown by AWS
  • Made improvements to single object scan's and query's, including seaching for the correct index for query's