Bot releases are hidden (Show)
Published by dwightjack over 3 years ago
This release introduces two main changes that may be breaking depending on your application setup:
With the wide support for the ES Module format in Node.js, browsers and bundlers, VueTypes has switched to this format by default. CommonJS is still supported for older bundlers and Node.js versions, while UMD is available for direct usage in browsers.
This change will not affect most usage scenarios; anyway, if you are using the shim version or have configured your bundler to alias vue-types
module, make sure to read the updated installation documentation.
The following changes where introduced to support both versions of Vue.
prop.type
can be true
on Vue 2 componentsTypeScript definitions have changed between v2 and v3 of Vue. The most notable change is that PropOptions.type
can now be true
. To support both version, VueTypes uses customized component prop's TS definitions. This change should not affect your application.
In VueTypes 2, the library used the global Vue.config.silent
property to manage its logging behavior. This property is no more available in Vue 3 and thus the behaviour has been changed.
If you wan to replicate the old behavior in applications using VueTypes 4 and Vue 2, you can add the following line to your entry point (documentation):
import Vue from 'vue'
import VueTypes from 'vue-types'
VueTypes.config.silent = Vue.config.silent
Published by dwightjack over 3 years ago
Warning message fix (#76). Thanks @FAKER-A
Published by dwightjack about 4 years ago
Fix a bug with default import in CommonJS (#68)
Published by dwightjack about 4 years ago
VueTypes has been rewritten in TypeScript and bundled with microbundle to provide native TS support and small bundle size.
v2.x should be compatible with almost every application using v1.x.
Visit the new documentation site to learn about new features and improvements.
any
and symbol
validators do not have a type
property.VueTypes
is a native ES6 class with static properties instead of a plain object.createTypes
to generate custom namespaced instances (reference) (#48).Published by dwightjack almost 5 years ago
extend
accepts a VueType type instance as base type (#56)Published by dwightjack almost 5 years ago
oneOf
TS definition (#62)Published by dwightjack almost 5 years ago
too much recursion
error in shim #60Published by dwightjack about 5 years ago
is-plain-object
instead of lodash/isPlainObject
https://github.com/dwightjack/vue-types/pull/53#issuecomment-513118447
Published by dwightjack over 5 years ago
undefined
key value in shape validation (#55)type
has a value of undefined
(https://github.com/dwightjack/vue-types/issues/54#issuecomment-510785207)Published by dwightjack over 5 years ago
.extend()
(#54)Published by dwightjack over 5 years ago
Published by dwightjack over 5 years ago
Published by dwightjack over 5 years ago
validate
method to native types to setup a validator function in a chainable fashion (see example here). #40extend
method to add custom proptypes to VueTypes (docs) #35Published by dwightjack about 6 years ago
lodash.isplainobjet
vulnerability issue (#33)Published by dwightjack over 6 years ago
VueTypes.shape.def()
function (ref #32)Published by dwightjack over 6 years ago
.shape.loose.def(...)
typesPublished by dwightjack over 6 years ago
Published by dwightjack over 6 years ago
Published by dwightjack over 6 years ago
Published by dwightjack over 6 years ago
utils.validate()
and utils.toType()
. Check README for usage details #21