Files
pnpm/testing/mock-agent/package.json
Zoltan Kochan 6c480a4375 perf: replace node-fetch with undici (#10537)
Replace node-fetch with native undici for HTTP requests throughout pnpm.

Key changes:
- Replace node-fetch with undici's fetch() and dispatcher system
- Replace @pnpm/network.agent with a new dispatcher module in @pnpm/network.fetch
- Cache dispatchers via LRU cache keyed by connection parameters
- Handle proxies via undici ProxyAgent instead of http/https-proxy-agent
- Convert test mocking from nock to undici MockAgent where applicable
- Add minimatch@9 override to fix ESM incompatibility with brace-expansion
2026-03-29 12:44:00 +02:00

47 lines
1.0 KiB
JSON

{
"name": "@pnpm/testing.mock-agent",
"version": "0.0.0",
"private": true,
"description": "Shared undici MockAgent helpers for pnpm tests",
"keywords": [
"pnpm",
"pnpm11",
"testing"
],
"license": "MIT",
"funding": "https://opencollective.com/pnpm",
"repository": "https://github.com/pnpm/pnpm/tree/main/testing/mock-agent",
"homepage": "https://github.com/pnpm/pnpm/tree/main/testing/mock-agent#readme",
"bugs": {
"url": "https://github.com/pnpm/pnpm/issues"
},
"type": "module",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"exports": {
".": "./lib/index.js"
},
"files": [
"lib",
"!*.map"
],
"scripts": {
"prepublishOnly": "pn compile",
"lint": "eslint \"src/**/*.ts\"",
"test": "pn compile",
"compile": "tsgo --build && pn lint --fix"
},
"dependencies": {
"undici": "catalog:"
},
"peerDependencies": {
"@pnpm/network.fetch": "workspace:*"
},
"engines": {
"node": ">=22.13"
},
"devDependencies": {
"@pnpm/testing.mock-agent": "workspace:*"
}
}