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.1 #408

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps vue-types from 4.1.1 to 5.0.1.

Release notes

Sourced from vue-types's releases.

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

  • oneOf supports null as a value: oneOf(['on', 'off', null])
  • Support for union types in oneOf (#147)

Other Changes and Notes

... (truncated)

Commits
  • 0ca3503 chore(core): version bump
  • 9cf7b94 docs(core): oneOfType run oneOf validator and nullable
  • 8034a4d feat(core): oneOfType run oneOf validator
  • f1c9da9 test(core): make forceContext helper respect validator types
  • 1528746 fix(core): oneOfType - allow nullable as validator
  • 705667d fix)core): oneOf - allow null as value
  • 91c9e91 chore(core): disable test coverage by default
  • 2c4e163 Merge branch 'main' into next
  • 54af544 chore(deps): update all non-major dependencies to v0.25.3
  • b2254dc chore: bump to stable versions
  • 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)
dependabot[bot] commented 1 year ago

Superseded by #426.