Skip to content

Releases: FelixRilling/ok

v5.0.0-0

30 Dec 13:05
Compare
Choose a tag to compare
v5.0.0-0 Pre-release
Pre-release

Breaking Changes

  • Remove #bind method. Binding should be done by the consumer.
  • Removed the event itself from the validator parameters.
  • Simplified typings.
  • Require Node.js 20
  • Drop support for CommonJS

Features

  • Added composition API for use with front-end frameworks, fixes #8

v4.1.0...v5.0.0-0

v4.1.0

03 Aug 07:20
Compare
Choose a tag to compare

v4.1.0-0...v4.1.0

v4.1.0-0

03 Apr 07:45
Compare
Choose a tag to compare
v4.1.0-0 Pre-release
Pre-release

v4.0.0...v4.1.0-0

v4.0.0

05 Jun 12:46
Compare
Choose a tag to compare

Breaking Changes

TL;DR:

  • Removed first parameter in validator function that provided the form input value. Validator must extract value from element which is now the first parameter. This is done because extracting the input values heavily depends on the input.
  • Dropped CSS classes for invalid elements. Use the CSS pseudo-selector :invalid instead.
  • Only support browsers which support the validation API. Increased output ECMAScript level to 2020.
  • No IIFE output is provided. Use a bundler instead.
  • All validators are looked up when starting validation, not just when they would be used.
  • Replaced default export with named one.
  • Misc. smaller type improvements that made typing more safe.
  • Made #validate instance method private. Trigger element events instead if you need programmatic validation.

All Breaking Changes

  • [breaking] Remove redundant validator dict type. 6498a37
  • [breaking] Make Validator fields readonly. 88aa131
  • [breaking] To not attempt to extract input value, pass element directly. 93cf86f
  • [breaking] Retrieve all validators before starting validation. f6e7fc3
  • [breaking] Remove support for legacy browsers (See readme). Remove custom CSS class for invalid elements (Use :invalid) instead.
  • [breaking] Make validation call private. f61558a
  • [breaking] use 'null' instead of 'false' to disable invalidClass. f5290f2
  • [breaking] Use named export instead of default. 133d38b
  • [breaking] Do not emit bundled IIFE file. Use a bundler like webpack/rollup when consuming this library from now on. bf9df6a
  • [breaking] target ES2020. 562d592

Since v4.0.0-0

  • Use Github Actions. e0939a9
  • Updated deps. c2da75d
  • Remove generic type parameter of Validator for now. 7659426
  • [breaking] Remove redundant validator dict type. 6498a37
  • Move validator dict type to Ok. c139445
  • Updated deps. 65885e7
  • Improved typings. c5bfb0b
  • Ignore infrastructure files. 98c7bde
  • Updated deps. 6caaf99

v4.0.0-0...v4.0.0

v4.0.0-0

16 Mar 09:14
Compare
Choose a tag to compare
v4.0.0-0 Pre-release
Pre-release
  • Updated docs. 8172c52
  • Minor internal type cleanup. 9e43511
  • [breaking] Make Validator fields readonly. 88aa131
  • Allow fieldset as element. 83d070a
  • Improved docs. 178fd77
  • Add note regarding radiobuttons. 5aaca9a
  • Updated readme. 3571ac9
  • [breaking] To not attempt to extract input value, pass element directly. 93cf86f
  • Added checkbox demo. 53b5142
  • Removed outdated parts of readme. 712c3f3
  • Streamline validator checks. 50e70d8
  • [breaking] Retrieve all validators before starting validation. f6e7fc3
  • [breaking] Remove support for legacy browsers (See readme). Remove custom CSS class for invalid elements (Use :invalid) instead. 7c969a7
  • Revert "Use ES private fields." TS Polyfill causes issues with rollup. 150f2c8
  • [breaking] Make validation call private. f61558a
  • [breaking] use 'null' instead of 'false' to disable invalidClass. f5290f2
  • Use ES private fields. 7994be9
  • Fixed demo. 5a4eca9
  • Improve internal validator typing. b64dd5e
  • Added radio/checkbox demo. c84fbd1
  • Moved getValidatableElementValue. 226e2c1
  • Added more examples. 2924a46
  • Rework demo. d6382cc
  • More enhancing underlying element access. 86a47b1
  • Started enhancing underlying element access. 7726cf4
  • Internal export changes. 7542703
  • [breaking] Use named export instead of default. 133d38b
  • [breaking] Do not emit bundled IIFE file. Use a bundler like webpack/rollup when consuming this library from now on. bf9df6a
  • [breaking] target ES2020. 562d592
  • Updated deps. c978866
  • Updated deps. 4f673b4

v3.7.2...v4.0.0-0

v3.7.2

26 Sep 07:42
Compare
Choose a tag to compare

v3.7.1...v3.7.2

v3.7.1

12 Apr 17:04
Compare
Choose a tag to compare

v3.7.0...v3.7.1

v3.7.0

08 Nov 19:05
Compare
Choose a tag to compare

v3.6.0...v3.7.0

v3.6.0

18 Oct 19:26
Compare
Choose a tag to compare
  • Merge branch 'development' 3b4f527
  • Added support for message functions a0bd94e
  • restructured lib and adjusted typings d3b2bb1
  • use for...of over forEach. 7a1d3df

v3.5.0...v3.6.0

v3.5.0

18 Oct 18:50
Compare
Choose a tag to compare

v3.4.1...v3.5.0