Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for TypeScript 4.0 #2523

Merged
merged 25 commits into from
Sep 25, 2020
Merged

feat: add support for TypeScript 4.0 #2523

merged 25 commits into from
Sep 25, 2020

Conversation

yggg
Copy link
Contributor

@yggg yggg commented Sep 23, 2020

Please read and mark the following check list before creating a pull request:

Short description of what this resolves:

  • Revert solution style tsconfig.
  • Update Angular packages. After Angular CDK package update, several change were required to fix TreeGrid rendering as CdkTable added new constructor parameters.
  • Support TypeScript 4.
    TypeScript 4 doesn't allow properties inherited from a base class to be overridden as accessors and vice versa.
  • Run package smoke check on TypeScript versions 3 and 4.

Closes #2498. Closes #2501.

@ghost
Copy link

ghost commented Sep 23, 2020

DeepCode's analysis on #d61480 found:

  • ⚠️ 1 warning 👇

Top issues

Description Example fixes
Function addRootRoute always returns undefined, but it is called here and its return value is used here. Occurrences: 🔧 Example fixes

👉 View analysis in DeepCode’s Dashboard | Configure the bot

Angular schematics has own bundled TS version which is different
from locally installed and leads to types incompatibility. CDK
utils use installed TS.
CDK added new `_viewRepeater` and `_coalescedStyleScheduler` constructor parameters which
is required for proper table rendering.
This tsconfig file is picked up by editors and IDEs so adding
path here help to resolve imports in the projects.
As newer version requires higher version of rxjs and
it causes incompatibility in Subject type between Nebular
and devkit.
In CDK version 10.2.1 `CdkTable` has two new constructor parameters.
If user install CDK prior to 10.2.1 there be an error as NbTable passes
two new parameters to a super class CdkTable.
DeepCode's analysis: "Function addRootRoute always returns undefined,
but it is called here and its return value is used here"
@codecov
Copy link

codecov bot commented Sep 25, 2020

Codecov Report

Merging #2523 into master will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2523   +/-   ##
=======================================
  Coverage   78.92%   78.93%           
=======================================
  Files         253      253           
  Lines        7774     7808   +34     
  Branches      852      855    +3     
=======================================
+ Hits         6136     6163   +27     
- Misses       1376     1380    +4     
- Partials      262      265    +3     
Impacted Files Coverage Δ
src/framework/theme/components/cdk/table/cell.ts 68.96% <ø> (-11.99%) ⬇️
...amework/theme/components/cdk/table/table.module.ts 100.00% <ø> (ø)
...onents/tree-grid/tree-grid-column-def.directive.ts 57.69% <ø> (+5.51%) ⬆️
...me/components/tree-grid/tree-grid-def.component.ts 70.58% <ø> (-1.64%) ⬇️
.../theme/components/tree-grid/tree-grid.component.ts 73.95% <ø> (+0.84%) ⬆️
...ramework/theme/components/toastr/toastr.service.ts 97.39% <0.00%> (+2.60%) ⬆️
... and 1 more

@yggg yggg merged commit 7b7f0a4 into akveo:master Sep 25, 2020
@yggg yggg deleted the feat/support-ts-4 branch September 25, 2020 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant