Sitelet https://web.archive.org/web/20210518110736/https://github.com/microsoft/TypeScript/commits/master
Skip to content
Permalink
master

Commits on May 18, 2021

  1. skipParenthesesUp() is exactly the same as `walkUpParenthesizedExpr…

    …essions()`
    
    Remove the former since the latter is based on the generel `walkUp()`.
    elibarzilay committed May 18, 2021
  2. Update package-lock.json

    typescript-bot committed May 18, 2021
  3. Generate SourceMap mappings string using array of character codes and…

    … fewer String.fromCharCode calls (#44031)
    
    * Test normal char code array for source mappings
    
    * Limit buffer size, minor performance tweaks
    
    * Always commit at exactly chunk size
    
    Co-authored-by: David Michon <dmichon-msft@users.noreply.github.com>
    dmichon-msft committed May 18, 2021
  4. Don’t offer import statement completions at from position (#44125)

    * Don’t offer import statement completions at `from` position
    
    * Set isGlobalCompletion to false, use indexOf lookup
    andrewbranch committed May 18, 2021

Commits on May 17, 2021

  1. Simplify codeql github action (#44124)

    The current action is failing with an error that recommends removing the
    `git checkout HEAD^2` step.
    sandersn committed May 17, 2021

Commits on May 15, 2021

  1. Update package-lock.json

    typescript-bot committed May 15, 2021

Commits on May 13, 2021

  1. Dont allow generic narrowing when contextually typed by a binding pat…

    …tern (#44081)
    weswigham committed May 13, 2021
  2. Fix typo in host.ts (#43930)

    encounted -> encountered
    eltociear committed May 13, 2021
  3. Update package-lock.json

    typescript-bot committed May 13, 2021

Commits on May 12, 2021

  1. Cache accessibe symbol chains and serialized type parameter name gene…

    …ration (#43973)
    
    * Cache accessibe symbol chains, type parameter name generation
    
    * Move signature declaration helper length approximation to start of function
    
    * Add node result caching internal to `typeToTypeNodeHelper`
    
    * Suggestion from PR
    weswigham committed May 12, 2021
  2. Loosen up the first argument type for String.raw

    The [String.raw spec](https://tc39.es/ecma262/#sec-string.raw) uses just
    the `raw` property of its first argument, which is a useful way of using
    it in user-defined tag functions to do the work of interleaving strings
    and values as well as converting the values to strings.
    
    Fixes #43609.
    elibarzilay committed May 12, 2021

Commits on May 11, 2021

  1. Update package-lock.json

    typescript-bot committed May 11, 2021

Commits on May 10, 2021

  1. Bump version to 4.4. (#44028)

    * Bump version to 4.4.
    
    * Update Baselines and/or Applied Lint Fixes
    
    Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
    DanielRosenwasser and typescript-bot committed May 10, 2021
  2. Test for Update the type reference cache with correct project options (…

    …#44008)
    
    * Test without change
    
    * Update showing fix in #44004 works
    sheetalkamat committed May 10, 2021
  3. Update package-lock.json

    typescript-bot committed May 10, 2021

Commits on May 9, 2021

Commits on May 8, 2021

  1. Update package-lock.json

    typescript-bot committed May 8, 2021

Commits on May 7, 2021

  1. Don't eagerly get apparent type of spread expression contextual type (#…

    …44002)
    
    * Don't get apparent type of contextual type for spread expressions
    
    * Add regression test
    ahejlsberg committed May 7, 2021
  2. Revert #35877 - fix receiver on calls of imported and exported functi…

    …ons (#43993)
    rbuckton committed May 7, 2021
  3. Remove accidentally added file in baselines (#43998)

    sandersn committed May 7, 2021
  4. Support semantic highlights for JS files (#43992)

    * Switches from never allowing semantic highlight on JS to only doing it if we have a valid source file
    
    * Adds a way to test and validate that an arbitrary JS file gets semantic classification results
    
    * Revert to just dropping the if statement
    orta committed May 7, 2021
  5. Correctly use ownMap from module resolution cache (#43986)

    * Test showing the moduleResolutionCache reset issue with tsc --b --w
    
    * Fix incorrect usage of ownMap by making it function returning ownMap instead of constant value
    sheetalkamat committed May 7, 2021
  6. Improve errors for incorrectly nested export default (#43967)

    * Improve errors for incorrectly nested export default
    
    The compiler and services don't handle incorrectly nested
    `export default` well right now:
    
    ```ts
    export = (x,y) => {
      export default { }
    }
    ```
    
    Asking for document highlights, find all references or quick info on
    'export' or 'default' cause a crash. After the crash is fixed, the error
    message is confusing and wrong: "An export assignment cannot be used outside a module."
    
    This PR:
    
    1. Skips document highlights for incorrectly nested export default.
    2. Skips find all refs for incorrectly nested export default.
    3. Switches the fallback binding for incorrectly nested export default
    from Alias to Property. Neither is correct, but Property doesn't cause a
    crash in alias resolution.
    4. Improves the error message to reflect a post-ES module world, which
    has export default and 'module' means 'ES module', not 'namespace'.
    
    Fixes #40082 and the related bugs mentioned above.
    
    * address PR comments
    sandersn committed May 7, 2021
  7. Update package-lock.json

    typescript-bot committed May 7, 2021
  8. Fix perf regression from #42556 (#43949)

    PR #42556 was a nice optimization that dramatically sped up comparisons of discriminated unions.  Unfortunately, the cost of determining whether a union is discriminated can be prohibitively high.  In particular, an internal team with a very large repo saw their type count double and their memory usage increase from 6GB to 9GB, breaking their build.  This changes splits the difference by not trying to compute the property types of intersection types - a notoriously slow operation.
    amcasey committed May 7, 2021

Commits on May 6, 2021

  1. Fix package.json auto imports for pnpm without project references (#4…

    …3892)
    
    * Fix package.json auto imports for pnpm without project references
    
    * Make property optional
    
    * Revert unnecessary unnittest change
    
    * Set symlinked files when setting symlinked directories
    
    * Update `typeDirectiveIsEqualTo`
    
    * Consider symlinks found during type reference directive resolution into `discoverProbableSymlinks`
    
    * Rename `originalFileName` to `originalPath`, make internal
    andrewbranch committed May 6, 2021
  2. Revert "typeRelatedToSomeType passes through intersectionState (#43707)…

    …" (#43983)
    
    This reverts commit db09cb5.
    sandersn committed May 6, 2021
  3. Dont allow namespace reexport symbols when looking up valid local nam…

    …es (#43969)
    weswigham committed May 6, 2021
  4. When directory watcher is invoked with any file from node_modules pac…

    …kage, invalidate for file paths in that package (#43974)
    
    Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
    sheetalkamat and DanielRosenwasser committed May 6, 2021
  5. fix(43939): forbid converting getters to async/await (#43944)

    a-tarasyuk committed May 6, 2021
  6. Fix typo in system.ts (#43895)

    assigment -> assignment
    eltociear committed May 6, 2021
Older