Skip to content

Migration guide

AleksiP edited this page May 25, 2022 · 5 revisions

Migration guide

Here is list of breaking changes for new versions.

Moving to v1.4.0

Breaking changes Material UI got big changes and they've gotten rid of enzyme in favor of react testing library. This means many of the jest tests have become deprecated and we've updated jest tests to use react testing library. This means if you have some additional tests you probably should move to use react testing library.

Also many things have changed in Material UI v5 if you have other problems please check https://mui.com/material-ui/guides/migration-v4/

Moving to v1.3.0

Breaking changes

  • Link for route planner has been changed to dynamic based on municipality. For this reason we've separated HSL route planner from generic route planner. Environment variable REITTIOPAS_URL still points to generic version and we've added new url variable for HSL route planner named HSL_ROUTE_GUIDE_URL and new variable HSL_ROUTE_GUIDE_CITIES which defines in which municipalities HSL_ROUTE_GUIDE_URL should be used for. Translation keys have also been changed to reflect these changes unit.route.extra.routeGuide is now text for REITTIOPAS_URL and unit.route.extra.hslRouteGuide for HSL_ROUTE_GUIDE_URL
    • If you previously used REITTIOPAS_URL to set route guide link and unit.route.extra.hsl to change the link text then you need to change unit.route.extra.hsl to unit.route.extra.routeGuide
Clone this wiki locally