electrodb
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -67,10 +67,17 @@ # Changelog | ||
### [1.3.2] = 2021-08-11 | ||
### [1.3.2] - 2021-08-11 | ||
### Fixed | ||
- Newly added method `parse()` had critical typo. Method now has an improved api, and appropriate tests [[read more]](./README.md#parse) | ||
### [1.4.0] = 2021-08-22 | ||
### [1.4.0] - 2021-08-22 | ||
### Added | ||
- Added support for choosing the case ElectroDB will use when modeling a Partition or Sort Key. [[read more]](./README.md#using-electrodb-with-existing-data) | ||
- Added support for indexes to use fields that are shared with attribute fields. This should help users leverage ElectroDB with existing tables. [[read more]](./README.md#using-electrodb-with-existing-data) | ||
- Added Query Option `ignoreOwnership` to bypass ElectroDB checks/interrogations for ownership of an item before returning it. [[read more]](./README.md#query-options) | ||
- Added Query Option `ignoreOwnership` to bypass ElectroDB checks/interrogations for ownership of an item before returning it. [[read more]](./README.md#query-options) | ||
### [1.4.1] - 2021-08-25 | ||
### Added | ||
- Typedef support for RegExp validation on string attributes | ||
### Fixed | ||
- RegExp validation issue resulting in undefined (but not required) values being tested. |
{ | ||
"name": "electrodb", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -335,4 +335,7 @@ const { CastTypes, ValueTypes, KeyCasing, AttributeTypes, AttributeMutationMethods, AttributeWildCard, PathTypes, TraverserIndexes } = require("./types"); | ||
return (val) => { | ||
if (val === undefined) { | ||
return [true, ""]; | ||
} | ||
let isValid = definition.test(val); | ||
let reason = isValid ? "" : `Invalid value for attribute "${this.path}": Failed user defined regex`; | ||
let reason = isValid ? "" : `Invalid value for attribute "${this.path}": Failed model defined regex`; | ||
return [isValid, reason]; | ||
@@ -339,0 +342,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
509563
31
7729