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 @asteasolutions/zod-to-openapi from 6.3.1 to 7.0.0 #38

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 8, 2024

Bumps @asteasolutions/zod-to-openapi from 6.3.1 to 7.0.0.

Release notes

Sourced from @​asteasolutions/zod-to-openapi's releases.

v7.0.0

What's Changed

  • Added ESM modules export alongside the already present CJS (#219)
  • Added support for .refine() and .transform on ZodObjects in request query/params/headers/cookies (#198)

BREAKING CHANGES ⚠️

❗ None of the changes that we've made are breaking in terms of code integration but their behavior (result) is changed:

Handle zod tuples with prefixItems for OpenAPI v3.1.0 (#221 )

As of OpenAPI v3.1.0 there is a better representation of tuples - ordered items with the use of the prefixItems keyword. See more here

BigInt is now transformed as type string

z.bigint() // this is now transformed to `{ type: 'string', pattern: "^\d+$' }` instead of an `'integer'` type.

A BigInt can represent a number with a arbitrary size and that also means numbers that do not fall in the int64 format. As such for a library based on the JS world it is safer to represent a z.bigint() instance as a string containing only digits. In a real life scenario a BigInt instance can only be created from whatever was passed through HTTPS - and that can be both number and string as a basis.

Along with that the support for the minimum and maximum values have been removed.

Full Changelog: asteasolutions/zod-to-openapi@v6.4.0...v7.0.0

v6.4.0

What's Changed

  • make examples use input type instead of output (same as what we sue to generate in the docs) (#189)
  • add autocompletion for common media types
  • handle enums as keys for zod records (#211)

Full Changelog: asteasolutions/zod-to-openapi@v6.3.1...v6.4.0

Commits
  • cf6e694 Release 7.0.0
  • 700b86c make BigInt result in a string
  • 86905f0 Merge pull request #224 from asteasolutions/allow-effects-on-objects-in-request
  • d4dad12 ran npm audit fix
  • 7345e15 Merge branch 'master' of github.com:asteasolutions/zod-to-openapi into allow-...
  • cc5ca8e Merge pull request #223 from asteasolutions/use-prefix-items-for-tuples
  • 8773c3e Merge pull request #222 from asteasolutions/rollup
  • 0422775 added node 20 as build target
  • da04076 change type definitions to account for transform and preprocess
  • 56995bf added support for effects in request params
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [@asteasolutions/zod-to-openapi](https://github.com/asteasolutions/zod-to-openapi) from 6.3.1 to 7.0.0.
- [Release notes](https://github.com/asteasolutions/zod-to-openapi/releases)
- [Commits](asteasolutions/zod-to-openapi@v6.3.1...v7.0.0)

---
updated-dependencies:
- dependency-name: "@asteasolutions/zod-to-openapi"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 8, 2024
…npm-and-yarn-asteasolutions-zod-to-openapi-7-0-0.0
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 18, 2024

A newer version of @​asteasolutions/zod-to-openapi exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

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