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

Enable noImplicitOverride in our tsconfigs, requiring us to add the override modifier on overridden fields #2060

Merged
merged 18 commits into from
Aug 26, 2021

Conversation

rictic
Copy link
Collaborator

@rictic rictic commented Aug 19, 2021

This seems like a net win for clarity (more verbiage, but it lets the reader know when a method field has special meaning to the superclass), and it's easy on the code author because TS flags it immediately and the editor plugin offers to add the override keyword for you

@changeset-bot
Copy link

changeset-bot bot commented Aug 19, 2021

🦋 Changeset detected

Latest commit: 5d166bb

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-cla google-cla bot added the cla: yes label Aug 19, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Aug 19, 2021

📊 Tachometer Benchmark Results

Summary

nop-update

  • lit-html-kitchen-sink: unsure 🔍 -18% - +2% (-8.69ms - +1.24ms)
    this-change vs tip-of-tree

render

  • lit-element-list: unsure 🔍 -2% - +2% (-1.77ms - +2.33ms)
    this-change vs tip-of-tree
  • lit-html-kitchen-sink: unsure 🔍 -5% - +6% (-2.19ms - +2.57ms)
    this-change vs tip-of-tree
  • lit-html-repeat: unsure 🔍 -3% - +7% (-0.46ms - +0.90ms)
    this-change vs tip-of-tree
  • lit-html-template-heavy: unsure 🔍 -2% - +2% (-1.37ms - +1.53ms)
    this-change vs tip-of-tree
  • reactive-element-list: unsure 🔍 -3% - +0% (-2.51ms - +0.30ms)
    this-change vs tip-of-tree

update

  • lit-element-list: unsure 🔍 -2% - +0% (-20.86ms - +3.61ms)
    this-change vs tip-of-tree
  • lit-html-kitchen-sink: unsure 🔍 -6% - +7% (-7.41ms - +8.42ms)
    this-change vs tip-of-tree
  • lit-html-repeat: unsure 🔍 -3% - +1% (-10.36ms - +2.93ms)
    this-change vs tip-of-tree
  • lit-html-template-heavy: unsure 🔍 -3% - +2% (-3.52ms - +2.66ms)
    this-change vs tip-of-tree
  • reactive-element-list: unsure 🔍 -1% - +2% (-8.38ms - +13.48ms)
    this-change vs tip-of-tree

update-reflect

  • lit-element-list: unsure 🔍 -2% - +1% (-17.22ms - +5.38ms)
    this-change vs tip-of-tree
  • reactive-element-list: unsure 🔍 -2% - +1% (-16.69ms - +8.33ms)
    this-change vs tip-of-tree

Results

lit-element-list

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
103.20ms - 106.09ms-unsure 🔍
-2% - +2%
-1.77ms - +2.33ms
faster ✔
24% - 26%
32.81ms - 37.24ms
tip-of-tree
tip-of-tree
102.92ms - 105.82msunsure 🔍
-2% - +2%
-2.33ms - +1.77ms
-faster ✔
24% - 27%
33.08ms - 37.52ms
previous-release
previous-release
137.99ms - 141.35msslower ❌
31% - 36%
32.81ms - 37.24ms
slower ❌
31% - 36%
33.08ms - 37.52ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
846.16ms - 862.38ms-unsure 🔍
-2% - +0%
-20.86ms - +3.61ms
faster ✔
7% - 10%
68.07ms - 92.25ms
tip-of-tree
tip-of-tree
853.74ms - 872.06msunsure 🔍
-0% - +2%
-3.61ms - +20.86ms
-faster ✔
6% - 9%
58.71ms - 84.35ms
previous-release
previous-release
925.46ms - 943.40msslower ❌
8% - 11%
68.07ms - 92.25ms
slower ❌
7% - 10%
58.71ms - 84.35ms
-

update-reflect

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
856.96ms - 872.09ms-unsure 🔍
-2% - +1%
-17.22ms - +5.38ms
faster ✔
6% - 9%
60.05ms - 85.05ms
tip-of-tree
tip-of-tree
862.05ms - 878.84msunsure 🔍
-1% - +2%
-5.38ms - +17.22ms
-faster ✔
6% - 8%
53.61ms - 79.65ms
previous-release
previous-release
927.12ms - 947.03msslower ❌
7% - 10%
60.05ms - 85.05ms
slower ❌
6% - 9%
53.61ms - 79.65ms
-
lit-html-kitchen-sink

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
45.01ms - 48.23ms-unsure 🔍
-5% - +6%
-2.19ms - +2.57ms
faster ✔
21% - 31%
12.21ms - 19.97ms
tip-of-tree
tip-of-tree
44.67ms - 48.19msunsure 🔍
-6% - +5%
-2.57ms - +2.19ms
-faster ✔
21% - 31%
12.34ms - 20.23ms
previous-release
previous-release
59.18ms - 66.24msslower ❌
26% - 43%
12.21ms - 19.97ms
slower ❌
26% - 44%
12.34ms - 20.23ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
123.06ms - 134.30ms-unsure 🔍
-6% - +7%
-7.41ms - +8.42ms
unsure 🔍
-12% - -0%
-17.06ms - +0.28ms
tip-of-tree
tip-of-tree
122.60ms - 133.74msunsure 🔍
-7% - +6%
-8.42ms - +7.41ms
-faster ✔
0% - 13%
0.26ms - 17.53ms
previous-release
previous-release
130.47ms - 143.67msunsure 🔍
-0% - +13%
-0.28ms - +17.06ms
slower ❌
0% - 14%
0.26ms - 17.53ms
-

nop-update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
40.56ms - 45.90ms-unsure 🔍
-18% - +2%
-8.69ms - +1.24ms
unsure 🔍
-5% - +18%
-1.84ms - +7.16ms
tip-of-tree
tip-of-tree
42.77ms - 51.15msunsure 🔍
-3% - +20%
-1.24ms - +8.69ms
-slower ❌
1% - 30%
0.84ms - 11.93ms
previous-release
previous-release
36.94ms - 44.20msunsure 🔍
-16% - +4%
-7.16ms - +1.84ms
faster ✔
3% - 25%
0.84ms - 11.93ms
-
lit-html-repeat

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
12.76ms - 13.99ms-unsure 🔍
-3% - +7%
-0.46ms - +0.90ms
faster ✔
7% - 17%
1.09ms - 2.57ms
tip-of-tree
tip-of-tree
12.86ms - 13.45msunsure 🔍
-7% - +3%
-0.90ms - +0.46ms
-faster ✔
10% - 17%
1.54ms - 2.57ms
previous-release
previous-release
14.79ms - 15.63msslower ❌
8% - 20%
1.09ms - 2.57ms
slower ❌
11% - 20%
1.54ms - 2.57ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
382.30ms - 391.90ms-unsure 🔍
-3% - +1%
-10.36ms - +2.93ms
faster ✔
29% - 31%
156.74ms - 173.28ms
tip-of-tree
tip-of-tree
386.22ms - 395.40msunsure 🔍
-1% - +3%
-2.93ms - +10.36ms
-faster ✔
28% - 30%
153.14ms - 169.44ms
previous-release
previous-release
545.37ms - 558.84msslower ❌
40% - 45%
156.74ms - 173.28ms
slower ❌
39% - 44%
153.14ms - 169.44ms
-
lit-html-template-heavy

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
66.38ms - 68.56ms-unsure 🔍
-2% - +2%
-1.37ms - +1.53ms
faster ✔
15% - 18%
11.76ms - 14.64ms
tip-of-tree
tip-of-tree
66.43ms - 68.36msunsure 🔍
-2% - +2%
-1.53ms - +1.37ms
-faster ✔
15% - 18%
11.92ms - 14.63ms
previous-release
previous-release
79.72ms - 81.62msslower ❌
17% - 22%
11.76ms - 14.64ms
slower ❌
17% - 22%
11.92ms - 14.63ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
133.41ms - 137.72ms-unsure 🔍
-3% - +2%
-3.52ms - +2.66ms
faster ✔
9% - 13%
14.01ms - 19.89ms
tip-of-tree
tip-of-tree
133.79ms - 138.21msunsure 🔍
-2% - +3%
-2.66ms - +3.52ms
-faster ✔
9% - 13%
13.54ms - 19.51ms
previous-release
previous-release
150.52ms - 154.52msslower ❌
10% - 15%
14.01ms - 19.89ms
slower ❌
10% - 14%
13.54ms - 19.51ms
-
reactive-element-list

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
70.57ms - 72.47ms-unsure 🔍
-3% - +0%
-2.51ms - +0.30ms
unsure 🔍
-3% - +1%
-1.82ms - +0.66ms
tip-of-tree
tip-of-tree
71.60ms - 73.66msunsure 🔍
-0% - +4%
-0.30ms - +2.51ms
-unsure 🔍
-1% - +3%
-0.77ms - +1.83ms
previous-release
previous-release
71.31ms - 72.89msunsure 🔍
-1% - +3%
-0.66ms - +1.82ms
unsure 🔍
-3% - +1%
-1.83ms - +0.77ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
833.11ms - 848.85ms-unsure 🔍
-1% - +2%
-8.38ms - +13.48ms
unsure 🔍
-1% - +2%
-8.83ms - +14.30ms
tip-of-tree
tip-of-tree
830.84ms - 846.02msunsure 🔍
-2% - +1%
-13.48ms - +8.38ms
-unsure 🔍
-1% - +1%
-11.19ms - +11.56ms
previous-release
previous-release
829.77ms - 846.72msunsure 🔍
-2% - +1%
-14.30ms - +8.83ms
unsure 🔍
-1% - +1%
-11.56ms - +11.19ms
-

update-reflect

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
885.11ms - 902.87ms-unsure 🔍
-2% - +1%
-16.69ms - +8.33ms
unsure 🔍
-2% - +1%
-14.22ms - +11.10ms
tip-of-tree
tip-of-tree
889.36ms - 906.98msunsure 🔍
-1% - +2%
-8.33ms - +16.69ms
-unsure 🔍
-1% - +2%
-9.99ms - +15.23ms
previous-release
previous-release
886.53ms - 904.57msunsure 🔍
-1% - +2%
-11.10ms - +14.22ms
unsure 🔍
-2% - +1%
-15.23ms - +9.99ms
-

tachometer-reporter-action v2 for Benchmarks

Copy link
Collaborator

@justinfagnani justinfagnani left a comment

Choose a reason for hiding this comment

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

Oops. un-approving since the tests are broken!

@rictic
Copy link
Collaborator Author

rictic commented Aug 22, 2021

Tests fixed! PTAL

@rictic rictic merged commit dddbe0c into main Aug 26, 2021
@rictic rictic deleted the override branch August 26, 2021 08:58
@abdonrd abdonrd mentioned this pull request Aug 26, 2021
aomarks added a commit that referenced this pull request Aug 30, 2021
This undoes the change to the ts-transformer tests in #2060 that enabled standard class field emit, because they are incompatible with Lit. TypeScript 3.5.X changed the default for useDefineForClassFields from false to true when target: ESNext.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants