This repository has been archived by the owner on Jan 2, 2018. It is now read-only.
v1.0.0-alpha.5
A lot has changed in this release and while most of it is internal and will not affect most end users some things might break your project.
If you have an application that has been based on roc-template-web-app-react
this update will probably work without any changes!
This release document will be a bit more lightweight than what they will be when we go out of alpha. If you find any issues we encourage you to create an issue and we will address it as soon as possible.
Breaking
- Updated dependencies
- react
~0.14.0
→~15.0.1
Notable changes
Might be plug & play, depends on how you where using React. - react-fetcher
~0.2.0
→ redial~0.4.1
Notable changes
Need to change the decorator that is used to fetch data. - redux-simple-router
~0.0.8
→ react-router-redux~4.0.2
Notable changes
Quite a lot of new features and new actions from the middleware. - react-router
~1.0.0
→~2.3.0
Mostly plug & play, look at the changes for more information.
- react
- Config changes (Only affects you if you have defined custom ones for these ones)
dev.reduxDevtools.visibilityKey
anddev.reduxDevtools.positionKey
now requires you to add the modifier key.'H' => 'ctrl-h'
.runtime.clientBlocking
has been removed. Now configure this through the newruntime.fetch.client.blocking
.
Might be breaking but probably not
- Updated dependencies
- history
~1.17.0
→^2.1.0
This might be a breaking change for you if you have used history directly.
- history
Features
- Updated dependencies
- nunjucks
~2.1.0
→~2.4.2
Some more power when using custom templates. - react-helmet
~2.3.1
→~3.1.0
The breaking change should not affect you. - react-redux
~4.0.0
→~4.4.5
Nothing to note here. - redux
~3.0.2
→~3.4.0
Nothing to note here.
- nunjucks
- Now uses React Router Redial for managing data fetching, both when using Redux and not. Several ways exists through the settings to configure it and most of them where used before for the old ReduxContext. See settings for all possible options.
- Possible to configure what redial hooks runs on server and client and in what order using
runtime.fetch
.
- Possible to configure what redial hooks runs on server and client and in what order using
- Possible to gather additional template values, useful when using for instance React Side Effect
. Will look for the file that is defined onbuild.templateValues
and expect that it returns a function that in turns returns an object. See example here - Will use the Chrome extension for Redux Devtools if one is detected.
- More features from React Helmet. Support for
titleTemplate
,style
andhtmlAttributes
. Configurable through:runtime.htmlAttributes
runtime.style
Improvements
- Updated dependencies that are worth mentioning
- react-a11y
- redux-devtools
- redux-devtools-dock-monitor
- redux-devtools-log-monitor
- redux-logger
- Fixes a problem where the server status would be 500 instead of 404 when a page could not be found.
- A new version of Yellowbox has been released that will solve the problem with the "Dismiss All" button not working, this change is not specefic to this release but worth noticing.
- Improved examples
- Fixed some issues when running React A11Y together with Redux Devtools.
- Improved server side rendering when running in development. You should not get a mismatch now when using for instance Redux Devtools resulting in an easier time to test the server side rendering.
- Optimized imports from React Router that will result in smaller bundle sizes.