Releases: runtypes/runtypes
Releases · runtypes/runtypes
v7.0.4
v7.0.3
v7.0.2
v7.0.1
What's Changed
- fix: fix parameter type of
inspectby @yuhr in #471 - refactor: remove unnecessary special-casing in
Maybeby @yuhr in #472 - fix: fix parameter types of validation methods to work on generic runtype by @yuhr in #473
- docs: fix wording about
Runtype.Coreby @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
Migration From v6
Notable breaking changes from v6:
Recordhas been renamed toObjectDictionaryhas been renamed toRecordand the order of arguments is nowRecord(Key, Value).Or(...)and.And(...)utility have been renamed to.or(...)and.and(...)Optionalis no longer a runtype, but a contextual wrapper only meaningful inObjectfields.validate(...)method has been renamed to.inspect(...)and performs parsing by default- The shape of
Failurehas been changed drastically to include full details of validation failures
Highlighted new features:
- Parsing feature
- Exact object validation
- Variadic tuple support
- Helper method to conforming to predefined static types
- Helper method to add additional properties
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
typescriptto5.3.3by @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
Constraintruntype by @yuhr in #345 - style: format files with ESLint rule
sort-exports/sort-exportsby @yuhr in #346 - ci: use
jdx/mise-action@v2instead ofjdx/rtx-action@v1by @yuhr in #347 - build: upgrade dependencies by @yuhr in #348
- refactor!: rename
RecordtoObjectby @yuhr in #349 - refactor!: rename
DictionarytoRecordby @yuhr in #350 - fix: fix return type of
Recordby @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.lockby @yuhr in #354 - fix!: fix behavior of
Optionalto conformnoUncheckedIndexedAccessby @yuhr in #355 - refactor!: rename
OrtoorandAndtoandby @yuhr in #356 - docs: fix examples by @yuhr in #357
- refactor!: remove
Partialby @yuhr in #358 - refactor!: remove runtime semantics of readonly by @yuhr in #359
- fix: fix type inference of
Objectby @yuhr in #360 - fix: fix incorrect generated types caused by misconfiguration of
dntby @yuhr in #361 - docs: update
README.mdby @yuhr in #362 - style: format files with ESLint rule for import/export style by @yuhr in #364
- perf: reduce type inference cost of
Staticby @yuhr in #365 - refactor: remove unnecessary definition by @yuhr in #366
- refactor: remove unnecessary exports by @yuhr in #367
- refactor!: reduce
anyby @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-modulesESLint rule by @yuhr in #371 - chore: fix typo in
package.jsonfor npm releases by @yuhr in #372 - test: fix test tooling by @yuhr in #373
- chore: revise project configurations by @yuhr in #374
- refactor!: refactor
Runtypefundamentally by @yuhr in #375 - deprecate!: remove
Dictionaryby @yuhr in #376 - deprecate!: remove
Guardconstructor by @yuhr in #377 - deprecate!: remove options of
Constraintby @yuhr in #378 - fix!: use brand string in error messages by @yuhr in #379
- feat!: add
withAssertionhelper by @yuhr in #380 - fix: add omitted type parameter of
withConstraintby @yuhr in #381 - docs: update readme by @yuhr in #382
- docs: update readme by @yuhr in #383
- test: add tests for
withby @yuhr in #384 - feat!: support variadic tuples by @yuhr in #386
- chore: update workspace settings of VSCode by @yuhr in #387
- improvement!: make
Optionalpseudo-runtype by @yuhr in #388 - chore: revise project configurations by @yuhr in #389
- fix: add omitted
overrideby @yuhr in #390 - feat: support exact object validation by @yuhr in #391
- fix: fix types of utility functions of
Objectby @yuhr in #393 - Fix Literal TypeError on null prototype objects by @72636c in #392
- improvement!: use
SameValueZeroequality forLiteralby @yuhr in #394 - docs: update readme by @yuhr in #395
- feat: add
conformhelper 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
defaultinObjectby @yuhr in #401 - fix: fix
Uniontypes of common utilities by @yuhr in #402 - feat!: rework contract APIs by @yuhr in #403
- feat: support empty
UnionandIntersectby @yuhr in #405 - fix: fix bahavior of
UnionofLiterals in key ofRecordby @yuhr in #406 - fix: fix behavior of number-like keys in
Recordby @yuhr in #407 - refactor!: remove
SymbolForby @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
Unionby @yuhr in #415 - fix: fix validation logic of
Brandby @yuhr in #416 - improvement!: provide full information in error details by @yuhr in #417
- improvement!: provide full information in error details for
Unionby @yuhr in #418 - improvement!: provide full information in error details for
Intersectby @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
inspectmethod in place ofvalidateby @yuhr in #423 - fix!: fix types of
Constraintby @yuhr in #424 - improvement!: revise APIs around failure by @yuhr in #425
- refactor!: reimplement
Runtypeas 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
Objectby @yuhr in #428 - fix: fix imports by @yuhr in #429
- f...
v6.7.0
What's Changed
- docs: add description about
InstanceOfruntype 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
- @simenandre made their first contribution in #324
- @cedw032 made their first contribution in #329
Full Changelog: v6.6.0...v6.7.0
v6.6.0
What's Changed
- Bump minimist from 1.2.5 to 1.2.6 by @dependabot in #303
- fix: correct spelling for 'required' in brand example by @patrickocoffeyo in #302
- chore: configure Corepack by @yuhr in #304
- Verbose validation error message by @HzrdIRL in #296
- docs: add section about error information by @yuhr in #309
New Contributors
- @patrickocoffeyo made their first contribution in #302
- @HzrdIRL made their first contribution in #296
Full Changelog: v6.5.1...v6.6.0
v6.5.1
What's Changed
- Bump ansi-regex from 5.0.0 to 5.0.1 by @dependabot in #287
- Upgrade
typescriptto4.4.4by @yuhr in #288 - Upgrade
typescriptto4.5.2by @yuhr in #291 - Setup workflow for testing by @yuhr in #292
- fixed template number regexp by @iyegoroff in #298
- Add related library in README. by @codemariner in #297
New Contributors
- @iyegoroff made their first contribution in #298
- @codemariner made their first contribution in #297
Full Changelog: v6.5.0...v6.5.1
v6.5.0
What's Changed
- Add helper function
whenfor top-levelmatchfunction 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