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

[v2] drop es5 #865

Merged
merged 1 commit into from
Mar 2, 2024
Merged

[v2] drop es5 #865

merged 1 commit into from
Mar 2, 2024

Conversation

dai-shi
Copy link
Member

@dai-shi dai-shi commented Mar 2, 2024

for #810

following pmndrs/zustand#2380

Copy link

vercel bot commented Mar 2, 2024

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

Name Status Preview Updated (UTC)
valtio ✅ Ready (Inspect) Visit Preview Mar 2, 2024 4:12am

@dai-shi dai-shi changed the base branch from main to v2 March 2, 2024 04:12
Copy link

codesandbox-ci bot commented Mar 2, 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.

@dai-shi dai-shi changed the title Target es2018 cjs [v2] drop es5 Mar 2, 2024
Copy link

github-actions bot commented Mar 2, 2024

Size Change: -55.1 kB (-91%) 🏆

Total Size: 5.6 kB

Filename Size Change
dist/esm/index.js 0 B -62 B (removed) 🏆
dist/esm/macro.js 0 B -698 B (removed) 🏆
dist/esm/macro/vite.js 0 B -864 B (removed) 🏆
dist/esm/react.js 0 B -732 B (removed) 🏆
dist/esm/react/utils.js 0 B -258 B (removed) 🏆
dist/esm/utils.js 0 B -68 B (removed) 🏆
dist/esm/vanilla.js 0 B -2.44 kB (removed) 🏆
dist/esm/vanilla/utils.js 0 B -3.17 kB (removed) 🏆
dist/index.js 453 B +210 B (+86%) 🆘
dist/macro.js 0 B -919 B (removed) 🏆
dist/macro/vite.js 0 B -1.08 kB (removed) 🏆
dist/react.js 1.02 kB +352 B (+53%) 🆘
dist/react/utils.js 462 B +185 B (+67%) 🆘
dist/system/index.development.js 0 B -253 B (removed) 🏆
dist/system/index.production.js 0 B -183 B (removed) 🏆
dist/system/macro.development.js 0 B -780 B (removed) 🏆
dist/system/macro.production.js 0 B -556 B (removed) 🏆
dist/system/macro/vite.development.js 0 B -951 B (removed) 🏆
dist/system/macro/vite.production.js 0 B -660 B (removed) 🏆
dist/system/react.development.js 0 B -872 B (removed) 🏆
dist/system/react.production.js 0 B -473 B (removed) 🏆
dist/system/react/utils.development.js 0 B -357 B (removed) 🏆
dist/system/react/utils.production.js 0 B -237 B (removed) 🏆
dist/system/utils.development.js 0 B -259 B (removed) 🏆
dist/system/utils.production.js 0 B -187 B (removed) 🏆
dist/system/vanilla.development.js 0 B -2.58 kB (removed) 🏆
dist/system/vanilla.production.js 0 B -1.52 kB (removed) 🏆
dist/system/vanilla/utils.development.js 0 B -3.38 kB (removed) 🏆
dist/system/vanilla/utils.production.js 0 B -2.22 kB (removed) 🏆
dist/umd/index.development.js 0 B -382 B (removed) 🏆
dist/umd/index.production.js 0 B -330 B (removed) 🏆
dist/umd/macro.development.js 0 B -1.03 kB (removed) 🏆
dist/umd/macro.production.js 0 B -721 B (removed) 🏆
dist/umd/macro/vite.development.js 0 B -1.23 kB (removed) 🏆
dist/umd/macro/vite.production.js 0 B -879 B (removed) 🏆
dist/umd/react.development.js 0 B -814 B (removed) 🏆
dist/umd/react.production.js 0 B -526 B (removed) 🏆
dist/umd/react/utils.development.js 0 B -433 B (removed) 🏆
dist/umd/react/utils.production.js 0 B -314 B (removed) 🏆
dist/umd/utils.development.js 0 B -398 B (removed) 🏆
dist/umd/utils.production.js 0 B -344 B (removed) 🏆
dist/umd/vanilla.development.js 0 B -2.76 kB (removed) 🏆
dist/umd/vanilla.production.js 0 B -1.64 kB (removed) 🏆
dist/umd/vanilla/utils.development.js 0 B -7.17 kB (removed) 🏆
dist/umd/vanilla/utils.production.js 0 B -4.93 kB (removed) 🏆
dist/utils.js 456 B +209 B (+85%) 🆘
dist/vanilla.js 2.64 kB +9 B (0%)
dist/vanilla/utils.js 566 B -6.43 kB (-92%) 🏆

compressed-size-action

@dai-shi dai-shi merged commit 9d0dc69 into v2 Mar 2, 2024
22 checks passed
@dai-shi dai-shi deleted the target-es2018-cjs branch March 2, 2024 14:18
@dai-shi dai-shi mentioned this pull request Mar 2, 2024
Merged
15 tasks
dai-shi added a commit that referenced this pull request May 15, 2024
* prepare for the next major version

* [v2] breaking: do not throw promises (#813)

* [v2] breaking: do not throw promises

* use use

* fix CI hopefully

* fix CI hopefully 2

* fix CI hopefully 3

* fix CI hopefully 4

* fix CI hopefully 5

* any type for simplicity

* [v2] breaking: do not copy initial objects (#815)

* [v2] breaking: do not copy initial objects

* fix deepClone

* refactor

* ah we need it

* deep clone

* minor fix

* breaking: require TS 4.5 at least (#817)

* TS minimal requirement v4.5

* wip: test old ts

* remove downlevel-dts

* simplify test

* simplify test 2

* simplify test 3

* wip: useMaybePromise

* wip: useMaybePromise 2

* wip: useMaybePromise 3

* rename back

* [v2] breaking: drop "module" condition (#818)

* run prettier

* [v2] breaking: require react 18 and drop use-sync-external-store (#819)

* [v2] breaking: require react 18 and drop use-sync-external-store

* drop tests pre react 18

* wip: cannot use react 17 for prd test

* drop production test which is impossible

* esm?

* fix regex

* fix sed

* [v2] breaking: remove deprecated features (#820)

* remove depreacated useProxy macro

* revert plugin-transform

* remove two more babel packages

* revert babel core

* remove proxyWithComputed

* remove addComputed

* remove devtools deprecated option

* [v2] breaking: remove derive-valtio dependency (#821)

* [v2] breaking: drop UMD/SystemJS builds and simplify babel config (#822)

* [v2] breaking: drop UMD/SystemJS builds and simplify babel config

* format

* 2.0.0-alpha.0

* run prettier

* 2.0.0-alpha.1

* simplify ts test script

* update react canary version

* remove depreacated proxyWithHistory

* 2.0.0-alpha.2

* update react canary

* [v2] export Snapshot type (#856)

* 2.0.0-beta.0

* [v2] drop es5 (#865)

* breaking: compatibility with memo (#866)

* update yarn lock

* 2.0.0-beta.1

* [v2] fix: make affected per proxy (#868)

* 2.0.0-beta.2

* [v2] fix rollup config for cjs (#873)

* 2.0.0-beta.3

* [v2] migration guide (#878)

* fix workflow file

* fix: explicit package.json type field (#882)

* 2.0.0-beta.4

* fix(react): Change to useLayoutEffect in useSnapshot (#891)

* Address spurious consistency check re-renders by using useLayoutEffect inside useSnapshot instead of useEffect

* Move regression tests for useSnapshot perf improvement to optimization test file

* Update tests/optimization.test.tsx

---------

Co-authored-by: Daishi Kato <[email protected]>

* 2.0.0-beta.5

* chore package.json

---------

Co-authored-by: Christopher Swasey <[email protected]>
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