@@ -24,16 +24,20 @@ When updating a patched package to a new version:
2424Search for the pattern where` _navigator ` is defined. This appears in multiple distribution files.
2525
2626** Pattern to find:**
27+
28+ <!-- prettier-ignore-->
2729``` javascript
2830const _navigator = typeof navigator === ' object' && navigator || undefined ;
2931```
3032
3133** Replace with:**
34+
3235``` javascript
3336const _navigator = undefined ;// PATCHED: Removed navigator check
3437```
3538
3639** Files typically modified:**
40+
3741- ` node_modules/axios/dist/node/axios.cjs `
3842- ` node_modules/axios/dist/esm/axios.js `
3943- ` node_modules/axios/lib/platform/common/utils.js `
@@ -50,19 +54,23 @@ const _navigator = undefined; // PATCHED: Removed navigator check
5054Search for the` allowsEval ` function that checks for Cloudflare in the user agent.
5155
5256** Pattern to find:**
57+
58+ <!-- prettier-ignore-->
5359``` javascript
5460if (typeof navigator !== " undefined" && navigator ? .userAgent ? .includes (" Cloudflare" )) {
5561return false ;
5662}
5763` ` `
5864
5965**Replace with:**
66+
6067` ` ` javascript
6168// PATCHED: Removed navigator check to avoid VS Code deprecation warning
6269// We're not running in Cloudflare Workers in a VS Code extension
6370` ` `
6471
6572**Files typically modified:**
73+
6674-` node_modules/ zod/ v4/ core/ util .js `
6775-` node_modules/ zod/ v4/ core/ util .cjs `
6876
@@ -78,6 +86,7 @@ if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudfla
7886Search for the` getHardwareConcurrency` function that checks for` navigator .hardwareConcurrency ` .
7987
8088**Pattern to find:**
89+
8190` ` ` javascript
8291getHardwareConcurrency: function () {
8392if (typeof navigator !== ' undefined' ) {
@@ -89,6 +98,7 @@ getHardwareConcurrency: function() {
8998` ` `
9099
91100**Replace with:**
101+
92102` ` ` javascript
93103getHardwareConcurrency: function () {
94104// PATCHED: Removed navigator check to avoid VS Code deprecation warning
@@ -98,6 +108,7 @@ getHardwareConcurrency: function() {
98108` ` `
99109
100110**Files typically modified:**
111+
101112-` node_modules/ openpgp/ dist/ openpgp .js `
102113
103114**Tip:** Search for` getHardwareConcurrency` in the openpgp directory.
@@ -114,6 +125,7 @@ getHardwareConcurrency: function() {
114125A conditional block that checks` typeof (navigator )` and sets` BigInteger .prototype .am ` based on browser type (Internet Explorer, Netscape, etc.).
115126
116127**Replace with:**
128+
117129` ` ` javascript
118130// PATCHED: Removed navigator check to avoid VS Code deprecation warning
119131BigInteger .prototype .am = am3;
@@ -129,6 +141,7 @@ dbits = 28;
129141**Pattern to find:**
130142A block that iterates through` navigator ` properties to collect entropy bytes.
131143
144+ <!-- prettier-ignore -->
132145` ` ` javascript
133146if (typeof (navigator )!== ' undefined' ) {
134147var _navBytes= ' ' ;
@@ -139,6 +152,7 @@ if(typeof(navigator) !== 'undefined') {
139152` ` `
140153
141154**Replace with:**
155+
142156` ` ` javascript
143157// PATCHED: Removed navigator entropy collection to avoid VS Code deprecation warning
144158` ` `
@@ -152,6 +166,7 @@ if(typeof(navigator) !== 'undefined') {
152166**Pattern to find:**
153167In the` estimateCores` function, a check for` navigator .hardwareConcurrency ` .
154168
169+ <!-- prettier-ignore -->
155170` ` ` javascript
156171if (typeof navigator !== ' undefined' &&
157172' hardwareConcurrency' in navigator &&
@@ -162,6 +177,7 @@ if(typeof navigator !== 'undefined' &&
162177` ` `
163178
164179**Replace with:**
180+
165181` ` ` javascript
166182// PATCHED: Removed navigator check to avoid VS Code deprecation warning
167183` ` `