Skip to content

[Snyk] Upgrade nock from 13.2.9 to 14.0.4 #166

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

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

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented May 17, 2025

snyk-top-banner

Snyk has created this PR to upgrade nock from 13.2.9 to 14.0.4.

ℹ️ 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.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 41 versions ahead of your current version.

  • The recommended version was released a month ago.

Release notes
Package name: nock
  • 14.0.4 - 2025-04-20

    14.0.4 (2025-04-20)

    Bug Fixes

  • 14.0.3 - 2025-04-06

    14.0.3 (2025-04-06)

    Bug Fixes

    • fetch: cloned response return correct url (#2852) (8348274)
  • 14.0.2 - 2025-03-27

    14.0.2 (2025-03-27)

    Bug Fixes

    • back: request body unusable in update mode (#2851) (eff7318)
  • 14.0.1 - 2025-02-06

    14.0.1 (2025-02-06)

    Bug Fixes

    • recorder: response body accessed multiple times in parallel requests (#2840) (ac7a1b2)
  • 14.0.0 - 2025-01-24

    BREAKING CHANGES

    • drop support for Node < 18

    Features

  • 14.0.0-beta.19 - 2024-12-04

    14.0.0-beta.19 (2024-12-04)

    Bug Fixes

    • backport: memory leaks due to timer references outliving the timers (#2773) (#2773) (66eb7f4)
    • call fs.createReadStream lazily (#2357) (ba9fc42)
    • remove duplicates from activeMocks() and pendingMocks() (#2356) (7e957b3)
    • support literal query string (#2590) (4162fa8)
    • types: return type of BackOptions.afterRecord (#2782) (fc90bd3)
  • 14.0.0-beta.18 - 2024-11-25

    14.0.0-beta.18 (2024-11-25)

    Bug Fixes

    • recorder: recompress fetch body on record (#2810) (be35f23)
  • 14.0.0-beta.17 - 2024-11-21

    14.0.0-beta.17 (2024-11-21)

    Bug Fixes

    • fetch: add support for aborting requests using AbortSignal (#2809) (a143911)
  • 14.0.0-beta.16 - 2024-11-14

    14.0.0-beta.16 (2024-11-14)

    Bug Fixes

    • fetch: support Content-Encoding response header (#2797) (451e69c)
  • 14.0.0-beta.15 - 2024-10-07
  • 14.0.0-beta.14 - 2024-09-16
  • 14.0.0-beta.13 - 2024-09-11
  • 14.0.0-beta.12 - 2024-09-09
  • 14.0.0-beta.11 - 2024-08-15
  • 14.0.0-beta.10 - 2024-08-15
  • 14.0.0-beta.9 - 2024-07-24
  • 14.0.0-beta.8 - 2024-07-13
  • 14.0.0-beta.7 - 2024-05-30
  • 14.0.0-beta.6 - 2024-04-20
  • 14.0.0-beta.5 - 2024-02-26
  • 14.0.0-beta.4 - 2024-02-24
  • 14.0.0-beta.3 - 2024-02-17
  • 14.0.0-beta.2 - 2024-02-05
  • 14.0.0-beta.1 - 2024-02-03
  • 13.5.6 - 2024-11-09

    13.5.6 (2024-11-09)

    Bug Fixes

    • types: return type of BackOptions.afterRecord (#2782) (fc90bd3)
  • 13.5.5 - 2024-08-20
  • 13.5.4 - 2024-02-26
  • 13.5.3 - 2024-02-17
  • 13.5.2 - 2024-02-17
  • 13.5.1 - 2024-01-28
  • 13.5.0 - 2024-01-14
  • 13.4.0 - 2023-11-27
  • 13.3.8 - 2023-11-03
  • 13.3.7 - 2023-10-30
  • 13.3.6 - 2023-10-19
  • 13.3.5 - 2023-10-19
  • 13.3.4 - 2023-10-10
  • 13.3.3 - 2023-08-16
  • 13.3.2 - 2023-07-13
  • 13.3.1 - 2023-04-27
  • 13.3.0 - 2023-01-10
  • 13.2.9 - 2022-07-19
from nock GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Summary by Sourcery

Chores:

  • Bump nock dependency from v13.2.9 to v14.0.4 in the tool-cache package

Snyk has created this PR to upgrade nock from 13.2.9 to 14.0.4.

See this package in npm:
nock

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/d7e30d7c-b888-4c87-948a-c60dcaafb5d6?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented May 17, 2025

Reviewer's Guide

This PR updates the nock testing library in the tool-cache package from v13.2.9 to v14.0.4 by adjusting the dependency version in package.json, ensuring alignment with the latest release and regenerating the lockfile.

State Diagram: Nock Dependency Upgrade in tool-cache

stateDiagram-v2
    state "nock v13.2.9" as v13
    state "nock v14.0.4" as v14

    [*] --> v13 : Current devDependency in tool-cache/package.json
    v13 --> v14 : Upgraded by this PR

    note right of v14
        Key implications of nock v14.0.4:
        - Package `tool-cache` now requires Node.js >= 18.
          (Breaking change from nock)
        - Nock now supports native fetch() mocking.
        - Includes various bug fixes in nock.
        (Ref: nock release notes for v14.x)
    end note
Loading

File-Level Changes

Change Details Files
Upgrade nock dependency to a new major version
  • Change nock version spec from ^13.2.9 to ^14.0.4
  • Regenerate dependency tree via lockfile update
packages/tool-cache/package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

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.

2 participants