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(core): expose internal states and functions #931

Merged
merged 6 commits into from
Aug 15, 2024
Merged

Conversation

dai-shi
Copy link
Member

@dai-shi dai-shi commented Aug 15, 2024

Previously we had unstable_buildFunction, but it's a bit hard to use and hard to maintain.
This new method should be more straightforward.

  • impl
  • docs

Copy link

vercel bot commented Aug 15, 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 Aug 15, 2024 0:46am

Copy link

codesandbox-ci bot commented Aug 15, 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.

Copy link

pkg-pr-new bot commented Aug 15, 2024

commit: 1b09ab2

pnpm add https://pkg.pr.new/valtio@931

Open in Stackblitz

Copy link

github-actions bot commented Aug 15, 2024

Size Change: +211 B (+1.76%)

Total Size: 12.2 kB

Filename Size Change
./dist/esm/vanilla.mjs 2.44 kB +100 B (+4.28%)
./dist/esm/vanilla/utils.mjs 2.38 kB +3 B (+0.13%)
./dist/vanilla.js 2.47 kB +107 B (+4.53%) 🔍
./dist/vanilla/utils.js 2.41 kB +1 B (+0.04%)
ℹ️ View Unchanged
Filename Size
./dist/esm/index.mjs 63 B
./dist/esm/react.mjs 691 B
./dist/esm/react/utils.mjs 257 B
./dist/esm/utils.mjs 68 B
./dist/index.js 243 B
./dist/react.js 681 B
./dist/react/utils.js 278 B
./dist/utils.js 248 B

compressed-size-action

This reverts commit 33b04d4.
@dai-shi dai-shi merged commit eac3442 into main Aug 15, 2024
29 checks passed
@dai-shi dai-shi deleted the feat/internals branch August 15, 2024 12:49
Brooooooklyn referenced this pull request in toeverything/AFFiNE Aug 30, 2024
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [valtio](https://github.com/pmndrs/valtio) | [`^1.13.2` -> `^2.0.0`](https://renovatebot.com/diffs/npm/valtio/1.13.2/2.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/valtio/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/valtio/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/valtio/1.13.2/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/valtio/1.13.2/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>pmndrs/valtio (valtio)</summary>

### [`v2.0.0`](https://github.com/pmndrs/valtio/releases/tag/v2.0.0)

[Compare Source](https://github.com/pmndrs/valtio/compare/v1.13.2...v2.0.0)

### 🎉🎉🎉 Valtio v2 is Here! 🍾🍾🍾

#### Small Breaking Changes

Most users won't even notice the differences, but we recommend checking out the [migration guide](https://github.com/pmndrs/valtio/blob/main/docs/guides/migrating-to-v2.mdx) to ensure a smooth transition.

#### New Emoji

💊 -> 🧙

Say hello to our new emoji! This change symbolizes the magic of Valtio.

#### Let’s Grow the Ecosystem Together!

We are entering a new era of Valtio development, and we need your help to grow the ecosystem. Whether you are an experienced contributor or just getting started, now is the perfect time to join us!

#### What's Changed

-   v2 by [@&#8203;dai-shi](https://github.com/dai-shi) in [https://github.com/pmndrs/valtio/pull/810](https://github.com/pmndrs/valtio/pull/810)
-   feat(core): expose internal states and functions by [@&#8203;dai-shi](https://github.com/dai-shi) in [https://github.com/pmndrs/valtio/pull/931](https://github.com/pmndrs/valtio/pull/931)
-   breaking(vanilla): do not handle promises by [@&#8203;dai-shi](https://github.com/dai-shi) in [https://github.com/pmndrs/valtio/pull/934](https://github.com/pmndrs/valtio/pull/934)

#### New Contributors

-   [@&#8203;AmirSa12](https://github.com/AmirSa12) made their first contribution in [https://github.com/pmndrs/valtio/pull/898](https://github.com/pmndrs/valtio/pull/898)
-   [@&#8203;TotallyBiased](https://github.com/TotallyBiased) made their first contribution in [https://github.com/pmndrs/valtio/pull/901](https://github.com/pmndrs/valtio/pull/901)
-   [@&#8203;L-Qun](https://github.com/L-Qun) made their first contribution in [https://github.com/pmndrs/valtio/pull/908](https://github.com/pmndrs/valtio/pull/908)
-   [@&#8203;himself65](https://github.com/himself65) made their first contribution in [https://github.com/pmndrs/valtio/pull/920](https://github.com/pmndrs/valtio/pull/920)
-   [@&#8203;kciter](https://github.com/kciter) made their first contribution in [https://github.com/pmndrs/valtio/pull/922](https://github.com/pmndrs/valtio/pull/922)

**Full Changelog**: pmndrs/valtio@v1.13.2...v2.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41Ni4wIiwidXBkYXRlZEluVmVyIjoiMzguNTYuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
@dai-shi dai-shi mentioned this pull request Aug 31, 2024
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