Skip to content

Update Angular dependencies to use ^ for semver #21925

Closed

Description

@dgp1130

🚀 Feature request

Command (mark with an x)

  • new
  • update

Description

Angular applications are generated via ng new to include a package.json with ~ characters, meaning they only automatically include patch updates to dependencies, not feature updates. This was intended to reduce the risk of breakage due to other dependencies accidentally shipping breaking changes in minor versions (which has happened several times in the past). Downside of this is that Angular deps are not updated as frequently as they could be and we have our own CI systems and integration testing to make sure that we don't introduce breaking changes into a minor versions. There's no need to apply the same requirement to Angular when we're able to more consistently and regularly test each version.

Describe the solution you'd like

New applications should be generated with ^ for Angular dependencies and existing applications should be migrated for consistency. If an existing app pins an explicit version (such as "@angular/core": "12.2.4"), then we should update that as normal but leave the semver string bare so as not to change user's intent.

Should be an easy change, though we probably just missed v13. This definitely requires a major version, so the soonest we could do this is v14.

Activity

  1. added
    feature
    freq1: low
    on Oct 11, 2021
  2. modified the milestone: Backlog on Oct 11, 2021
  3. added a commit that references this issue on Jan 27, 2022
    7e7de68
  4. angular-automatic-lock-bot commented on Feb 27, 2022

    @angular-automatic-lock-bot

    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.

  5. locked and limited conversation to collaborators on Feb 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: @schematics/angularfeaturefreq1: lowworkaround1: obvious

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions