https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
5764cdc Bump version to 4.4.1-rc and LKG 31 October 2021, 19:35:06 UTC
4113279 Merge remote-tracking branch 'origin/main' into release-4.5 31 October 2021, 19:23:30 UTC
bf6d164 LEGO: Merge pull request 46601 LEGO: Merge pull request 46601 30 October 2021, 05:17:49 UTC
6b1e8f7 remove placeholders in class member snippets (#46598) 29 October 2021, 23:55:59 UTC
e3fab9f LEGO: Merge pull request 46597 LEGO: Merge pull request 46597 29 October 2021, 23:13:23 UTC
7742cf2 Set hasAddedOrRemovedSymlinks when discovering an existing file by its link (#46569) * Set hasAddedOrRemovedSymlinks when discovering an existing file by its link * Make it optional 29 October 2021, 22:47:48 UTC
eeaa595 Enable auto imports in member snippet completions (#46592) 29 October 2021, 21:43:32 UTC
b0ab2a5 Fix mapped type instantiation circularity (#46586) * Don't obtain constraint if doing so would cause circularity * Add regression test * Address CR feedback 29 October 2021, 21:01:27 UTC
28e3cd3 Add error on new module/moduleResolution modes when used in non-nightly TS (#46557) * Add error on new module/moduleResolution modes when used in non-nightly TS * Update diagnostic 29 October 2021, 18:46:19 UTC
9b1ba8f Fix react-jsx spread children invalid emit (#46565) * Fix react-jsx spread children invalid emit * Update Baselines and/or Applied Lint Fixes * Change childrenLength parameter -> isStaticChildren Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com> 29 October 2021, 17:54:46 UTC
3254358 Update GDPR comment formatting (#46585) ...so that they are picked up properly by the tooling. 29 October 2021, 17:48:28 UTC
9cdbb72 Improve errors on module: node12 and extensionless relative imports (#46486) * add new error + suggestions * push down assert defined * remove comment * fix esm module import detection, update baselines * add and update new tests * fix review comments * remove renamed baseline references * update node modules test baselines * fix error message, add new tests * update old tests with new error message 29 October 2021, 17:25:03 UTC
f1a69ec LEGO: Merge pull request 46584 LEGO: Merge pull request 46584 29 October 2021, 17:14:21 UTC
fd620c9 Add method signature completions (#46370) * prototype creation for method override completion snippet * WIP: start using codefix `addNewNodeForMemberSymbol` to create method decl node * update type of addNewNodeForMemberSymbol * add more tests and support more cases * add more tests and fix some details * wip: more fixes and tests * expose check override modifier in checker * fix test * WIP: add snippet support * WIP: snippet support on emitter, adding snippets in completions * make add snippets work with overloads (not synced) * fix snippet adding * rebase * WIP: try to add snippet escaping in emitter * support escaping in snippets * small fixes; fixed tests * more tests and fixes * fix new tests * fix modifier inheritance for overloads * merge conflict fixes; remove comments * throw error if setOptions is called but not implemented * fix newline handling * fix weird stuff * fix tests * fix more tests * Fix unbound host.getNewLine * fix isParameterDeclaration changes * rename diagnostic to status and remove snippets from public api * rename emitter functions + fix indentation * check completion kind before calling isclasslikemembercompletion * fix missing type parameters * Revert "fix missing type parameters" This reverts commit 7bdeaa86dae61822a8ee46c13a3680708c6928af. * add isAmbient flag to addNewNodeForMemberSymbol * add test for abstract overloads * refactor snippet escaping support * add user preference flag for enabling class member snippets * update API baseline * update tabstop order Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com> 28 October 2021, 23:05:36 UTC
566758d LEGO: Merge pull request 46566 LEGO: Merge pull request 46566 28 October 2021, 17:13:44 UTC
4e237ed 🤖 Update TypeScript DOM Libs (#46222) Co-authored-by: orta <orta@users.noreply.github.com> 28 October 2021, 16:14:26 UTC
8173afb Update package-lock.json 28 October 2021, 06:06:31 UTC
f494742 Check for array types when instantiating mapped type constraints with `any` (#46218) * Added/updated tests. * Accepted baselines. * Update test. * Update instantiateMappedType to work specially when 'any' replaced an array. * Accepted baselines. * Ensure check works when constraint is a union of arrayish types, just like in `Promise.all`. * Accepted baselines. * Update test for indirect instantiation of a mapped type. * Accepted baselines. * Update test comment. * Accepted baselines. * Added tuple test case. * Accepted baselines. * Don't add special behavior for tuples. * Accepted baselines. * Revert "Don't add special behavior for tuples." This reverts commit f01ae16e6589ec42a931b018ffea03453df60e35. * Accepted baselines. 27 October 2021, 22:03:01 UTC
abfd537 Support resolveJsonModule in new module modes (#46434) * Support resolveJsonModule in new module modes * Formatting feedback 27 October 2021, 19:30:06 UTC
8a68c86 allow `typeof this` after for-loops (#46181) 27 October 2021, 17:26:05 UTC
f424dfc Slightly less conservative check in isConstraintPosition (#46526) * Slight adjustment to check in isConstraintPosition * Add regression test 26 October 2021, 18:54:46 UTC
44c63a7 Always cache relations involving intersection types (#46523) * Always cache relations involving intersection types * Accept new baselines * Add regression test 26 October 2021, 16:36:19 UTC
658764e Bypass caching in removeStringLiteralsMatchedByTemplateLiterals (#46525) * Bypass caching in removeStringLiteralsMatchedByTemplateLiterals * Add regression test 26 October 2021, 16:34:15 UTC
e1a2c2c Update package-lock.json 26 October 2021, 06:07:59 UTC
3519af0 Fix crash pulling on global types before they're initialized (#46471) * Add failing test * Dumb fix * Compute error message info more lazily * One more laziness 25 October 2021, 17:53:41 UTC
6b6665e LEGO: Merge pull request 46520 LEGO: Merge pull request 46520 25 October 2021, 17:13:29 UTC
61f5ceb Fix isNewIdentifierLocation after generator (#46491) 25 October 2021, 06:49:31 UTC
7799113 LEGO: Merge pull request 46510 LEGO: Merge pull request 46510 25 October 2021, 05:14:38 UTC
e88e596 LEGO: Merge pull request 46504 LEGO: Merge pull request 46504 24 October 2021, 17:14:16 UTC
dd89e06 LEGO: Merge pull request 46502 LEGO: Merge pull request 46502 24 October 2021, 11:13:27 UTC
c2a4bda LEGO: Merge pull request 46501 LEGO: Merge pull request 46501 24 October 2021, 05:14:29 UTC
1055119 LEGO: Merge pull request 46496 LEGO: Merge pull request 46496 23 October 2021, 17:14:28 UTC
cb07891 Update package-lock.json 23 October 2021, 06:06:04 UTC
907fc72 Fix auto import crash on weird JS aliasing (#46490) * Fix auto import crash on weird JS aliasing * Comment up the weird test * Fix setting members on union/intersection type, happens later 22 October 2021, 23:09:32 UTC
334b8ea Bind assignments to 'this' within static blocks in JS files (#46472) * Add failing test case. * Handle 'this' assignments on class static blocks in JavaScript. * Accepted baselines. 22 October 2021, 22:44:35 UTC
de1ac81 Fix isNewIdentifierLocation after async (#46485) 22 October 2021, 19:28:04 UTC
ce676d0 fix(46433): forbid using keywords as parameter names (#46459) 22 October 2021, 16:58:01 UTC
449aaa1 Defer computation of isDistributionDependent to avoid circularities (#46474) * Defer computation of isDistributionDependent to avoid circularities * Accept new API baselines 22 October 2021, 16:13:54 UTC
65ae16c Update package-lock.json 22 October 2021, 06:06:14 UTC
f2f35ae Simplify relationship check for conditional type on target side (#46429) * Simplify relationship check for conditional type on target side * Accept new baselines * Better support for non-distribution-dependent types * Accept new API baselines * Accept new baselines 22 October 2021, 00:35:23 UTC
bd12ae2 fix(46466): add missing async keyword before type parameters (#46467) 21 October 2021, 22:56:45 UTC
55b4928 Pass absolute path to directoryExists (#46086) * Pass absolute path to directoryExists As pointed out by @gretzkiy, the `directoryExists` call added to `matchFiles` in #44710 should have been passing the absolute path (since the current directory might not match `currentDirectory`). * Add test, simplify/clarify/fix matchFiles and friends Co-authored-by: Andrew Branch <andrew@wheream.io> 21 October 2021, 19:22:53 UTC
5725cfe Fix typos in es5.d.ts (#46321) 21 October 2021, 18:59:01 UTC
22f37cd Fix ordering of module specifiers based on package.json presence (#46437) * Add failing test * Fix ordering of module specifiers based on package.json presence 21 October 2021, 18:43:57 UTC
f2e5947 @link parses trailing <...> as part of linkName (#46450) Similar to #46428. Fixes #44818 21 October 2021, 00:01:01 UTC
0d02213 LEGO: Merge pull request 46451 LEGO: Merge pull request 46451 20 October 2021, 17:13:33 UTC
98b4ac2 @link: format trailing () as part of linkName (#46428) Parsing separates the identifier part of the link tag from its text, but the editor should present an identifier followed by `()` as a single identifier since people use that syntax as a function sigil. I prefer `#'` personally, you know, xkcd 297, nudge nudge. 20 October 2021, 15:36:40 UTC
48e96f5 LEGO: Merge pull request 46447 LEGO: Merge pull request 46447 20 October 2021, 11:31:11 UTC
dea4853 Update package-lock.json 20 October 2021, 06:06:17 UTC
248d478 Remove defaultValueDescription: "n/a" from options (#46280) * Remove defaultValueDescription: "n/a" from options * CommandLineOption type <-> defaultValueDescription * Require defaultValueDescription of number/boolean options 19 October 2021, 22:19:19 UTC
53fa2a6 LEGO: Merge pull request 46430 LEGO: Merge pull request 46430 19 October 2021, 17:13:07 UTC
56b6279 Improve logic for choosing between co- and contra-variant inferences (#46392) * Improve logic for choosing between co- and contra-variant inferences * Add tests 19 October 2021, 16:58:10 UTC
fd6552a LEGO: Merge pull request 46424 LEGO: Merge pull request 46424 19 October 2021, 11:15:18 UTC
556098e Avoid hard-wired build-tree paths Instead, search for stuff up the directory tree, with the main functionality being to look for `Gulpfile.js` and assume the resulting directory is the root. (Unfortunatley, this is implemented twice, one in `scripts` and another in `src`. It's not possible to use a single implementation for both since that would require assuming a directory structure which this is intended to avoid.) Also, in `scripts/build/projects.js`, abstracdt common exec functionality into a local helper, and use full paths based on the above search instead of assuming relative paths assuming CWD being in the project root. 18 October 2021, 21:43:45 UTC
7c3f607 `scripts/build/utils` simplify exec Using shell-based execution is always a bad idea; this thing didn't do that via an option, but instead did it manually by constructing a shell command so it suffers from the same diseases. Perhaps there was need for this at some point in the past, but things are pretty robust now, so there's no need to avoid running the command normally. The only thing that is needed is to add `which` which also handles windows executable suffixes. I tried this with a fresh clone on windows, where the tree and TS are installed in paths that have spaces, and everything works as it should. 18 October 2021, 21:43:19 UTC
605788d LEGO: Merge pull request 46415 LEGO: Merge pull request 46415 18 October 2021, 17:29:16 UTC
8d715ff Error on mapped type w/properties (#46346) * Error on mapped types with properties 1. Error on properties of type literals with computed properties whose name is a binary expression with `in`, because that's a good sign of a mapped type. 2. Parse following properties on mapped types, and error on them. 3. Stop checking computed property names in (1) to avoid producing errors based on misinterpreting mapped type syntax as an expression. * add comment in types.ts * Update API again * Check interfaces and classes too * Add missed check in updateMappedTypeNode 18 October 2021, 16:00:00 UTC
26aea0d Update package-lock.json 17 October 2021, 06:07:02 UTC
39ff156 Changes to enable the module conversion script * shorthand -> long for `factory` since the typeformer script doesn't know how to handle it. * Use setter to change `ts.sys` (similar to #35399). * Fix `loggedIO` with empty namespaces to indicate dependency (similar to 50603eda). * Move `Map` / `Set` stuff from `core.ts` to `corePublic.ts` since the types are there. 16 October 2021, 12:12:59 UTC
506a95b Update package-lock.json 16 October 2021, 06:06:14 UTC
dfb4054 fix: ES6 Modules => ES Modules in error messages (#46378) * fix: ES6 Modules => ES Modules in error messages * chore: Rename test file names * chore: Rename function names 15 October 2021, 21:51:14 UTC
6a75689 Import assertion: do no parse } if { is not present (#46388) Previously, import assertion parsing would try to parse both { and }, even if both were missing. If both were missing, the error for } could occur past the end of the file, causing an assertion. Fixes #46364 15 October 2021, 20:26:46 UTC
7582b1b fix(45799): skip checking arguments used as a key in object literals (#45814) 15 October 2021, 17:34:57 UTC
b1f39a7 Fix React auto-import blocking component imports in --preserve (#46368) 15 October 2021, 16:31:47 UTC
cf9d38f Update package-lock.json 15 October 2021, 06:06:32 UTC
2c7b13b Fix explainFiles on files under nodenext with types references (#46367) * Fix explainFiles on files under nodenext with types references * Fix explainFiles crash on module nodenext 15 October 2021, 00:00:55 UTC
d16d777 No error for markdown links in @see (#46348) This only shows up in checkJS files, but should still be ignored. 14 October 2021, 22:22:59 UTC
80e1a29 fix(46305): omit converting jsx (react-jsx) spread attributes to Object.assign for ES2018 and up (#46317) 14 October 2021, 21:23:50 UTC
8718df3 Fix stack overflow in JSX discriminated union logic (#46354) * Use getContextFreeTypeOfExpression to avoid circularities * Add regression test 14 October 2021, 17:11:44 UTC
5185ef5 fix(suggestion): Remove 80001 from cjs/cts files. (#46270) * fix(suggestion): Remove 80001 from cjs/cts files. * tests: Cover more cases in a single file. * tests: Cover more cases in a single file. 14 October 2021, 16:55:59 UTC
3b086e1 Update package-lock.json 14 October 2021, 06:07:58 UTC
1c5d4e1 Pass symbol under inspection into checkIndexConstraints (#46350) 14 October 2021, 00:04:33 UTC
ac34584 Set impliedNodeFormat on sourceFiles maufactured in watch mode (#46349) 14 October 2021, 00:04:13 UTC
cd0434a fix(39744): make template literals more spec compliant (#45304) * fix(39744): make template literals more spec compliant * Add evaluation test for template literals * Add test for template literals with source map 13 October 2021, 19:03:31 UTC
0d2aeb7 Improve checks for infinitely expanding recursive conditional types (#46326) * Improve checks for infinitely expanding recursive conditional types * Accept new baselines * Add regression tests * Remove 'export' modifier * Accept new baselines 13 October 2021, 14:08:01 UTC
315b807 Update package-lock.json 13 October 2021, 06:06:54 UTC
713afe2 Set import mode on synthetic imports (#46327) 12 October 2021, 23:23:37 UTC
9e2fc16 Improve perf of unions with many primitives (#45220) 12 October 2021, 23:07:21 UTC
44deb84 fix(45336): add a blank line before the comment expression to avoid disrupting return statement (#46287) 11 October 2021, 23:41:49 UTC
68ff738 Update package-lock.json 11 October 2021, 06:06:14 UTC
feac9eb Update package-lock.json 09 October 2021, 06:06:31 UTC
64b8172 Auto-imports: fix some exports being incorrectly stored as re-exports of others due to key conflict (#45792) * Ensure symbol key unique when target is a local symbol exported elsewhere * Add test * Support targets without declarations * Best key yet * A-ha moment * Clean up types * Update API * Update unit test 08 October 2021, 22:20:12 UTC
f6c0231 Update package-lock.json 08 October 2021, 06:06:15 UTC
613c432 LEGO: Merge pull request 46264 LEGO: Merge pull request 46264 07 October 2021, 23:14:04 UTC
82822fc Use a binary search when looking for the token at a given position (#46250) 07 October 2021, 22:06:18 UTC
bbd9ff5 LEGO: Merge pull request 46260 LEGO: Merge pull request 46260 07 October 2021, 17:13:49 UTC
8c27075 In plain JS files, only suggestion did-you-mean errors (#46151) They will have code fixes, and are tuned for high precision. Others are not. 07 October 2021, 15:41:06 UTC
fbff131 LEGO: Merge pull request 46255 LEGO: Merge pull request 46255 07 October 2021, 11:15:20 UTC
08361e3 LEGO: Merge pull request 46248 LEGO: Merge pull request 46248 06 October 2021, 23:14:13 UTC
7108646 Fix extension automatic script kind detection for new extensions (#46205) * Fix extension script kind detection for new extensions * Accept (correct) changes to existing baselines affected by correct ScriptKind detection 06 October 2021, 20:23:54 UTC
ed9c522 Accept new moduleResolution options on commandline (#46239) 06 October 2021, 20:17:27 UTC
cb158e7 LEGO: Merge pull request 46238 LEGO: Merge pull request 46238 06 October 2021, 17:14:06 UTC
f8cb5fa Update package-lock.json 06 October 2021, 06:06:16 UTC
1cee973 Properly support scoped package self name lookups (#46212) 05 October 2021, 19:41:44 UTC
47cd4d3 Only set package data map under watch mode (#46211) 05 October 2021, 18:13:26 UTC
a0cf126 Limit package.json realpath lookup to only successful resolutions (#46209) 05 October 2021, 17:24:08 UTC
d60747f Feat/quick fix for types (#42126) * feat: add quick fix for types * feat: add test case for quick fix of types * feat: add did-you-mean error when Cannot_find_name_0 and Cannot_find_namespace_0 * feat: add Cannot_find_namespace_0_Did_you_mean_1 error and only suggest when resolve type * feat: update baselines * feat: update baselines * feat: update baselines * chore: fix style problem * Always suggest spelling corrections * suggest primitives instead of their wrappers * Add primitives to suggestions Instead of altering wrappers to look like primitives. * add semicolons * revert unneeded change Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 05 October 2021, 15:14:16 UTC
ee24e2e Update package-lock.json 05 October 2021, 06:06:56 UTC
5423501 LEGO: Merge pull request 46203 LEGO: Merge pull request 46203 04 October 2021, 17:14:44 UTC
91117b6 Update package-lock.json 04 October 2021, 06:07:14 UTC
back to top