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

chore: update to Node 20.x #258

Merged
merged 1 commit into from
Dec 27, 2023
Merged

chore: update to Node 20.x #258

merged 1 commit into from
Dec 27, 2023

Conversation

noomorph
Copy link
Collaborator

Resolves #218, #223, #224, #225, #226, #227, #231, #233, #234, #235, #236, #237.

Updates required Node runtime to 20.x (latest LTS).

Fixes fallback font query to be more friendly to macOS and Linux.

@@ -3,10 +3,6 @@ import { tablesData } from 'consts';
import { getAllDataFromResults, IAllData } from 'utils/getAllDataFromResults';
import { getTableDataUrl } from 'utils/getTableDataUrl';

// eslint-disable-next-line
// @ts-ignore
const fetch = typeof CLIENT !== 'undefined' && CLIENT ? window.fetch : require('node-fetch');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Node 20.x has fetch by default, just in case if someone wonders.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 7285070694

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.004%) to 2.98%

Files with Coverage Reduction New Missed Lines %
src/services/loadTablesData.ts 2 0.0%
Totals Coverage Status
Change from base Build 7272294205: 0.004%
Covered Lines: 83
Relevant Lines: 2880

💛 - Coveralls

@@ -7,6 +7,7 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"importHelpers": true,
Copy link
Collaborator Author

@noomorph noomorph Dec 21, 2023

Choose a reason for hiding this comment

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

Some updated libraries bring import * from 'tslib', so it's best to use tslib for ourselves as well not to bloat the bundle any further.

@@ -69,7 +69,7 @@ html, body {
}

#app, input, select, button, a, textarea {
font-family: Roboto, sans-serif;
font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", Arial, sans-serif;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added macOS, Windows and Linux fallbacks.

@noomorph noomorph requested a review from ru-danko December 21, 2023 07:09
@noomorph noomorph merged commit c2d771e into master Dec 27, 2023
5 checks passed
@noomorph noomorph deleted the chore/update-node-20 branch December 27, 2023 08:45
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.

3 participants