Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: runtypes/runtypes

v7.0.4

05 Feb 17:44
v7.0.4
e4dc5c8

Choose a tag to compare

What's Changed

  • fix: resolve @ts-expect-error in validation methods by @yuhr in #484
  • chore: bump version to 7.0.4 by @yuhr in #485

Full Changelog: v7.0.3...v7.0.4

v7.0.3

05 Feb 12:10
v7.0.3
d5f9897

Choose a tag to compare

What's Changed

  • fix: narrow any inputs correctly by @yuhr in #481
  • chore: bump version to 7.0.3 by @yuhr in #482

Full Changelog: v7.0.2...v7.0.3

v7.0.2

27 Jan 22:09
v7.0.2
fa0886f

Choose a tag to compare

What's Changed

  • fix: rebind self of with modifications on every clone by @yuhr in #477
  • docs: add badges by @yuhr in #479
  • chore: bump version to 7.0.2 by @yuhr in #478

Full Changelog: v7.0.1...v7.0.2

v7.0.1

22 Jan 21:46
v7.0.1
2d33b93

Choose a tag to compare

What's Changed

  • fix: fix parameter type of inspect by @yuhr in #471
  • refactor: remove unnecessary special-casing in Maybe by @yuhr in #472
  • fix: fix parameter types of validation methods to work on generic runtype by @yuhr in #473
  • docs: fix wording about Runtype.Core by @yuhr in #474
  • chore: bump version to 7.0.1 by @yuhr in #475

Full Changelog: v7.0.0...v7.0.1

v7.0.0

21 Jan 07:53
v7.0.0
2fe22d0

Choose a tag to compare

Migration From v6

Notable breaking changes from v6:

  • Record has been renamed to Object
  • Dictionary has been renamed to Record and the order of arguments is now Record(Key, Value)
  • .Or(...) and .And(...) utility have been renamed to .or(...) and .and(...)
  • Optional is no longer a runtype, but a contextual wrapper only meaningful in Object fields
  • .validate(...) method has been renamed to .inspect(...) and performs parsing by default
  • The shape of Failure has been changed drastically to include full details of validation failures

Highlighted new features:

What's Changed

  • Bump json5 from 2.1.1 to 2.2.3 by @dependabot in #318
  • Bump qs from 6.5.2 to 6.5.3 by @dependabot in #316
  • Bump decode-uri-component from 0.2.0 to 0.2.2 by @dependabot in #315
  • build: upgrade typescript to 5.3.3 by @yuhr in #337
  • refactor!: revise project configurations by @yuhr in #339
  • chore: update miscellaneous project configurations by @yuhr in #343
  • test: enable legacy decorators for tests to pass by @yuhr in #344
  • test: add tests for Constraint runtype by @yuhr in #345
  • style: format files with ESLint rule sort-exports/sort-exports by @yuhr in #346
  • ci: use jdx/mise-action@v2 instead of jdx/rtx-action@v1 by @yuhr in #347
  • build: upgrade dependencies by @yuhr in #348
  • refactor!: rename Record to Object by @yuhr in #349
  • refactor!: rename Dictionary to Record by @yuhr in #350
  • fix: fix return type of Record by @yuhr in #351
  • docs: fix deprecated notice to make tooltips work by @yuhr in #352
  • fix: fix invalid exports by @yuhr in #353
  • build: update deno.lock by @yuhr in #354
  • fix!: fix behavior of Optional to conform noUncheckedIndexedAccess by @yuhr in #355
  • refactor!: rename Or to or and And to and by @yuhr in #356
  • docs: fix examples by @yuhr in #357
  • refactor!: remove Partial by @yuhr in #358
  • refactor!: remove runtime semantics of readonly by @yuhr in #359
  • fix: fix type inference of Object by @yuhr in #360
  • fix: fix incorrect generated types caused by misconfiguration of dnt by @yuhr in #361
  • docs: update README.md by @yuhr in #362
  • style: format files with ESLint rule for import/export style by @yuhr in #364
  • perf: reduce type inference cost of Static by @yuhr in #365
  • refactor: remove unnecessary definition by @yuhr in #366
  • refactor: remove unnecessary exports by @yuhr in #367
  • refactor!: reduce any by @yuhr in #368
  • refactor!: set proper descriptor for properties of runtypes by @yuhr in #369
  • test: update dependencies by @yuhr in #370
  • chore: install import/no-unused-modules ESLint rule by @yuhr in #371
  • chore: fix typo in package.json for npm releases by @yuhr in #372
  • test: fix test tooling by @yuhr in #373
  • chore: revise project configurations by @yuhr in #374
  • refactor!: refactor Runtype fundamentally by @yuhr in #375
  • deprecate!: remove Dictionary by @yuhr in #376
  • deprecate!: remove Guard constructor by @yuhr in #377
  • deprecate!: remove options of Constraint by @yuhr in #378
  • fix!: use brand string in error messages by @yuhr in #379
  • feat!: add withAssertion helper by @yuhr in #380
  • fix: add omitted type parameter of withConstraint by @yuhr in #381
  • docs: update readme by @yuhr in #382
  • docs: update readme by @yuhr in #383
  • test: add tests for with by @yuhr in #384
  • feat!: support variadic tuples by @yuhr in #386
  • chore: update workspace settings of VSCode by @yuhr in #387
  • improvement!: make Optional pseudo-runtype by @yuhr in #388
  • chore: revise project configurations by @yuhr in #389
  • fix: add omitted override by @yuhr in #390
  • feat: support exact object validation by @yuhr in #391
  • fix: fix types of utility functions of Object by @yuhr in #393
  • Fix Literal TypeError on null prototype objects by @72636c in #392
  • improvement!: use SameValueZero equality for Literal by @yuhr in #394
  • docs: update readme by @yuhr in #395
  • feat: add conform helper method by @yuhr in #397
  • feat!: respect types of incoming values by @yuhr in #398
  • feat!: add functionality to parse values by @yuhr in #400
  • fix: fix type inference of default in Object by @yuhr in #401
  • fix: fix Union types of common utilities by @yuhr in #402
  • feat!: rework contract APIs by @yuhr in #403
  • feat: support empty Union and Intersect by @yuhr in #405
  • fix: fix bahavior of Union of Literals in key of Record by @yuhr in #406
  • fix: fix behavior of number-like keys in Record by @yuhr in #407
  • refactor!: remove SymbolFor by @yuhr in #408
  • fix: fix memoization logic by @yuhr in #411
  • docs: fix type errors in examples by @yuhr in #412
  • chore: upgrade development tooling by @yuhr in #413
  • refactor: remove duplicate code by @yuhr in #414
  • improvement!: improve error reporting of Union by @yuhr in #415
  • fix: fix validation logic of Brand by @yuhr in #416
  • improvement!: provide full information in error details by @yuhr in #417
  • improvement!: provide full information in error details for Union by @yuhr in #418
  • improvement!: provide full information in error details for Intersect by @yuhr in #419
  • chore: add ESLint directives by @yuhr in #420
  • deprecate!: remove legacy decorators support by @yuhr in #421
  • refactor: wrap internal context within object by @yuhr in #422
  • feat!: add inspect method in place of validate by @yuhr in #423
  • fix!: fix types of Constraint by @yuhr in #424
  • improvement!: revise APIs around failure by @yuhr in #425
  • refactor!: reimplement Runtype as class by @yuhr in #426
  • fix: fix runtypes not to affect inherited properties of objects by @yuhr in #427
  • fix: fix logic of utility methods of Object by @yuhr in #428
  • fix: fix imports by @yuhr in #429
  • f...
Read more

v6.7.0

09 Jun 16:51
0b86d72

Choose a tag to compare

What's Changed

  • docs: add description about InstanceOf runtype by @yuhr in #313
  • chore(docs): update from cobraz to simenandre by @simenandre in #324
  • Allow for multiple brands by @cedw032 in #329

New Contributors

Full Changelog: v6.6.0...v6.7.0

v6.6.0

11 Aug 14:37
4569545

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v6.5.1...v6.6.0

v6.5.1

21 Feb 08:52

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v6.5.0...v6.5.1

v6.5.0

27 Oct 17:46

Choose a tag to compare

What's Changed

  • Add helper function when for top-level match function by @yuhr in #285
  • Bump tmpl from 1.0.4 to 1.0.5 by @dependabot in #286

Full Changelog: v6.4.1...v6.5.0

v6.4.1

15 Sep 22:17

Choose a tag to compare

Bug Fixes

  • Enable static types of Optional in Dictionary (#281)
  • Fix return type of top-level match function (#283)