Migration Guide ()
3.0.0
3.0.0 is a pretty big new major version with lots of (breaking) changes.
The rename
One of the biggest breaking changes is the renaming of some of our chameleon-theme-* packages. This is the full list of the theme packages that have been renamed.
- chameleon-theme-gva-summer-2020 -> chameleon-theme-gva
- chameleon-theme-hbvl-summer-2020 -> chameleon-theme-hbvl
- chameleon-theme-hmc-ge -> chameleon-theme-ge
- chameleon-theme-hmc-hd -> chameleon-theme-hd
- chameleon-theme-hmc-ld -> chameleon-theme-ld
- chameleon-theme-hmc-nhd -> chameleon-theme-nhd
- chameleon-theme-hmc-yc -> chameleon-theme-yc
- chameleon-theme-nb -> chameleon-theme-nb-legacy
- chameleon-theme-nb-winter-2021 -> chameleon-theme-nb
- chameleon-theme-swcom -> chameleon-theme-sw
- chameleon-theme-wort-de -> chameleon-theme-lw
- chameleon-theme-wort-en -> chameleon-theme-lt
- chameleon-theme-wort-pt -> chameleon-theme-co
- chameleon-theme-wort-tc -> chameleon-theme-tc
To migrate: rename these packages in your dependencies
chameleon-react updates
The breaking changes in our React components are:
AutoComplete
The already deprecated prop is now removed.
To migrate: use the prop instead
Choice
The prop has been renamed to .
To migrate: Update your implementations from to
IconButton
The already deprecated prop is now removed
To migrate: Update your implementations from to
Image
The already deprecated component is now removed
To migrate: Use the native HTML tag.
DatePicker
We fixed the prop on : it was only limiting the manual input on the input field, but edits made through the picker dialog were still possible. Setting the prop now creates a 100% read-only input. The previous behavior is moved to a new prop.
To migrate: Do nothing, unless you really want the old behavior. In that case, update your implementations from to
WideList
The prop no longer adds a icon by default to show that it is clickable.
To migrate: Update your implementations from to
The prop is removed and 2 new props are added: and .
To migrate: Update your implementations from to or
The prop is removed.
To migrate: Update your implementations from to
chameleon-swift updates
Starting with this release, we provide an implementation created specifically for Swift. The folder in each NPM package has been deleted.
To migrate: Use the dedicated chameleon-swift package.
2.0.0
We've completely overhauled our CSS architecture in and now use vanilla instead of . This also means we now use CSS Custom Properties instead of SCSS variables! (An SCSS output of all design tokens still remains available for you to use for the time being.) To be able to use it, you now have to include a little PostCSS configuration to make it work.
Components
- The component has been removed. Please import instead of using this component.
- The component has been removed. Please import instead of using this component.
1.13.0
Components
- The component has been removed. Please import instead of using this component.
- The component has been removed. Please import instead of using this component.
1.9.0
Components
Import @mediahuis/chameleon-reset instead of using this component. For more information see: chameleon-reset
1.8.0
Components
Autocomplete
1.7.0
Components
Illustration
Import the used illustration from . Replace name with as (the imported illustration).
1.5.0
Components
Icon
Import the used icon from . Replace name with as (the imported icon).
IconButton
Import the used icon from . Replace name with icon (the imported icon).
Button
Import the used icon from . Replace iconLeft and iconRight with the imported icon.
TextField, Select
Import the used icon from . Replace iconLeft with the imported icon.
AutoComplete, ListItem, WideListItem
Import the used icon from . Replace icon with the imported icon.
1.0.0
Components
AutoComplete
- Switched to a controlled component. This means that the prop is now required but can thus be cleared if needed.
- Removed prop as this is now controlled by .
Checkbox
- Removed in favor of .
Dialog
- Renamed to .
Fieldset
- Removed in favor of the native prop.
IconButton
- Renamed to .
ListItem
- Renamed to .
Loader
- Renamed to .
Radio
- Removed in favor of .
Stepper
- Renamed to .
- Renamed to .
Switch
- Removed in favor of .
TextField
- Renamed to .
Tokens
Most of these tokens were deprecated for a few minor versions already. This release, we're effectively removing them.