Skip to content

Angular 4, deprecated code not summarized  #15556

Closed

Description

@born2net

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior
So I am maintaining 4 very large projects in Angular.
There is no way for me to know, when I open each project, which code has been deprecated.
The only reported issue I see is when I run AOT, a message of <template> now needing to be <ng-template>
However, there are no mentions of any issues with things like Renderer now needing to ne Renderer2.

Expected behavior
I expect TypeScript and / or cli to report a summary of all deprecated API so we can fix'em before ng5 is out.

@angular/cli: 1.0.0
node: 6.9.5
os: win32 x64
@angular/animations: 4.0.0
@angular/common: 4.0.0
@angular/compiler: 4.0.0
@angular/core: 4.0.0
@angular/forms: 4.0.0
@angular/http: 4.0.0
@angular/platform-browser: 4.0.0
@angular/platform-browser-dynamic: 4.0.0
@angular/router: 4.0.0
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.0
@angular/language-service: 4.0.0
@ngtools/webpack: 1.3.0

Not sure if this issue should be opened against cli repo.

FYI, in WebStorm I will see cross outs on deprecated API, but again, I am dealing with thousands of files so I can't open each one and look for cross outs, see below:

capture

Angular 2 Kitchen sink: http://ng2.javascriptninja.io
and source@ https://github.com/born2net/Angular-kitchen-sink
Regards,

Sean

Activity

  1. DzmitryShylovich commented on Mar 28, 2017

    @DzmitryShylovich
    Contributor

    I expect TypeScript and / or cli

    this is angular repo :)

  2. born2net commented on Mar 28, 2017

    @born2net
    Author

    well it's up to Angular (or cli I am not sure) to report the issue, not related to TypeScript. But would be nice if it displayed in the TypeScript console same as Angular does with language service.

  3. wKoza commented on Mar 28, 2017

    @wKoza
    Contributor

    With Webstorm :

    Code | Run Inspection by Name... -- search for "deprecated" ...

  4. born2net commented on Mar 28, 2017

    @born2net
    Author

    that's AWESOME!!! tx
    Now I still think this issue should be resolved so I will keep open, but this sure helps!!!
    tx

    Sean

  5. born2net commented on Mar 28, 2017

    @born2net
    Author

    dep

  6. Toxicable commented on Mar 28, 2017

    @Toxicable

    This isn't an Issue with the Angular framework. If you want reports you need you development tools to report it Angular dosen't do this itself with it's current depreciation method. If anything, this should be in the CLI imo

  7. born2net commented on Mar 28, 2017

    @born2net
    Author

    I can move to cli sure, let's see what some of the ng dev think, and if need be will move sure,
    tx!

  8. IgorMinar commented on Mar 29, 2017

    @IgorMinar
    Contributor

    @mgechev and @alexeagle have some tslint checks in works that surface all the deprecation automatically while linting.

  9. added
    area: coreIssues related to the framework runtime
    area: packagingIssues related to Angular's creation of npm packages
    area: language-serviceIssues related to Angular's VS Code language service
    on Mar 29, 2017
  10. mgechev commented on Mar 29, 2017

    @mgechev
    Member

    There's a rule for automatic migration of <template>...</template> to <ng-template>...</ng-template> in the codelyzer's repo.

    Waiting for this PR to be merged in order to allow auto-fixes in external templates.

  11. born2net commented on Mar 29, 2017

    @born2net
    Author

    also renderer now renderer2 etc..

  12. alexeagle commented on Mar 29, 2017

    @alexeagle
    Contributor

    Deprecation linter is here: palantir/tslint#2395

  13. 8 remaining items

  14. modified the milestones: Backlog, needsTriage on May 10, 2019
  15. jenniferfell commented on May 10, 2019

    @jenniferfell
    Contributor

    Removed feature and fix labels, to put this back into triage queue for re-triage in context of latest release.

  16. added
    featureLabel used to distinguish feature request from other issues
    on Nov 12, 2019
  17. modified the milestones: needsTriage, Backlog on Nov 14, 2019
  18. pkozlowski-opensource commented on Mar 13, 2020

    @pkozlowski-opensource
    Member

    Duplicate of #11996

  19. angular-automatic-lock-bot commented on Apr 13, 2020

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

  20. locked and limited conversation to collaborators on Apr 13, 2020
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: coreIssues related to the framework runtimearea: packagingIssues related to Angular's creation of npm packagesfeatureLabel used to distinguish feature request from other issues

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions