@@ -24,16 +24,19 @@ 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+
2728``` javascript
2829const _navigator = typeof navigator === ' object' && navigator || undefined ;
2930```
3031
3132** Replace with:**
33+
3234``` javascript
3335const _navigator = undefined ;// PATCHED: Removed navigator check
3436```
3537
3638** Files typically modified:**
39+
3740- ` node_modules/axios/dist/node/axios.cjs `
3841- ` node_modules/axios/dist/esm/axios.js `
3942- ` node_modules/axios/lib/platform/common/utils.js `
@@ -50,19 +53,22 @@ const _navigator = undefined; // PATCHED: Removed navigator check
5053Search for the` allowsEval ` function that checks for Cloudflare in the user agent.
5154
5255** Pattern to find:**
56+
5357``` javascript
5458if (typeof navigator !== " undefined" && navigator ? .userAgent ? .includes (" Cloudflare" )) {
5559return false ;
5660}
5761` ` `
5862
5963**Replace with:**
64+
6065` ` ` javascript
6166// PATCHED: Removed navigator check to avoid VS Code deprecation warning
6267// We're not running in Cloudflare Workers in a VS Code extension
6368` ` `
6469
6570**Files typically modified:**
71+
6672-` node_modules/ zod/ v4/ core/ util .js `
6773-` node_modules/ zod/ v4/ core/ util .cjs `
6874
@@ -78,6 +84,7 @@ if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudfla
7884Search for the` getHardwareConcurrency` function that checks for` navigator .hardwareConcurrency ` .
7985
8086**Pattern to find:**
87+
8188` ` ` javascript
8289getHardwareConcurrency: function () {
8390if (typeof navigator !== ' undefined' ) {
@@ -89,6 +96,7 @@ getHardwareConcurrency: function() {
8996` ` `
9097
9198**Replace with:**
99+
92100` ` ` javascript
93101getHardwareConcurrency: function () {
94102// PATCHED: Removed navigator check to avoid VS Code deprecation warning
@@ -98,6 +106,7 @@ getHardwareConcurrency: function() {
98106` ` `
99107
100108**Files typically modified:**
109+
101110-` node_modules/ openpgp/ dist/ openpgp .js `
102111
103112**Tip:** Search for` getHardwareConcurrency` in the openpgp directory.
@@ -114,6 +123,7 @@ getHardwareConcurrency: function() {
114123A conditional block that checks` typeof (navigator )` and sets` BigInteger .prototype .am ` based on browser type (Internet Explorer, Netscape, etc.).
115124
116125**Replace with:**
126+
117127` ` ` javascript
118128// PATCHED: Removed navigator check to avoid VS Code deprecation warning
119129BigInteger .prototype .am = am3;
@@ -139,6 +149,7 @@ if(typeof(navigator) !== 'undefined') {
139149` ` `
140150
141151**Replace with:**
152+
142153` ` ` javascript
143154// PATCHED: Removed navigator entropy collection to avoid VS Code deprecation warning
144155` ` `
@@ -162,6 +173,7 @@ if(typeof navigator !== 'undefined' &&
162173` ` `
163174
164175**Replace with:**
176+
165177` ` ` javascript
166178// PATCHED: Removed navigator check to avoid VS Code deprecation warning
167179` ` `