This repository has been archived by the owner on Sep 6, 2024. It is now read-only.
cermakjiri
released this
11 Jan 16:14
·
14 commits
to master
since this release
Changelog
π AckeeCZ/create-react-app
has been upgraded to facebook/[email protected]
, see changelog (π₯ for breaking changes at least).
@ackee/[email protected]
@ackee/[email protected]
- 0d95eb5 β¬οΈ Upgrade template dependencies
- 2f4a199 π§ Update tsconfig based on react-scripts recommendation
- 8588f75 β¬οΈ Upgrade to CRA v5.0.0
- f3c53ed β¨ Support css extraction in cra-template-typescript
- d24ba96 β¨ Support loading styles to a specific placeholder in
- 713bec5 π Standardize name convention of Fela style files to .rules.ts
- 86a2258 π¦ Add fela plugins
- 3d9f54e β»οΈ Import isServerEnv as named import in store.ts
- d22163f π·οΈ Add useAppSelector and useAppDispatch hooks
- c4751f7 β»οΈ Use Redux toolkit configure store
- e2ec903 β»οΈ Simplify structure of localizations components
- 37312a1 β¨ new module optional for antd
- a242908 β»οΈ Use Authenticated from petrus instead of HOC
- ff200e2 β Remove unused @ackee/lucas
- e2e7408 β¨ Add service-worker module
- bf777ed β¨ Add network module
- c150d2e Add REACT_APP_IS_LOCALHOST env var
- e5b2893 π₯ Don't include @sentry/tracing by default due to bundle size
- e03c7a9 π¨ Fix undefined children prop
- 27b5c25 β @ackee/chris (unused)
- 8036f2e π·οΈ Fix TS type in ErrorBoundary
- f9edbff β»οΈ Refactor sentry implementation in skeleton
- fb4a7ea β¬οΈ Upgrade to antd 4
- 5dc7bf1 β»οΈ Use loglevel instead of console
- 683c3c7 β¬οΈ Upgrade react-final-form-redux-submit package
- f13dd11 β¨ Add conditional form module
- 2cbdd65 β¨ Replace redux-form and mateus with final-form
- ba18684 β¨ Add form module
- e9b456d β»οΈ Use sentry/react error boundary
- 8e7cba7 β»οΈ Use localizations components over HOC
- b5eb8d5 β»οΈ Replace withErrorBoundary hoc with ErrorBoundary component
@ackee/[email protected]
- 8588f75 β¬οΈ Upgrade to CRA v5.0.0
- ef3a0c0 β»οΈ Fix & refactor optional modules
- 3177c85 β Remove redundant webworker-plugin
- 0110e8b π§ update less-loader options
- 2e7ebb8 β¨ use @ackee/browserslist-config
Migration guide from 2.x
to 3.0.0
- Version
2.*.*
was usingfela
renderStatic
to render CSS files. For this purpose we needed to import CSS to JS as a string and pass it torenderStatic
. The solutions caused "blinking" because React had to renderer before the styles were actually processed by a browser. The styles even enlarged the size of Javascript files. - Version
3.0.0
returned back to the original idea from official CRA where imported CSS files are loaded bystyle-loader
in dev and extracted to css files viaMiniCSSExtractPlugin
in production.
@ackee/[email protected]
π₯ Breaking changes
- Replace
import css from './some-css-file.css';
withimport './some-css-file.css';
. We normally do it insrc/index.ts
. You can do it in components which need a particular style to utilize lazy-loading.- Local variables from
*.less
files can't be used in Javascript anymore. - The migration has been already done in
cra-template-typescript
in #96 PR so you can get inspired there.
- Local variables from
- Possible breaking changes might appear in
config/transformWebpackConfig.js
your project. It must be compatible withwebpack@5
. - If you have installed
@ackee/[email protected]
, upgrade to3.1.7
or higher. This version doesn't include@ackee/eslint-config
amongdependencies
, thus it won't anymore break resolving of eslint config and its plugins in project. - If you have installed
@ackee/petrus
, upgrade to5.2.4
or higher. The below versions includes the unwated version of@ackee/redux-utils
. - Upgrade
NODE_BASE_IMAGE
in.gitlab-ci.yml
to v14. - webpack@5 has updated syntax for creating web worker:
- const worker = new Worker('./foo.worker.js', { type: 'module' }); + const worker = new Worker(new URL('./foo.worker.js', import.meta.url));
webpack-bundle-analyzer
has been removed, call it withnpx
instead:- "analyze-bundle": "yarn build:production --stats && webpack-bundle-analyzer build/bundle-stats.json", + "analyze-bundle": "yarn build:production --stats && npx webpack-bundle-analyzer build/bundle-stats.json",
π§βπ» Recommended actions on your side
- Now you can enable
FAST_REFRESH
in.env
file. - Consider removing
resolutions
and check if the audit is now passing.