diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2023-11-01 11:38:13 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-01 11:38:13 -0600 |
commit | 264e704f3d59184ab6605c81538faf4e6234fefb (patch) | |
tree | bf15fb9ea4959d7e502bd68be0567d3533b6bb26 /src | |
parent | feat(i18n): new Crowdin updates (#1437) (diff) | |
download | ferdium-app-264e704f3d59184ab6605c81538faf4e6234fefb.tar.gz ferdium-app-264e704f3d59184ab6605c81538faf4e6234fefb.tar.zst ferdium-app-264e704f3d59184ab6605c81538faf4e6234fefb.zip |
chore: upgrade used node and pnpm version (#1433)
- upgrade node and pnpm version in `engines`, `volta` and `packageManager` config
- upgrade `@types/node` to v20
- remove `react-loader` overrides from `peerDependencyRules.allowedVersions`
- remove `@npmcli/move-file` 2.0.1 from `allowedDeprecatedVersions`
- update node image to 20.9.0 in `Dockerfile`
- update required system dependencies in `CONTRIBUTING.md`
- update node version to 20.9.0 in `.nvmrc`
- correct type definitions for `setInterval` usage in `WebviewCrashHandler` and `AppStore` necessary due to `@types/node` upgrade
Diffstat (limited to 'src')
-rw-r--r-- | src/components/services/content/WebviewCrashHandler.tsx | 4 | ||||
-rw-r--r-- | src/stores/AppStore.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/components/services/content/WebviewCrashHandler.tsx b/src/components/services/content/WebviewCrashHandler.tsx index e9b17e8aa..91c9cf927 100644 --- a/src/components/services/content/WebviewCrashHandler.tsx +++ b/src/components/services/content/WebviewCrashHandler.tsx | |||
@@ -36,7 +36,7 @@ interface IState { | |||
36 | 36 | ||
37 | @observer | 37 | @observer |
38 | class WebviewCrashHandler extends Component<IProps, IState> { | 38 | class WebviewCrashHandler extends Component<IProps, IState> { |
39 | countdownInterval: NodeJS.Timer | undefined; | 39 | countdownInterval: NodeJS.Timeout | undefined; |
40 | 40 | ||
41 | countdownIntervalTimeout = ms('1s'); | 41 | countdownIntervalTimeout = ms('1s'); |
42 | 42 | ||
@@ -58,7 +58,7 @@ class WebviewCrashHandler extends Component<IProps, IState> { | |||
58 | 58 | ||
59 | if (this.state.countdown <= 0) { | 59 | if (this.state.countdown <= 0) { |
60 | reload(); | 60 | reload(); |
61 | clearInterval(this.countdownInterval!); | 61 | clearInterval(this.countdownInterval); |
62 | } | 62 | } |
63 | }, this.countdownIntervalTimeout); | 63 | }, this.countdownIntervalTimeout); |
64 | } | 64 | } |
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts index df8c17c01..ab98ca89c 100644 --- a/src/stores/AppStore.ts +++ b/src/stores/AppStore.ts | |||
@@ -128,7 +128,7 @@ export default class AppStore extends TypedStore { | |||
128 | 128 | ||
129 | dictionaries = []; | 129 | dictionaries = []; |
130 | 130 | ||
131 | fetchDataInterval: null | NodeJS.Timer = null; | 131 | fetchDataInterval: NodeJS.Timeout | null = null; |
132 | 132 | ||
133 | @observable downloads: Download[] = []; | 133 | @observable downloads: Download[] = []; |
134 | 134 | ||