Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

jaysoo
Copy link
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
Copy link

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

@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
@@ -1,6 +1,9 @@
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
Collaborator

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
6 checks passed
@jaysoo jaysoo deleted the feat/todo-v20-webpack-next-react branch October 2, 2024 19:29
Copy link

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