Skip to content

Releases: AlexJPotter/fluentvalidation-ts

v3.2.0

05 Mar 16:50
Compare
Choose a tag to compare

✨ New type exports

This release adds the following type exports to the root of the package:

  • ValueValidationResult (closes #41)
  • RuleValidators, AsyncRuleValidators (as per #47)

v3.1.0

09 May 08:31
Compare
Choose a tag to compare

🐛 Bug fixes

This release includes an export for the ValidationErrors type in the root of the package, which resolves #40.

v3.0.0

03 May 11:19
Compare
Choose a tag to compare

🛠 Changes

  • Switch from using TSDX to using tsup for bundling, due to TSDX no longer being maintained and it causing Content Security Policy (CSP) violations in certain situations

💥Breaking changes

  • Output files have been renamed, so if you are including the package via a CDN, you will need to update your script tag to point at /dist/index.global.js
  • The global variable added when you include the package via a CDN has been renamed from fluentvalidation-ts to fluentvalidation due to limitations in tsup

⚠ Notes

  • The library should work exactly as before, but there's always a chance that the move to a new bundler will have some unexpected consequences - please raise an issue if you notice any regression in functionality

v2.3.0

07 Oct 12:22
Compare
Choose a tag to compare

✨ New features

This release adds support for specifying validation rules on transformed values, as per the proposal outlined in Issue #11.

For more information, see the documentation pages here:

🐛 Issues

This release includes some fairly substantial changes to how the code works under-the-hood. If you spot any problems, please raise an issue on the repo.

v.2.2.3

19 Aug 07:25
Compare
Choose a tag to compare

🐛 Bug fixes

  • Fixed issue whereby numbers with large fractional parts were not displayed correctly in error messages

🔧 General maintenance

  • Added Prettier rule for line breaks

v2.2.2

17 Jun 10:38
Compare
Choose a tag to compare

🐛 Bug fixes

  • #18 - Cannot chain .mustAsync method

🔧 General maintenance

  • Updated NPM packages for root project and documentation website

v2.2.1

26 Jul 15:49
Compare
Choose a tag to compare

Fixes issue #8 which relates to ReadonlyArray properties (in particular it enables use of .ruleForEach).

v2.2.0

18 Jul 17:01
Compare
Choose a tag to compare

With the release of version 2.2.0, fluentvalidation-ts now supports async validation! 🎉

In particular, it brings the AsyncValidator class, which you can extend from instead of the Validator class in order to enable access to async validation rules.

So far, the following async validation rules are available:

This release addresses issue #5.

v2.1.6

13 Jul 21:03
Compare
Choose a tag to compare
  • Updated packages
  • Migrated documentation site URLs from alexpotter.dev/fluentvalidation-ts to fluentvalidation-ts.alexpotter.dev

v2.1.5

12 Jan 18:33
Compare
Choose a tag to compare

Migrated documentation to a new official documentation site:
https://alexpotter.dev/fluentvalidation-ts
🎉