Skip to content

Releases: talyssonoc/structure

v2.0.1 - 2020-06-15

15 Jun 17:10
210dc05
Compare
Choose a tag to compare

Fix:

  • Fix deep nested dynamic types validation [#132]

2.0.0 - 2020-03-31

31 Mar 20:10
3f527c1
Compare
Choose a tag to compare

Refactors:

  • The whole part of schemas and attribute definitions was refactored
  • Tests are now run by Jest (and Electron for browser tests)
  • Prettier was added
  • Move to mono-repo

Enhancements

  • Implement jest-structure assertions
  • It's possible to set custom getters e setters directly in the structure class
  • Allows to disable coercion

Breaking changes:

  • Joi is updated to v16
    • Attribute path in validation errors is an array instead of a string
    • Attribute path in validation messages contains the whole path joined by '.'
    • The name used for the dynamic import should aways be the same as the name of its type or else a custom identifier must be used
  • Non-nullable attributes with value null will use default value the same way undefined does
  • Structure classes now have two methods to generically set and get the value of the attributes, .get(attributeName) and .set(attributeName, attributeValue)
  • Minimum Node version is now 10

Docs:

  • Rename the term type descriptor to attribute definition in the docs and in the code
  • Reorganize and add more specific pages to docs

2.0.0-alpha.3 - 2020-03-20

20 Mar 14:10
f683c66
Compare
Choose a tag to compare
  • Reorganize md files

2.0.0-alpha.1 - 2020-03-19

19 Mar 14:56
792e51f
Compare
Choose a tag to compare

Add symlinks to md files to packages/structure

2.0.0-alpha.0 - 2020-03-19

19 Mar 14:34
e8e72db
Compare
Choose a tag to compare

Refactors:

  • The whole part of schemas and attribute definitions was refactored
  • Tests are now run by Jest (and Electron for browser tests)
  • Prettier was added
  • Move to mono-repo

Enhancements

  • Implement jest-structure assertions
  • It's possible to set custom getters e setters directly in the structure class

Breaking changes:

  • Joi is updated to v16
    • Attribute path in validation errors is an array instead of a string
    • Attribute path in validation messages contains the whole path joined by '.'
    • The name used for the dynamic import should aways be the same as the name of its type or else a custom identifier must be used
  • Non-nullable attributes with value null will use default value the same way undefined does
  • Structure classes now have two methods to generically set and get the value of the attributes, .get(attributeName) and .set(attributeName, attributeValue)
  • Minimum Node version is now 10

2.0.0-alpha.4 - 2020-03-21

21 Mar 07:31
b48d1ba
Compare
Choose a tag to compare
  • Publish only src folder for jest-structure

v1.8.0 - 2019-09-16

16 Sep 14:00
b48d1ba
Compare
Choose a tag to compare

Enhancements:

  • Add unique validation to arrays

v1.7.0 - 2019-09-14

14 Sep 14:24
a58b63c
Compare
Choose a tag to compare

Enhancements:

  • Add method to clone structures

v1.6.0 - 2019-08-27

27 Aug 14:46
d5e88f2
Compare
Choose a tag to compare

Enhancements:

  • Allow custom error class to static mode

v1.5.0 - 2019-07-08

08 Jul 20:49
6de520a
Compare
Choose a tag to compare

Enhancements:

  • Add buildStrict static method