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

[Snyk] Upgrade: express, mongoose, zod #5

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

Conversation

anandanshul
Copy link
Owner

snyk-top-banner

Snyk has created this PR to upgrade multiple dependencies.

👯 The following dependencies are linked and will therefore be updated together.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

Name Versions Released on

express
from 4.18.2 to 4.19.2 | 4 versions ahead of your current version | 6 months ago
on 2024-03-25
mongoose
from 8.1.0 to 8.5.3 | 24 versions ahead of your current version | a month ago
on 2024-08-13
zod
from 3.22.4 to 3.23.8 | 65 versions ahead of your current version | 4 months ago
on 2024-05-08

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
medium severity Open Redirect
SNYK-JS-EXPRESS-6474509
519 No Known Exploit
Release notes
Package name: express from express GitHub release notes
Package name: mongoose
  • 8.5.3 - 2024-08-13

    8.5.3 / 2024-08-13

    • fix(document): call required functions on subdocuments underneath nested paths with correct context #14801 #14788
    • fix(populate): avoid throwing error when no result and lean() set #14799 #14794 #14759 MohOraby
    • fix(document): apply virtuals to subdocuments if parent schema has virtuals: true for backwards compatibility #14774 #14771 #14623 #14394
    • types: make HydratedSingleSubdocument and HydratedArraySubdocument merge types instead of using & #14800 #14793
    • types: support schema type inference based on schema options timestamps as well #14773 #13215 ark23CIS
    • types(cursor): indicate that cursor.next() can return null #14798 #14787
    • types: allow mongoose.connection.db to be undefined #14797 #14789
    • docs: add schema type widening advice #14790 JstnMcBrd
  • 8.5.2 - 2024-07-30

    8.5.2 / 2024-07-30

    • perf(clone): avoid further unnecessary checks if cloning a primitive value #14762 #14394
    • fix: allow setting document array default to null #14769 #14717 #6691
    • fix(model): support session: null option for save() to opt out of automatic session option with transactionAsyncLocalStorage #14744 #14736
    • fix(model+document): avoid depopulating manually populated doc as getter value #14760 #14759
    • fix: correct shardkey access in buildBulkWriteOps #14753 #14752 adf0nt3s
    • fix(query): handle casting $switch in $expr #14755 #14751
    • types: allow calling SchemaType.cast() without parent and init parameters #14756 #14748 #9076
    • docs: fix a wrong example in v6 migration guide #14758 abdelrahman-elkady
  • 8.5.1 - 2024-07-12

    8.5.1 / 2024-07-12

    • perf(model): performance improvements for insertMany() #14724
    • fix(model): avoid leaving subdoc defaults on top-level doc when setting subdocument to same value #14728 #14722
    • fix(model): handle transactionAsyncLocalStorage option with insertMany() #14743
    • types: make _id required on Document type #14735 #14660
    • types: fix ChangeStream.close to return a Promise like the driver #14740 orgads
  • 8.5.0 - 2024-07-08
  • 8.4.5 - 2024-07-05
  • 8.4.4 - 2024-06-25
  • 8.4.3 - 2024-06-17
  • 8.4.2 - 2024-06-17
  • 8.4.1 - 2024-05-31
  • 8.4.0 - 2024-05-17
  • 8.3.5 - 2024-05-15
  • 8.3.4 - 2024-05-06
  • 8.3.3 - 2024-04-29
  • 8.3.2 - 2024-04-16
  • 8.3.1 - 2024-04-08
  • 8.3.0 - 2024-04-03
  • 8.2.4 - 2024-03-28
  • 8.2.3 - 2024-03-21
  • 8.2.2 - 2024-03-15
  • 8.2.1 - 2024-03-04
  • 8.2.0 - 2024-02-22
  • 8.1.3 - 2024-02-16
  • 8.1.2 - 2024-02-11
  • 8.1.1 - 2024-01-24
  • 8.1.0 - 2024-01-16
from mongoose GitHub release notes
Package name: zod
  • 3.23.8 - 2024-05-08

    Commits:

  • 3.23.7 - 2024-05-07

    Commits:

  • 3.23.6 - 2024-05-03

    Commits:

  • 3.23.5 - 2024-04-29

    Commits:

  • 3.23.4 - 2024-04-23

    Commits:

  • 3.23.3 - 2024-04-22

    Commits:

  • 3.23.2 - 2024-04-22

    Commits:

  • 3.23.1 - 2024-04-22

    This changes the default generics back to any to prevent breakages with common packager like @ hookform/resolvers:

    - class ZodType<Output = unknown, Def extends ZodTypeDef = ZodTypeDef, Input = unknown> {}
    + class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = any> {}

    Commits:

  • 3.23.0 - 2024-04-21

    Zod 3.23 is now available. This is the final 3.x release before Zod 4.0. To try it out:

    npm install zod

    Features

    z.string().date()

    Zod can now validate ISO 8601 date strings. Thanks @ igalklebanov! #1766

    const schema = z.string().date();
    schema.parse("2022-01-01"); // OK

    z.string().time()

    Zod can now validate ISO 8601 time strings. Thanks @ igalklebanov! #1766

    const schema = z.string().time();
    schema.parse("12:00:00"); // OK

    You can specify sub-second precision using the precision option:

    const schema = z.string().time({ precision: 3 });
    schema.parse("12:00:00.123"); // OK
    schema.parse("12:00:00.123456"); // Error
    schema.parse("12:00:00"); // Error

    z.string().duration()

    Zod can now validate ISO 8601 duration strings. Thanks @ mastermatt! #3265

    const schema = z.string(

Snyk has created this PR to upgrade:
  - express from 4.18.2 to 4.19.2.
    See this package in npm: https://www.npmjs.com/package/express
  - mongoose from 8.1.0 to 8.5.3.
    See this package in npm: https://www.npmjs.com/package/mongoose
  - zod from 3.22.4 to 3.23.8.
    See this package in npm: https://www.npmjs.com/package/zod

See this project in Snyk:
https://app.snyk.io/org/anshulanand194/project/e0502c7c-fa94-40de-8a5a-0180a9840b0b?utm_source=github&utm_medium=referral&page=upgrade-pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSDoc hints are lost after using .extend
2 participants