Git Product home page Git Product logo

Comments (7)

webstrand avatar webstrand commented on May 23, 2024

After fixing some issues with the testsuite's CA and certs not being strong enough for modern OpenSSL, I've run the whole test suite successfully on node v19 with

From d1144d0d00381ff93468cc6bf013c89a9da7eab1 Mon Sep 17 00:00:00 2001
From: webstrand <[email protected]>
Date: Tue, 18 Apr 2023 13:06:22 -0400
Subject: [PATCH] Fix issue with node v19

---
 lib/socket.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/socket.js b/lib/socket.js
index 816102d..5acc4f6 100644
--- a/lib/socket.js
+++ b/lib/socket.js
@@ -40,6 +40,7 @@ module.exports = class Socket extends EventEmitter {
   resume() {}
   ref() {}
   unref() {}
+  write() {}

   address() {
     return {
--
2.40.0

from nock.

mastermatt avatar mastermatt commented on May 23, 2024

@webstrand this change works on v18 and v19?

from nock.

cspotcode avatar cspotcode commented on May 23, 2024

Should we go ahead and merge the PR that adds node 18 to the test matrix, so that we can begin verifying potential fixes?

from nock.

webstrand avatar webstrand commented on May 23, 2024

@webstrand this change works on v18 and v19?

I only have access to v19

from nock.

HartS avatar HartS commented on May 23, 2024

I couldn't find this documented, but you can make it work by adding and importing https://www.npmjs.com/package/node-fetch , which overrides the undici-based fetch.

Until nock has a workaround for undici-based fetch, maybe it can add node-fetch as a dependency?

from nock.

cspotcode avatar cspotcode commented on May 23, 2024

Pretty sure this issue is unrelated to node 18's fetch. It is related to node 18's http and https modules.

from nock.

github-actions avatar github-actions commented on May 23, 2024

🎉 This issue has been resolved in version 13.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

from nock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.