https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
cfd1a6e Bump version to 4.7.2 and LKG 19 May 2022, 21:36:16 UTC
114e310 Cherry-pick PR #49157 into release-4.7 (#49167) Component commits: 8d1095de7a Fix uncalled function check usage detection for && expressions Co-authored-by: Andrew Branch <andrew@wheream.io> 18 May 2022, 20:58:22 UTC
77b83f1 Cherry-pick PR #49104 into release-4.7 (#49135) Component commits: 4c6e802772 Remove bigint from Object.freeze in es5.d.ts `BigInt` isn't resolved whenever `lib < es2020`, but it's not an error when `target < es2020`. I have a few ideas for improving this situation but for the RC I'm going to remove `bigint` from Object.freeze's signature. 6d5bf6a5ee Update other baselines e1958f7a23 No errors for missing apparent type of bigint,symbol for any target 86fc8dbd0b Update test text Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com> 16 May 2022, 17:57:39 UTC
7bd7163 Update LKG. 11 May 2022, 00:12:27 UTC
a3e83be fix(44466): Fixes parsing contextual keyword casts as arrow functions Use all modifiers test 11 May 2022, 00:03:18 UTC
e8216af Merge pull request #49031 from typescript-bot/pick/49010/release-4.7 🤖 Pick PR #49010 (LEGO: Pull request from lego/hb_537...) into release-4.7 10 May 2022, 17:50:09 UTC
854af3a Merge pull request #49030 from typescript-bot/pick/49016/release-4.7 🤖 Pick PR #49016 (LEGO: Pull request from lego/hb_537...) into release-4.7 10 May 2022, 17:46:17 UTC
dbee2ab Cherry-pick PR #49035 into release-4.7 (#49036) Component commits: e8df495a1a Fix module specifier generation crash from typesVersions Co-authored-by: Andrew Branch <andrew@wheream.io> 09 May 2022, 19:49:02 UTC
a7cf004 Cherry-pick PR #49010 into release-4.7 Component commits: f9d2ca03f0 Juno: check in to lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20220507124224201. 09 May 2022, 17:50:37 UTC
43e2066 Cherry-pick PR #49016 into release-4.7 Component commits: 54c01e661e Juno: check in to lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20220508150540507. 09 May 2022, 17:50:28 UTC
a5ec725 Merge pull request #49007 from microsoft/bump-4.7-rc Sync and bump release 4.7 to RC 07 May 2022, 00:21:01 UTC
ca59c9b Update LKG. 06 May 2022, 23:40:37 UTC
6c13ec8 Accepted baselines. 06 May 2022, 23:39:28 UTC
34e93a1 Bump version to 4.7.1-rc 06 May 2022, 23:36:59 UTC
c99b802 Merge branch 'main' into release-4.7 06 May 2022, 23:33:21 UTC
1a4643b Flag resolution mode assertions in non-nightly builds (#49002) * Flag resolution mode assertions in non-nightly builds * Add checker check 06 May 2022, 23:31:40 UTC
8d0393d Fix missing parsingContext restore at return in parseDelimitedList (#48999) 06 May 2022, 20:36:27 UTC
2ffe686 Respect importModuleSpecifierEnding inside node_modules packages (#48995) * Respect importModuleSpecifierEnding inside node_modules packages * Add tests for missing package.json 06 May 2022, 19:58:12 UTC
4765355 Fix more tests missing 'it' call in 'describe' (#48994) 06 May 2022, 18:09:42 UTC
4a0b083 Add ES2022 `Intl.Segmenter` type (#48800) * Add `Intl.Segmenter` type * Update baseline * Fix useless generics * Fix indent size * Fix `ResolvedSegmenterOptions` 06 May 2022, 00:09:06 UTC
58114cf Harden combineProjectOutputForReferences against empty results (#48978) Getting an empty result doesn't seem expected, but a deeper fix doesn't make sense until #48619 is merged. Fixes #48963 05 May 2022, 20:52:34 UTC
4680b54 Clear ExportMapCache on cancellation requested (#48979) 05 May 2022, 20:42:30 UTC
f8a09be fix(48878): return errorType on invalid nodes in getTypeAtLocation (#48967) 05 May 2022, 20:07:32 UTC
8e433cd Allow export map entries to remap back to input files for a program (#47925) * Allow export map entries to remap back to input files for a program * Fix file casing issues on windows * Implement abiguity error, doesnt quite work * Refine selection logic in error case to use getCommonSourceDirectory, add more tests 05 May 2022, 19:53:56 UTC
1e157ef Fix node16 tests (#48974) 05 May 2022, 18:45:05 UTC
eb1a8b1 Remove some unused baselines. (#48964) 05 May 2022, 17:33:52 UTC
650c056 No error on toplevel return in JS (#48874) * No error on toplevel return in JS Turns out it's only an error in modules. It's possible to keep this error on the list of "OK for JS" errors and make the checker code stop issuing it for JS scripts only. However, I don't think the error is valuable enough to do that. Fixes #48224 * Restore 'return' statement. * Update Baselines and/or Applied Lint Fixes * Re-add missing baselines * No error in toplevel script files Only issue "no top-level return" error for modules, not scripts, regardless of whether it's TS or JS. * Keep Disallowing return in ambient locations * Allow toplevel return only in non-ESM JS files * Add test of toplevel return in JS script * Revert "Add test of toplevel return in JS script" This reverts commit 2a6dec475a35ec104915000984ffb79452cb7350. * Revert "Allow toplevel return only in non-ESM JS files" This reverts commit 6291ae3ba2df305d287f02223d634e21808fd15a. * Revert "Keep Disallowing return in ambient locations" This reverts commit 714ea8e524ff1129d94679df78f7790534222980. * Revert "No error in toplevel script files" This reverts commit 2056e13d5294a4d923b3f7c8e43dbc72f595afc6. * restore orphaned baseline Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com> 05 May 2022, 16:35:15 UTC
46e8306 Skip ambient modules in globalThis (#48938) * Skip ambient modules in globalThis Previously, globalThis mistakenly included ambient modules, even though these are not values: ```ts declare module "ambientModule" { export type typ = 1 export var val: typ } type Oops = (typeof globalThis)[\"ambientModule\"] ``` This PR adds ambient modules to the kinds of things that are skipped when constructing `globalThis`' properties, along with block-scoped variables. * Skip only modules with every declaration ambient The modules are required to have at least one declaration so that our treatment of `globalThis` stays the same, and `globalThis.globalThis.globalThis` remains legal. 05 May 2022, 16:33:32 UTC
7d60dc1 Revert "feat(47595): allow using private fields in type queries" (#48959) 04 May 2022, 23:50:30 UTC
e26bc8a Skip missing nodes in formatting (#48953) 04 May 2022, 22:07:34 UTC
f579f33 Revert "Don't treat a colon in a conditional expression branch as part of an arrow function" (#48940) 04 May 2022, 22:01:05 UTC
c8ec855 When source file is redirected, set the prototype correctly in node factory (#48862) Fixes #48039 04 May 2022, 15:59:11 UTC
d879880 Don’t let other completions shadow type keywords in type locations (#48939) * Allow type keywords with the same names as other completions * Only add type keywords that are the same as other completions in type locations 04 May 2022, 15:35:29 UTC
d337cbc Run `mocha` using `process.execPath` instead of harcoding `"node"` (#48797) 04 May 2022, 15:23:08 UTC
ad2b7a6 Document encodeURIComponent/encodeURI's argument as unencoded (#48803) 04 May 2022, 15:13:46 UTC
9469f95 Add tests case for function check type being correctly paranthesized in quick info (#48836) 04 May 2022, 00:05:37 UTC
5f9c9a6 Start Node ESM stable version at Node16 (#48879) * Remove Node12, add Node16. * Accepted baselines. * Refactor checking for top-level await, give a better error message in CJS files. * Accepted baselines. * Stop erroring on JSON module imports in node ESM since they're no longer experimental. * Accepted baselines. * More refactoring, do the same checks for for-await loops. * Accepted baselines. * Adjust phrasing to permit for-await on CJS error. * Accepted baselines. * Accepted baselines. * Fix lints. 03 May 2022, 23:29:40 UTC
38c1460 Fix blocking of recursive dependencies in getNarrowedTypeOfSymbol (#48941) * Better blocking of recursive dependencies in getNarrowedTypeOfSymbol * Add regression test 03 May 2022, 21:20:35 UTC
8f56f6b Don't go past import in cross-project renaming (#48758) * WIP * fix cross-project renaming logic * only use configure if prefix opt is defined * refactor skipAlias into stopAtAlias * fix stopAtAlias * update another stopAtAlias location 03 May 2022, 14:32:44 UTC
3b8b207 Temporarily revert unconstrained type parameter strictness in TS 4.7 (#48923) * Revert a change around allowing unconstrained type parameters to '{}'. * Accepted baselines. 02 May 2022, 22:49:16 UTC
bb887ea fix(48557): Add missing JSDoc parameters (#48560) * Fix jsdoc of some `DataView` method. * Add author by 'Fix jsdoc of some `DataView` method'. * Fix jsdoc of some `DataView` method. change 'written' to 'read' by `getXXX` methods, and remove 'otherwise' by every method which has `littleEndian` param. * Fix jsdoc of some `DataView` method in `es2020.bigint.d.ts`. change 'written' to 'read' by `getXXX` methods, and remove 'otherwise' by every method which has `littleEndian` param. 02 May 2022, 20:21:37 UTC
e73d755 Fix formatter's processChildNodes (#48921) processChildNodes needs to skip processing when the node array is outside the target range, just like processChildNode already does for a single node. Fixes #48006 02 May 2022, 19:50:24 UTC
63a941d Add a regression test for completion list in object literal involving inferred obj with optional members (#48910) 02 May 2022, 19:27:49 UTC
6834969 LEGO: Merge pull request 48913 LEGO: Merge pull request 48913 02 May 2022, 13:37:43 UTC
7cb8846 Update package-lock.json 02 May 2022, 06:06:36 UTC
eca1b45 LEGO: Merge pull request 48909 LEGO: Merge pull request 48909 01 May 2022, 12:48:19 UTC
7ae0988 Update package-lock.json 01 May 2022, 06:06:20 UTC
99ffa39 fix(48759): throw an error on using import expression with type arguments (#48787) 29 April 2022, 21:19:20 UTC
fd06132 Fix #47753 - Organize imports removes type imports that are only referenced in @link (jsdoc) (#47824) * Added unit test * Added baseline test * Dirty solution * Code refactoring and improvements * Added more test cases * Refactor to use flatMap * Added utility function to get all Nodes with JSDocs * Minor improvements * Use recursion to check all tree levels * Removed unit test * Removed previous changes * Updated resolveEntityName call * Updated dontResolveAlias clause * Updated symbol flags * Updated baseline * Fix dont resolve alias problem * Updated tests 29 April 2022, 20:45:00 UTC
18b08fc Use same error for iteration in <=ES5 (#48881) * Use the same error for iterating over an Iterable in ES5 or lower. * Accepted baselines. 29 April 2022, 17:45:20 UTC
189c2b9 Update package-lock.json 29 April 2022, 06:06:45 UTC
61c3bfe Dont reload config file when package.json change is detected (#48866) Fixes #48315 28 April 2022, 01:07:54 UTC
9b3853d fix(48851): exclude in from document highlights (#48853) 28 April 2022, 00:51:05 UTC
0885482 Fix export default expression comment (#48323) 27 April 2022, 23:33:46 UTC
476fc62 Eagerly resolve module specifiers for auto-import completions in `--moduleResolution node12+` (#48752) * Add failing test * Block auto-import module specifiers including node_modules path * Eagerly resolve module specifiers in completions in nodenext so failures can be filtered * Add completion info flags for telemetry * Update API baseline * Update completions baselines * Fix missed boolean flip * Fix remaining tests 27 April 2022, 23:07:15 UTC
717a1be feat(48743): allow autocompletion in parameter object destructuring in JavaScript (#48757) 27 April 2022, 21:00:01 UTC
d45012c Add JS-specific diagnostic message for `resolve()` in Promise where type argument can't be inferred (#48533) * change error message on Promise * fix(46570): Unhelpful Promise type argument hint in JS file * refactor: Reword void Promise message for JSDoc type hint to provide better feedback Co-authored-by: Osa <osaimola@gmail.com> 27 April 2022, 18:55:35 UTC
2a78b22 Stop tag after @callback from crashing (#48860) By copying the kludge in @typedef. @callback's order is simpler, so the kludge is simpler. However, it's wrong here, and in @typedef. Parsing tag comments is normally supposed to happen at the end of a tag, but in @callback and @typedef happens *before* parsing the nested @param/@property tags. I still need to figure out what a real fix is -- but for the beta, copying the existing crash-avoidance kludge from @typedef is best anyway. I added a test case for typedefs for future use as well. 27 April 2022, 18:21:10 UTC
bab02d2 Add Node v18 to CI (#48824) * Add Node v18 to CI * Address comments 27 April 2022, 15:50:22 UTC
3d3fa0c Update package-lock.json 27 April 2022, 06:09:04 UTC
7b6b4dc Fix `getExportSymbolOfValueSymbolIfExported` (#48769) 26 April 2022, 20:39:20 UTC
c5f493e Update package-lock.json 26 April 2022, 06:06:24 UTC
787bb9d Improve support for numeric string types (#48837) * Improve support for numeric string types * Update test * Add tests 25 April 2022, 22:36:06 UTC
7920783 Fix workflow syntax error (#48842) 25 April 2022, 20:03:02 UTC
42fc05b Don't run scheduled GitHub actions on forks (#48693) Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com> 25 April 2022, 18:37:54 UTC
06fb307 Update package-lock.json 25 April 2022, 06:06:45 UTC
c99380f Fix auto-import completions sometimes not updating existing imports (#48815) 22 April 2022, 22:32:52 UTC
07660c8 Fix emit for undefined SourceFile (#48774) Co-authored-by: Ron Buckton <ron.buckton@microsoft.com> 22 April 2022, 18:18:53 UTC
94cb657 Fix: verification of incremental correctness that was not working because of using wrote writeFile (#48751) * Use fixed time for vfs so baselining is consistent * Baseline buildinfos * Write new file text in baseline even if the file wasnt read on the shadow * Remove unnecessary debugger statement * Make sure that incremental correctness is checked with correct writeFile so we know buildInfo was written Also baseline these so its easy to verify the changes * More baselines for the tsbuildinfo * Renames and test fixes after dts Signature change merge * COmment 22 April 2022, 16:30:58 UTC
af30c79 Fixed string literal completions for partially-typed strings when overload could get matched (#48811) 22 April 2022, 15:36:14 UTC
71f94c5 Update package-lock.json 22 April 2022, 06:06:24 UTC
d71dd1d fix(48556): throw an error on jsx spread attributes with an invalid type (#48570) 21 April 2022, 23:31:16 UTC
7abdb9e Format completion snippet text before escaping (#48793) * Format snippet text before escaping * Reset `escapes` before printing so printer can be reused 21 April 2022, 20:40:14 UTC
ab2523b Handles time on vfs and write non empty shadowed files in baseline even if they were not read (#48703) * Use fixed time for vfs so baselining is consistent * Baseline buildinfos * Write new file text in baseline even if the file wasnt read on the shadow * Remove unnecessary debugger statement 21 April 2022, 18:50:28 UTC
7a59e45 During emit, if shape signature for the file is same as version, then update it with emitted d.ts file (#48616) * If we are writing dts file and have used file text as version, we can update the signature when doing actual emit * Make WriteFileCallback Api ready for future * Assert that there is only single source file when emitting d.ts file 21 April 2022, 18:00:34 UTC
45faac7 If we are updating dts of any of the file and it affects global scope, everything needs update in signature and dts emit (#48600) * Add test * Renames * More refactoring * If we are updating dts of any of the file and it affects global scope, everything needs update in signature and dts emit Fixes #42769 21 April 2022, 04:05:10 UTC
273a567 Fix handling of prologue statements when there are parameter property declarations (#48775) 20 April 2022, 15:49:22 UTC
ce487e4 Fix meta property symbol lookup (#48773) 20 April 2022, 00:57:06 UTC
d81a976 Ensure enum aliases referenced in other enum members do not get marked as referenced (#48770) * Add test * Ensure enum aliases referenced in other enum members do not get marked as referenced 19 April 2022, 22:23:25 UTC
2e619fd Fix transformed constructor code when there is code between prologue statements and super call (#48765) 19 April 2022, 16:19:25 UTC
6894f91 Update package-lock.json 19 April 2022, 06:06:46 UTC
d3943fc Disallow line break between entity name and type arguments in typeof expression (#48755) 18 April 2022, 23:18:31 UTC
65f6cb2 Constraints for mapped types with filtering 'as' clauses (#48699) * Constraints for mapped types with filtering 'as' clauses * Add regression test 18 April 2022, 21:24:22 UTC
56a4a93 Instead of maintaining cache id etc, reset the "working" exports map cache. (#48579) * Revert "Avoid no-op export map updates (#45238)" This reverts commit 0f6e6efde08385916602e254f406f1703907b2a5. * Need to reset currentAffectedFilesExportedModulesMap after commiting to final exports map 15 April 2022, 22:11:30 UTC
0976658 Allow triggering twoslash bisection manually (#48721) 15 April 2022, 19:44:37 UTC
0d9a4fe Update package-lock.json 15 April 2022, 06:06:38 UTC
8bd7ce6 Find Source Definition (#48264) * Prototype resolving to JS when go-to-def aliases all resolve to ambient declarations * Add test infrastructure * Start fleshing out test coverage * Fix some go-to-def stuff * Finish lodash test case * Make go-to-implementation never return ambient results * Build new functionality into go-to-implementation * Update baselines * Two more test cases * Refine definition searches for unresolved imports * Revert "Build new functionality into go-to-implementation" This reverts commit 381799d0f104000c676334c8e08fcdff9ccac896. * Fix tests * Revert go-to-implementation changes * Wow a bunch of code was unnecessary * Update baselines and go-to-def test * Fix navigation on symbols that are not aliases but resolve through aliases in chain * Temporarily replace go-to-def with new command implementation * Revert "Temporarily replace go-to-def with new command implementation" This reverts commit 34c6cfdebbb9e2506ea5e6d528d2cb57b2cdeb2e. * Revert "Wow a bunch of code was unnecessary" This reverts commit 1cb2ba646c9e80d1ca08b6fc3f6a2219aac44f67. * Bring back some deleted code needed for a new test case * Clean up a little * Rename more stuff * Update test * Update API baseline * Temporarily replace go-to-def with new command implementation * PR review fixes * Fix getTopMostDeclarationNamesInFile * Rename local * Use hash set * Remove option from commandLineParser * Keep noDtsResolution project around * Handle AuxiliaryProject kind in ScriptInfo getDefaultProject etc. * Do not run updateGraph in the background for AuxiliaryProject * Don’t create auxiliary project outside of semantic mode * No-op on scheduled invalidation * Add comments to unit test * Sync compiler options to auxiliary project * Fix case sensitivity * Update extensionIsOk with new file extensions * PR feedback * Update API baseline * Mark scheduleInvalidateResolutionsOfFailedLookupLocations internal * Use same heuristics on property accesses of loosely-resolvable aliases as unresolvable named imports * Rename command, and no need to return the bound span * Update API baseline 14 April 2022, 22:44:19 UTC
e6dcf6f Fix lints after dep update (#48707) 14 April 2022, 22:19:22 UTC
fa2515e Fixed multiple prologue directives with parameter properties (#48687) 14 April 2022, 16:29:15 UTC
6a4cb30 Update package-lock.json 14 April 2022, 06:07:26 UTC
4fdffbf Checkout needs everything (#48689) 14 April 2022, 00:25:05 UTC
f1df67c Fix workflow syntax 14 April 2022, 00:21:19 UTC
d7c9593 setup-node needs a version spec (#48688) 14 April 2022, 00:19:39 UTC
cb8ddd9 WIP (#48682) 14 April 2022, 00:16:31 UTC
796be45 Update signatures to avoid post-LKG error (#48677) 13 April 2022, 23:36:35 UTC
73c93ee fix(48657): allow JSXElement names to be IdentifierNames (#48661) 13 April 2022, 19:32:10 UTC
a027cfa More permissive parsing of instantiation expressions (#48659) * More permissive parsing of expressions with type arguments * Add test 13 April 2022, 13:16:43 UTC
988fa85 Handle declaration file names consistently (#48647) 12 April 2022, 18:43:57 UTC
cce61d1 Variance annotations on class expressions + deferred valiation (#48645) * Variance annotations on class expressions + deferred validation * Add regression tests 12 April 2022, 13:34:33 UTC
c9a4d01 Update package-lock.json 12 April 2022, 06:07:39 UTC
back to top