Skip to content

Commit c68efec

Browse files
committed
bump the driver
1 parent d11ce46 commit c68efec

File tree

6 files changed

+39
-40
lines changed

6 files changed

+39
-40
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"mui-color": "^2.0.0-beta.2",
7474
"mui-nested-menu": "^3.2.1",
7575
"neo4j-client-sso": "^1.2.2",
76-
"neo4j-driver": "^4.4.5",
76+
"neo4j-driver": "^5.12.0",
7777
"openai": "^3.3.0",
7878
"postcss": "^8.4.21",
7979
"postcss-loader": "^7.2.4",

src/chart/parameter/component/DateParameterSelect.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React, { useEffect } from 'react';
2-
import { ParameterSelectProps } from './ParameterSelect';
3-
import NeoDatePicker from '../../../component/field/DateField';
41
import dayjs from 'dayjs';
52
import { Date as Neo4jDate } from 'neo4j-driver-core/lib/temporal-types.js';
3+
import React, { useEffect } from 'react';
4+
import NeoDatePicker from '../../../component/field/DateField';
65
import { isCastableToNeo4jDate, isEmptyObject } from '../../ChartUtils';
6+
import { ParameterSelectProps } from './ParameterSelect';
77

88
function castPropsToBoltDate(dict) {
99
if (isEmptyObject(dict)) {
@@ -55,7 +55,7 @@ const DatePickerParameterSelectComponent = (props: ParameterSelectProps) => {
5555
setInputDate(newValue);
5656

5757
// Check whether the user has inputted a valid year. If not, do not update the parameter.
58-
if (!newValue || isNaN(newValue.$y) || isNaN(newValue.$m) || isNaN(newValue.$d)) {
58+
if (!newValue || Number.isNaN(newValue.$y) || Number.isNaN(newValue.$m) || Number.isNaN(newValue.$d)) {
5959
return;
6060
}
6161
if (newValue == null && clearParameterOnFieldClear) {

src/extensions/advancedcharts/chart/gauge/GaugeChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const NeoGaugeChart = (props: ChartProps) => {
4242
const chartId = createUUID();
4343
let score = records && records[0] && records[0]._fields && records[0]._fields[0] ? records[0]._fields[0] : '';
4444

45-
if (isNaN(score)) {
45+
if (Number.isNaN(score)) {
4646
return <NoDrawableDataErrorMessage />;
4747
}
4848
if (score.low != undefined) {

src/extensions/advancedcharts/chart/radar/RadarChart.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { ResponsiveRadar } from '@nivo/radar';
12
import React from 'react';
23
import { ChartProps } from '../../../../chart/Chart';
3-
import { ResponsiveRadar } from '@nivo/radar';
4-
import { evaluateRulesOnDict, useStyleRules } from '../../../styling/StyleRuleEvaluator';
5-
import { NoDrawableDataErrorMessage } from '../../../../component/editor/CodeViewerComponent';
64
import { themeNivo } from '../../../../chart/Utils';
5+
import { NoDrawableDataErrorMessage } from '../../../../component/editor/CodeViewerComponent';
76
import { extensionEnabled } from '../../../../utils/ReportUtils';
7+
import { evaluateRulesOnDict, useStyleRules } from '../../../styling/StyleRuleEvaluator';
88

99
/**
1010
* Embeds a RadarChart (from Charts) into NeoDash.
@@ -67,7 +67,7 @@ const NeoRadarChart = (props: ChartProps) => {
6767
const entry = {};
6868
selection.values.concat([selection.index]).forEach((k) => {
6969
const fieldIndex = r._fieldLookup[k];
70-
if (k !== selection.index && isNaN(r._fields[fieldIndex])) {
70+
if (k !== selection.index && Number.isNaN(r._fields[fieldIndex])) {
7171
valid = false;
7272
}
7373
entry[k] = `${r._fields[fieldIndex]}`;

src/extensions/advancedcharts/chart/sankey/SankeyChart.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import React, { useEffect, useState } from 'react';
21
import { ResponsiveSankey } from '@nivo/sankey';
2+
import React, { useEffect, useState } from 'react';
33
import { ChartProps } from '../../../../chart/Chart';
44
import { valueIsArray, valueIsNode, valueIsPath, valueIsRelationship } from '../../../../chart/ChartUtils';
5+
import { themeNivo } from '../../../../chart/Utils';
6+
import NeoCodeViewerComponent from '../../../../component/editor/CodeViewerComponent';
57
import { categoricalColorSchemes } from '../../../../config/ColorConfig';
8+
import { extensionEnabled } from '../../../../utils/ReportUtils';
69
import { evaluateRulesOnDict, evaluateRulesOnNode, useStyleRules } from '../../../styling/StyleRuleEvaluator';
7-
import NeoCodeViewerComponent from '../../../../component/editor/CodeViewerComponent';
810
import { isCyclic } from '../../Utils';
9-
import { themeNivo } from '../../../../chart/Utils';
10-
import { extensionEnabled } from '../../../../utils/ReportUtils';
1111

1212
const UNWEIGHTED_SANKEY_PROPERTY = 'SANKEY_UNWEIGHTED';
1313

@@ -86,7 +86,7 @@ const NeoSankeyChart = (props: ChartProps) => {
8686
properties: value.properties,
8787
value: 1,
8888
});
89-
} else if (value.properties[labelProperty] !== undefined && !isNaN(value.properties[labelProperty])) {
89+
} else if (value.properties[labelProperty] !== undefined && !Number.isNaN(value.properties[labelProperty])) {
9090
addItem(links[`${value.start.low},${value.end.low}`], {
9191
id: value.identity.low,
9292
source: value.start.low,

yarn.lock

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10117,29 +10117,28 @@ neo4j-client-sso@^1.2.2:
1011710117
jwt-decode "^3.1.2"
1011810118
lodash.pick "^4.4.0"
1011910119

10120-
neo4j-driver-bolt-connection@^4.4.10:
10121-
version "4.4.10"
10122-
resolved "https://registry.yarnpkg.com/neo4j-driver-bolt-connection/-/neo4j-driver-bolt-connection-4.4.10.tgz#a8b5b7f82b1d6f9a71a43eafcb0e21512ea24908"
10123-
integrity sha512-xK41qY9LEoND3SIB/dJao1t1k3Y0jZlSb3fFrzL7qrrsAx6ClnOvRpJvcNvmjDjyjKXt6tBhElUvIFXqEuJUNQ==
10120+
neo4j-driver-bolt-connection@5.20.0:
10121+
version "5.20.0"
10122+
resolved "https://registry.yarnpkg.com/neo4j-driver-bolt-connection/-/neo4j-driver-bolt-connection-5.20.0.tgz#5b7f662a640e01b19f1e116313d3284d61d887e5"
10123+
integrity sha512-jSF2S/kBJBKGCUsOA0z4HFffVKQnHivSQagU1+lQH2fN2WIWy8iJIBngZWkvUaFIvE54a++WCVjE28CAtyzmPw==
1012410124
dependencies:
1012510125
buffer "^6.0.3"
10126-
neo4j-driver-core "^4.4.10"
10126+
neo4j-driver-core "5.20.0"
1012710127
string_decoder "^1.3.0"
1012810128

10129-
neo4j-driver-core@^4.4.10:
10130-
version "4.4.10"
10131-
resolved "https://registry.yarnpkg.com/neo4j-driver-core/-/neo4j-driver-core-4.4.10.tgz#6f4c1ccc1199f864b149bdcef5e50e45ff95c29e"
10132-
integrity sha512-MBHxQSfqnvctgbHIhvY9CitHoFgSVR4rpx6rLX9VP/daGU5U7YZ2BrKHxuWpIxteHafUqmBFmk0frbx8tYGELA==
10129+
neo4j-driver-core@5.20.0:
10130+
version "5.20.0"
10131+
resolved "https://registry.yarnpkg.com/neo4j-driver-core/-/neo4j-driver-core-5.20.0.tgz#5bacdabf17249dc730c5ab2f7c3e7769dedc194f"
10132+
integrity sha512-TJx4MyKPGw+ocev8mo+3MPI4tt7KirHPM/c3Oa6X8s4jvCKucoslld5MoBYRfBXeqqVZL4FfWoFP1pOn9U0HuQ==
1013310133

10134-
neo4j-driver@^4.4.5:
10135-
version "4.4.10"
10136-
resolved "https://registry.yarnpkg.com/neo4j-driver/-/neo4j-driver-4.4.10.tgz#bcd17c083212dbabd295b77857a753ca04473237"
10137-
integrity sha512-FLAytWQbR1CkRFBlmt5N5+PDuKQpSARQXT7F+LFJPar3CKjMrP4VNT5UKfkl0tVc5QSrTxF/Aw2YGBzhs1kyCA==
10134+
neo4j-driver@^5.12.0:
10135+
version "5.20.0"
10136+
resolved "https://registry.yarnpkg.com/neo4j-driver/-/neo4j-driver-5.20.0.tgz#2730995bb5380228e0230a85530bfe13a9b8d38a"
10137+
integrity sha512-VCH/ay+fmaGkl5wr6lnDZE/QLFDXzamCtF22QMjPHAcBuwee9PWq0ZbtRlkUfpYVCduWm5HjSNBbNu8SZmUn+A==
1013810138
dependencies:
10139-
"@babel/runtime" "^7.5.5"
10140-
neo4j-driver-bolt-connection "^4.4.10"
10141-
neo4j-driver-core "^4.4.10"
10142-
rxjs "^6.6.3"
10139+
neo4j-driver-bolt-connection "5.20.0"
10140+
neo4j-driver-core "5.20.0"
10141+
rxjs "^7.8.1"
1014310142

1014410143
next-tick@1, next-tick@^1.0.0, next-tick@^1.1.0:
1014510144
version "1.1.0"
@@ -11926,20 +11925,20 @@ rw@1:
1192611925
resolved "https://registry.yarnpkg.com/rw/-/rw-1.3.3.tgz#3f862dfa91ab766b14885ef4d01124bfda074fb4"
1192711926
integrity sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==
1192811927

11929-
rxjs@^6.6.3:
11930-
version "6.6.7"
11931-
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9"
11932-
integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==
11933-
dependencies:
11934-
tslib "^1.9.0"
11935-
1193611928
rxjs@^7.5.1, rxjs@^7.5.5, rxjs@^7.8.0:
1193711929
version "7.8.0"
1193811930
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.0.tgz#90a938862a82888ff4c7359811a595e14e1e09a4"
1193911931
integrity sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==
1194011932
dependencies:
1194111933
tslib "^2.1.0"
1194211934

11935+
rxjs@^7.8.1:
11936+
version "7.8.1"
11937+
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543"
11938+
integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==
11939+
dependencies:
11940+
tslib "^2.1.0"
11941+
1194311942
sade@^1.7.3:
1194411943
version "1.8.1"
1194511944
resolved "https://registry.yarnpkg.com/sade/-/sade-1.8.1.tgz#0a78e81d658d394887be57d2a409bf703a3b2701"
@@ -12890,7 +12889,7 @@ tsconfig-paths@^3.14.1:
1289012889
minimist "^1.2.6"
1289112890
strip-bom "^3.0.0"
1289212891

12893-
tslib@^1.8.1, tslib@^1.9.0:
12892+
tslib@^1.8.1:
1289412893
version "1.14.1"
1289512894
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
1289612895
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==

0 commit comments

Comments
 (0)