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

refactor!: deprecate proxyWithHistory #839

Merged
merged 3 commits into from
Jan 6, 2024

Conversation

lwhiteley
Copy link
Contributor

Related Issues or Discussions

Summary

Move proxyWithHistory to the valtio-history package
This includes an api change for the utility function.

The proxyWithHistory utility within valtio/utils is now marked as deprecated.

BREAKING CHANGE:
see valtio-history for change notes and migration guide

Copy link

vercel bot commented Jan 5, 2024

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

Name Status Preview Comments Updated (UTC)
valtio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 6, 2024 2:01am

Copy link

codesandbox-ci bot commented Jan 5, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit a9f734d:

Sandbox Source
React Configuration
React TypeScript Configuration
React Browserify Configuration
React Snowpack Configuration
React Parcel Configuration

@dai-shi
Copy link
Member

dai-shi commented Jan 5, 2024

How about adding console warning to force migrating?

if (import.meta.env?.MODE !== 'production') {
console.warn(
'proxyWithComputed is deprecated. Please follow "Computed Properties" guide in docs.',
)
}

@lwhiteley
Copy link
Contributor Author

updated

Copy link
Member

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

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

Thanks for your work!

@dai-shi dai-shi merged commit f03dcc5 into pmndrs:main Jan 6, 2024
35 checks passed
@lwhiteley lwhiteley deleted the proxy-with-history-updates branch January 6, 2024 02:43
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