Skip to content

Commit b2d009e

Browse files
committed
chore: update dependencies
1 parent 3a2122f commit b2d009e

41 files changed

Lines changed: 91 additions & 97 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,26 @@
4040
},
4141
"dependencies": {
4242
"binary-search": "^1.3.6",
43-
"cheminfo-types": "^1.10.0",
43+
"cheminfo-types": "^1.15.0",
4444
"fft.js": "^4.0.4",
45-
"is-any-array": "^2.0.1",
45+
"is-any-array": "^3.0.0",
4646
"ml-matrix": "^6.12.1",
4747
"ml-xsadd": "^3.0.1"
4848
},
4949
"devDependencies": {
50-
"@types/node": "^25.3.0",
51-
"@vitest/coverage-v8": "^4.0.18",
52-
"@zakodium/tsconfig": "^1.0.2",
50+
"@types/node": "^25.5.2",
51+
"@vitest/coverage-v8": "^4.1.3",
52+
"@zakodium/tsconfig": "^1.0.5",
5353
"cheminfo-build": "^1.3.2",
5454
"eslint": "^9.39.2",
55-
"eslint-config-cheminfo-typescript": "^21.1.0",
55+
"eslint-config-cheminfo-typescript": "^21.2.0",
5656
"jest-matcher-deep-close-to": "^3.0.2",
5757
"ml-spectra-fitting": "^5.0.1",
5858
"prettier": "^3.8.1",
5959
"rimraf": "^6.1.3",
6060
"spectrum-generator": "^8.1.1",
6161
"typescript": "^5.9.3",
62-
"vitest": "^4.0.18"
62+
"vitest": "^4.1.3"
6363
},
6464
"repository": {
6565
"type": "git",

src/matrix/__tests__/matrixAutoCorrelation.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test('simple', () => {
1717
test('matrixAutoCorrelation too small', () => {
1818
const matrix = [[0]];
1919

20-
expect(() => matrixAutoCorrelation(matrix)).toThrowError(
20+
expect(() => matrixAutoCorrelation(matrix)).toThrow(
2121
'can not calculate info if matrix contains less than 2 rows',
2222
);
2323
});

src/matrix/__tests__/matrixBoxPlot.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ test('matrixBoxPlot odd small', () => {
6666
test('matrixBoxPlot too small', () => {
6767
const matrix = [[0], [1], [2], [4]];
6868

69-
expect(() => matrixBoxPlot(matrix)).toThrowError(
69+
expect(() => matrixBoxPlot(matrix)).toThrow(
7070
'can not calculate info if matrix contains less than 5 rows',
7171
);
7272
});

src/matrix/__tests__/matrixCheck.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ test('should throw error', () => {
88
[3, 2, 3],
99
];
1010

11-
expect(() => matrixCheck(wrongMatrix)).toThrowError(
11+
expect(() => matrixCheck(wrongMatrix)).toThrow(
1212
'all rows must has the same length',
1313
);
1414
});

src/matrix/__tests__/matrixCheckRanges.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test('should not throw error for valid indices', () => {
1818
endColumn: 2,
1919
};
2020

21-
expect(() => matrixCheckRanges(matrix, options)).not.toThrowError();
21+
expect(() => matrixCheckRanges(matrix, options)).not.toThrow();
2222
});
2323

2424
test('should throw RangeError for out-of-range indices', () => {
@@ -38,5 +38,5 @@ test('should throw RangeError for out-of-range indices', () => {
3838
};
3939

4040
// Call the function and expect test to throw RangeError
41-
expect(() => matrixCheckRanges(matrix, options)).toThrowError(RangeError);
41+
expect(() => matrixCheckRanges(matrix, options)).toThrow(RangeError);
4242
});

src/matrix/__tests__/matrixGetSubMatrix.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ test('should throw RangeError for out-of-range indices', () => {
6464
duplicate: true,
6565
};
6666

67-
expect(() => matrixGetSubMatrix(matrix, options)).toThrowError(RangeError);
67+
expect(() => matrixGetSubMatrix(matrix, options)).toThrow(RangeError);
6868
});

src/matrix/__tests__/matrixHilbertTransform.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ test('matrixHilbertTransform: output arrays are independent (no shared buffers)'
3232
test('matrixHilbertTransform: throws RangeError when length is not a power of two', () => {
3333
const rows = [Float64Array.from([1, 2, 3, 4, 5, 6])];
3434

35-
expect(() => matrixHilbertTransform(rows)).toThrowError(RangeError);
36-
expect(() => matrixHilbertTransform(rows)).toThrowError(/power of two/);
35+
expect(() => matrixHilbertTransform(rows)).toThrow(RangeError);
36+
expect(() => matrixHilbertTransform(rows)).toThrow(/power of two/);
3737
});
3838

3939
test('matrixHilbertTransform: throws RangeError when rows have different lengths', () => {
4040
const rows = [row0, Float64Array.from([1, 2, 3, 4])];
4141

42-
expect(() => matrixHilbertTransform(rows)).toThrowError(RangeError);
43-
expect(() => matrixHilbertTransform(rows)).toThrowError(/row 1/);
42+
expect(() => matrixHilbertTransform(rows)).toThrow(RangeError);
43+
expect(() => matrixHilbertTransform(rows)).toThrow(/row 1/);
4444
});
4545

4646
test('matrixHilbertTransform inPlace: result shares references with input', () => {

src/matrix/__tests__/matrixMaxAbsoluteZ.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ test('large negative', () => {
2727
test('zero', () => {
2828
expect(() => {
2929
matrixMaxAbsoluteZ([[]]);
30-
}).toThrowError('matrix must have at least 1 row and 1 column');
30+
}).toThrow('matrix must have at least 1 row and 1 column');
3131
});

src/matrix/__tests__/matrixMinMaxAbsoluteZ.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ test('zero', () => {
1818

1919
expect(() => {
2020
matrixMinMaxAbsoluteZ(matrix);
21-
}).toThrowError('matrixMinMaxAbsoluteZ requires at least 1 row and 1 column');
21+
}).toThrow('matrixMinMaxAbsoluteZ requires at least 1 row and 1 column');
2222
});

src/matrix/__tests__/matrixMinMaxZ.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ test('basic', () => {
1616
test('zero', () => {
1717
expect(() => {
1818
matrixMinMaxZ([[]]);
19-
}).toThrowError('matrix must contain data');
19+
}).toThrow('matrix must contain data');
2020
});

0 commit comments

Comments
 (0)