Skip to content

feat(misc)!: handle v20 deprecations in plugins#28222

Merged
jaysoo merged 1 commit intomasterfrom
feat/todo-v20-webpack-next-react
Oct 2, 2024
Merged

feat(misc)!: handle v20 deprecations in plugins#28222
jaysoo merged 1 commit intomasterfrom
feat/todo-v20-webpack-next-react

Conversation

@jaysoo
Copy link
Copy Markdown
Member

@jaysoo jaysoo commented Oct 1, 2024

This PR removes these from v20 since they were deprecated and slated for removal:

  • executeWebpackDevServerBuilder export from @nx/angular/executors, users should use executeDevServerBuilder
  • withStylus util from @nx/next/plugins/with-stylus since it was deprecated in v17 and has just throw an error that users need to use SASS with Next.js

The getRollupOptions function from @nx/react/plugins/bundle-rollup has been deprecated as mention previously and slated for removal in v22. New users are using inferred targets from Rollup, and existing projects using this module should run nx g @nx/rollup:convert-to-inferred or manually update rollup config to use withNx function.

Also, bumped some deprecation for later in v21:

  • Remove inline builds from tsc/swc
  • Changes to SVGR to align with Webpack v5 (e.g. import ReactComponent from './img.svg?svgr')
  • Remove isolatedConfig from Webpack executor -- requires a migration that extracts to a standard webpack config just in case (different from the original one that extracts to withNx)

The ESLint TODOs were rescoped to TODO(eslint) and we'll look at it in further flat config work rather than tying it to an Nx release.

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

@jaysoo jaysoo requested review from a team as code owners October 1, 2024 13:23
@jaysoo jaysoo requested review from JamesHenry and mandarini October 1, 2024 13:23
@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev 🛑 Canceled (Inspect) Oct 2, 2024 6:57pm

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Oct 1, 2024

@jaysoo jaysoo force-pushed the feat/todo-v20-webpack-next-react branch 2 times, most recently from 1d65888 to 961aada Compare October 2, 2024 18:29
@jaysoo jaysoo requested review from a team as code owners October 2, 2024 18:29
@jaysoo jaysoo requested a review from Coly010 October 2, 2024 18:29
@jaysoo jaysoo changed the title chore(repo): bump some TODO(v20) to v21 feat(misc): handle v20 deprecations in plugins Oct 2, 2024
@jaysoo jaysoo force-pushed the feat/todo-v20-webpack-next-react branch from 961aada to 018ab9d Compare October 2, 2024 18:40
@jaysoo jaysoo force-pushed the feat/todo-v20-webpack-next-react branch from 018ab9d to 8a5701a Compare October 2, 2024 18:41
@jaysoo jaysoo changed the title feat(misc): handle v20 deprecations in plugins feat(misc)! handle v20 deprecations in plugins Oct 2, 2024
@jaysoo jaysoo changed the title feat(misc)! handle v20 deprecations in plugins feat(misc)!: handle v20 deprecations in plugins Oct 2, 2024
import * as rollup from 'rollup';

// TODO(v20): This should be deprecated and removed in v22.
// TODO(v22): Remove this in Nx 22 and migrate to explicit rollup.config.js files.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why v22? Not v21?

@jaysoo jaysoo merged commit 81892b5 into master Oct 2, 2024
@jaysoo jaysoo deleted the feat/todo-v20-webpack-next-react branch October 2, 2024 19:29
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 8, 2024

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants