angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Bring back `ng update --all` (includes: workaround with `jq`)

Open SamuelMarks opened this issue 3 years ago • 4 comments

🚀 Feature request

Command (mark with an x)

  • [x] update

Description

$ ng update --all

        '--all' functionality has been removed as updating multiple packages at once is not recommended.
        To update packages which don’t provide 'ng update' capabilities in your workspace 'package.json' use 'npm update' instead.
        Run the package manager update command after updating packages which provide 'ng update' capabilities.

Describe the solution you'd like

Bring back --all… maybe with a -f/--force so the warning can remain.

Describe alternatives you've considered

ng update --force $(jq -r '.dependencies * .devDependencies | keys | map(select(startswith("@angular"))) | @tsv' package.json)

(then run: ncu -ux '/typescript|rxjs/')

SamuelMarks avatar Jun 01 '22 15:06 SamuelMarks

Hi @SamuelMarks,

Thanks for this request.

In many cases we found that the --all option didn't necessary provide the best DX and in many most cases it resulted in broken behaviour.

This option also contradicted our recommendation, which is to avoid updating multiple packages at once especially across major versions.

For the time being this is not something that we are actively looking in bring back. We can re-consider this in the future if there is a greater interest from the community as such I am going to mark this as a feature request.

alan-agius4 avatar Jun 02 '22 09:06 alan-agius4

This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.

You can find more details about the feature request process in our documentation.

angular-robot[bot] avatar Jun 02 '22 13:06 angular-robot[bot]

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

angular-robot[bot] avatar Jul 12 '22 13:07 angular-robot[bot]

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.

angular-robot[bot] avatar Aug 01 '22 13:08 angular-robot[bot]

Hi @SamuelMarks,

Thanks for this feature request, however this is currently out of scope. Let's re-consider this in the future if there is a larger demand for this.

alan-agius4 avatar Oct 07 '22 12:10 alan-agius4

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.