Fluentvalidation Ts Versions Save

A TypeScript-first library for building strongly-typed validation rules

v3.2.0

2 months ago

✨ 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

1 year ago

πŸ› Bug fixes

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

v3.0.0

1 year ago

πŸ›  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

1 year ago

✨ 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.

v2.2.3

1 year ago

πŸ› 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

2 years ago

πŸ› Bug fixes

  • #18 - Cannot chain .mustAsync method

πŸ”§ General maintenance

  • Updated NPM packages for root project and documentation website

v2.2.1

3 years ago

Fixes issue https://github.com/AlexJPotter/fluentvalidation-ts/issues/8 which relates to ReadonlyArray properties (in particular it enables use of .ruleForEach).

v2.2.0

3 years ago

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 https://github.com/AlexJPotter/fluentvalidation-ts/issues/5.

v2.1.6

3 years ago
  • Updated packages
  • Migrated documentation site URLs from alexpotter.dev/fluentvalidation-ts to fluentvalidation-ts.alexpotter.dev

v2.1.5

4 years ago

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