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: pnpm version 9, dependencies upgrades and esbuild 20.x #1958

Merged
merged 3 commits into from
May 7, 2024

Conversation

magiziz
Copy link
Contributor

@magiziz magiziz commented May 3, 2024

Changes

  • Upgraded following dependencies:
    • contentlayer / next-contentlayer to 0.3.4 - (site -> package.json)
    • @vanilla-extract/css to 1.15.1 - (site -> package.json)
    • @vanilla-extract/next-plugin to 2.4.0 - (site -> package.json)
    • @vanilla-extract/recipes to ^0.5.2 - (site -> package.json)
    • @vanilla-extract/esbuild-plugin to ^2.3.5 - (package.json)
    • @vanilla-extract/vite-plugin to ^4.0.9 - (package.json)
    • esbuild to ^0.20.2 - (package.json)
  • Refactored build files for each package in /packages/* folder to include the newest esbuild features
  • Updated CI/CD to use the newest pnpm version 9

What to test

  • Make sure you can run pnpm install and pnpm run dev across all packages / examples without having any crashes
  • Make sure to test the RainbowKit modal wallet icons to see if esbuild bundles them correctly as it did in 0.14.39 version

Copy link

vercel bot commented May 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rainbowkit-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2024 3:28am
rainbowkit-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2024 3:28am

Copy link

socket-security bot commented May 3, 2024

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

Package New capabilities Transitives Size Publisher
npm/@rainbow-me/rainbowkit@2.0.6 Transitive: environment, filesystem, network +48 9.19 MB danielsinclair
npm/@tanstack/react-query@5.35.1 environment +1 2.95 MB tannerlinsley
npm/@testing-library/jest-dom@6.4.5 None +12 2.06 MB testing-library-bot
npm/@types/node@18.19.32 None 0 0 B
npm/autoprefixer@10.4.19 environment Transitive: filesystem +10 2.5 MB ai
npm/contentlayer@0.3.4 Transitive: environment, eval, filesystem, network +172 237 MB schickling
npm/copy-to-clipboard@3.3.3 None +1 18.5 kB sudodoki
npm/esbuild@0.20.2 environment, filesystem, network, shell 0 135 kB evanw
npm/framer-motion@6.5.1 environment +9 2.93 MB popmotion
npm/jsdom@23.2.0 eval, filesystem, network, shell, unsafe Transitive: environment +42 9.7 MB domenic
npm/next-contentlayer@0.3.4 environment, unsafe Transitive: eval, filesystem, network +161 220 MB schickling
npm/next-intl@3.12.2 environment +9 1.61 MB amann
npm/next@13.5.6 environment, filesystem, network, shell, unsafe +22 1.11 GB vercel-release-bot
npm/nock@13.5.4 environment, filesystem, network +3 217 kB nockbot
npm/postcss-prefix-selector@1.16.1 None 0 10.9 kB valentin-radulescu-hs
npm/postcss@8.4.38 environment, filesystem +3 368 kB ai
npm/react-dom@18.3.1 environment +3 4.63 MB react-bot
npm/react@18.3.1 environment +2 339 kB react-bot
npm/siwe@2.3.2 Transitive: filesystem +10 3.58 MB sbihel
npm/util@0.12.5 environment Transitive: eval +22 478 kB goto-bus-stop
npm/viem@2.9.32 network Transitive: environment, filesystem +6 14.6 MB jmoxey
npm/vite@5.2.11 environment, eval, filesystem, network, shell, unsafe +6 8.36 MB vitebot
npm/wagmi@2.8.1 Transitive: environment, eval, filesystem, network, shell, unsafe +507 247 MB awkweb

🚮 Removed packages: npm/@commitlint/cli@18.4.3, npm/@commitlint/config-conventional@18.4.3, npm/@docsearch/react@3.3.4, npm/@radix-ui/react-dialog@1.0.3, npm/@radix-ui/react-popover@1.0.5, npm/@radix-ui/react-portal@1.0.2, npm/@radix-ui/react-radio-group@1.1.2, npm/@react-spring/three@9.4.4, npm/@react-three/fiber@8.0.12, npm/@remix-run/dev@2.7.2, npm/@remix-run/eslint-config@2.7.2, npm/@remix-run/node@2.7.2, npm/@remix-run/react@2.7.2, npm/@remix-run/serve@2.7.2, npm/@tanstack/react-query@5.28.4, npm/@testing-library/jest-dom@6.2.0, npm/@testing-library/react@14.1.2, npm/@types/jest@29.5.2, npm/@types/node@18.19.4, npm/@types/react@18.3.0, npm/@vanilla-extract/esbuild-plugin@2.3.1, npm/@vanilla-extract/next-plugin@2.1.0, npm/@vanilla-extract/private@1.0.3, npm/@vanilla-extract/recipes@0.2.5, npm/@vanilla-extract/vite-plugin@3.9.3, npm/autoprefixer@10.4.16, npm/chalk@5.0.1, npm/commander@9.2.0, npm/contentlayer@0.2.9, npm/copy-to-clipboard@3.3.1, npm/deepmerge@4.2.2, npm/esbuild@0.14.39, npm/eslint@8.15.0, npm/ethers@5.6.8, npm/execa@6.1.0, npm/framer-motion@6.3.3, npm/jsdom@23.0.1, npm/next-contentlayer@0.2.9, npm/next-intl@3.9.4, npm/nock@13.4.0, npm/postcss-prefix-selector@1.16.0, npm/postcss@8.4.32, npm/react-dom@18.3.0, npm/react@18.3.0, npm/siwe@2.1.4, npm/util@0.12.4, npm/viem@2.8.12, npm/vite@5.0.12, npm/wagmi@2.5.11

View full report↗︎

Comment on lines +59 to +67
{...(isRemoteImage
? // biome-ignore format: design system keys
{
"aria-hidden": true,
as: "img",
onLoad: setRemoteImageLoaded,
src,
}
: {
backgroundSize: 'cover',
})}
: { 'aria-hidden': true, as: 'img', src })}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

esbuild 20.x has a new way of bundling dataurl's with .svg and .png, which means we can use img as of now instead of div and do backgroundImage: url(...)

"next-sitemap": "^4.2.3"
},
"scripts": {
"dev": "next dev --port 3001",
"build": "INIT_CWD=$PWD next build",
"build": "contentlayer build && INIT_CWD=$PWD next build",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needed since it has some problems on pages router. More context here

chore: configure new builds for rainbowkit and update esbuild package with pnpm 9.x

chore: revert changes and add new changes for new esbuild builds

chore: cleanup

chore: edit package.json build file

revert: removing prepare

revert: remove prepare from scripts

refactor: tsconfig.json

chore: refactor

chore: rename build.ts -
@DanielSinclair DanielSinclair merged commit a6b8dd4 into main May 7, 2024
9 checks passed
@DanielSinclair DanielSinclair deleted the @mago/pnpm-v9-esbuild branch May 7, 2024 04:09
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.

None yet

2 participants