valita

A typesafe validation & parsing library for TypeScript.

MIT License

Downloads
52.4K
Stars
349
Committers
8

Bot releases are visible (Hide)

valita - v0.3.9 Latest Release

Published by github-actions[bot] 3 months ago

Patch Changes

valita - v0.3.8

Published by github-actions[bot] 7 months ago

Patch Changes

  • d2f85db Thanks @jviide! - Fix release automation, name scripts bump/release instead of version/publish
valita - v0.3.6

Published by jviide 8 months ago

  • Generate provenance statements for npm.
  • Functions passed to .chain(...), .map(...) and .assert(...) now receive a second parameter, useful for forwarding the current parsing mode to .try(...).
valita -

Published by jviide 8 months ago

valita -

Published by jviide 8 months ago

  • Add more docstrings.
valita -

Published by jviide 8 months ago

  • Add rudimentary docstrings to some exports.
valita - v0.3.2

Published by jviide 8 months ago

valita - v0.3.1

Published by jviide 8 months ago

  • Add required files for JSR.
valita -

Published by jviide about 1 year ago

  • BREAKING: Node.js requirement has been updated to v16.
  • Add package.json "exports" field for Bun.
valita -

Published by jviide about 1 year ago

  • Remove a dangling piece of code introduced in 95ea060b9e1965c7d807feba31fa5a0c6c729409 (thank you @arv for noticing it!)
valita -

Published by jviide about 1 year ago

  • Fix issue #53
  • Documentation updates (#44, thanks to @dimatakoy!)
valita -

Published by jviide about 1 year ago

  • Fix: custom error formatting lost the custom error message in some situations.
valita -

Published by jviide about 1 year ago

  • A maintenance release with some internal refactoring.
valita -

Published by jviide about 1 year ago

  • A bit of internal refactoring.
valita -

Published by jviide about 1 year ago

  • Fix a regression that was introduced in v0.2.3 by Yours Truly.
valita -

Published by jviide about 1 year ago

  • Fix a typo in README.md (#40, thanks to @dimatakoy!)
  • Minor refactoring & optimizations
valita -

Published by jviide about 1 year ago

  • Add .nullable() (thanks to @dimatakoy!)

    See the README.md for usage examples.

valita -

Published by jviide over 1 year ago

  • Fix build artifacts & package.json to work with TypeScript 5.0's "moduleResolution": "bundler" setting (thanks to @jukkakoskinen for reporting the problem!)
valita -

Published by jviide over 1 year ago

  • Breaking: Optionals don't have .parse and .try methods anymore. To create a standalone parser that accepts e.g. either a string or undefined, then v.union(v.string(), v.undefined()) is the recommended way for that.
valita -

Published by jviide over 1 year ago