Bot releases are visible (Hide)
See changelog.
Published by dwightjack 3 months ago
See changelog.
Published by dwightjack 6 months ago
See the changelog.
Published by dwightjack about 1 year ago
See changelog.
Published by dwightjack over 1 year ago
Published by dwightjack over 1 year ago
Published by dwightjack over 1 year ago
Published by dwightjack almost 2 years ago
validateType
function in the shim build (fixes #319)Published by dwightjack almost 2 years ago
Note: v5.0.0 has been skipped due to an internal bug. Please use v5.0.1 or above.
bool().def(undefined)
explicitly sets the default: undefined
property on the type instead of removing it (https://github.com/dwightjack/vue-types/issues/284):
const type = bool().def(true) // { type: Boolean, default: true }
// vue-types@4
type.def(undefined)// { type: Boolean }
// vue-types@5
type.def(undefined)// { type: Boolean, default: undefined }
nullable
validates only when a prop value is === null
. This change makes it easier to use it with other validators like oneOfType
.
oneOfType
and oneOf
strict validationWhen passed a oneOf
validator, oneOfType
checks the actual values instead of their types.
const type = oneOfType([oneOf(['auto', 'fit-content'] as const), Number]);
// vue-types@4
typeof type === string | number
// @vue-types@5
typeof type === 'auto' | 'fit-content' | number
This makes it easier to define complex validators mixing specific values and generic types.
Nuxt support has been moved to a dedicated module: vue-types-nuxt
including support for both Nuxt@2 and Nuxt@3. See the usage documentation here: https://dwightjack.github.io/vue-types/guide/installation.html#nuxt
oneOf
supports null
as a value: oneOf(['on', 'off', null])
oneOf
(#147)Published by dwightjack about 2 years ago
Published by dwightjack about 2 years ago
nuxt
folder for CJS environments (https://github.com/dwightjack/vue-types/pull/280 Thanks @PikaDude)Full Changelog: https://github.com/dwightjack/vue-types/compare/4.1.1...4.2.0
Published by dwightjack over 2 years ago
nullable
validator (#215)Published by dwightjack about 3 years ago
oneOfType
regression (#188)custom()
validator functions are executed when used as shape()
properties (https://github.com/dwightjack/vue-types/pull/177)Published by dwightjack about 3 years ago
oneOfType
regression (#188)Published by dwightjack about 3 years ago
custom()
validator functions are executed when used as shape()
properties (https://github.com/dwightjack/vue-types/issues/176)Published by dwightjack about 3 years ago
string
number
/ integer
any
oneOfType
Thanks to @victorgarciaesgi for the great contribution.
Published by dwightjack about 3 years ago
Thanks to @victorgarciaesgi for the great contribution.
Published by dwightjack about 3 years ago
customType
cannot be called multiple times because of redefine issue (#162 thanks @iamricogo)Published by dwightjack about 3 years ago
VueTypes.extend([... ])
(https://github.com/dwightjack/vue-types/pull/158 thanks @iamricogo)Published by dwightjack about 3 years ago