- 
                Notifications
    
You must be signed in to change notification settings  - Fork 13.1k
 
feat(51000) - Flag Deprecation Plan #51424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    Changes from 11 commits
      Commits
    
    
            Show all changes
          
          
            16 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      e4ecc3f
              
                feat(51000): add ignoreDeprecations option
              
              
                a-tarasyuk 961d473
              
                Merge branch 'main' of https://github.com/microsoft/TypeScript into f…
              
              
                a-tarasyuk d8f37a0
              
                Merge branch 'main' of https://github.com/microsoft/TypeScript into f…
              
              
                a-tarasyuk 8ca255a
              
                Merge branch 'main' of https://github.com/microsoft/TypeScript into f…
              
              
                a-tarasyuk ec71ffb
              
                use constants of versions
              
              
                a-tarasyuk abb514e
              
                Merge branch 'main' of https://github.com/microsoft/TypeScript into f…
              
              
                a-tarasyuk d6e9c2e
              
                change the ignoreDeprecations type to allow only one value - '5.0'
              
              
                a-tarasyuk 7cd82f2
              
                add tests
              
              
                a-tarasyuk 5522627
              
                Merge branch 'main' of https://github.com/microsoft/TypeScript into f…
              
              
                a-tarasyuk 9ca08d7
              
                update baseline
              
              
                a-tarasyuk 8efc7de
              
                Merge branch 'main' of https://github.com/microsoft/TypeScript into f…
              
              
                a-tarasyuk 755ae6a
              
                add typeScriptVersion to CreateProgramOptions
              
              
                a-tarasyuk efea552
              
                Merge branch 'main' of https://github.com/microsoft/TypeScript into f…
              
              
                a-tarasyuk 1f5b6e8
              
                update baseline
              
              
                a-tarasyuk be592c6
              
                change diagnostic message
              
              
                a-tarasyuk 5b5f0f8
              
                Merge branch 'main' of https://github.com/microsoft/TypeScript into f…
              
              
                a-tarasyuk File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
          The table of contents is too big for display.
        
      Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. | ||
| 
     | 
||
| 
     | 
||
| !!! error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. | ||
| ==== tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck2.ts (0 errors) ==== | ||
| for (var v of [true]) { } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. | ||
| 
     | 
||
| 
     | 
||
| !!! error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. | ||
| ==== tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck6.ts (0 errors) ==== | ||
| var union: string[] | number[]; | ||
| for (var v of union) { } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
        
          
          
            2 changes: 2 additions & 0 deletions
          
          2 
        
  tests/baselines/reference/accessorsNotAllowedInES3.errors.txt
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
        
          
          
            2 changes: 2 additions & 0 deletions
          
          2 
        
  tests/baselines/reference/alwaysStrictNoImplicitUseStrict.errors.txt
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
        
          
          
            19 changes: 19 additions & 0 deletions
          
          19 
        
  tests/baselines/reference/ambientAccessors(target=es3).errors.txt
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. | ||
| 
     | 
||
| 
     | 
||
| !!! error TS5096: Flag 'ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. | ||
| ==== tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/ambientAccessors.ts (0 errors) ==== | ||
| // ok to use accessors in ambient class in ES3 | ||
| declare class C { | ||
| static get a(): string; | ||
| static set a(value: string); | ||
| 
     | 
||
| private static get b(): string; | ||
| private static set b(foo: string); | ||
| 
     | 
||
| get x(): string; | ||
| set x(value: string); | ||
| 
     | 
||
| private get y(): string; | ||
| private set y(foo: string); | ||
| } | 
        
          
          
            24 changes: 24 additions & 0 deletions
          
          24 
        
  tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.errors.txt
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. | ||
| 
     | 
||
| 
     | 
||
| !!! error TS5096: Flag 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. | ||
| ==== tests/cases/compiler/Class.ts (0 errors) ==== | ||
| import { Configurable } from "./Configurable" | ||
| 
     | 
||
| export class HiddenClass {} | ||
| 
     | 
||
| export class ActualClass extends Configurable(HiddenClass) {} | ||
| ==== tests/cases/compiler/Configurable.ts (0 errors) ==== | ||
| export type Constructor<T> = { | ||
| new(...args: any[]): T; | ||
| } | ||
| export function Configurable<T extends Constructor<{}>>(base: T): T { | ||
| return class extends base { | ||
| 
     | 
||
| constructor(...args: any[]) { | ||
| super(...args); | ||
| } | ||
| 
     | 
||
| }; | ||
| } | ||
| 
     | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.