Releases: dabapps/roe
Specify cookie for entire subdomain rather than specific subpath
Set optional max age for cookie banner
- Set optional
maxAge
for cookie banner - Default to 1 year
- Previously it defaulted to
session
Includes: #353
React 16.8-17 support (and huge re-write)
v0.13.0
a.k.a. "with a little bit of luck"
With a little bit of luck this should "just work" with any projects already using React 16.8
and up.
BREAKING CHANGES
- Dropped support for react
< 16.8
- All components are now function components
- All components that have state now use hooks
- Upgrade typescript (now only officially supports TS
3.9
and up, but may work with slightly older versions)
As a result of these breaking changes any tests that rely on Roe's component state may need to be updated to use renderer.act
Changes
- Add support for react 17
- Upgrade all dev dependencies
- Minor type improvements
- Components are now only exported as
default
internally - Explicit list of types the
component
prop will accept (if you are using one that is not defined in this release, please open a PR to add it and publish a new patch version)
Alpha: React 16.8-17 support
Alpha: React 16.8-17 support
Was unable to be published due to npm errors
Checkbox border radius variable
- Added
@checkbox-border-radius
less variable #346
Footer and NavBar ResizeObserver
Instead of listening for window resizes we now observe the elements themselves: #345
This may require a MutationObserver
polyfill if you need to support older browsers e.g. IE 10.
If you don't already polyfill Map
and requestAnimationFrame
(which are required by React) you will also need polyfills for them.
Export component types (and not store state)
This change should be backward compatible, but will not longer allow access to the internal StoreState
type.
Upgrade to react-transition-group v2
Breaking change!
Roe has a peer dependency on react-transition-group
and so any projects using Roe will also need to upgrade react-transition-group
to version 2.
The new version has a different set of components, renders a different wrapper element (div
, not span
), and has slightly different transition class names (-exit
, not leave
, and -[type]-done
as a final class).
See #342 for examples of upgrading.