Skip to content

feat: Upgrade crb4#2

Merged
fbeavan-zengenti merged 8 commits into
masterfrom
upgrade-crb4
Apr 29, 2026
Merged

feat: Upgrade crb4#2
fbeavan-zengenti merged 8 commits into
masterfrom
upgrade-crb4

Conversation

@nflatley-zengenti
Copy link
Copy Markdown
Member

TODO: review changes in src/app/components/relatedLinks/RelatedLinks.container.tsx
it looks like claude has just removed the functionality, is this correct and not used?

nflatley-zengenti and others added 4 commits April 24, 2026 14:38
Completes full CRB v3→v4 migration across all implementation units:

U1: Upgrade dependencies
- @zengenti/contensis-react-base ^3→^4, styled-components ^5→^6
- @types/react ^17→^18, react-refresh, @pmmmwh/react-refresh-webpack-plugin
- Remove deprecated: @types/react-helmet, @types/redux-immutable,
  @types/react-router-dom, @types/react-loadable, @types/styled-components
- Add skipLibCheck + resolutions to handle nested @types/react conflicts
- .nvmrc: 18→22

U2: React Hot Loader → React Fast Refresh
- Remove react-hot-loader/babel from babel.config.js
- Remove hot(module)(AppRoot) wrapper from App.tsx
- Add ReactRefreshWebpackPlugin to webpack.config.dev.js

U3: Remove React Router v5 exact prop from StaticRoutes

U4: Remove getIn from selectors.js (replaced with optional chaining)

U5: Update withEvents.ts — return {searchOptions} from onRouteLoaded
instead of yield call(setRouteFilters). Params now provided by framework.

U6: Replace react-helmet with @zengenti/contensis-react-base/util Helmet

U7: Cleanup
- Delete legacy loadable.ts (react-loadable wrapper, unused)
- Update webpack server target: node18→node22
- Remove setNotFound/SET_ROUTE_LOADING/CALL_HISTORY_METHOD etc from
  core redux re-exports (removed in CRB v4)
- Drop enableES5 from immer (removed in Immer v9)

SC v6 compatibility: update ~18 styled component definitions to use
styled.div<Props> generic instead of inline type annotations in template
literals. Fix useRef<T>(null) for React 18 strict MutableRefObject types.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@fbeavan-zengenti fbeavan-zengenti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :)

@fbeavan-zengenti fbeavan-zengenti merged commit a0e5866 into master Apr 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants