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(vanilla): split createSnapshot function #533

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

dai-shi
Copy link
Member

@dai-shi dai-shi commented Aug 30, 2022

a small refactor to make #528 easy to review.

@vercel
Copy link

vercel bot commented Aug 30, 2022

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

Name Status Preview Updated
valtio ✅ Ready (Inspect) Visit Preview Aug 30, 2022 at 11:40AM (UTC)

@codesandbox-ci
Copy link

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 0c64bc9:

Sandbox Source
React Configuration
React Typescript Configuration
React Browserify Configuration
React Snowpack Configuration
React Parcel Configuration

@github-actions
Copy link

Size Change: +1 B (0%)

Total Size: 48.7 kB

Filename Size Change
dist/esm/vanilla.js 1.9 kB -6 B (0%)
dist/system/vanilla.development.js 2.01 kB +2 B (0%)
dist/system/vanilla.production.js 1.25 kB +4 B (0%)
dist/umd/vanilla.development.js 2.11 kB +2 B (0%)
dist/umd/vanilla.production.js 1.32 kB -1 B (0%)
ℹ️ View Unchanged
Filename Size
dist/esm/index.js 734 B
dist/esm/macro.js 617 B
dist/esm/macro/vite.js 732 B
dist/esm/utils.js 4.01 kB
dist/index.js 880 B
dist/macro.js 910 B
dist/macro/vite.js 1.04 kB
dist/system/index.development.js 894 B
dist/system/index.production.js 508 B
dist/system/macro.development.js 725 B
dist/system/macro.production.js 555 B
dist/system/macro/vite.development.js 839 B
dist/system/macro/vite.production.js 660 B
dist/system/utils.development.js 4.21 kB
dist/system/utils.production.js 2.83 kB
dist/umd/index.development.js 1 kB
dist/umd/index.production.js 670 B
dist/umd/macro.development.js 1.06 kB
dist/umd/macro.production.js 766 B
dist/umd/macro/vite.development.js 1.21 kB
dist/umd/macro/vite.production.js 893 B
dist/umd/utils.development.js 4.73 kB
dist/umd/utils.production.js 3.02 kB
dist/utils.js 4.58 kB
dist/vanilla.js 2.01 kB

compressed-size-action

@dai-shi dai-shi merged commit e037d39 into main Aug 30, 2022
@dai-shi dai-shi deleted the refactor/vanilla/createSnapshot branch August 30, 2022 11:47
dai-shi added a commit that referenced this pull request Aug 30, 2022
dai-shi added a commit that referenced this pull request Sep 5, 2022
…dler (#528)

* feat(vanilla): unstable_customize instead of unstable_getHandler

* unstable_buildProxyFunction

* rename to avoid confusion

* fix unstable prefix

* update docs

* expose full features

* fix snapshotCache

* simplify exposing internal function

* a tiny refactor

* rever the wrong change in #533

* reorder functions

* expose newProxy

* revert readme

* go back to buildProxyFunction

* fix docs

* small renaming a param

* make shared state global

* directly access shared state
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