Skip to content

Remove "upgrade" barrel from angular2/angular2 bundle #5739

Closed

Description

@pkozlowski-opensource

(Even putting aside the fact that angular2/angular2 goes away as a namespace we need to agree on content of the corresponding bundle)

As of today angular2/angular2 exports the upgrade barrel but discussing with @IgorMinar it looks like it should go away from a corresponding System.register bundle. The only alternative for ngUpgrade users is to use UMD bundles (angular2.umd.js)

This would be a breaking change for people that tried to use ngUpgrade with SystemJS loader and the current System.register bundles.

cc:// @wardbell @teropa @PascalPrecht - from our previous chat it looked like you've been teaching upgrade with SystemJS loader and TypeScript and not with ES5. If this is the case please speak up :-)

Activity

  1. added this to the beta.0 milestone on Dec 9, 2015
  2. teropa commented on Dec 9, 2015

    @teropa
    Contributor

    Yes, this is the case. At least in the TypeScript edition we import upgrade from angular2/upgrade, after loading angular2.dev.js.

    How is this going to change now?

  3. pkozlowski-opensource commented on Dec 9, 2015

    @pkozlowski-opensource
    MemberAuthor

    @teropa so if I resolve this issue it would go away from the angular2.dev.js bundle. And since we don't publish upgrade as part of any other System.register bundle you pretty much wouldn't be able to load it through SystemJS. Unless we create a separate bundle for it, of course!

    I guess the main question here is this: do we want ngUpgrade users to use SystemJS + TypeScript? If so we need to either keep angular2/upgrade as part of the angular2.dev.js bundle (not big fan of this, as it adds bytes for everyone) or publish a separate upgrade.dev.js bundle.

  4. IgorMinar commented on Dec 9, 2015

    @IgorMinar
    Contributor

    Upgrade should be also published as a separate system register bundle. That
    should solve this
    On Wed, Dec 9, 2015 at 6:45 AM Tero Parviainen [email protected]
    wrote:

    Yes, this is the case. At least in the TypeScript edition we import
    upgrade from angular2/upgrade, after loading angular2.dev.js.

    How is this going to change now?

    —
    Reply to this email directly or view it on GitHub
    #5739 (comment).

  5. 0x-r4bbit commented on Dec 9, 2015

    @0x-r4bbit
    Contributor

    I'd vote for publishing a separate bundle

  6. teropa commented on Dec 9, 2015

    @teropa
    Contributor

    I like that idea too.

  7. pkozlowski-opensource commented on Dec 9, 2015

    @pkozlowski-opensource
    MemberAuthor

    OK, a separate bundle then! Will need to clean-up its dependencies first as from my quick look it seems like there are some imports from angular2/angular2 in there (cycles!)

  8. added a commit that references this issue on Dec 12, 2015
    705fe68
  9. pkozlowski-opensource commented on Dec 14, 2015

    @pkozlowski-opensource
    MemberAuthor

    This is covered in #5854

  10. angular-automatic-lock-bot commented on Sep 7, 2019

    @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.

  11. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions