Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Feb 13, 2024

The copy-webpack-plugin@12 package has a dependency on the globby@14 package. The recently released globby@14.0.1 uses the merge-streams@2.1.0 package which requires a minimum Node.js version higher than the officially supported 18.13 for the Angular CLI. Due to both globby and merge-streams being transitive dependencies in end-user projects, the Angular CLI cannot directly control the package versions. However, copy-webpack-plugin@11 uses globby@13 which is not affected by the Node.js version problem. To workaround the Node.js compatibility problem, copy-webpack-plugin has been downgraded to version 11.0.0 which is the latest version in the 11 major for the package. The copy-webpack-plugin is only used with the Webpack-based builders when in watch mode. From a review of the commit history between 11.0.0 and 12.0.2 (latest at the time of this commit), it appears the only notable changes are several performance improvements and the major version update of globby.

(cherry picked from commit e75aa9b)

…workaround Node.js support issue

The `copy-webpack-plugin@12` package has a dependency on the `globby@14` package. The recently released
`globby@14.0.1` uses the `merge-streams@2.1.0` package which requires a minimum Node.js version higher
than the officially supported 18.13 for the Angular CLI. Due to both `globby` and `merge-streams` being
transitive dependencies in end-user projects, the Angular CLI cannot directly control the package versions.
However, `copy-webpack-plugin@11` uses `globby@13` which is not affected by the Node.js version problem.
To workaround the Node.js compatibility problem, `copy-webpack-plugin` has been downgraded to version 11.0.0
which is the latest version in the 11 major for the package. The `copy-webpack-plugin` is only used with the
Webpack-based builders when in watch mode. From a review of the commit history between 11.0.0 and 12.0.2 (latest
at the time of this commit), it appears the only notable changes are several performance improvements and the
major version update of `globby`.

(cherry picked from commit e75aa9b)
@clydin clydin added the target: rc This PR is targeted for the next release-candidate label Feb 13, 2024
@clydin clydin requested a review from alan-agius4 February 13, 2024 14:47
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Feb 13, 2024
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Feb 13, 2024
@alan-agius4 alan-agius4 merged commit d493609 into angular:17.2.x Feb 14, 2024
@clydin clydin deleted the webpack/copy-plugin-17.2.x branch February 14, 2024 12:04
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants