fix: remove replaceall polyfill

This commit is contained in:
Zoltan Kochan
2023-03-27 01:04:27 +03:00
parent 7a16da9f46
commit 65e3af8a09
5 changed files with 86 additions and 36 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/resolve-dependencies": patch
---
Remove the replaceall polyfill from the dependencies.

View File

@@ -12,7 +12,7 @@
"removeComments": false,
"sourceMap": true,
"strict": true,
"target": "es2020"
"target": "es2021"
},
"atom": {
"rewriteTsconfig": true

View File

@@ -59,7 +59,6 @@
"safe-promise-defer": "^1.0.1",
"semver": "^7.3.8",
"semver-range-intersect": "^0.3.1",
"string.prototype.replaceall": "1.0.7",
"version-selector-type": "^3.0.0"
},
"devDependencies": {

View File

@@ -1,8 +1,6 @@
import replaceAll from 'string.prototype.replaceall'
// The only reason package IDs are encoded is to avoid '>' signs.
// Otherwise, it would be impossible to split the node ID back to package IDs reliably.
// See issue https://github.com/pnpm/pnpm/issues/986
export function encodePkgId (pkgId: string) {
return replaceAll(replaceAll(pkgId, '%', '%25'), '>', '%3E')
return pkgId.replaceAll('%', '%25').replaceAll('>', '%3E')
}

110
pnpm-lock.yaml generated
View File

@@ -3861,9 +3861,6 @@ importers:
semver-range-intersect:
specifier: ^0.3.1
version: 0.3.1
string.prototype.replaceall:
specifier: 1.0.7
version: 1.0.7
version-selector-type:
specifier: ^3.0.0
version: 3.0.0
@@ -5983,7 +5980,7 @@ packages:
resolution: {integrity: sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.21.2
'@babel/types': 7.21.3
dev: true
/@babel/helper-compilation-targets@7.20.7(@babel/core@7.21.0):
@@ -6029,28 +6026,28 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/template': 7.20.7
'@babel/types': 7.21.2
'@babel/types': 7.21.3
dev: true
/@babel/helper-hoist-variables@7.18.6:
resolution: {integrity: sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.21.2
'@babel/types': 7.21.3
dev: true
/@babel/helper-member-expression-to-functions@7.21.0:
resolution: {integrity: sha512-Muu8cdZwNN6mRRNG6lAYErJ5X3bRevgYR2O8wN0yn7jJSnGDu6eG59RfT29JHxGUovyfrh6Pj0XzmR7drNVL3Q==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.21.2
'@babel/types': 7.21.3
dev: true
/@babel/helper-module-imports@7.18.6:
resolution: {integrity: sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.21.2
'@babel/types': 7.21.3
dev: true
/@babel/helper-module-transforms@7.21.2:
@@ -6064,7 +6061,7 @@ packages:
'@babel/helper-validator-identifier': 7.19.1
'@babel/template': 7.20.7
'@babel/traverse': 7.21.3
'@babel/types': 7.21.2
'@babel/types': 7.21.3
transitivePeerDependencies:
- supports-color
dev: true
@@ -6073,7 +6070,7 @@ packages:
resolution: {integrity: sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.21.2
'@babel/types': 7.21.3
dev: true
/@babel/helper-plugin-utils@7.20.2:
@@ -6090,7 +6087,7 @@ packages:
'@babel/helper-optimise-call-expression': 7.18.6
'@babel/template': 7.20.7
'@babel/traverse': 7.21.3
'@babel/types': 7.21.2
'@babel/types': 7.21.3
transitivePeerDependencies:
- supports-color
dev: true
@@ -6099,21 +6096,21 @@ packages:
resolution: {integrity: sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.21.2
'@babel/types': 7.21.3
dev: true
/@babel/helper-skip-transparent-expression-wrappers@7.20.0:
resolution: {integrity: sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.21.2
'@babel/types': 7.21.3
dev: true
/@babel/helper-split-export-declaration@7.18.6:
resolution: {integrity: sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.21.2
'@babel/types': 7.21.3
dev: true
/@babel/helper-string-parser@7.19.4:
@@ -6136,7 +6133,7 @@ packages:
dependencies:
'@babel/template': 7.20.7
'@babel/traverse': 7.21.3
'@babel/types': 7.21.2
'@babel/types': 7.21.3
transitivePeerDependencies:
- supports-color
dev: true
@@ -6382,8 +6379,8 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/code-frame': 7.18.6
'@babel/parser': 7.21.3(@babel/types@7.21.2)
'@babel/types': 7.21.2
'@babel/parser': 7.21.3(@babel/types@7.21.3)
'@babel/types': 7.21.3
dev: true
/@babel/traverse@7.21.3:
@@ -7295,6 +7292,30 @@ packages:
- supports-color
dev: true
/@jest/transform@29.5.0(@babel/types@7.21.3):
resolution: {integrity: sha512-8vbeZWqLJOvHaDfeMuoHITGKSz5qWc9u04lnWrQE3VyuSw604PzQM824ZeX9XSjUCeDiE3GuxZe5UKa8J61NQw==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
dependencies:
'@babel/core': 7.21.0
'@jest/types': 29.5.0
'@jridgewell/trace-mapping': 0.3.17
babel-plugin-istanbul: 6.1.1(@babel/types@7.21.3)
chalk: 4.1.2
convert-source-map: 2.0.0
fast-json-stable-stringify: 2.1.0
graceful-fs: 4.2.11
jest-haste-map: 29.5.0
jest-regex-util: 29.4.3
jest-util: 29.5.0
micromatch: 4.0.5
pirates: 4.0.5
slash: 3.0.0
write-file-atomic: 4.0.2
transitivePeerDependencies:
- '@babel/types'
- supports-color
dev: true
/@jest/types@29.5.0:
resolution: {integrity: sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
@@ -8738,8 +8759,8 @@ packages:
/@types/babel__core@7.20.0:
resolution: {integrity: sha512-+n8dL/9GWblDO0iU6eZAwEIJVr5DWigtle+Q6HLOrh/pdbXOhOtqzq8VPPE2zvNJzSKY4vH/z3iT3tn0A3ypiQ==}
dependencies:
'@babel/parser': 7.21.3(@babel/types@7.21.2)
'@babel/types': 7.21.2
'@babel/parser': 7.21.3(@babel/types@7.21.3)
'@babel/types': 7.21.3
'@types/babel__generator': 7.6.4
'@types/babel__template': 7.4.1
'@types/babel__traverse': 7.18.3
@@ -8748,20 +8769,20 @@ packages:
/@types/babel__generator@7.6.4:
resolution: {integrity: sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==}
dependencies:
'@babel/types': 7.21.2
'@babel/types': 7.21.3
dev: true
/@types/babel__template@7.4.1:
resolution: {integrity: sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==}
dependencies:
'@babel/parser': 7.21.3(@babel/types@7.21.2)
'@babel/types': 7.21.2
'@babel/parser': 7.21.3(@babel/types@7.21.3)
'@babel/types': 7.21.3
dev: true
/@types/babel__traverse@7.18.3:
resolution: {integrity: sha512-1kbcJ40lLB7MHsj39U4Sh1uTd2E7rLEa79kmDpI6cy+XiXsteB3POdQomoq4FxszMrO3ZYchkhYJw7A2862b3w==}
dependencies:
'@babel/types': 7.21.2
'@babel/types': 7.21.3
dev: true
/@types/braces@3.0.1:
@@ -9921,12 +9942,26 @@ packages:
- supports-color
dev: true
/babel-plugin-istanbul@6.1.1(@babel/types@7.21.3):
resolution: {integrity: sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==}
engines: {node: '>=8'}
dependencies:
'@babel/helper-plugin-utils': 7.20.2
'@istanbuljs/load-nyc-config': 1.1.0
'@istanbuljs/schema': 0.1.3
istanbul-lib-instrument: 5.2.1(@babel/types@7.21.3)
test-exclude: 6.0.0
transitivePeerDependencies:
- '@babel/types'
- supports-color
dev: true
/babel-plugin-jest-hoist@29.5.0:
resolution: {integrity: sha512-zSuuuAlTMT4mzLj2nPnUm6fsE6270vdOfnpbJ+RmruU75UhLFvL0N2NgI7xpeS7NaB6hGqmd5pVpGTDYvi4Q3w==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
dependencies:
'@babel/template': 7.20.7
'@babel/types': 7.21.2
'@babel/types': 7.21.3
'@types/babel__core': 7.20.0
'@types/babel__traverse': 7.18.3
dev: true
@@ -10189,7 +10224,7 @@ packages:
fs-minipass: 2.1.0
glob: 8.1.0
infer-owner: 1.0.4
lru-cache: 7.14.1
lru-cache: 7.18.3
minipass: 3.3.6
minipass-collect: 1.0.2
minipass-flush: 1.0.5
@@ -12340,7 +12375,7 @@ packages:
resolution: {integrity: sha512-r0EI+HBMcXadMrugk0GCQ+6BQV39PiWAZVfq7oIckeGiN7sjRGyQxPdft3nQekFTCQbYxLBH+/axZMeH8UX6+w==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
dependencies:
lru-cache: 7.14.1
lru-cache: 7.18.3
/html-escaper@2.0.2:
resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==}
@@ -12899,6 +12934,20 @@ packages:
- supports-color
dev: true
/istanbul-lib-instrument@5.2.1(@babel/types@7.21.3):
resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==}
engines: {node: '>=8'}
dependencies:
'@babel/core': 7.21.0
'@babel/parser': 7.21.3(@babel/types@7.21.3)
'@istanbuljs/schema': 0.1.3
istanbul-lib-coverage: 3.2.0
semver: 6.3.0
transitivePeerDependencies:
- '@babel/types'
- supports-color
dev: true
/istanbul-lib-report@3.0.0:
resolution: {integrity: sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==}
engines: {node: '>=8'}
@@ -13244,9 +13293,9 @@ packages:
'@babel/plugin-syntax-jsx': 7.18.6(@babel/core@7.21.0)
'@babel/plugin-syntax-typescript': 7.20.0(@babel/core@7.21.0)
'@babel/traverse': 7.21.3
'@babel/types': 7.21.2
'@babel/types': 7.21.3
'@jest/expect-utils': 29.5.0
'@jest/transform': 29.5.0(@babel/types@7.21.2)
'@jest/transform': 29.5.0(@babel/types@7.21.3)
'@jest/types': 29.5.0
'@types/babel__traverse': 7.18.3
'@types/prettier': 2.7.2
@@ -13734,7 +13783,6 @@ packages:
/lru-cache@7.18.3:
resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==}
engines: {node: '>=12'}
dev: true
/lru-cache@8.0.4:
resolution: {integrity: sha512-E9FF6+Oc/uFLqZCuZwRKUzgFt5Raih6LfxknOSAVTjNkrCZkBf7DQCwJxZQgd9l4eHjIJDGR+E+1QKD1RhThPw==}
@@ -13783,7 +13831,7 @@ packages:
http-proxy-agent: 5.0.0
https-proxy-agent: 5.0.1
is-lambda: 1.0.1
lru-cache: 7.14.1
lru-cache: 7.18.3
minipass: 3.3.6
minipass-collect: 1.0.2
minipass-fetch: 2.1.2
@@ -16232,6 +16280,7 @@ packages:
get-intrinsic: 1.2.0
has-symbols: 1.0.3
is-regex: 1.1.4
dev: true
/string.prototype.trim@1.2.7:
resolution: {integrity: sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==}
@@ -17759,7 +17808,6 @@ time:
/ssri@10.0.1: '2022-12-07T20:32:53.754Z'
/stacktracey@2.1.8: '2022-01-10T09:22:17.926Z'
/string-length@4.0.2: '2021-03-17T06:47:19.439Z'
/string.prototype.replaceall@1.0.7: '2022-11-07T19:04:29.156Z'
/strip-ansi@6.0.1: '2021-09-23T16:34:41.798Z'
/strip-bom@4.0.0: '2019-04-28T04:40:47.887Z'
/strip-comments-strings@1.2.0: '2022-06-12T23:34:53.852Z'