Pārlūkot izejas kodu

fix: upgrade yarn to 4.0.0-rc.43

Karol Sójko 2 gadi atpakaļ
vecāks
revīzija
8c71066660

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 64 - 72
.pnp.cjs


+ 56 - 48
.pnp.loader.mjs

@@ -10,7 +10,8 @@ const SAFE_TIME = 456789e3;
 
 const PortablePath = {
   root: `/`,
-  dot: `.`
+  dot: `.`,
+  parent: `..`
 };
 const npath = Object.create(path);
 const ppath = Object.create(path.posix);
@@ -1357,6 +1358,13 @@ class VirtualFS extends ProxiedFS {
   }
 }
 
+const [major, minor] = process.versions.node.split(`.`).map((value) => parseInt(value, 10));
+const HAS_CONSOLIDATED_HOOKS = major > 16 || major === 16 && minor >= 12;
+const HAS_UNFLAGGED_JSON_MODULES = major > 17 || major === 17 && minor >= 5 || major === 16 && minor >= 15;
+const HAS_JSON_IMPORT_ASSERTION_REQUIREMENT = major > 17 || major === 17 && minor >= 1 || major === 16 && minor > 14;
+const WATCH_MODE_MESSAGE_USES_ARRAYS = major > 19 || major === 19 && minor >= 2 || major === 18 && minor >= 13;
+const HAS_LAZY_LOADED_TRANSLATORS = major > 19 || major === 19 && minor >= 3;
+
 const builtinModules = new Set(Module.builtinModules || Object.keys(process.binding(`natives`)));
 const isBuiltinModule = (request) => request.startsWith(`node:`) || builtinModules.has(request);
 function readPackageScope(checkPath) {
@@ -1384,11 +1392,6 @@ function readPackage(requestPath) {
   return JSON.parse(fs.readFileSync(jsonPath, `utf8`));
 }
 
-const [major, minor] = process.versions.node.split(`.`).map((value) => parseInt(value, 10));
-const HAS_CONSOLIDATED_HOOKS = major > 16 || major === 16 && minor >= 12;
-const HAS_UNFLAGGED_JSON_MODULES = major > 17 || major === 17 && minor >= 5 || major === 16 && minor >= 15;
-const HAS_JSON_IMPORT_ASSERTION_REQUIREMENT = major > 17 || major === 17 && minor >= 1 || major === 16 && minor > 14;
-
 async function tryReadFile$1(path2) {
   try {
     return await fs.promises.readFile(path2, `utf8`);
@@ -1486,12 +1489,13 @@ async function load$1(urlString, context, nextLoad) {
     throw err;
   }
   if (process.env.WATCH_REPORT_DEPENDENCIES && process.send) {
+    const pathToSend = pathToFileURL(
+      npath.fromPortablePath(
+        VirtualFS.resolveVirtual(npath.toPortablePath(filePath))
+      )
+    ).href;
     process.send({
-      "watch:import": pathToFileURL(
-        npath.fromPortablePath(
-          VirtualFS.resolveVirtual(npath.toPortablePath(filePath))
-        )
-      ).href
+      "watch:import": WATCH_MODE_MESSAGE_USES_ARRAYS ? [pathToSend] : pathToSend
     });
   }
   return {
@@ -1880,12 +1884,7 @@ function patternKeyCompare(a, b) {
     return 1;
   return 0;
 }
-function packageImportsResolve({
-  name,
-  base,
-  conditions,
-  readFileSyncFn
-}) {
+function packageImportsResolve({ name, base, conditions, readFileSyncFn }) {
   if (name === "#" || StringPrototypeStartsWith(name, "#/") || StringPrototypeEndsWith(name, "/")) {
     const reason = "is not a valid internal imports specifier name";
     throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, fileURLToPath(base));
@@ -2002,7 +2001,7 @@ async function resolve$1(originalSpecifier, context, nextResolve) {
   let allowLegacyResolve = false;
   if (dependencyNameMatch) {
     const [, dependencyName, subPath] = dependencyNameMatch;
-    if (subPath === ``) {
+    if (subPath === `` && dependencyName !== `pnpapi`) {
       const resolved = pnpapi.resolveToUnqualified(`${dependencyName}/package.json`, issuer);
       if (resolved) {
         const content = await tryReadFile$1(resolved);
@@ -2013,10 +2012,17 @@ async function resolve$1(originalSpecifier, context, nextResolve) {
       }
     }
   }
-  const result = pnpapi.resolveRequest(specifier, issuer, {
-    conditions: new Set(conditions),
-    extensions: allowLegacyResolve ? void 0 : []
-  });
+  let result;
+  try {
+    result = pnpapi.resolveRequest(specifier, issuer, {
+      conditions: new Set(conditions),
+      extensions: allowLegacyResolve ? void 0 : []
+    });
+  } catch (err) {
+    if (err instanceof Error && `code` in err && err.code === `MODULE_NOT_FOUND`)
+      err.code = `ERR_MODULE_NOT_FOUND`;
+    throw err;
+  }
   if (!result)
     throw new Error(`Resolving '${specifier}' from '${issuer}' failed`);
   const resultURL = pathToFileURL(result);
@@ -2032,32 +2038,34 @@ async function resolve$1(originalSpecifier, context, nextResolve) {
   };
 }
 
-const binding = process.binding(`fs`);
-const originalfstat = binding.fstat;
-const ZIP_MASK = 4278190080;
-const ZIP_MAGIC = 704643072;
-binding.fstat = function(...args) {
-  const [fd, useBigint, req] = args;
-  if ((fd & ZIP_MASK) === ZIP_MAGIC && useBigint === false && req === void 0) {
-    try {
-      const stats = fs.fstatSync(fd);
-      return new Float64Array([
-        stats.dev,
-        stats.mode,
-        stats.nlink,
-        stats.uid,
-        stats.gid,
-        stats.rdev,
-        stats.blksize,
-        stats.ino,
-        stats.size,
-        stats.blocks
-      ]);
-    } catch {
-    }
-  }
-  return originalfstat.apply(this, args);
-};
+if (!HAS_LAZY_LOADED_TRANSLATORS) {
+  const binding = process.binding(`fs`);
+  const originalfstat = binding.fstat;
+  const ZIP_MASK = 4278190080;
+  const ZIP_MAGIC = 704643072;
+  binding.fstat = function(...args) {
+    const [fd, useBigint, req] = args;
+    if ((fd & ZIP_MASK) === ZIP_MAGIC && useBigint === false && req === void 0) {
+      try {
+        const stats = fs.fstatSync(fd);
+        return new Float64Array([
+          stats.dev,
+          stats.mode,
+          stats.nlink,
+          stats.uid,
+          stats.gid,
+          stats.rdev,
+          stats.blksize,
+          stats.ino,
+          stats.size,
+          stats.blocks
+        ]);
+      } catch {
+      }
+    }
+    return originalfstat.apply(this, args);
+  };
+}
 
 const resolve = resolve$1;
 const getFormat = HAS_CONSOLIDATED_HOOKS ? void 0 : getFormat$1;

+ 0 - 0
.yarn/cache/fsevents-patch-bc14f4e1ba-9.zip → .yarn/cache/fsevents-patch-19706e7e35-9.zip


+ 0 - 0
.yarn/cache/resolve-patch-bc26c25fbb-a6f214b97d.zip → .yarn/cache/resolve-patch-61fc5136ce-a6f214b97d.zip


BIN
.yarn/cache/typescript-patch-6568064686-72574875ba.zip → .yarn/cache/typescript-patch-14bc8df10f-f6e45be090.zip


+ 0 - 0
.yarn/cache/typescript-patch-2011bd0f4e-19bcd9153b.zip → .yarn/cache/typescript-patch-7bbffa1f44-19bcd9153b.zip


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 3
.yarn/releases/yarn-4.0.0-rc.25.cjs


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 3 - 0
.yarn/releases/yarn-4.0.0-rc.43.cjs


+ 0 - 0
.yarn/unplugged/fsevents-patch-bc14f4e1ba/node_modules/fsevents/.ready → .yarn/unplugged/fsevents-patch-19706e7e35/node_modules/fsevents/.ready


+ 0 - 0
.yarn/unplugged/fsevents-patch-bc14f4e1ba/node_modules/fsevents/LICENSE → .yarn/unplugged/fsevents-patch-19706e7e35/node_modules/fsevents/LICENSE


+ 0 - 0
.yarn/unplugged/fsevents-patch-bc14f4e1ba/node_modules/fsevents/README.md → .yarn/unplugged/fsevents-patch-19706e7e35/node_modules/fsevents/README.md


+ 0 - 0
.yarn/unplugged/fsevents-patch-bc14f4e1ba/node_modules/fsevents/fsevents.d.ts → .yarn/unplugged/fsevents-patch-19706e7e35/node_modules/fsevents/fsevents.d.ts


+ 0 - 0
.yarn/unplugged/fsevents-patch-bc14f4e1ba/node_modules/fsevents/fsevents.js → .yarn/unplugged/fsevents-patch-19706e7e35/node_modules/fsevents/fsevents.js


+ 0 - 0
.yarn/unplugged/fsevents-patch-bc14f4e1ba/node_modules/fsevents/fsevents.node → .yarn/unplugged/fsevents-patch-19706e7e35/node_modules/fsevents/fsevents.node


+ 0 - 0
.yarn/unplugged/fsevents-patch-bc14f4e1ba/node_modules/fsevents/package.json → .yarn/unplugged/fsevents-patch-19706e7e35/node_modules/fsevents/package.json


+ 0 - 0
.yarn/unplugged/fsevents-patch-bc14f4e1ba/node_modules/fsevents/vfs.js → .yarn/unplugged/fsevents-patch-19706e7e35/node_modules/fsevents/vfs.js


+ 3 - 3
.yarnrc.yml

@@ -1,3 +1,5 @@
+enableGlobalCache: false
+
 plugins:
   - path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
     spec: "@yarnpkg/plugin-workspace-tools"
@@ -6,6 +8,4 @@ plugins:
   - path: .yarn/plugins/@ojkelly/plugin-all.cjs
     spec: "https://yarn.build/latest"
 
-yarnPath: .yarn/releases/yarn-4.0.0-rc.25.cjs
-
-enableGlobalCache: false
+yarnPath: .yarn/releases/yarn-4.0.0-rc.43.cjs

+ 1 - 1
package.json

@@ -37,7 +37,7 @@
     "ts-node": "^10.9.1",
     "typescript": "^4.8.4"
   },
-  "packageManager": "yarn@4.0.0-rc.25",
+  "packageManager": "yarn@4.0.0-rc.43",
   "dependencies": {
     "@sentry/node": "^7.28.1",
     "newrelic": "^10.0.0"

+ 5 - 5
yarn.lock

@@ -7102,7 +7102,7 @@ __metadata:
 
 "fsevents@patch:fsevents@npm%3A^2.3.2#optional!builtin<compat/fsevents>, fsevents@patch:fsevents@npm%3A~2.3.2#optional!builtin<compat/fsevents>":
   version: 2.3.2
-  resolution: "fsevents@patch:fsevents@npm%3A2.3.2#optional!builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"
+  resolution: "fsevents@patch:fsevents@npm%3A2.3.2#optional!builtin<compat/fsevents>::version=2.3.2&hash=df0bf1"
   dependencies:
     node-gyp: "npm:latest"
   conditions: os=darwin
@@ -10940,7 +10940,7 @@ __metadata:
 
 "resolve@patch:resolve@npm%3A^1.10.0#optional!builtin<compat/resolve>, resolve@patch:resolve@npm%3A^1.20.0#optional!builtin<compat/resolve>":
   version: 1.22.1
-  resolution: "resolve@patch:resolve@npm%3A1.22.1#optional!builtin<compat/resolve>::version=1.22.1&hash=07638b"
+  resolution: "resolve@patch:resolve@npm%3A1.22.1#optional!builtin<compat/resolve>::version=1.22.1&hash=c3c19d"
   dependencies:
     is-core-module: "npm:^2.9.0"
     path-parse: "npm:^1.0.7"
@@ -12266,7 +12266,7 @@ __metadata:
 
 "typescript@patch:typescript@npm%3A^4.6.4#optional!builtin<compat/typescript>":
   version: 4.7.4
-  resolution: "typescript@patch:typescript@npm%3A4.7.4#optional!builtin<compat/typescript>::version=4.7.4&hash=701156"
+  resolution: "typescript@patch:typescript@npm%3A4.7.4#optional!builtin<compat/typescript>::version=4.7.4&hash=65a307"
   bin:
     tsc: bin/tsc
     tsserver: bin/tsserver
@@ -12276,11 +12276,11 @@ __metadata:
 
 "typescript@patch:typescript@npm%3A^4.8.4#optional!builtin<compat/typescript>":
   version: 4.8.4
-  resolution: "typescript@patch:typescript@npm%3A4.8.4#optional!builtin<compat/typescript>::version=4.8.4&hash=701156"
+  resolution: "typescript@patch:typescript@npm%3A4.8.4#optional!builtin<compat/typescript>::version=4.8.4&hash=1a91c8"
   bin:
     tsc: bin/tsc
     tsserver: bin/tsserver
-  checksum: 72574875bac1c13aec22010780d4841a10a88342d73744dbbad538bb0ed601f2024187f197239f2dcbf2442f83ecc4de04a80941d49730c403969fbba035ed81
+  checksum: f6e45be090c6971bf57d07481cb7bd896303ffaee35b5a52a3418908d3cd252b20f5d25b5b1ebaf5c52754f9802421542b4aa70093744cb6d6b306936b5053bb
   languageName: node
   linkType: hard
 

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels