Major Changes
-
#3061
1918417Thanks
@github-actions! - Breaking:countis now a required prop.The machine no longer infers the number of inputs by querying the DOM. Pass
countexplicitly.pinInput.machine({ id: "pin", + count: 4, })Why
- Predictable — machine knows the count upfront without waiting for DOM to render
- Simpler internals — no DOM queries or mutation observers to detect input elements
- SSR-friendly — count is available before hydration
- Consistent — aligns with how carousel, rating, and pagination handle counts
Patch Changes
- Updated dependencies [
5820feb]:- @zag-js/anatomy@2.0.0-next.0
- @zag-js/types@2.0.0-next.0
- @zag-js/dom-query@2.0.0-next.0
- @zag-js/core@2.0.0-next.0
- @zag-js/utils@2.0.0-next.0