Releases: dwightjack/vue-types
Releases · dwightjack/vue-types
V1.1.2
V1.1.1
v1.0.2
Changes
- Use Rollup as build tools for smaller package size
- Updated build dependencies
- Added support for unpkg CDN distribution
v1.0.0
Major Release
Refer to #9 and #10 for insights on this release
Breaking Changes
def()
and isRequired
used to clone the type object they were called upon and set default
or required
on the clone. From version 1.0.0 they extend the object itself. A possible breaking scenario is when you used a common type to set multiple defaults:
// old
const string = VueTypes.string;
//...
props: {
title: string.def('My Title'), //props.title.default === 'My Title'
description: string //props.description.default === ''
}
// from 1.0.0
const string = VueTypes.string;
//...
props: {
title: string.def('My Title'), //props.title.default === 'My Title'
description: string //props.description.default === 'My Title' <-- watch out!
}
Minor Changes
- Added
VueTypes.sensibleDefaults
to control sensible defaults on native types