Skip to content

Bump vue-types from 4.2.1 to 5.0.2#915

Merged
dependabot[bot] merged 1 commit intomasterfrom
dependabot/npm_and_yarn/vue-types-5.0.2
Jan 1, 2023
Merged

Bump vue-types from 4.2.1 to 5.0.2#915
dependabot[bot] merged 1 commit intomasterfrom
dependabot/npm_and_yarn/vue-types-5.0.2

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 31, 2022

Bumps vue-types from 4.2.1 to 5.0.2.

Release notes

Sourced from vue-types's releases.

v5.0.2

Fix

  • expose the validateType function in the shim build (fixes #319)

v5.0.1

Note: v5.0.0 has been skipped due to an internal bug. Please use v5.0.1 or above.

Breaking Changes

Default for booleans

bool().def(undefined) explicitly sets the default: undefined property on the type instead of removing it (dwightjack/vue-types#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 strict validation

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 validation

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

Standalone Nuxt module

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

Minor Changes

... (truncated)

Commits
  • 3035a93 chore(core): version bump
  • 92ff0b5 fix(core): export validateType
  • e8b384a chore(deps): update all non-major dependencies to v0.25.6
  • 326aaec chore(deps): update all non-major dependencies to v0.25.5
  • c1de7f1 chore(deps): update all non-major dependencies to v0.25.4
  • e4c0d02 chore(deps): update all non-major dependencies
  • 6c41701 chore(deps): update dependency lefthook to v1.2.3
  • 2019456 ci: next branch defaults to pre-release
  • 3787d5d ci: update release command
  • ba059e7 chore(deps): update dependency lefthook to v1.2.2
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [vue-types](https://github.com/dwightjack/vue-types) from 4.2.1 to 5.0.2.
- [Release notes](https://github.com/dwightjack/vue-types/releases)
- [Commits](dwightjack/vue-types@4.2.1...5.0.2)

---
updated-dependencies:
- dependency-name: vue-types
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/vue-types-5.0.2 branch from 041ccff to 1159027 Compare December 31, 2022 03:52
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Dec 31, 2022
Copy link
Collaborator

@tacruc tacruc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dependabot merge

@dependabot dependabot bot merged commit 3918061 into master Jan 1, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/vue-types-5.0.2 branch January 1, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant