Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
sku@10.0.0
Major Changes
Remove deprecated react-treat re-exports from
sku/treat
(#471)BREAKING CHANGES
react-treat
APIs (useStyles
,TreatProvider
&useClassName
) can no longer be imported fromsku/treat
MIGRATION GUIDE
Update all imports of
useStyles
,TreatProvider
&useClassName
tosku/react-treat
.e.g.
Remove SSR react-hot-loader support (#472)
BREAKING CHANGE
Previously, sku featured partial setup for
react-hot-loader
v3 in SSR apps. It was not complete and still required tricky wiring code from the consumer app. Thereact-hot-loader
dependency andreact-hot-loader/patch
client entry has now been removed from sku.If you want to continue using
react-hot-loader
with sku, you'll need to usedangerouslySetWebpackConfig
to set the requiredreact-hot-loader
config. 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.js
files (#470)BREAKING CHANGE
.css.js
(css-in-js-loader) files are no longer supported.MIGRATION GUIDE
Any existing
.css.js
files 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.js
files 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
arrowParens
option 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: true
to 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-ignore
comments then please be very wary when applying this rule.Update to Jest 25 (#468)
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 lint
to check if any new rules are breaking. Runningsku format
first 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-plugin
to v2 (#474)