Skip to content

Releases: javiercejudo/modelico

v24.1.0

16 Oct 04:27
Compare
Choose a tag to compare

v24.0.3

18 Jul 14:46
Compare
Choose a tag to compare
24.0.3

v24.0.0

18 Jul 14:46
Compare
Choose a tag to compare
24.0.0

v23.0.0

20 Apr 15:50
Compare
Choose a tag to compare

createModel

When an innerTypes-returning function is passed as the first argument, that function will now receive the metadata as the first argument

getSchema

$refs are now used more often, resulting in reduced schemas for complex models, especially those with circular references or when the same metadata appears mulltiple times.

Recipes

Added recipe for reviving large arrays in batches.

Examples

Added binary tree example

Internal

Moved from standard --fix to prettier + eslint, extending the standard

v22.1.0

29 Mar 08:28
Compare
Choose a tag to compare

Base

Implementing static innerTypes is now not necessary for models whose JSON representation is not an object

v22.0.0

29 Mar 08:28
Compare
Choose a tag to compare

Browser support

Dropped support of IE9 & 10 (they should still work, but the test suite is no longer run on them). Visit the browser suite on your target browser to be sure.

Maybe

Split Maybe into Just a and Nothing. Maybe.of still works the same way making null, undefined and NaN be Nothing

Just.of(1) === Maybe.of(1)
Nothing === Maybe.of(null)

Schema generation

Fixed several bugs with caching and started using $ref for repeated metadata, not just circular references.

v21.6.0

14 Mar 14:26
Compare
Choose a tag to compare
  • [1ca63c7] Add copy method to M.Base
    x.set('a', 1).set('b', 2)x.copy({a: 1, b: 2}).

  • [a47fd72] Remove superfluous type: 'string' from JSON schemas when enum is specified.

v21.5.0

14 Mar 14:21
Compare
Choose a tag to compare
21.5.0

v21.4.0

07 Mar 14:26
Compare
Choose a tag to compare
  • exposed ajvMeta
  • added ajvAnyOf
  • metadata-returning functions are valid metadata everywhere

v21.3.0

25 Feb 03:51
Compare
Choose a tag to compare
21.3.0