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

feat: reorganize entry points #627

Merged
merged 5 commits into from
Jan 15, 2023
Merged

feat: reorganize entry points #627

merged 5 commits into from
Jan 15, 2023

Conversation

dai-shi
Copy link
Member

@dai-shi dai-shi commented Jan 15, 2023

This adds new entry points:

  • valtio/vanilla/utils
  • valtio/react
  • valtio/react/utils

Everything is re-exported, so existing code shouldn't break.

Also, update readme.md to follow #626.

@vercel
Copy link

vercel bot commented Jan 15, 2023

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

Name Status Preview Updated
valtio ✅ Ready (Inspect) Visit Preview Jan 15, 2023 at 6:30AM (UTC)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 15, 2023

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 910d4ec:

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

@github-actions
Copy link

github-actions bot commented Jan 15, 2023

Size Change: +630 B (+1%)

Total Size: 55.2 kB

Filename Size Change
dist/esm/index.js 62 B -684 B (-92%) 🏆
dist/esm/react-utils.js 0 B -217 B (removed) 🏆
dist/esm/utils.js 68 B -4.11 kB (-98%) 🏆
dist/index.js 232 B -535 B (-70%) 🏆
dist/react-utils.js 0 B -234 B (removed) 🏆
dist/system/index.development.js 236 B -679 B (-74%) 🏆
dist/system/index.production.js 170 B -353 B (-67%) 🏆
dist/system/react-utils.development.js 0 B -942 B (removed) 🏆
dist/system/react-utils.production.js 0 B -523 B (removed) 🏆
dist/system/utils.development.js 241 B -4.16 kB (-95%) 🏆
dist/system/utils.production.js 176 B -2.74 kB (-94%) 🏆
dist/umd/index.development.js 372 B -537 B (-59%) 🏆
dist/umd/index.production.js 322 B -302 B (-48%) 🎉
dist/umd/macro.development.js 1.05 kB -2 B (0%)
dist/umd/macro.production.js 724 B -3 B (0%)
dist/umd/react-utils.development.js 0 B -895 B (removed) 🏆
dist/umd/react-utils.production.js 0 B -576 B (removed) 🏆
dist/umd/utils.development.js 386 B -4.27 kB (-92%) 🏆
dist/umd/utils.production.js 333 B -2.66 kB (-89%) 🏆
dist/umd/vanilla.development.js 2.58 kB -6 B (0%)
dist/umd/vanilla.production.js 1.52 kB -6 B (0%)
dist/utils.js 236 B -4.27 kB (-95%) 🏆
dist/esm/react.js 710 B +710 B (new file) 🆕
dist/esm/react/utils.js 221 B +221 B (new file) 🆕
dist/esm/vanilla/utils.js 4.18 kB +4.18 kB (new file) 🆕
dist/react.js 653 B +653 B (new file) 🆕
dist/react/utils.js 237 B +237 B (new file) 🆕
dist/system/react.development.js 851 B +851 B (new file) 🆕
dist/system/react.production.js 466 B +466 B (new file) 🆕
dist/system/react/utils.development.js 316 B +316 B (new file) 🆕
dist/system/react/utils.production.js 221 B +221 B (new file) 🆕
dist/system/vanilla/utils.development.js 4.4 kB +4.4 kB (new file) 🆕
dist/system/vanilla/utils.production.js 2.92 kB +2.92 kB (new file) 🆕
dist/umd/react.development.js 797 B +797 B (new file) 🆕
dist/umd/react.production.js 519 B +519 B (new file) 🆕
dist/umd/react/utils.development.js 396 B +396 B (new file) 🆕
dist/umd/react/utils.production.js 297 B +297 B (new file) 🆕
dist/umd/vanilla/utils.development.js 4.66 kB +4.66 kB (new file) 🆕
dist/umd/vanilla/utils.production.js 3 kB +3 kB (new file) 🆕
dist/vanilla/utils.js 4.51 kB +4.51 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size
dist/esm/macro.js 698 B
dist/esm/macro/vite.js 809 B
dist/esm/vanilla.js 2.27 kB
dist/macro.js 939 B
dist/macro/vite.js 1.09 kB
dist/system/macro.development.js 779 B
dist/system/macro.production.js 556 B
dist/system/macro/vite.development.js 894 B
dist/system/macro/vite.production.js 660 B
dist/system/vanilla.development.js 2.4 kB
dist/system/vanilla.production.js 1.45 kB
dist/umd/macro/vite.development.js 1.23 kB
dist/umd/macro/vite.production.js 882 B
dist/vanilla.js 2.47 kB

compressed-size-action

@dai-shi dai-shi merged commit e7e8524 into main Jan 15, 2023
@dai-shi dai-shi deleted the feat/react-entry-points branch January 15, 2023 06:34
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