sku@10.0.0
Major Changes
-
Remove deprecated react-treat re-exports from
sku/treat(#471)BREAKING CHANGES
react-treatAPIs (useStyles,TreatProvider&useClassName) can no longer be imported fromsku/treatMIGRATION GUIDE
Update all imports of
useStyles,TreatProvider&useClassNametosku/react-treat.e.g.
-import { useStyles } from 'sku/treat'; +import { useStyles } from 'sku/react-treat';
-
Remove SSR react-hot-loader support (#472)
BREAKING CHANGE
Previously, sku featured partial setup for
react-hot-loaderv3 in SSR apps. It was not complete and still required tricky wiring code from the consumer app. Thereact-hot-loaderdependency andreact-hot-loader/patchclient entry has now been removed from sku.If you want to continue using
react-hot-loaderwith sku, you'll need to usedangerouslySetWebpackConfigto set the requiredreact-hot-loaderconfig. This approach is not recommended and will be very difficult to maintain.Note: We plan on looking into proper hot reload support (for static and SSR app) once the react fast-refresh project has a stable implementation for webpack.
-
Update minimum required node version to >=10.13.0 (#463)
BREAKING CHANGE
Node versions < 10.13.0 no longer supported.
-
Remove support for
.css.jsfiles (#470)BREAKING CHANGE
.css.js(css-in-js-loader) files are no longer supported.MIGRATION GUIDE
Any existing
.css.jsfiles will need to be removed. Ideally, replace these styles with Braid components. If that's not possible you can re-create the styles using css-modules or treat files.Note: It is our understanding that there is very limited use of this feature. If you have many
.css.jsfiles in your project please contact #sku-support for help.
Minor Changes
-
Update Prettier to v2 (#463)
MIGRATION GUIDE
Prettier update will require running
sku format.The
arrowParensoption is now set toalways.See Prettier 2.0.0 for more info on the changes.
-
Add import order linting (#477)
You can now optionally enable linting of import order by adding
orderImports: trueto your sku config. This rule supports auto-fix.WARNING
Changing import order can affect the behaviour of your application. After enabling
orderImports, please ensure your app still works and looks as expected.Also, any existing comments (e.g.
@ts-ignore) above imports will not be moved as part of the autofix. If your app has a lot of@ts-ignorecomments then please be very wary when applying this rule.
Patch Changes
-
Update dependencies (#440)
See PR for more info.
-
Update all babel deps to 7.9+ (#471)
-
Update min typescript version to 3.8.3 (#471)
-
Update eslint-config-seek to v6 (#440)
MIGRATION GUIDE
Run
sku lintto check if any new rules are breaking. Runningsku formatfirst will fix any auto-fixable rules. See the eslint-config-seek release notes for more info on changes. -
Improve error messages for incorrect client entries (#467)
-
Update
html-render-webpack-pluginto v2 (#474)