reakit-utils
Version:
Reakit utils
357 lines (124 loc) • 14.4 kB
Markdown
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.15.2](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.15.1...reakit-utils@0.15.2) (2021-09-06)
**Note:** Version bump only for package reakit-utils
## [0.15.1](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.15.0...reakit-utils@0.15.1) (2020-12-11)
### Bug Fixes
* Accept other option props together with the `state` prop ([#799](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/799)) ([a21bb2b](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/a21bb2b22780121125bbf3dfc6160ac29e1a0741)), closes [#798](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/798)
* Add React 17 to peer dependencies ([#807](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/807)) ([411b5aa](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/411b5aa8adf63f3149b40db6a499e65b58929b29)), closes [#776](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/776)
* Fix `Menu` scroll jump ([#801](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/801)) ([96f5dd5](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/96f5dd52704444862d16167db3c82fb89838e3ae)), closes [#751](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/751)
# [0.15.0](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.14.4...reakit-utils@0.15.0) (2020-11-12)
### Features
* Add `state` prop on all components ([#771](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/771)) ([4ed846d](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/4ed846d0a17e655d726572910b57b9ad3ebc235d)), closes [#744](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/744)
## [0.14.4](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.14.3...reakit-utils@0.14.4) (2020-09-22)
### Bug Fixes
* **reakit-utils:** Fix `getActiveElement` returning an empty object on IE 11 ([b7516c0](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/b7516c01cc923d8e179743a07eba74a083132229))
## [0.14.3](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.14.2...reakit-utils@0.14.3) (2020-08-24)
### Bug Fixes
* **reakit-utils:** Fix `canUseDOM` to support IE11 window object ([#720](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/720)) ([ca9d94a](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/ca9d94aae947e88aae872ce15d7bc82712e1056f))
* Fix SSR check ([#717](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/717)) ([1f09fc9](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/1f09fc9879ecd9516d514c7a848b7a62a1b93358))
## [0.14.2](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.14.1...reakit-utils@0.14.2) (2020-08-17)
### Bug Fixes
* Fix blur event on `Composite` for React 17 ([#711](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/711)) ([0ad76e6](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/0ad76e61560da5f25e99a01d9842bf53e18d7993))
## [0.14.1](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.14.0...reakit-utils@0.14.1) (2020-08-13)
**Note:** Version bump only for package reakit-utils
# [0.14.0](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.13.1...reakit-utils@0.14.0) (2020-08-06)
**Note:** Version bump only for package reakit-utils
## [0.13.1](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.13.0...reakit-utils@0.13.1) (2020-07-18)
### Bug Fixes
* Fix `Dialog` focus loss ([#682](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/682)) ([8ae0da7](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/8ae0da741ca45fed6bc1a7c25a3fc9aa60340b44)), closes [#677](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/677)
# [0.13.0](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.13.0-alpha.0...reakit-utils@0.13.0) (2020-06-17)
**Note:** Version bump only for package reakit-utils
## [0.12.1](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.12.0...reakit-utils@0.12.1) (2020-06-04)
### Features
* **reakit-utils:** Accept undefined arguments on `shallowEqual` ([c710c93](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/c710c93a5afe0aed1cae157d5766f36eb9730fba))
# [0.12.0](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.11.0...reakit-utils@0.12.0) (2020-04-29)
### Features
* **reakit-utils:** Add `shallowEqual` util ([c3e7a71](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/c3e7a717b182f1e0f9c734d2bc058787f091ce82))
# [0.11.0](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.10.0...reakit-utils@0.11.0) (2020-04-20)
### Bug Fixes
* **reakit-utils:** Fix `getClosestFocusable` iteration ([b72c623](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/b72c6235a60d5ac624e30ba3acd808b937b06002))
* Fix `Composite` on IE11 ([#609](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/609)) ([555b931](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/555b931de003a81a635ed1d980d67f9c62fb91e0))
### Features
* Replace `unstable_animated` by `animated` with improvements on the API ([#616](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/616)) ([16f843f](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/16f843f8dc4b97a552d629bd41cf20107e307a77)), closes [#528](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/528)
### BREAKING CHANGES
* **This should affect only people who were using the `unstable_animated` API**: `DisclosureContent` and its derivative components don't add `hidden` class anymore. You should now use `[data-enter]` and `[data-leave]` selectors. For more details, see [Animating](https://reakit.io/docs/disclosure/#animating).
# [0.10.0](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.9.0...reakit-utils@0.10.0) (2020-03-30)
### Bug Fixes
* Add ie11 ponyfill for Element.matches ([#555](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/555)) ([07488aa](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/07488aa1142ffba652c4582890f52bda9953966a)), closes [#556](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/556)
### Features
* **reakit-utils:** Add `flatten` util ([57ac450](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/57ac4503da4604bae5a18dc6d7e6644ec152daad))
* **reakit-utils:** Remove `warning` util ([ff98d43](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/ff98d43568790cc191fde1ee9b56a35311a3a10f))
### BREAKING CHANGES
* **reakit-utils:** `warning` has been removed from `reakit-utils`. Use the `reakit-warning` package instead.
# [0.9.0](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.8.0...reakit-utils@0.9.0) (2020-02-10)
### Features
* **reakit-utils:** Add `useForkRef` method ([8366545](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/8366545bf372cb8fb7c61bd18785c780c3794361))
### BREAKING CHANGES
* **reakit-utils:** `mergeRefs` has been replaced by `useForkRef`. It's now a custom hook, so it should follow the rules of hooks.
*Before*:
```jsx
import React from "react";
import { mergeRefs } from "reakit-utils";
const Component = React.forwardRef((props, ref) => {
const internalRef = React.useRef();
return <div ref={mergeRefs(internalRef, ref)} {...props} />;
});
```
*After*:
```jsx
import React from "react";
import { useForkRef } from "reakit-utils";
const Component = React.forwardRef((props, ref) => {
const internalRef = React.useRef();
return <div ref={useForkRef(internalRef, ref)} {...props} />;
});
```
# [0.8.0](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.7.3...reakit-utils@0.8.0) (2020-02-05)
### Features
* **reakit-utils:** Add `getActiveElement` method ([a252fcd](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/a252fcd))
* **reakit-utils:** Add `isButton` method ([8ff86fc](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/8ff86fc))
* **reakit-utils:** Add `isPlainObject` function ([faeb26f](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/faeb26f))
* **reakit-utils:** Remove `Omit` type ([24797e0](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/24797e0))
### BREAKING CHANGES
* **reakit-utils:** `Omit` has been removed from `reakit-utils/types`. [TypeScript now supports it natively](https://www.typescriptlang.org/docs/handbook/utility-types.html#omittk).
## [0.7.3](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.7.2...reakit-utils@0.7.3) (2019-12-18)
**Note:** Version bump only for package reakit-utils
## [0.7.2](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.7.1...reakit-utils@0.7.2) (2019-11-22)
### Bug Fixes
* **reakit-utils:** Support iframes ([b6b3340](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/b6b3340))
## [0.7.1](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.7.0...reakit-utils@0.7.1) (2019-11-14)
**Note:** Version bump only for package reakit-utils
# [0.7.0](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.6.7...reakit-utils@0.7.0) (2019-11-08)
**Note:** Version bump only for package reakit-utils
## [0.6.7](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.6.6...reakit-utils@0.6.7) (2019-11-02)
### Bug Fixes
* Fix `Tabbable` focus behavior on Mac Safari/Firefox ([#458](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/458)) ([8306241](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/8306241))
## [0.6.6](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.6.5...reakit-utils@0.6.6) (2019-10-12)
### Bug Fixes
* Add a `useIsomorphicEffect` hook to allow proper SSR rendering ([#461](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/461)) ([47434b2](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/47434b2)), closes [#438](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/438)
## [0.6.5](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.6.4...reakit-utils@0.6.5) (2019-09-25)
### Bug Fixes
* Replace IE11 incompatible DOM features ([#443](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/443)) ([8837557](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/8837557)), closes [#360](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/360)
### Features
* Show warnings on console whenever it gets called, not only once ([efaa95e](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/efaa95e))
## [0.6.4](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.6.3...reakit-utils@0.6.4) (2019-09-19)
### Bug Fixes
* Fix `Dialog` initial focus ([#433](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/433)) ([a0916c7](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/a0916c7))
* Fix `Dialog` with `tabIndex={0}` not being included in the tab order ([#426](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/426)) ([bfb1d05](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/bfb1d05))
## [0.6.3](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.6.2...reakit-utils@0.6.3) (2019-08-25)
### Features
* **reakit-utils:** Move `tabbable` internal module to `reakit-utils` package ([b84acce](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/b84acce))
* Support nested `Tabbable` and `Rover` components ([#417](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/417)) ([ee9623e](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/ee9623e)), closes [#376](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/376)
## [0.6.2](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/compare/reakit-utils@0.6.1...reakit-utils@0.6.2) (2019-06-27)
### Bug Fixes
* Fix missing React Hooks deps ([b08b62c](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/b08b62c))
## 0.6.1 (2019-06-23)
### Features
* Move helpers to separate package (reakit-utils, reakit-system) ([#380](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/issues/380)) ([354b874](https://github.com/reakit/reakit/tree/master/packages/reakit-utils/commit/354b874))
### BREAKING CHANGES
* Utils aren't exported by `reakit` or `reakit/utils` anymore. Import them from the `reakit-utils` package instead.
* System utils aren't exported by `reakit` or `reakit/system` anymore. Import them from the `reakit-system` package instead.
* `Provider` isn't exported by `reakit/utils` or `reakit/utils/Provider` anymore. Import it from `reakit` or `reakit/Provider` instead.
# Change Log