fix: node.js v24 url.parse() DeprecationWarning (#9509)

This commit is contained in:
Zoltan Kochan
2025-05-09 16:44:52 +02:00
committed by GitHub
parent c00360bf98
commit 51bd3735ac
7 changed files with 22 additions and 21 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/network.auth-header": patch
---
Replace nerf-dart with @pnpm/config.nerf-dart to fix warning on Node.js 24.

View File

@@ -114,11 +114,6 @@ declare module 'yaml-tag' {
export = anything
}
declare module 'nerf-dart' {
const anything: any
export = anything
}
declare module '@pnpm/patch-package/dist/applyPatches' {
export function applyPatch (opts: any): boolean
}

View File

@@ -31,8 +31,8 @@
"compile": "tsc --build && pnpm run lint --fix"
},
"dependencies": {
"@pnpm/error": "workspace:*",
"nerf-dart": "catalog:"
"@pnpm/config.nerf-dart": "catalog:",
"@pnpm/error": "workspace:*"
},
"devDependencies": {
"@pnpm/network.auth-header": "workspace:*",

View File

@@ -1,8 +1,8 @@
import { nerfDart } from '@pnpm/config.nerf-dart'
import { PnpmError } from '@pnpm/error'
import { spawnSync } from 'child_process'
import fs from 'fs'
import path from 'path'
import nerfDart from 'nerf-dart'
export function getAuthHeadersFromConfig (
{ allSettings, userSettings }: {

View File

@@ -1,4 +1,4 @@
import nerfDart from 'nerf-dart'
import { nerfDart } from '@pnpm/config.nerf-dart'
import { getAuthHeadersFromConfig, loadToken } from './getAuthHeadersFromConfig'
import { removePort } from './helpers/removePort'

23
pnpm-lock.yaml generated
View File

@@ -21,6 +21,9 @@ catalogs:
'@pnpm/config.env-replace':
specifier: ^3.0.2
version: 3.0.2
'@pnpm/config.nerf-dart':
specifier: ^1.0.0
version: 1.0.0
'@pnpm/exec':
specifier: ^2.0.0
version: 2.0.0
@@ -417,9 +420,6 @@ catalogs:
ndjson:
specifier: ^2.0.0
version: 2.0.0
nerf-dart:
specifier: 1.0.0
version: 1.0.0
nock:
specifier: 13.3.4
version: 13.3.4
@@ -3882,12 +3882,12 @@ importers:
network/auth-header:
dependencies:
'@pnpm/config.nerf-dart':
specifier: 'catalog:'
version: 1.0.0
'@pnpm/error':
specifier: workspace:*
version: link:../../packages/error
nerf-dart:
specifier: 'catalog:'
version: 1.0.0
devDependencies:
'@pnpm/network.auth-header':
specifier: workspace:*
@@ -9375,6 +9375,10 @@ packages:
resolution: {integrity: sha512-GD6nKLyKF+ev15Tj3pS8y6cTVPIuAqTyhPrUFMfmodFvhEDdYKN/gdGimkc9GJLfHVC/SuCVFg49YNJyoW7niA==}
engines: {node: '>=18.12'}
'@pnpm/config.nerf-dart@1.0.0':
resolution: {integrity: sha512-/jnjwmeLVEXzfk+za2qJams03KtFe4C5s2fT623SZ6UxhYqzHd+Zin/NzrCFY1/IHMHMP1ScFDDgAd36GrKxEA==}
engines: {node: '>=18.12'}
'@pnpm/config.nerf-dart@1.0.1':
resolution: {integrity: sha512-03d2l21gAyzGVr9SR6rS5pvCTnZ4HaNdi8jB2Y/UGvszzrNbA+AJVObVw6SulNQ1Eah3SHB9wCezJwtP+jYIcA==}
engines: {node: '>=18.12'}
@@ -13116,9 +13120,6 @@ packages:
neo-async@2.6.2:
resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}
nerf-dart@1.0.0:
resolution: {integrity: sha512-EZSPZB70jiVsivaBLYDCyntd5eH8NTSMOn3rB+HxwdmKThGELLdYv8qVIMWvZEFy9w8ZZpW9h9OB32l1rGtj7g==}
next-path@1.0.0:
resolution: {integrity: sha512-oWgXcUL3zi7KsPNoWLM2Z/EVaOMsZO8em4iAzJmqoo08zinMwsMvkrNbeLDztMdaPJryfYJvbx2OBoBYnPQKpg==}
engines: {node: '>=6'}
@@ -16262,6 +16263,8 @@ snapshots:
'@pnpm/config.env-replace@3.0.2': {}
'@pnpm/config.nerf-dart@1.0.0': {}
'@pnpm/config.nerf-dart@1.0.1': {}
'@pnpm/config@1002.5.2(@pnpm/logger@1000.0.0)':
@@ -20818,8 +20821,6 @@ snapshots:
neo-async@2.6.2: {}
nerf-dart@1.0.0: {}
next-path@1.0.0: {}
nise@5.1.9:

View File

@@ -63,6 +63,7 @@ catalog:
"@pnpm/byline": ^1.0.0
"@pnpm/colorize-semver-diff": ^1.0.1
"@pnpm/config.env-replace": ^3.0.2
'@pnpm/config.nerf-dart': ^1.0.0
"@pnpm/exec": ^2.0.0
"@pnpm/fs.packlist": 2.0.0
"@pnpm/log.group": 3.0.1
@@ -195,7 +196,6 @@ catalog:
mem: ^8.1.1
micromatch: ^4.0.8
ndjson: ^2.0.0
nerf-dart: 1.0.0
nock: 13.3.4
node-fetch: npm:@pnpm/node-fetch@1.0.0
node-gyp: ^11.0.0