Releases: birdofpreyru/react-utils
Releases · birdofpreyru/react-utils
v1.39.0
Breaking Changes
Other Updates
- [#366] Adds optional
testId
prop to the Input component, to facilitate its look-up by Testing Library's getByTestId() method. - Adds mockAxios() method to Jest Utils (it helps to mock out axios functionality in tests).
- Update of dependencies.
v1.38.1
- Adds
testId
props to Button, Dropdown, and Modal components, to facilitate their testing using testing-library. - Deprecates
containerStyle
property of Modal container, replacing it bystyle
prop. - Adds
.snapshot()
method to the result of mount() method of Jest Utils. - Update of dependencies.
v1.38.0
Breaking Changes
- Dropdown — Minor improvements of the default theme — double-check theming of dependent dropdowns in host apps.
- The text color of options in open dropdowns is now
black
(it used to beinherited
). invalid
theme key added, it is applied to the underlying<select>
element when the displayed value does not match any of provided options. By default such invalid values are displayed withgray
color.- [#355] Dropdown is now
flex
by default, i.e. it stretches to fill flex-box containers.
- The text color of options in open dropdowns is now
Other Updates
- Update of dependencies.
v1.37.0
- Update of dependencies, in particular @dr.pogodin/react-global-state v0.14.2 ⇒ v0.15.0, which improves deduction of types of values in the global state, and thus may require updates in the dependent codebases.
v1.36.2
- Corrects
package.json
exports declarations. - Update of dependencies.
v1.36.1
- [#362] Exports base config for TypeScript compiler.
v1.36.0
Breaking Changes
- [#357] Drops
propTypes
checks (because they are removed in React v19); and thus removes PT export (prop-types
alias) from the library. - [#359] Improves
OptionsT
type, to not be read-only (see CustomDropdown, Dropdown, and Switch components). - [#360] Adds noUncheckedIndexedAccess flag to TypeScript configs (and also creates a base TypeScript config in the library package), which strengthens TS rules, and requires corresponding updates in the dependent code.
Other Updates
- [#345] Updates snapshot() method of Jest Utils, to allow optionally waiting for async dependencies of a component render prior to capturing the snapshot.
- Update of dependencies.
v1.35.5
- Hotfix: Updates in the previous release broke the build in environments similar to the documentation setup.
v1.35.4
v1.35.3
- Hotfix: Adds
client.setInj()
method to support code-splitting in server-less app setup. For details, see a note in this documentation page.