Releases: cozy/cozy-client
Releases · cozy/cozy-client
v47.6.0
v47.5.0
v47.4.0
v47.3.0
v47.2.0
v47.1.2
v47.1.1
v47.1.0
v47.0.0
47.0.0 (2024-05-17)
Features
- countries: COUNTRIES_ISO has ISO codes only (8a76d13)
- countries: The
getEmojiByCountry
return null (7ab15f2) - models: Move the "countries" file to a specific folder (ef87f93)
- Move
getEmojiByCountry
to country model (f25874e)
BREAKING CHANGES
- Please replace your import paths
Before:
import { getEmojiByCountry } from "cozy-client/dist/models/document/emojiCountry"
After:
import { getEmojiByCountry } from "cozy-client/dist/models/country/countries"
- countries: To manage the different translations
of country names, it's best to extract thename
attribute.
If you're using theCOUNTRIES_ISO
constant
to retrieve country names,
please use thegetAllCountryNames
function now. - models: Please replace your import paths
Before:
import { COUNTRIES_ISO, checkCountryCode } from "cozy-client/dist/models/countries"
After:
import { COUNTRIES_ISO, checkCountryCode } from "cozy-client/dist/models/country/countries"
For future needs (translation), it is preferable to move this file.