Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump class-validator and @nestjs/swagger #15

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Feb 15, 2023

Bumps class-validator to 0.14.0 and updates ancestor dependency @nestjs/swagger. These dependencies need to be updated together.

Updates class-validator from 0.13.2 to 0.14.0

Changelog

Sourced from class-validator's changelog.

0.14.0 (2022-12-09)

Added

  • add @IsTimeZone decorator to check if given string is valid IANA time zone
  • add @IsISO4217CurrencyCode decorator to check if the string is an ISO 4217 currency code
  • add @IsStrongPassword decorator to check if given password matches specific complexity criteria
  • add @IsBase58 decorator to check if a string is base58 encoded
  • add @IsTaxId decorator to check if a given string is a valid tax ID in a given locale
  • add support for passing function as date generator in @MinDate and @MaxDate decorators
  • add option to print constraint error message instead of constraint type in validation error
  • improve decorator metadata lookup performance
  • return possible values in error message for @IsEnum decorator

Fixed

  • re-added @types/validator as dependency
  • fix error generation when using @NestedValidation
  • pass validation options correctly to validator in @IsDateString decorator
  • support passing Symbol as parameter in error message generation
  • specify supported locales for @IsAlphanumeric decorator
  • correctly assign decorator name in metadata instead of loosing it
  • fix various spelling errors in documentation
  • fix various spelling errors and inconsistencies in JSDoc for decorators

Changed

  • enable forbidUnknownValues option by default
  • remove documentation about deprecated schema based validation and added warning
  • update warning message logged about missing decorator metadata
  • update libphonenumber-js to ^1.10.14 from ^1.9.43
  • update various dev-dependencies

BREAKING CHANGES

forbidUnknownValues option is enabled by default

From this release the forbidUnknownValues is enabled by default. This is the desired behavior for majority of use-cases, but this change may break validation for some. The two scenarios that results in failed validation:

  • when attempting to validate a class instance without metadata for it
  • when using group validation and the specified validation group results in zero validation applied

The old behavior can be restored via specifying forbidUnknownValues: false option when calling the validate functions.

For more details see [PR #1798](typestack/class-validator#1798) and #1422 (comment).

@NestedValidation decorator correctly assigns validation errors

Until now the errors from a nested validation in some cases were incorrectly assigned

... (truncated)

Commits
  • 5f0d424 merge: release 0.14.0 (#1841)
  • e3d0708 build: bump version to 0.14.0
  • ad76890 docs: add changelog for 0.14.0
  • 9a775c5 build(deps-dev): bump @​types/node from 18.11.11 to 18.11.12 (#1840)
  • 53bc9f6 build(deps-dev): bump @​typescript-eslint/eslint-plugin (#1837)
  • d9b4072 build(deps-dev): bump @​typescript-eslint/parser from 5.45.1 to 5.46.0 (#1838)
  • f993e9e build(deps-dev): bump typescript from 4.9.3 to 4.9.4 (#1835)
  • ad1a41d build(deps-dev): bump @​rollup/plugin-commonjs from 23.0.3 to 23.0.4 (#1836)
  • 42b4f7f build(deps-dev): bump prettier from 2.8.0 to 2.8.1 (#1834)
  • 0c986d4 build(deps-dev): bump @​types/node from 18.11.10 to 18.11.11 (#1833)
  • Additional commits viewable in compare view

Updates @nestjs/swagger from 5.2.1 to 6.2.1

Release notes

Sourced from @​nestjs/swagger's releases.

Release 6.2.1

  • Merge pull request #2276 from urugator/patch-1 (513eac6)
  • Merge pull request #2273 from jcolladosp/feature/json-yaml-custom-endpoint (ad6a508)
  • fix: ApiResponseSchemaHost.status range support (e474064)
  • refactor: serveDocument now uses an options object (28b653b)
  • Merge branch 'master' of github.com:jcolladosp/swagger into feature/json-yaml-custom-endpoint Link a la tarea json /label ~"status::needs triage" /assign me (85fd481)
  • test(swagger): e2e tests for the jsonDocumentUrl and yamlDocumentUrl options (aef511d)
  • feat(swagger): add validatePath for the documents paths (d89ac55)
  • feat(swagger): JSON and YAML document enpoints customizable (0365371)
  • feat(swagger): JSON and YAML document enpoints customizable (e7e4c75)

Release 6.2.0

  • Merge pull request #2275 from nestjs/renovate/nestjs-mapped-types-1.x (653c5e0)
  • Merge pull request #2274 from nestjs/revert-1949-1711-operation-ids-with-version (311597e)
  • fix(deps): update dependency @​nestjs/mapped-types to v1.2.2 (c55a2f5)
  • Merge pull request #2176 from CodyTseng/feat-global-paramters (2037c61)
  • Revert "feat(swagger): Provide URI version to operationIdFactory" (344d392)
  • Merge pull request #1949 from careapp-inc/1711-operation-ids-with-version (470c8c1)
  • Merge pull request #1898 from petrzjunior/master (df7cf9b)
  • Merge pull request #2088 from maben-mw/http-range-status-code-support (21dcb69)
  • Merge pull request #2154 from bangbang93/master (ce1712c)
  • Merge pull request #2238 from habiiev/fix-number-enum-schema-type (4f786b1)
  • Merge pull request #2227 from kimdj2/fix-intersect-more-than-2-classes (daf477d)
  • Merge pull request #2257 from Inoir/fix/add-getschemapath-shim (c74091f)
  • Merge pull request #2251 from nestjs/renovate/npm-cookiejar-vulnerability (85c39a2)
  • Merge pull request #2139 from nestjs/renovate/cimg-node-19.x (22e211b)
  • Merge pull request #2269 from nestjs/renovate/npm-http-cache-semantics-vulnerability (ebefd20)
  • chore(deps): update dependency @​types/node to v18.11.19 (3212f25)
  • chore(deps): update nest monorepo to v9.3.2 (7686258)
  • chore(deps): update dependency http-cache-semantics to 4.1.1 [security] (a45a707)
  • chore(deps): update nest monorepo to v9.3.1 (2609174)
  • chore(deps): update typescript-eslint monorepo to v5.50.0 (8007c33)
  • chore(deps): update dependency typescript to v4.9.5 (4b4f2b7)
  • chore(deps): update dependency @​fastify/static to v6.8.0 (b1f64bd)
  • chore(deps): update dependency eslint to v8.33.0 (2dce90d)
  • change to single quotes (acd9c64)
  • return string on getSchemaPath shim (7dd8271)
  • add getSchemaPath into shims (0796316)
  • chore(deps): update dependency jest to v29.4.1 (ae52504)
  • chore(deps): update dependency @​fastify/static to v6.7.0 (0e7601d)
  • chore(deps): update node.js to v19 (d32a98b)
  • chore(deps): update dependency @​types/jest to v29.4.0 (e3f5c6c)
  • chore(deps): update dependency jest to v29.4.0 (74a9269)
  • chore(deps): update dependency cookiejar to 2.1.4 [security] (572ba62)
  • chore(deps): update typescript-eslint monorepo to v5.49.0 (ba3211d)
  • chore(deps): update dependency @​types/jest to v29.2.6 (8cbfa05)
  • chore(deps): update typescript-eslint monorepo to v5.48.2 (6a4d509)
  • chore(deps): update dependency eslint-plugin-import to v2.27.5 (2014143)
  • chore(deps): update dependency eslint to v8.32.0 (38c0355)
  • chore(deps): update dependency prettier to v2.8.3 (61114ab)

... (truncated)

Commits
  • 831f509 chore(): release v6.2.1
  • 513eac6 Merge pull request #2276 from urugator/patch-1
  • ad6a508 Merge pull request #2273 from jcolladosp/feature/json-yaml-custom-endpoint
  • e474064 fix: ApiResponseSchemaHost.status range support
  • 28b653b refactor: serveDocument now uses an options object
  • 69a7109 chore(): release v6.2.0
  • 653c5e0 Merge pull request #2275 from nestjs/renovate/nestjs-mapped-types-1.x
  • 311597e Merge pull request #2274 from nestjs/revert-1949-1711-operation-ids-with-version
  • c55a2f5 fix(deps): update dependency @​nestjs/mapped-types to v1.2.2
  • 2037c61 Merge pull request #2176 from CodyTseng/feat-global-paramters
  • Additional commits viewable in compare view

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 use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [class-validator](https://github.com/typestack/class-validator) to 0.14.0 and updates ancestor dependency [@nestjs/swagger](https://github.com/nestjs/swagger). These dependencies need to be updated together.


Updates `class-validator` from 0.13.2 to 0.14.0
- [Release notes](https://github.com/typestack/class-validator/releases)
- [Changelog](https://github.com/typestack/class-validator/blob/develop/CHANGELOG.md)
- [Commits](typestack/class-validator@v0.13.2...v0.14.0)

Updates `@nestjs/swagger` from 5.2.1 to 6.2.1
- [Release notes](https://github.com/nestjs/swagger/releases)
- [Changelog](https://github.com/nestjs/swagger/blob/master/.release-it.json)
- [Commits](nestjs/swagger@5.2.1...6.2.1)

---
updated-dependencies:
- dependency-name: class-validator
  dependency-type: indirect
- dependency-name: "@nestjs/swagger"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 15, 2023
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.

0 participants