Skip to content

Commit

Permalink
Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 24, 2023
1 parent d739e57 commit a4f3d7c
Show file tree
Hide file tree
Showing 11 changed files with 64 additions and 52 deletions.
17 changes: 0 additions & 17 deletions .changeset/2714-clean-coins-play-1.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/2714-clean-coins-play-2.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/2717-large-shrimps-cross-1.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/2717-large-shrimps-cross-2.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/2717-large-shrimps-cross-3.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/2737-chilly-rivers-argue.md

This file was deleted.

6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions packages/ariakit-react-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# @ariakit/react-core

## 0.3.0

### Minor Changes

- [`#2714`](https://github.com/ariakit/ariakit/pull/2714) Added support for a dynamic `store` prop on component stores.

This is similar to the `store` prop on components, keeping both stores in sync. Now, component store hooks can support modifying the value of the `store` prop after the initial render. For instance:

```js
// props.store can change between renders now
const checkbox = useCheckboxStore({ store: props.store });
```

When the `store` prop changes, the object returned from the store hook will update as well. Consequently, effects and hooks that rely on the store will re-run.

While it's unlikely, this **could represent a breaking change** if you're depending on the `store` prop in component stores to only acknowledge the first value passed to it.

- [`#2714`](https://github.com/ariakit/ariakit/pull/2714) **BREAKING**: The `useStore` function exported by `@ariakit/react-core/utils/store` has been updated.

- [`#2717`](https://github.com/ariakit/ariakit/pull/2717) The `children` prop as a function has been deprecated on all components. Use the [`render`](https://ariakit.org/guide/composition#explicit-render-function) prop instead.

- [`#2717`](https://github.com/ariakit/ariakit/pull/2717) The `as` prop has been deprecated on all components. Use the [`render`](https://ariakit.org/guide/composition) prop instead.

- [`#2717`](https://github.com/ariakit/ariakit/pull/2717) The `backdropProps` prop has been deprecated on `Dialog` and derived components. Use the [`backdrop`](https://ariakit.org/reference/dialog#backdrop) prop instead.

### Patch Changes

- [`#2737`](https://github.com/ariakit/ariakit/pull/2737) Fixed controlled component stores rendering with a stale state.

## 0.2.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ariakit-react-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ariakit/react-core",
"version": "0.2.17",
"version": "0.3.0",
"description": "Ariakit React core",
"sideEffects": false,
"license": "MIT",
Expand Down
29 changes: 29 additions & 0 deletions packages/ariakit-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# @ariakit/react

## 0.3.0

### Minor Changes

- [`#2714`](https://github.com/ariakit/ariakit/pull/2714) Added support for a dynamic `store` prop on component stores.

This is similar to the `store` prop on components, keeping both stores in sync. Now, component store hooks can support modifying the value of the `store` prop after the initial render. For instance:

```js
// props.store can change between renders now
const checkbox = useCheckboxStore({ store: props.store });
```

When the `store` prop changes, the object returned from the store hook will update as well. Consequently, effects and hooks that rely on the store will re-run.

While it's unlikely, this **could represent a breaking change** if you're depending on the `store` prop in component stores to only acknowledge the first value passed to it.

- [`#2717`](https://github.com/ariakit/ariakit/pull/2717) The `children` prop as a function has been deprecated on all components. Use the [`render`](https://ariakit.org/guide/composition#explicit-render-function) prop instead.

- [`#2717`](https://github.com/ariakit/ariakit/pull/2717) The `as` prop has been deprecated on all components. Use the [`render`](https://ariakit.org/guide/composition) prop instead.

- [`#2717`](https://github.com/ariakit/ariakit/pull/2717) The `backdropProps` prop has been deprecated on `Dialog` and derived components. Use the [`backdrop`](https://ariakit.org/reference/dialog#backdrop) prop instead.

### Patch Changes

- [`#2737`](https://github.com/ariakit/ariakit/pull/2737) Fixed controlled component stores rendering with a stale state.

- Updated dependencies: `@ariakit/react-core@0.3.0`.

## 0.2.17

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/ariakit-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ariakit/react",
"version": "0.2.17",
"version": "0.3.0",
"description": "Toolkit for building accessible web apps with React",
"sideEffects": false,
"license": "MIT",
Expand Down Expand Up @@ -37,7 +37,7 @@
"components"
],
"dependencies": {
"@ariakit/react-core": "0.2.17"
"@ariakit/react-core": "0.3.0"
},
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0",
Expand Down

0 comments on commit a4f3d7c

Please sign in to comment.