Vue Types Versions Save

Vue Prop Types definitions

4.1.1

2 years ago

Bugfix Release

4.1.1-rc.1

2 years ago

BugFix

  • fix oneOfType regression (#188)

4.1.1-rc.0

2 years ago

Bugfix

4.1.0

2 years ago

Minor Changes

  • Added TypeScript casting on the following validators (#135 , #138 , #136):
    • string
    • number / integer
    • any
    • oneOfType
  • Added dedicated TS documentation

Thanks to @victorgarciaesgi for the great contribution.

4.1.0-rc.1

2 years ago

Features

  • Add TypeScript casting on the following validators (#135 , #138 , #136):
    • string
    • number / integer
    • any
    • oneOfType
  • Add dedicated TS documentation

Thanks to @victorgarciaesgi for the great contribution.

4.0.3

2 years ago

Bugfix

  • Shim: validators generated with customType cannot be called multiple times because of redefine issue (#162 thanks @iamricogo)

4.0.2

2 years ago

Bugfix

4.0.1

2 years ago

Bugfix

4.0.0

2 years ago

Major Release

This release introduces two main changes that may be breaking depending on your application setup:

  • The library is now published as an ES Module with fallback support for Common JS and UMD.
  • Version 4.x works with both Vue 2 and Vue 3

VueTypes as an ES Module

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.

Vue 2 and Vue 3 compatibility

The following changes where introduced to support both versions of Vue.

prop.type can be true on Vue 2 components

TypeScript 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.

Console logging setup

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

v2.0.3

3 years ago

Warning message fix (#76). Thanks @FAKER-A