Skip to content

Commit c1be9ab

Browse files
chore: update dependencies
1 parent 7a428f0 commit c1be9ab

13 files changed

Lines changed: 9064 additions & 10877 deletions

package-lock.json

Lines changed: 6472 additions & 8228 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
"lib"
1010
],
1111
"volta": {
12-
"node": "20.2.0"
12+
"node": "22.14.0"
1313
},
1414
"dependencies": {
15-
"@blueprintjs/core": "^5.11.0",
16-
"@blueprintjs/icons": "^5.11.0",
17-
"@emotion/react": "^11.13.0",
15+
"@blueprintjs/core": "^5.17.5",
16+
"@blueprintjs/icons": "^5.19.1",
17+
"@emotion/react": "^11.14.0",
1818
"fifo-logger": "^1.0.0",
1919
"filelist-utils": "^1.11.1",
2020
"nmr-load-save": "^0.37.0",
2121
"nmr-processing": "^12.12.0",
2222
"nmrium": "^0.59.0",
23-
"react-science": "^6.0.0",
24-
"vite-plugin-pwa": "^0.20.1"
23+
"react-science": "^14.0.0",
24+
"vite-plugin-pwa": "^0.21.1"
2525
},
2626
"scripts": {
2727
"start": "vite --host localhost --port 3000 --open",
@@ -39,28 +39,28 @@
3939
"test-e2e-server": "serve -l tcp://localhost:3000 build"
4040
},
4141
"devDependencies": {
42-
"@babel/plugin-transform-modules-commonjs": "^7.24.8",
43-
"@babel/preset-react": "^7.24.7",
44-
"@babel/preset-typescript": "^7.24.7",
45-
"@playwright/test": "^1.46.0",
42+
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
43+
"@babel/preset-react": "^7.26.3",
44+
"@babel/preset-typescript": "^7.26.0",
45+
"@playwright/test": "^1.51.0",
4646
"@simbathesailor/use-what-changed": "^2.0.0",
47-
"@types/jest": "^29.5.12",
47+
"@types/jest": "^29.5.14",
4848
"@types/node": "^22.2.0",
4949
"@types/react": "^18.3.3",
5050
"@types/react-dom": "^18.3.0",
5151
"@types/react-router-dom": "^5.3.3",
52-
"@vitejs/plugin-react-swc": "^3.7.0",
52+
"@vitejs/plugin-react-swc": "^3.8.0",
5353
"cross-env": "^7.0.3",
54-
"eslint": "^8.57.0",
55-
"eslint-config-cheminfo-react": "^13.0.0",
56-
"eslint-config-cheminfo-typescript": "^15.0.0",
54+
"eslint": "^9.21.0",
55+
"eslint-config-cheminfo-react": "^15.0.0",
56+
"eslint-config-cheminfo-typescript": "^17.0.0",
5757
"jest": "^29.7.0",
58-
"prettier": "3.3.3",
58+
"prettier": "3.5.3",
5959
"react": "^18.3.1",
6060
"react-dom": "^18.3.1",
61-
"react-router-dom": "^6.26.0",
62-
"serve": "^14.2.3",
63-
"typescript": "^5.5.4",
64-
"vite": "^5.4.0"
61+
"react-router-dom": "^7.3.0",
62+
"serve": "^14.2.4",
63+
"typescript": "^5.8.2",
64+
"vite": "^6.2.1"
6565
}
6666
}

playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { PlaywrightTestConfig, devices, ViewportSize } from '@playwright/test';
1+
import { devices } from '@playwright/test';
2+
import type { ViewportSize , PlaywrightTestConfig} from '@playwright/test';
23

34
const viewportOverride: ViewportSize = {
45
width: 1400,

src/NMRiumWrapper.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import { NMRium, NMRiumData, NMRiumRefAPI, NMRiumChangeCb } from 'nmrium';
2-
import { useEffect, useState, useCallback, CSSProperties, useRef } from 'react';
1+
import type { NMRiumData, NMRiumRefAPI, NMRiumChangeCb } from 'nmrium';
2+
import { NMRium } from 'nmrium';
3+
import type { CSSProperties} from 'react';
4+
import { useEffect, useState, useCallback, useRef } from 'react';
35
import { RootLayout } from 'react-science/ui';
46

57
import events from './events';

src/demo/NMRiumWrapperDemo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @jsxImportSource @emotion/react */
22
import { css } from '@emotion/react';
3-
import { NMRiumData } from 'nmrium';
3+
import type { NMRiumData } from 'nmrium';
44
import Button from 'nmrium/lib/component/elements/Button';
55

66
import NMRiumWrapper from '../NMRiumWrapper';

src/events/event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EventType, EventData } from './types';
1+
import type { EventType, EventData } from './types';
22

33
const namespace = 'nmr-wrapper';
44

src/events/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { NMRiumData, NMRiumState } from 'nmrium';
2-
import { BlobObject } from 'nmrium/lib/component/utility/export';
1+
import type { NMRiumData, NMRiumState } from 'nmrium';
2+
import type { BlobObject } from 'nmrium/lib/component/utility/export';
33

44
type EventType =
55
| 'load'

src/hooks/useLoadSpectra.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import { FifoLogger } from 'fifo-logger';
22
import { fileCollectionFromFiles } from 'filelist-utils';
3+
import type {
4+
NmriumState,
5+
ParsingOptions,
6+
ViewState
7+
} from 'nmr-load-save';
38
import {
49
read,
510
readFromWebSource,
6-
NmriumState,
7-
CURRENT_EXPORT_VERSION,
8-
ParsingOptions,
9-
ViewState,
11+
CURRENT_EXPORT_VERSION
1012
} from 'nmr-load-save';
1113
import { useCallback, useMemo, useState } from 'react';
1214

@@ -52,7 +54,7 @@ async function loadSpectraFromURLs(urls: string[]) {
5254
const refURL = new URL(url);
5355
const name = getFileNameFromURL(url);
5456
let path = refURL.pathname;
55-
const hasExtension = name && name.includes('.');
57+
const hasExtension = name?.includes('.');
5658
if (!hasExtension) {
5759
path = `${path}.zip`;
5860
}

src/hooks/usePreferences.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { CustomWorkspaces, WorkspacePreferences } from 'nmr-load-save';
2-
import { NMRiumWorkspace } from 'nmrium';
1+
import type { CustomWorkspaces, WorkspacePreferences } from 'nmr-load-save';
2+
import type { NMRiumWorkspace } from 'nmrium';
33
import { useLayoutEffect, useState } from 'react';
44

55
import { getNmrXivWorkspace } from '../workspaces/nmrxiv';

src/utilities/isArrayOfString.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//eslint-disable-next-line @typescript-eslint/no-explicit-any
1+
22
export function isArrayOfString(data: any[]) {
33
return data.every((url) => typeof url === 'string');
44
}

0 commit comments

Comments
 (0)