Skip to content

Releases: greguz/mutent

v6.0.1

29 Aug 15:52
Compare
Choose a tag to compare

Bug fix

  • Fix ensure mutator types

v6.0.0

08 Aug 15:12
Compare
Choose a tag to compare

Breaking changes

  • Rework type declarations (this doesn't break the core funcionality).
    • Remove second generic from Lazy type.
    • Remove OneOrMore type.
    • Rename Result type to One.
    • Query hooks now accepts undefined queries (this is a fix).
  • Remove options field from thrown errors (was error.info.options).

Features

  • Better arguments validation.
  • Support Adapter's findEntity and filterEntities methods.
  • Add skip(n) mutator.
  • Add limit(n) mutator.
  • Add mutable flag to Mutation class (inherit from Store's mutable option).
  • Make the delete(predicate) mutator conditional.
  • Add raw getter to Store class (returns the Adapter's raw property).

v5.2.1

18 Apr 09:28
Compare
Choose a tag to compare

Bug fix

  • Fix missed bulk write with some Adapters (bulkEntities but no bulk)

v5.2.0

15 Mar 07:45
Compare
Choose a tag to compare

Features

  • Added a new set of methods to Adapters that operate with native Entity instances
  • Added handlers (ending mutators)
  • Require an entity to output only with Store's read() method.
  • Publish docs website (docsify).

v5.1.0

15 Nov 12:31
Compare
Choose a tag to compare

Features

  • Accept nullish updates (skip update).
  • Accept nullish values by Store's from() method.
  • Add opaque value.
  • Accept lazy and/or nullish values by ensure mutator.
  • Support async query hooks (onFind and onFilter).
  • Export getAdapterMethod function.

v5.0.1

30 Nov 17:29
Compare
Choose a tag to compare

Fix

  • Fire onEntity Hook after ensure Mutator usage

v5.0.0

11 Nov 12:03
Compare
Choose a tag to compare

This is a Major Rework

  • A lot of components were moved outside Mutent
  • Source code moved from TypeScript to vanilla ES2018 JavaScript
  • Full ESM support
  • Removed some problematic features (like the conditional Mutator)
  • A lot of new features and improvements
  • Add a real documentation (this is still partial, but in the next future will be improved)

v2.0.0-0

02 May 18:32
Compare
Choose a tag to compare
v2.0.0-0 Pre-release
Pre-release

Breaking changes

  • Core: deprecate commit function
  • Entities: deprecate streaming with promises
  • Entities: change stream method behavior
  • Entities: deprecate reduce method

Features

  • Core: add type detection functions
  • Core: skip null mutations
  • Core: add autoCommit option
  • Core: add safe option
  • Core: add custom errors (with error code)
  • Core: add default object to options
  • Store: add store

Bug fixes

  • Core: fix erroneous redo

v1.1.2

28 Mar 10:46
Compare
Choose a tag to compare

Bug fixes

  • TypeScript: fix missing type exports

Improvements

  • TypeScript: add more sane generic defaults

v1.1.1

27 Mar 13:57
Compare
Choose a tag to compare

Improvements

  • Core: improve stream handling