Releases: artischockee/localiser
Releases · artischockee/localiser
React major 17
Breaking
- the library now supports React 17+
v3.0.1
Changes
- docs(types): change 'any' to 'unknown' throughout the code
- style: change 'useLocaliser' internal name
- chore: update react (and react-dom) versions
v3.0.1-0
Changes
- Rename
useLocaliser
to__internal__useLocaliser
(only internally) to prevent IDE's from suggesting an autocomplete import from the library's internal file
New API with own Context Provider
This release includes a whole new API to interact with the library.
Changes
- Replace old
init
function with newinitialize
; remove binding to existing app's context - Add
<LocaleProvider />
component as HOC for the application - Add
useLocaliser()
hook to be able to use localisation in React hook components
Other
- Update README.md, actualise code examples there