From e4fdeb127a5fef36c8f0abf0459a1dc8c2c3db56 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 3 Dec 2025 17:49:57 +0000 Subject: [PATCH] chore(deps): update dependency @rollup/plugin-alias to v6 --- .pnp.cjs | 60 +++++++++++++++++++++++++++++++++------------------- package.json | 2 +- yarn.lock | 17 ++++++++------- 3 files changed, 48 insertions(+), 31 deletions(-) diff --git a/.pnp.cjs b/.pnp.cjs index 0949fa8..404fca4 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -30,7 +30,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@commitlint/cli", "npm:17.8.1"],\ ["@commitlint/config-conventional", "npm:17.8.1"],\ - ["@rollup/plugin-alias", "virtual:2a4e9dace022057175a083496c0ac5b75c33c32a608467b972f1b2536df13ef41f37b30a5cc92f9313818befb060475002505ecbb105b86b1a7fbf67cdbfb676#npm:3.1.9"],\ + ["@rollup/plugin-alias", "virtual:2a4e9dace022057175a083496c0ac5b75c33c32a608467b972f1b2536df13ef41f37b30a5cc92f9313818befb060475002505ecbb105b86b1a7fbf67cdbfb676#npm:6.0.0"],\ ["@semantic-release/changelog", "virtual:2a4e9dace022057175a083496c0ac5b75c33c32a608467b972f1b2536df13ef41f37b30a5cc92f9313818befb060475002505ecbb105b86b1a7fbf67cdbfb676#npm:6.0.3"],\ ["@semantic-release/git", "virtual:2a4e9dace022057175a083496c0ac5b75c33c32a608467b972f1b2536df13ef41f37b30a5cc92f9313818befb060475002505ecbb105b86b1a7fbf67cdbfb676#npm:10.0.1"],\ ["@testing-library/dom", "npm:8.20.1"],\ @@ -1953,20 +1953,19 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["@rollup/plugin-alias", [\ - ["npm:3.1.9", {\ - "packageLocation": "../../../../../../runner/cache/others/berry/cache/@rollup-plugin-alias-npm-3.1.9-f58d88ad2a-10c0.zip/node_modules/@rollup/plugin-alias/",\ + ["npm:6.0.0", {\ + "packageLocation": "../../../../../../runner/cache/others/berry/cache/@rollup-plugin-alias-npm-6.0.0-2b1d35f7ba-10c0.zip/node_modules/@rollup/plugin-alias/",\ "packageDependencies": [\ - ["@rollup/plugin-alias", "npm:3.1.9"]\ + ["@rollup/plugin-alias", "npm:6.0.0"]\ ],\ "linkType": "SOFT"\ }],\ - ["virtual:2a4e9dace022057175a083496c0ac5b75c33c32a608467b972f1b2536df13ef41f37b30a5cc92f9313818befb060475002505ecbb105b86b1a7fbf67cdbfb676#npm:3.1.9", {\ - "packageLocation": "./.yarn/__virtual__/@rollup-plugin-alias-virtual-d2501e9f4b/7/runner/cache/others/berry/cache/@rollup-plugin-alias-npm-3.1.9-f58d88ad2a-10c0.zip/node_modules/@rollup/plugin-alias/",\ + ["virtual:2a4e9dace022057175a083496c0ac5b75c33c32a608467b972f1b2536df13ef41f37b30a5cc92f9313818befb060475002505ecbb105b86b1a7fbf67cdbfb676#npm:6.0.0", {\ + "packageLocation": "./.yarn/__virtual__/@rollup-plugin-alias-virtual-6b029ab56d/7/runner/cache/others/berry/cache/@rollup-plugin-alias-npm-6.0.0-2b1d35f7ba-10c0.zip/node_modules/@rollup/plugin-alias/",\ "packageDependencies": [\ - ["@rollup/plugin-alias", "virtual:2a4e9dace022057175a083496c0ac5b75c33c32a608467b972f1b2536df13ef41f37b30a5cc92f9313818befb060475002505ecbb105b86b1a7fbf67cdbfb676#npm:3.1.9"],\ + ["@rollup/plugin-alias", "virtual:2a4e9dace022057175a083496c0ac5b75c33c32a608467b972f1b2536df13ef41f37b30a5cc92f9313818befb060475002505ecbb105b86b1a7fbf67cdbfb676#npm:6.0.0"],\ ["@types/rollup", null],\ - ["rollup", null],\ - ["slash", "npm:3.0.0"]\ + ["rollup", null]\ ],\ "packagePeers": [\ "@types/rollup",\ @@ -11045,7 +11044,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@commitlint/cli", "npm:17.8.1"],\ ["@commitlint/config-conventional", "npm:17.8.1"],\ - ["@rollup/plugin-alias", "virtual:2a4e9dace022057175a083496c0ac5b75c33c32a608467b972f1b2536df13ef41f37b30a5cc92f9313818befb060475002505ecbb105b86b1a7fbf67cdbfb676#npm:3.1.9"],\ + ["@rollup/plugin-alias", "virtual:2a4e9dace022057175a083496c0ac5b75c33c32a608467b972f1b2536df13ef41f37b30a5cc92f9313818befb060475002505ecbb105b86b1a7fbf67cdbfb676#npm:6.0.0"],\ ["@semantic-release/changelog", "virtual:2a4e9dace022057175a083496c0ac5b75c33c32a608467b972f1b2536df13ef41f37b30a5cc92f9313818befb060475002505ecbb105b86b1a7fbf67cdbfb676#npm:6.0.3"],\ ["@semantic-release/git", "virtual:2a4e9dace022057175a083496c0ac5b75c33c32a608467b972f1b2536df13ef41f37b30a5cc92f9313818befb060475002505ecbb105b86b1a7fbf67cdbfb676#npm:10.0.1"],\ ["@testing-library/dom", "npm:8.20.1"],\ @@ -16568,28 +16567,40 @@ class FileHandle { sync() { throw new Error(`Method not implemented.`); } - async read(bufferOrOptions, offset, length, position) { + async read(bufferOrOptions, offsetOrOptions, length, position) { try { this[kRef](this.read); let buffer; - if (!Buffer.isBuffer(bufferOrOptions)) { - bufferOrOptions ??= {}; - buffer = bufferOrOptions.buffer ?? Buffer.alloc(16384); - offset = bufferOrOptions.offset || 0; - length = bufferOrOptions.length ?? buffer.byteLength; - position = bufferOrOptions.position ?? null; + let offset; + if (!ArrayBuffer.isView(bufferOrOptions)) { + buffer = bufferOrOptions?.buffer ?? Buffer.alloc(16384); + offset = bufferOrOptions?.offset ?? 0; + length = bufferOrOptions?.length ?? buffer.byteLength - offset; + position = bufferOrOptions?.position ?? null; + } else if (typeof offsetOrOptions === `object` && offsetOrOptions !== null) { + buffer = bufferOrOptions; + offset = offsetOrOptions?.offset ?? 0; + length = offsetOrOptions?.length ?? buffer.byteLength - offset; + position = offsetOrOptions?.position ?? null; } else { buffer = bufferOrOptions; + offset = offsetOrOptions ?? 0; + length ??= 0; } - offset ??= 0; - length ??= 0; if (length === 0) { return { bytesRead: length, buffer }; } - const bytesRead = await this[kBaseFs].readPromise(this.fd, buffer, offset, length, position); + const bytesRead = await this[kBaseFs].readPromise( + this.fd, + // FIXME: FakeFS should support ArrayBufferViews directly + Buffer.isBuffer(buffer) ? buffer : Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength), + offset, + length, + position + ); return { bytesRead, buffer @@ -19494,6 +19505,7 @@ function applyPatch(pnpapi, opts) { const optionNames = new Set(Object.keys(options)); optionNames.delete(`paths`); optionNames.delete(`plugnplay`); + optionNames.delete(`conditions`); if (optionNames.size > 0) { throw makeError( ErrorCode.UNSUPPORTED, @@ -19522,11 +19534,15 @@ function applyPatch(pnpapi, opts) { const issuerApi = apiPath !== null ? opts.manager.getApiEntry(apiPath, true).instance : null; try { if (issuerApi !== null) { - resolution = issuerApi.resolveRequest(request, path !== null ? `${path}/` : null); + resolution = issuerApi.resolveRequest(request, path !== null ? `${path}/` : null, { + conditions: options?.conditions + }); } else { if (path === null) throw new Error(`Assertion failed: Expected the path to be set`); - resolution = originalModuleResolveFilename.call(require$$0.Module, request, module || makeFakeParent(path), isMain); + resolution = originalModuleResolveFilename.call(require$$0.Module, request, module || makeFakeParent(path), isMain, { + conditions: options?.conditions + }); } } catch (error) { firstError = firstError || error; diff --git a/package.json b/package.json index 2797edb..767731f 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "devDependencies": { "@commitlint/cli": "17.8.1", "@commitlint/config-conventional": "17.8.1", - "@rollup/plugin-alias": "3.1.9", + "@rollup/plugin-alias": "6.0.0", "@semantic-release/changelog": "6.0.3", "@semantic-release/git": "10.0.1", "@testing-library/dom": "8.20.1", diff --git a/yarn.lock b/yarn.lock index cf564f6..ba1ebf5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1597,14 +1597,15 @@ __metadata: languageName: node linkType: hard -"@rollup/plugin-alias@npm:3.1.9": - version: 3.1.9 - resolution: "@rollup/plugin-alias@npm:3.1.9" - dependencies: - slash: "npm:^3.0.0" +"@rollup/plugin-alias@npm:6.0.0": + version: 6.0.0 + resolution: "@rollup/plugin-alias@npm:6.0.0" peerDependencies: - rollup: ^1.20.0||^2.0.0 - checksum: 10c0/f932771db3c87ccc6008e4d82c89c5a09349c834180a7ca6c3ee4d5dbf086cb27f9ce5f5aee42a66bf556e5fd3094438ffdf47e19f5bb0e15ea3cb1a9f34860d + rollup: ">=4.0.0" + peerDependenciesMeta: + rollup: + optional: true + checksum: 10c0/d3cd6a236b6d209dd9d3882fab84ad6bd253dcc5bb9fc1308ac1c08d4217ce5cfac805271ebe36daab4816f6bf5096b1f824a9eb1eb4158c67976fde765266be languageName: node linkType: hard @@ -9201,7 +9202,7 @@ __metadata: dependencies: "@commitlint/cli": "npm:17.8.1" "@commitlint/config-conventional": "npm:17.8.1" - "@rollup/plugin-alias": "npm:3.1.9" + "@rollup/plugin-alias": "npm:6.0.0" "@semantic-release/changelog": "npm:6.0.3" "@semantic-release/git": "npm:10.0.1" "@testing-library/dom": "npm:8.20.1"