Comments (7)
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.
@webstrand this change works on v18 and v19?
from nock.
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 this change works on v18 and v19?
I only have access to v19
from nock.
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.
Pretty sure this issue is unrelated to node 18's fetch. It is related to node 18's http and https modules.
from nock.
🎉 This issue has been resolved in version 13.3.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
from nock.
Related Issues (20)
- Convenience method to match all HTTP verbs
- enableNetConnect does not work w nock.recorder.rec() HOT 1
- [Node 18.12] Class extends value undefined is not a constructor or null HOT 2
- incompatible behaviour introduced with v13.3.2 HOT 17
- Interceptors not being removed in 13.3.2 HOT 2
- Replace npm debug with require('node:util').debuglog HOT 2
- Remove lodash HOT 1
- Application to become a nock maintainer. HOT 5
- Expand function fails on weird GET query params HOT 3
- reqheaders does not work when using an undefined requestBody HOT 3
- Add interceptor at the beginning of list
- Return 500 instead of 404 HOT 4
- Bun support for nock.disableNetConnect() HOT 1
- DNS resolve errors and not mocking a lot of requests HOT 7
- POST request with ReadStream request body does not return a response HOT 10
- Disabled discussions HOT 6
- Improve debug logging HOT 2
- Support Abort Signals HOT 1
- Add JSDoc HOT 8
- Using nock inside a stream pipeline with got causes it to hang forever since Node 20.10.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nock.