Wesley Wigham
391a73b598
Cherry-pick PR #33426 into release-3.6
...
Component commits:
4ae62c3884 getConstraintDeclaration gets the first declaration with a constraint, rather than just the first declaration
b1ad54b382 Add type annotation
2232f5ebaa Update comment
2019-09-19 17:51:17 +00:00
Martin Probst
e8be5e85bc
Handle parentless nodes in isParameterPropertyDeclaration
...
Fixes #33295 .
This follows a similar pattern as in #20314 by requiring an explicit
`parent` parameter. Where possible, it uses the appopriate variable at
the call sites.
In several locations there is no context available though (e.g.
inspecting `valueDeclarations`) and we access `.parent` as the code
previously did. From a cursory inspection this seems correct, these
callpaths originate in phases where there must be a `parent` (i.e. in
checker, binder, etc).
Change-Id: I28e4726777b57237bec776e4001e9e69ac591b11
2019-09-17 17:11:16 +02:00
Daniel Rosenwasser
613555615d
Bump version to 3.6.3.
2019-09-06 13:19:30 -07:00
TypeScript Bot
1b2ffa9212
Cherry-pick PR #33150 into release-3.6 ( #33285 )
...
Component commits:
b86c86de57 Add heuristic for extracting irreducible `null` and `undefined` types from intersections of unions
2019-09-06 13:11:29 -07:00
Anders Hejlsberg
acbcc0df82
Merge pull request #33252 from microsoft/fix33131
...
Make lower priority inference when source is completely matched in target
2019-09-06 09:39:53 -07:00
TypeScript Bot
6b72d5d4ca
Cherry-pick PR #33144 into release-3.6 ( #33249 )
...
Component commits:
028fa8e723 mark deep indexed accesses as deeply nested in comparisons
67fbdfaeb7 Add test derived from lodash example
2019-09-04 17:01:28 -07:00
TypeScript Bot
5f263db5b5
Cherry-pick PR #33223 into release-3.6 ( #33250 )
...
Component commits:
a2b3af2b24 Elevate mapped types over type parameters in the same way as naked type parameters in intersection inference prioritization
2019-09-04 16:23:46 -07:00
TypeScript Bot
9b8be7c09e
Cherry-pick PR #33141 into release-3.6 ( #33247 )
...
Component commits:
206de25263 Ensure that TS can run in a browser by checking for a process obj before using it in the perf logger
45227ee337 Merge branch 'master' into allow_running_in_web
2019-09-04 14:35:30 -07:00
TypeScript Bot
1ec17a8a1d
Cherry-pick PR #33213 into release-3.6 ( #33245 )
...
Component commits:
cc1dc3b83b someTypeRelatedToType now passes isIntersectionConstituent
cf3eadc85e Merge branch 'master' into fix-missed-intersection-constituent-threading
f10fe3891f Fix [][] lint
2019-09-04 14:03:16 -07:00
TypeScript Bot
49b910e4d4
Cherry-pick PR #33240 into release-3.6 ( #33244 )
...
Component commits:
339e1320c4 Bind typedef/enum on all assignment decl kinds
This fixes a crash on exports, but the code now handles all kinds
returned from getAssignmentDeclarationPropertyAccessKind.
2019-09-04 13:35:59 -07:00
TypeScript Bot
9cbb7ea29c
Cherry-pick PR #33225 into release-3.6 ( #33226 )
...
Component commits:
541e96ec9f Handle browserify-ignored module result for etw logger
2019-09-04 11:44:31 -07:00
TypeScript Bot
cd32df66ec
Cherry-pick PR #33219 into release-3.6 ( #33222 )
...
Component commits:
ffc82db6fc Fix visitLexicalEnvironment to properly merge hoisted declarations
2019-09-03 15:28:35 -07:00
Sheetal Nandi
d8b775e03b
Cherry-pick PR #33216 into release-3.6
...
Component commits:
5de0303728 Fix transpiling when options specify incremental or tsbuildinfofile Fixes #33184
0589d2dd1e Value for transpile option in CommandLineOption
2019-09-03 21:46:29 +00:00
Sheetal Nandi
4aad78bb6e
Cherry picking #33145 ( #33170 )
...
implement create Hash to be default hashing plus data so we can verify it easily in baseline
2019-08-30 18:01:59 -07:00
TypeScript Bot
775a4dd085
Cherry-pick PR #33168 into release-3.6 ( #33169 )
...
Component commits:
078ef7ff02 Fix the semantic diagnostics caching in builder to handle conversion from relative to buildInfo to absolute path Fixes #33161
2019-08-30 16:11:30 -07:00
Ben Lichtman
f28bdb41e2
Bump version to 3.6.2
2019-08-27 09:25:18 -07:00
Andrew Casey
66225f2e10
Merge pull request #33056 from amcasey/TripleSlashRestrictions
...
Make triple-slash comment classification more restrictive
(cherry picked from commit 5b59cfb1c4663efb2699483ce61eb12b91a311ed)
2019-08-23 16:26:54 -07:00
TypeScript Bot
1b63714779
Cherry-pick PR #32982 into release-3.6 ( #32985 )
...
Component commits:
c4c6df968e Fix default behavior for transpileModule when fileName not provided
2019-08-19 18:14:31 -07:00
TypeScript Bot
03055d2fb6
Cherry-pick PR #32919 into release-3.6 ( #32933 )
...
Component commits:
a81ce061de Stricter criteria for eliminating types in unions during inference
f929a25407 Add regression test
6d46850172 Accept new baselines
86d9153374 Accept new API baselines
abc61a0949 Add InferencePriority.Circularity per CR feedback
ac2f151412 Accept new API baselines
c816cf2562 Add additional test
af7ccf954a Accept new baselines
2019-08-16 11:02:00 -07:00
TypeScript Bot
5a0a671584
Cherry-pick PR #32898 into release-3.6 ( #32900 )
...
Component commits:
7f6543c1cd Fix export=global auto import exclusion
2019-08-14 15:39:15 -07:00
Wesley Wigham
ef222a5892
Cherry-pick PR #32878 into release-3.6
...
Component commits:
c78c88f447 Fix references to path-mapped ambient modules in declaration files
48a1fc33f5 Fix lint
2019-08-13 23:41:56 +00:00
Daniel Rosenwasser
4da8da0c68
Merge remote-tracking branch 'origin/master' into release-3.6
2019-08-13 15:56:14 -07:00
Ron Buckton
a74f109f95
Do not escape actual template literals on emit ( #32844 )
2019-08-13 15:54:35 -07:00
Sheetal Nandi
c52b129a19
Add cancellation token check for function expression, arrow expression and class expression just like their counter part declarations
...
This helps in early exit if request is cancelled and intellisense in js files is super quick with edits
2019-08-13 11:41:08 -07:00
Sheetal Nandi
a35f7996a6
Do cleanup after opening files only if opening a file.
2019-08-13 11:41:08 -07:00
Daniel Rosenwasser
c8d937ecd3
Merge pull request #32726 from fuafa/completion-after-private
...
Fix completion disappear after a property declaration with a private modifier
2019-08-13 11:09:32 -07:00
Daniel Rosenwasser
40f0a8ed26
Bump version to 3.6.1-rc for RC.
2019-08-12 17:24:00 -07:00
Daniel Rosenwasser
f660f7ff47
Merge remote-tracking branch 'origin/master' into release-3.6
2019-08-12 17:23:15 -07:00
Ron Buckton
decc3cd671
Elide /index from auto-import when using rootDirs compiler option ( #32828 )
2019-08-12 16:05:15 -07:00
Wesley Wigham
4ab85bbf35
Add error message for keywords with escapes in them ( #32718 )
...
* Add error message for keywords with escapes in them
* Move check into parser during advance to next token to utilize context for contextual keywords
* git add .
* Add tests for extended escapes
* Better error courtesy of @DanielRossenwaser
* Add test of browser-inconsistent case and alter condition to match spec
* Merge adjacent conditions
* Use seperate functions for checking keywords vs not
* Use flags to track unicode escape presence
* Adjust error text
2019-08-12 16:00:38 -07:00
Sheetal Nandi
51411c1f8b
Merge pull request #32825 from microsoft/printProjects
...
Print program only if there are files are added or removed from the program.
2019-08-12 13:47:28 -07:00
Ron Buckton
b3268a7e06
Do not emit 'this' for __awaiter helper at the top level of a strict-mode file. ( #32823 )
2019-08-12 13:33:04 -07:00
Sheetal Nandi
e10991413c
Print program only if there are files are added or removed from the program.
2019-08-12 13:18:16 -07:00
Ron Buckton
bf054ae796
Add support for import.meta in System modules ( #32797 )
2019-08-12 13:00:58 -07:00
Orta
2a2866c3a9
Merge pull request #32563 from orta/fix_31298
...
Handle namepaths inside JSDoc type expressions a bit better
2019-08-09 16:15:50 -07:00
Ron Buckton
98b6db81d9
Allow accessors in ambient class declarations ( #32787 )
...
* Allow accessors in ambient class declarations
* Update src/compiler/transformers/declarations.ts
Co-Authored-By: Wesley Wigham <wewigham@microsoft.com>
2019-08-09 16:11:25 -07:00
Wesley Wigham
f2719f95b4
Allow functions and ambient classes to merge ( #32584 )
2019-08-09 16:10:10 -07:00
Sheetal Nandi
b84e65db4e
Merge pull request #32745 from microsoft/fsWatchInode
...
Change to missing file watcher on linux and darwin explicitly to avoid watching deleted inode
2019-08-09 15:42:38 -07:00
Sheetal Nandi
825d8bb1dc
Merge pull request #32791 from microsoft/documentHighlightsFilesToSearch
...
Ignore unknown files to search from in document highlights
2019-08-09 15:34:05 -07:00
Andrew Casey
816e7b0567
Merge pull request #32789 from amcasey/FileNotFoundError
...
Correct string template
2019-08-09 15:16:23 -07:00
Sheetal Nandi
850ff783f4
Fix lint error
2019-08-09 15:13:07 -07:00
Sheetal Nandi
b7e49d1d1c
Ignore unknown files to search from in document highlights
2019-08-09 15:06:51 -07:00
Andrew Casey
8c6612b31e
Tweak message text
2019-08-09 14:50:24 -07:00
Andrew Casey
6fe6cb3913
Correct string template
2019-08-09 14:32:34 -07:00
Andrew Casey
a02735e1fb
Merge pull request #32785 from amcasey/FileNotFoundError
...
Include fewer paths in exception
2019-08-09 14:28:32 -07:00
Sheetal Nandi
c1980c7857
Fix the incorrectly accepted suggestion
2019-08-09 14:14:30 -07:00
Andrew Casey
6c19c13094
Use an explicit type
2019-08-09 14:04:04 -07:00
Ron Buckton
9133e7ad0e
Use defaults for transpileModule ( #31563 )
2019-08-09 14:04:01 -07:00
Ron Buckton
05af8faac6
Support tree-shakable imports for --target es2015 ( #32742 )
...
* Support tree-shakable imports for --target es2015
* Alias external helper imports for --module es2015
2019-08-09 14:02:18 -07:00
Sheetal Nandi
d6f768d3ee
Update src/compiler/sys.ts
...
Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2019-08-09 14:00:40 -07:00