Skip to content

feat: typescript 3.6 support#32946

Closed
IgorMinar wants to merge 5 commits intoangular:masterfrom
IgorMinar:build/tsc-3.6
Closed

feat: typescript 3.6 support#32946
IgorMinar wants to merge 5 commits intoangular:masterfrom
IgorMinar:build/tsc-3.6

Conversation

@IgorMinar
Copy link
Copy Markdown
Contributor

@IgorMinar IgorMinar commented Oct 1, 2019

BREAKING CHANGE: typescript 3.4 and 3.5 are no longer supported, please update to typescript 3.6

Partly based on #32908 but instead of just making the code compile with 3.6, this PR actually upgrades the typescript version and drops support for tsc 3.4 and 3.5. Due to blocking issues, it might be a good idea to merge #32908 in first, and merge this PR once the blocking issues are resolved.

Currently blocked on:

TODOs:

Optional:

@mary-poppins
Copy link
Copy Markdown

@mary-poppins
Copy link
Copy Markdown

@gkalpak
Copy link
Copy Markdown
Member

gkalpak commented Oct 2, 2019

@IgorMinar, shouldn't this PR be combined with/based on #32908?

@gkalpak
Copy link
Copy Markdown
Member

gkalpak commented Oct 2, 2019

Also, this PR fixes #32380.

@lppedd
Copy link
Copy Markdown

lppedd commented Oct 2, 2019

Hi! I've noticed the package.json uses 3.6.3. However I encountered this issue when compiling with it in --prod, microsoft/TypeScript#33295, and it is scheduled for 3.6.4. I don't know if the other changes fixed it, just wanted to tell you.

@mary-poppins
Copy link
Copy Markdown

@mary-poppins
Copy link
Copy Markdown

@IgorMinar
Copy link
Copy Markdown
Contributor Author

@lppedd thanks for heads up. I just hit the issue and I'll escalate to the typescript team too cut the 3.6.4 release and publish it on npm.

@gkalpak I think we'll end up merging #32908 before this PR lands - I updated the PR description to clarify the order of events.

@filipesilva filipesilva mentioned this pull request Oct 2, 2019
14 tasks
@atscott atscott added the area: build & ci Related the build and CI infrastructure of the project label Oct 2, 2019
@ngbot ngbot Bot added this to the needsTriage milestone Oct 2, 2019
@IgorMinar IgorMinar force-pushed the build/tsc-3.6 branch 5 times, most recently from 85edd49 to 346c13b Compare October 5, 2019 01:09
@filipesilva filipesilva mentioned this pull request Oct 7, 2019
@filipesilva
Copy link
Copy Markdown
Contributor

A couple more fixes that were missing are in separate commits in #33027.

@googlebot
Copy link
Copy Markdown

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: no and removed cla: yes labels Oct 8, 2019
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolveModuleName now takes the compiler options before the ModuleResolutionHost.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ts.DiagnosticMessageChain is now a tree microsoft/TypeScript@ba9d8e2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These could be null, but it seems like they weren't properly detected before. Since this is a spec and it was passing before, it seems ok to add a non-null assertion.

@filipesilva
Copy link
Copy Markdown
Contributor

@googlebot I consent.

@googlebot
Copy link
Copy Markdown

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@mary-poppins
Copy link
Copy Markdown

IgorMinar and others added 4 commits October 18, 2019 07:04
BREAKING CHANGE: typescript 3.4 and 3.5 are no longer supported, please update to typescript 3.6

Fixes angular#32380
This commit removes `@angular-devkit/build-angular` from package.json
for a project that opts into Bazel. This is because the package adds a
dependency on node-sass, which is rejected by Bazel due to its absense.

This commit also appends to `scripts.postinstall` if it already exists.
This is needed because `ng new` in CLI v9 now automatically adds a
postinstall step for `ngcc`.
@mary-poppins
Copy link
Copy Markdown

@mary-poppins
Copy link
Copy Markdown

@IgorMinar
Copy link
Copy Markdown
Contributor Author

merge-assistance: g3 failures are flakes

@matsko matsko closed this in 86e1e6c Oct 18, 2019
matsko pushed a commit that referenced this pull request Oct 18, 2019
This commit removes `@angular-devkit/build-angular` from package.json
for a project that opts into Bazel. This is because the package adds a
dependency on node-sass, which is rejected by Bazel due to its absense.

This commit also appends to `scripts.postinstall` if it already exists.
This is needed because `ng new` in CLI v9 now automatically adds a
postinstall step for `ngcc`.

PR Close #32946
matsko pushed a commit that referenced this pull request Oct 18, 2019
@petebacondarwin
Copy link
Copy Markdown
Contributor

🎉

kyliau pushed a commit to kyliau/vscode-ng-language-service that referenced this pull request Oct 18, 2019
Now that angular/angular#32946 has landed,
upgrade to ts 3.6.4.
kyliau pushed a commit to kyliau/vscode-ng-language-service that referenced this pull request Oct 18, 2019
Now that angular/angular#32946 has landed,
upgrade to ts 3.6.4.
kyliau pushed a commit to kyliau/vscode-ng-language-service that referenced this pull request Oct 18, 2019
Now that angular/angular#32946 has landed,
upgrade to ts 3.6.4.
ayazhafiz pushed a commit to angular/vscode-ng-language-service that referenced this pull request Oct 18, 2019
Now that angular/angular#32946 has landed,
upgrade to ts 3.6.4.
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Nov 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project cla: yes merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants