UMN-LATIS / Camino

Create and share educational tours
https://camino.cla.umn.edu
1 stars 0 forks source link

Bump vue-types from 4.1.1 to 5.0.2 #426

Open dependabot[bot] opened 1 year ago

dependabot[bot] commented 1 year ago

Bumps vue-types from 4.1.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)