Skip to content

Latest commit

 

History

History
146 lines (102 loc) · 4.27 KB

CHANGELOG.md

File metadata and controls

146 lines (102 loc) · 4.27 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[7.5.0] - 2019-11-12

Additions

  • 37ed4d7 [Minor] Add draft as an export from passable (#204) (ealush)
  • aff8c86 [Minor] Create a Passable singleton | future hook support (#213) (ealush)

[7.4.0] - 2019-11-04

Additions

  • c0a9aec [MINOR] Add return value for test. (#197) (Evyatar Alush)

Fixes and non breaking changes

  • 7ec4daf Use anyone/any instead of any (#198) (Evyatar Alush)

[7.3.0] - 2019-09-09

Additions

  • d0e88e8 [MINOR] Allow Failing With Rejection Message On Async Tests (Micha Sherman)

[7.2.4] - 2019-08-17

Fixed

  • [PATCH] Lookup Proxy on global namespace

[7.2.2] - 2019-08-12

Changed

  • [Docs] Improved Enforce documentation
  • [Patch] Use n4s npm package

[7.2.0] - 2019-08-03

Added

  • [Minor] Add isEven rule.
  • [Minor] Add isOdd rule.

Changed

  • [Patch] Make result callback functions non-enumerable

[7.1.1] - 2019-06-24

Added

  • [Patch] Add type definitions for cancel callback.

[7.1.0] - 2019-06-23

Added

  • [Minor] Added an option to directly import test from passable;
  • [Minor] any utility for assertions with OR || relationships.

[7.0.0] - 2019-06-11

Changed

  • [Major] Lowercased library name when imported on global object.
  • [Major] Renamed validationErrors and validationWarnings output properties to errors and warnings.
  • [Patch] Guarantee that .done() callbacks only run once.

Added

  • [Minor] .after() callback that can run after a specific field finished execution.
  • [Minor] New size rules (lessThan, greaterThan, lessThanOrEquals, greaterThanOrEquals, numberEquals, numberNotEquals).
  • [Minor] New size rules (longerThan, shorterThan, longerThanOrEquals, shorterThanOrEquals, lengthEquals, lengthNotEquals).
  • [Minor] New content rules (equals, notEquals).
  • [Minor] Support returning promise from test callback for async tests.
  • [Minor] Add cancel callback.

Removed

  • [Major] Removed output properties: hasValidationErrors, hasValidationWarnings.
  • [Major] Removed compound rules (anyOf, allOf, noneOf).
  • [Major] Removed general size rules (smallerThan, largerThan, smallerThanOrEquals, largerThanOrEquals, sizeEquals, sizeNotEquals).

[6.3.4] - 2019-05-01

Changed

  • [Patch] Reduce bundle size

[6.3.1] - 2019-02-22

Added

  • [Patch] Fix documentation typo (#107)
  • [Patch] Add type hints to passable (#106 + #107)

[6.3.0] - 2019-01-06

Added

  • [Minor] access intermediate validation result via draft (#103)
  • [Patch] Publish next tag separately from feature branch (#104)
  • [Minor] add hasErrors and hasWarnings functions (#105)

[6.2.0] - 2018-12-27

Added

  • [Minor] mark field as async

[6.1.3] - 2018-12-27

Fixed

  • [PATCH] run done callback in sync mode

[6.1.0] - 2018-10-20

Added

  • [Minor] Async test support + done callback chaining (#100)

Changed

  • [Patch] Update github configuration

[6.0.0] - 2018-04-16

Added

  • [Major] Extract Enforce as standalone API
  • [Patch] Create Specific Object
  • [Patch] Auto deploy next branch
  • [Minor] Add isNumeric check
  • [Minor] Initialize proxy with all keys. Add support for proxy-polyfill
  • [Minor] Negative rules support
  • [Patch] Use proxy polyfill when proxy is not supported
  • [Minor] Add isTruthy and isFalsy enforce rules

Changed

  • [Major] specific field filter: Introduce only and not
  • [Major] Refactor rules to follow convention (Size compares against number only)
  • [Major] Pass - move to be the last argument
  • [Patch] Rename pass to test
  • [Major] Move specific to last argument, make optional

Removed

  • [Major] Make validate leaner by removing message arg

Fixed

  • [Patch] Type-checking errors ignores

[5.10.3] - 2018-01-29

Added

  • [Minor] Validate function
  • [PATCH] Commonjs require support for enforce
  • [Minor] Add default expect=true to rules
  • [Minor] export enforce as a standalone module
  • [Minor] Allow chaining rules directly under enforce