Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(security): Update to node22 + pnpm build #764

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

arcoraven
Copy link
Contributor

@arcoraven arcoraven commented Nov 7, 2024

  • Updates to Node22 + pnpm for latest security and performance improvements

PR-Codex overview

This PR focuses on migrating the project from yarn to pnpm, updating various files and dependencies accordingly. It also improves type imports and refactors some code for better clarity and performance.

Detailed summary

  • Replaced yarn commands with pnpm in scripts and documentation.
  • Updated Dockerfile and CI workflows to use pnpm.
  • Changed imports from crypto to node:crypto in multiple files.
  • Improved type imports for better clarity in several files.
  • Refactored cache management logic in src/lib/cache/swr.ts.
  • Adjusted package.json to specify Node and pnpm versions.
  • Removed outdated configuration files like yarn.lock and .eslintrc.json.

The following files were skipped due to too many changes: pnpm-lock.yaml

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

socket-security bot commented Nov 7, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@aws-sdk/[email protected] Transitive: environment, filesystem, network +72 5.83 MB aws-sdk-bot
npm/@biomejs/[email protected] None 0 210 kB conaclos, dominionl, ematipico, ...1 more
npm/@google-cloud/[email protected] environment Transitive: filesystem, network, shell +77 17.2 MB google-wombot
npm/@thirdweb-dev/[email protected] environment +5 904 kB thirdweb-bot
npm/@thirdweb-dev/[email protected] environment 0 10.5 MB thirdweb-bot
npm/@thirdweb-dev/[email protected] environment, eval, network Transitive: filesystem, shell, unsafe +505 326 MB thirdweb-bot
npm/@thirdweb-dev/[email protected] network +1 267 kB thirdweb-bot
npm/@thirdweb-dev/[email protected] environment, network Transitive: eval, filesystem, shell, unsafe +442 211 MB thirdweb-bot
npm/@types/[email protected] None 0 13.8 kB types
npm/@types/[email protected] None 0 2.03 MB types
npm/@types/[email protected] None +10 288 kB types
npm/@types/[email protected] None 0 21.6 kB types
npm/@vitest/[email protected] Transitive: environment, filesystem, shell +54 10.6 MB vitestbot
npm/[email protected] environment, filesystem, network, shell Transitive: eval, unsafe +4 3.98 MB manast
npm/[email protected] Transitive: environment, eval, filesystem, network, unsafe +54 61.9 MB datadog
npm/[email protected] Transitive: environment, filesystem +12 437 kB brianc
npm/[email protected] None +5 12.5 MB apolanc, janpio, jolg42, ...3 more
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +307 192 MB jakeloo, jnsdls, joaquim-verges, ...1 more
npm/[email protected] Transitive: filesystem +3 680 kB hirokiosame
npm/[email protected] None 0 22.4 MB typescript-bot
npm/[email protected] network Transitive: environment +10 18.4 MB jmoxey
npm/[email protected] Transitive: environment +33 2.5 MB 3rdeden, chjj, dabh, ...5 more

🚮 Removed packages: npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@biomejs/[email protected], npm/@biomejs/[email protected], npm/@biomejs/[email protected], npm/@biomejs/[email protected], npm/@biomejs/[email protected], npm/@biomejs/[email protected], npm/@biomejs/[email protected], npm/@biomejs/[email protected], npm/@biomejs/[email protected], npm/@datadog/[email protected], npm/@datadog/[email protected], npm/@datadog/[email protected], npm/@datadog/[email protected], npm/@emotion/[email protected], npm/@emotion/[email protected], npm/@eslint-community/[email protected], npm/@eslint-community/[email protected], npm/@eslint/[email protected], npm/@eslint/[email protected], npm/@eth-optimism/[email protected], npm/@eth-optimism/[email protected], npm/@fastify/[email protected], npm/@fastify/[email protected], npm/@floating-ui/[email protected], npm/@floating-ui/[email protected], npm/@floating-ui/[email protected], npm/@floating-ui/[email protected], npm/@humanwhocodes/[email protected], npm/@humanwhocodes/[email protected], npm/@humanwhocodes/[email protected], npm/@humanwhocodes/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@msgpackr-extract/[email protected], npm/@msgpackr-extract/[email protected], npm/@msgpackr-extract/[email protected], npm/@msgpackr-extract/[email protected], npm/@msgpackr-extract/[email protected], npm/@msgpackr-extract/[email protected], npm/@opentelemetry/[email protected], npm/@opentelemetry/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@parcel/[email protected], npm/@prisma/[email protected], npm/@prisma/engines-version@5.17.0-31.393aa359c9ad4a4bb28630fb5613f9c281cde053, npm/@prisma/[email protected], npm/@prisma/[email protected], npm/@prisma/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@scure/[email protected], npm/@scure/[email protected], npm/@smithy/[email protected], npm/@thirdweb-dev/[email protected], npm/@thirdweb-dev/[email protected], npm/@thirdweb-dev/[email protected], npm/@thirdweb-dev/[email protected], npm/@thirdweb-dev/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@vitest/[email protected], npm/@vitest/[email protected], npm/@vitest/[email protected], npm/@vitest/[email protected], npm/@vitest/[email protected], npm/@vitest/[email protected], npm/@vitest/[email protected], npm/@walletconnect/[email protected], npm/@walletconnect/[email protected], npm/@walletconnect/[email protected], npm/@walletconnect/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

import { BigNumber } from "ethers";
import { concat, toHex } from "viem";

const generateRandomUint192 = (): bigint => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused file. These were used for v4 userOp flows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant