Skip to content

Conversation

@enesozturk
Copy link
Contributor

@enesozturk enesozturk commented May 16, 2025

Description

Upgrades Valtio to v2. Valtio v2 is compatible with v1. Only difference is that we should be wrapping values with ref if they are non plain objects. In this PR, it's updating some pages in laboratory to use AppKitProvider and updates ThemeStore and AppKitStore to use ref()

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Associated Issues

For Linear issues: Closes APKT-3151
For GH issues: closes #...

Showcase (Optional)

If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

@vercel
Copy link

vercel bot commented May 16, 2025

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

Name Status Preview Comments Updated (UTC)
appkit-basic-html ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2025 10:26am
appkit-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2025 10:26am
appkit-laboratory ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2025 10:26am
11 Skipped Deployments
Name Status Preview Comments Updated (UTC)
appkit-basic-ep ⬜️ Ignored (Inspect) Jul 2, 2025 10:26am
appkit-basic-example ⬜️ Ignored (Inspect) Jul 2, 2025 10:26am
appkit-basic-sign-client-example ⬜️ Ignored (Inspect) Jul 2, 2025 10:26am
appkit-basic-up-example ⬜️ Ignored (Inspect) Visit Preview Jul 2, 2025 10:26am
appkit-ethers5-bera ⬜️ Ignored (Inspect) Jul 2, 2025 10:26am
appkit-nansen-demo ⬜️ Ignored (Inspect) Jul 2, 2025 10:26am
appkit-vue-solana ⬜️ Ignored (Inspect) Jul 2, 2025 10:26am
appkit-wagmi-cdn-example ⬜️ Ignored (Inspect) Jul 2, 2025 10:26am
ethereum-provider-wagmi-example ⬜️ Ignored (Inspect) Jul 2, 2025 10:26am
next-wagmi-solana-bitcoin-example ⬜️ Ignored (Inspect) Jul 2, 2025 10:26am
vue-wagmi-example ⬜️ Ignored (Inspect) Jul 2, 2025 10:26am

@socket-security
Copy link

socket-security bot commented May 16, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedesbuild@​0.25.5911007188100
Addedpostcss@​8.5.3991008191100
Addedreact@​19.1.01001008397100
Addedtypescript@​5.8.310010089100100
Addedreact-dom@​19.1.01001009297100

View full report

@github-actions
Copy link
Contributor

github-actions bot commented May 16, 2025

Warnings
⚠️

🔑 Potential High‑entropy string detected in packages/experimental/package.json (line 25): dist/types/exports/e...

⚠️

🔑 Potential High‑entropy string detected in packages/experimental/package.json (line 25): dist/types/exports/e...

⚠️

🔑 Potential High‑entropy string detected in packages/appkit/package.json (line 39): dist/types/exports/l...

⚠️

🔑 Potential High‑entropy string detected in packages/appkit/package.json (line 39): dist/types/exports/l...

Generated by 🚫 dangerJS against 30f9b41

@github-actions
Copy link
Contributor

github-actions bot commented May 16, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 77.85% 30845 / 39621
🔵 Statements 77.85% 30845 / 39621
🔵 Functions 68.77% 2539 / 3692
🔵 Branches 84.4% 6404 / 7587
File CoverageNo changed files found.
Generated in workflow #13104 for commit 30f9b41 by the Vitest Coverage Report Action

@changeset-bot
Copy link

changeset-bot bot commented May 16, 2025

🦋 Changeset detected

Latest commit: 30f9b41

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 23 packages
Name Type
@reown/appkit-adapter-ethers5 Patch
@reown/appkit-adapter-ethers Patch
@reown/appkit-adapter-solana Patch
@reown/appkit-adapter-wagmi Patch
@reown/appkit-wallet-button Patch
@reown/appkit-utils Patch
@reown/appkit-experimental Patch
@reown/appkit-controllers Patch
@reown/appkit Patch
@reown/appkit-siwe Patch
@reown/appkit-pay Patch
@reown/appkit-adapter-bitcoin Patch
@reown/appkit-cdn Patch
@reown/appkit-cli Patch
@reown/appkit-codemod Patch
@reown/appkit-common Patch
@reown/appkit-core Patch
@reown/appkit-polyfills Patch
@reown/appkit-scaffold-ui Patch
@reown/appkit-siwx Patch
@reown/appkit-testing Patch
@reown/appkit-ui Patch
@reown/appkit-wallet Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@enesozturk enesozturk changed the title chore: upgrade valtio to v2 [DO NOT MERGE] chore: upgrade valtio to v2 May 16, 2025
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@enesozturk enesozturk force-pushed the chore/upgrace-valtio-to-v2 branch from f97d434 to d9a38d4 Compare June 30, 2025 16:31
cursor[bot]

This comment was marked as outdated.

@enesozturk enesozturk requested a review from a team July 1, 2025 12:24
cursor[bot]

This comment was marked as outdated.

@linear
Copy link

linear bot commented Jul 1, 2025

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Bug: Missing Project ID in Config Causes Initialization Failures

The projectId: ConstantsUtil.ProjectId property was accidentally omitted from the config object during the refactoring from createAppKit to AppKitProvider. As projectId is a required AppKit configuration property, its absence will cause initialization failures and runtime errors. Other similar files in this commit correctly retain the projectId.

apps/laboratory/app/library/multichain-ethers5-solana/page.tsx#L28-L36

const config = {
adapters: [etherAdapter, solanaWeb3JsAdapter],
networks,
defaultNetwork: mainnet,
customWallets: ConstantsUtil.CustomWallets,
termsConditionsUrl: 'https://reown.com/terms-of-service',
privacyPolicyUrl: 'https://reown.com/privacy-policy'
}

Fix in Cursor


Was this report helpful? Give feedback by reacting with 👍 or 👎

@lukaisailovic
Copy link
Collaborator

@enesozturk Are we exposing valtio state somewhere publicly? We shouldn't do it directly, but if we do, do the customers need to use ref then?

@enesozturk
Copy link
Contributor Author

@enesozturk Are we exposing valtio state somewhere publicly? We shouldn't do it directly, but if we do, do the customers need to use ref then?

We are exposing state only via hooks and plain JS functions, but the using ref() only matter when you create state/proxy - so users won't get any issues using the exposed values

@enesozturk enesozturk enabled auto-merge July 2, 2025 11:05
@enesozturk enesozturk added this pull request to the merge queue Jul 2, 2025
Merged via the queue into main with commit f76135f Jul 2, 2025
41 checks passed
@enesozturk enesozturk deleted the chore/upgrace-valtio-to-v2 branch July 2, 2025 11:35
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.

2 participants