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

refactor: type fixes #4326

Merged
merged 25 commits into from Jan 5, 2022
Merged

Conversation

dnalborczyk
Copy link
Contributor

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

@dnalborczyk dnalborczyk marked this pull request as draft December 28, 2021 22:05
@codecov
Copy link

codecov bot commented Dec 28, 2021

Codecov Report

Merging #4326 (940baea) into master (ae674c9) will decrease coverage by 0.00%.
The diff coverage is 97.87%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4326      +/-   ##
==========================================
- Coverage   98.44%   98.44%   -0.01%     
==========================================
  Files         206      206              
  Lines        7353     7350       -3     
  Branches     2089     2088       -1     
==========================================
- Hits         7239     7236       -3     
  Misses         55       55              
  Partials       59       59              
Impacted Files Coverage Δ
cli/run/commandPlugins.ts 97.61% <ø> (ø)
cli/run/resetScreen.ts 100.00% <ø> (ø)
src/ast/scopes/ChildScope.ts 100.00% <ø> (ø)
src/ast/scopes/ModuleScope.ts 100.00% <ø> (ø)
src/utils/collapseSourcemaps.ts 90.21% <ø> (ø)
src/utils/deconflictChunk.ts 100.00% <ø> (ø)
src/utils/executionOrder.ts 100.00% <ø> (ø)
src/utils/exportNames.ts 100.00% <ø> (ø)
src/utils/getCodeFrame.ts 100.00% <ø> (ø)
src/utils/getExportMode.ts 100.00% <ø> (ø)
... and 28 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae674c9...940baea. Read the comment docs.

@dnalborczyk dnalborczyk marked this pull request as ready for review December 29, 2021 01:51
Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

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

Lots of good stuff!

private indentString: string = undefined as never;
private readonly isEmpty: boolean = true;
Copy link
Member

Choose a reason for hiding this comment

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

To my understanding it is ok to mark something as readonly if it is only changed in the constructor. It will prevent mutations in all other methods.

private workerCount = 0;

constructor(public maxParallel = 1) {}
constructor(private maxParallel = 1) {}
Copy link
Member

Choose a reason for hiding this comment

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

The fallback = 1 is no longer needed (and bad for coverage 😉)

@lukastaegert lukastaegert merged commit 205e861 into rollup:master Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants