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

[v5] breaking: require TypeScript 4.5 and update tests #2257

Merged
merged 7 commits into from
Dec 18, 2023

Conversation

dai-shi
Copy link
Member

@dai-shi dai-shi commented Dec 17, 2023

Summary

Check List

  • yarn run prettier for formatting code and docs

Copy link

vercel bot commented Dec 17, 2023

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

Name Status Preview Comments Updated (UTC)
zustand-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2023 11:48pm

Copy link

codesandbox-ci bot commented Dec 17, 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 58e5e77:

Sandbox Source
React Configuration
React TypeScript Configuration
React Browserify Configuration
React Snowpack Configuration
React Parcel Configuration
Next.js Configuration
@pavlobu/zustand demo Configuration

Copy link

github-actions bot commented Dec 17, 2023

Size Change: 0 B

Total Size: 43.9 kB

ℹ️ View Unchanged
Filename Size
dist/esm/index.js 366 B
dist/esm/middleware.js 3.54 kB
dist/esm/middleware/immer.js 210 B
dist/esm/react/shallow.js 479 B
dist/esm/shallow.js 481 B
dist/esm/traditional.js 400 B
dist/esm/vanilla.js 386 B
dist/esm/vanilla/shallow.js 366 B
dist/index.js 514 B
dist/middleware.js 4.07 kB
dist/middleware/immer.js 328 B
dist/react/shallow.js 1.07 kB
dist/shallow.js 1.08 kB
dist/system/index.development.js 551 B
dist/system/index.production.js 375 B
dist/system/middleware.development.js 3.65 kB
dist/system/middleware.production.js 2.35 kB
dist/system/middleware/immer.development.js 293 B
dist/system/middleware/immer.production.js 187 B
dist/system/react/shallow.development.js 577 B
dist/system/react/shallow.production.js 400 B
dist/system/shallow.development.js 587 B
dist/system/shallow.production.js 407 B
dist/system/traditional.development.js 515 B
dist/system/traditional.production.js 348 B
dist/system/vanilla.development.js 453 B
dist/system/vanilla.production.js 286 B
dist/system/vanilla/shallow.development.js 441 B
dist/system/vanilla/shallow.production.js 322 B
dist/traditional.js 443 B
dist/umd/index.development.js 680 B
dist/umd/index.production.js 505 B
dist/umd/middleware.development.js 4.22 kB
dist/umd/middleware.production.js 2.67 kB
dist/umd/middleware/immer.development.js 482 B
dist/umd/middleware/immer.production.js 342 B
dist/umd/react/shallow.development.js 1.21 kB
dist/umd/react/shallow.production.js 895 B
dist/umd/shallow.development.js 1.22 kB
dist/umd/shallow.production.js 902 B
dist/umd/traditional.development.js 625 B
dist/umd/traditional.production.js 452 B
dist/umd/vanilla.development.js 546 B
dist/umd/vanilla.production.js 355 B
dist/umd/vanilla/shallow.development.js 1.1 kB
dist/umd/vanilla/shallow.production.js 849 B
dist/vanilla.js 408 B
dist/vanilla/shallow.js 969 B

compressed-size-action

@dai-shi dai-shi mentioned this pull request Dec 17, 2023
Merged
16 tasks
@dai-shi dai-shi changed the title breaking(types): TS requirement [v5] breaking: update TypeScript requirement and tests Dec 17, 2023
@dai-shi dai-shi changed the title [v5] breaking: update TypeScript requirement and tests [v5] breaking: require TypeScript 4.5 and update tests Dec 17, 2023
@dai-shi dai-shi marked this pull request as ready for review December 17, 2023 23:51
Copy link
Collaborator

@charkour charkour left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@dai-shi dai-shi merged commit 4ffdb19 into v5 Dec 18, 2023
23 checks passed
@dai-shi dai-shi deleted the breaing/ts-requirement-and-test branch December 18, 2023 13:13
dai-shi added a commit that referenced this pull request Aug 16, 2024
* prepare for the next major version

* [v5] breaking: drop default exports (#2238)

* fix: drop default exports for v5

* chore: remove default from cjs build

* refactor: export shallow in v5

* fix: remove `addModuleExport` option for cjs.

* [v5] breaking: drop deprecated features (#2235)

* fix: remove deprecated v4 features

* chore(build): remove context

* docs(typescript): remove deprecated equals api

* docs(persist): remove old persist api

* chore: run yarn prettier on typescript docs

* Discard changes to docs/guides/typescript.md

* Discard changes to docs/integrations/persisting-store-data.md

* Discard changes to tests/shallow.test.tsx

* Discard changes to tests/vanilla/subscribe.test.tsx

* [v5] breaking: make React 18 as minimal requirement (#2236)

* fix: update package.json to require react 18+

* chore: update github actions to test on react 18+

* chore: remove devtools-skip hack from actions

* chore(test): remove CI-SKIP from devtools tests

* [v5] breaking: make use-sync-external-store an optional peer dependency (#2237)

* chore: make use-sync-external-store optional peerDep

* fix: use correct versions in package.json

* [v5] breaking: require TypeScript 4.5 and update tests (#2257)

* breaking(types): TS requirement

* wip: latest only

* wip: latest only 2

* drop ts <4.4

* wip: do not skip lib checkes

* use latest node types

* drop ts 4.4

* [v5]: drop "module" condition  (#2270)

* Update package json in order to remove module

* Update rollup config in order to remove module config

* Update patch esm script

* Update package json to general exports and update node version (#2272)

* [v5]: drop UMD/SystemJS builds (#2287)

* Update rollup config in order to drop system js and umd builds

* Update packages

* Clean up files

* Update rollup config

* Update gh workflows

* Minor fixes

* Minor fixes

* Minor fixes

* Minor fixes

* Testing

* Minor changes

* Minor fixes

* remove `WithReact` type (#2300)

* 5.0.0-alpha.0

* [v5]: do not depend on use-sync-external-store (#2301)

* [v5]: do not depend on use-sync-external-store

* memo get(server)snapshot

* 5.0.0-alpha.1

* [v5]: refactor useMemoSelector (#2302)

* [v5]: refactor useMemoSelector

* add a test

* Revert "[v5]: refactor useMemoSelector"

This reverts commit b3c8b15.

* Revert "Revert "[v5]: refactor useMemoSelector""

This reverts commit 3c47301.

* [v5]: separate react entry point (#2303)

* 5.0.0-alpha.2

* 5.0.0-alpha.3

* refactor: Switch to Object.hasOwn (#2365)

* [v5] drop es5 (#2380)

* update yarn lock

* 5.0.0-alpha.4

* [v5]: follow React "standard" way with breaking behavioral change (#2395)

* [v5]: follow React "standard" way with breaking behavioral change

* add test

* 5.0.0-alpha.5

* [v5] Rewrite shallow to support iterables (#2427)

* [v5] fix rollup config for cjs (#2433)

* 5.0.0-alpha.6

* no production build test

* recover types that are dropped in #2462

* remove unused replacement

* [v5] Remove Devtools warning (#2466)

* chore: remove devtools extension warning

* docs: add devtools link to readme

* chore: remove unused test

* chrome: remove unused tests

* chore: remove unused test

* Revert "chore: remove unused test"

This reverts commit 0fa2a75.

* update test name

* update pnpm lock

* fix merge main

* add migration guide

* fix typos

* 5.0.0-beta.0

* update migration doc

* fix merge main

* fix merge main (prettier)

* 5.0.0-beta.1

* fix(types)!: require complete state if `setState`'s `replace` flag is set (#2580)

* fix(types): require complete state if `setState`'s `replace` flag is set

* switch to variant 2

* fix type errors

* update setState types for devtools and immer

* make devtools setState non-generic

* add migration guide

* merge migration guides

* run prettier

* Update tests/middlewareTypes.test.tsx

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
Co-authored-by: daishi <daishi@axlight.com>

* 5.0.0-beta.2

* move v5 migration doc

* fix ci

* missing commmit

* remove unused rule exclusion

* comment about react compiler

* revert eslint config

---------

Co-authored-by: Charles Kornoelje <33156025+charkour@users.noreply.github.com>
Co-authored-by: Danilo Britto <dbritto.dev@gmail.com>
Co-authored-by: Ekin Dursun <ekindursun@gmail.com>
Co-authored-by: Simon Farshid <simon.farshid@outlook.com>
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