inngest / inngest-js

The developer platform for easily building reliable workflows with zero infrastructure for TypeScript & JavaScript
https://www.inngest.com/
GNU General Public License v3.0
414 stars 41 forks source link

Bump zod from 3.21.4 to 3.22.3 #336

Closed dependabot[bot] closed 11 months ago

dependabot[bot] commented 1 year ago

Bumps zod from 3.21.4 to 3.22.3.

Release notes

Sourced from zod's releases.

v3.22.3

Commits:

  • 1e23990bcdd33d1e81b31e40e77a031fcfd87ce1 Commit
  • 9bd3879b482f139fd03d5025813ee66a04195cdd docs: remove obsolete text about readonly types (#2676)
  • f59be093ec21430d9f32bbcb628d7e39116adf34 clarify datetime ISO 8601 (#2673)
  • 64dcc8e2b16febe48fa8e3c82c47c92643e6c9e3 Update sponsors
  • 18115a8f128680b4526df58ce96deab7dce93b93 Formatting
  • 28c19273658b164c53c149785fa7a8187c428ad4 Update sponsors
  • ad2ee9ccf723c4388158ff6b8669c2a6cdc85643 2718 Updated Custom Schemas documentation example to use type narrowing (#2778)
  • ae0f7a2c15e7741ee1b23c03a3bfb9acebd86551 docs: update ref to discriminated-unions docs (#2485)
  • 2ba00fe2377f4d53947a84b8cdb314a63bbd6dd4 [2609] fix ReDoS vulnerability in email regex (#2824)
  • 1e61d76cdec05de9271fc0df58798ddf9ce94923 3.22.3

v3.22.2

Commits:

  • 13d9e6bda286cbd4c1b177171273695d8309e5de Fix lint
  • 0d49f10b3c25a8e4cbb6534cc0773b195c56d06d docs: add typeschema to ecosystem (#2626)
  • 8e4af7b56df6f2e3daf0dd825b986f1d963025ce X to Zod: add app.quicktype.io (#2668)
  • 792b3ef0d41c144cd10641c6966b98dae1222d82 Fix superrefine types

v3.22.1

Commits:

Fix handing of this in ZodFunction schemas. The parse logic for function schemas now requires the Reflect API.

const methodObject = z.object({
  property: z.number(),
  method: z.function().args(z.string()).returns(z.number()),
});
const methodInstance = {
  property: 3,
  method: function (s: string) {
    return s.length + this.property;
  },
};
const parsed = methodObject.parse(methodInstance);
parsed.method("length=8"); // => 11 (8 length + 3 property)
  • 932cc472d2e66430d368a409b8d251909d7d8d21 Initial prototype fix for issue #2651 (#2652)
  • 0a055e726ac210ef6efc69aa70cd2491767f6060 3.22.1

v3.22.0

ZodReadonly

This release introduces ZodReadonly and the .readonly() method on ZodType.

... (truncated)

Commits


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 show 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) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/inngest/inngest-js/network/alerts).
changeset-bot[bot] commented 1 year ago

⚠️ No Changeset found

Latest commit: 28dfe70ebdbc6ebac25ee565578ec13594cc6bca

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

jpwilliams commented 12 months ago

Hi, @thawankeane! Thanks for the bump.

This issue cuts both ways atm; if we upgrade to 3.22.x then we force all users to do the same, as the two minors are incompatible.

We can try a slightly different approach to this - could you try out #350 for me? It should be installable via npm install inngest@pr-350.

thawankeane commented 11 months ago

Hey @jpwilliams, I can confirm, the pr-350 version is working as expected, thanks for your time!

itzsaga commented 11 months ago

This is coming up in our security scans for 2.7.2, see CVE-2023-4316. Requesting this also be applied to 2.x.

jpwilliams commented 11 months ago

@dependabot rebase

jpwilliams commented 11 months ago

@thawankeane: Hey @jpwilliams, I can confirm, the pr-350 version is working as expected, thanks for your time!

Thanks! This fix is shipped in v3.1.1.


@itzsaga: This is coming up in our security scans for 2.7.2, see CVE-2023-4316. Requesting this also be applied to 2.x.

Hi, @itzsaga! 👋 We don't currently validate using Zod; we only use it for the types, so this vulnerability can't be exploited in the library in v2 or v3. In fact, we just separated from the library a little bit more to ensure cross-minor compatibility - see #350.

I'm keeping this around so we can patch before we add validation - the main concern currently is TS 4.7 compatibility for typing over the unused validation side. #350 might have allowed us to patch this regardless. 🙂

itzsaga commented 11 months ago

@itzsaga: This is coming up in our security scans for 2.7.2, see CVE-2023-4316. Requesting this also be applied to 2.x.

Hi, @itzsaga! 👋 We don't currently validate using Zod; we only use it for the types, so this vulnerability can't be exploited in the library in v2 or v3. In fact, we just separated from the library a little bit more to ensure cross-minor compatibility - see #350.

I'm keeping this around so we can patch before we add validation - the main concern currently is TS 4.7 compatibility for typing over the unused validation side. #350 might have allowed us to patch this regardless. 🙂

Thanks for the explanation.