Releases: RillingDev/ok
Releases · RillingDev/ok
v5.0.0-0
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
v4.1.0-0
- Use ES private methods. Make validate method public. 7a84597
- Use ES private fields. ad2a9e4
- Updated formatting. 4467882
- Updated README. 127a289
- Fixed unresolved references in docs. 8f416cb
- Fixed typos. f42c41a
- Updated deps. ec20663, 7e176ce, 8d8a1d1, a12cd7e, 7e4e0c3, e3083ed
- Rename 'master' to 'main'. 60fff8e
v4.0.0
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
- 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