-
Notifications
You must be signed in to change notification settings - Fork 351
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
Bump neo4j-driver to latest version, and update all requisite dependencies #1983
Changes from all commits
5fb7184
dd7f38d
7657eae
5c1129d
65c0906
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,8 +102,8 @@ | |
"@types/styled-components": "^5.1.1", | ||
"@types/uuid": "^8.3.0", | ||
"@types/whatwg-url": "^8.2.1", | ||
"@typescript-eslint/eslint-plugin": "^3.9.0", | ||
"@typescript-eslint/parser": "^3.9.0", | ||
"@typescript-eslint/eslint-plugin": "^6.21.0", | ||
"@typescript-eslint/parser": "^6.21.0", | ||
"autoprefixer": "^7.1.4", | ||
"babel-eslint": "^10.0.3", | ||
"babel-jest": "^25.2.4", | ||
|
@@ -117,22 +117,22 @@ | |
"cross-env": "^6.0.3", | ||
"css-loader": "^1.0.0", | ||
"cypress": "^8.3.1", | ||
"eslint": "^7.7.0", | ||
"eslint": "^8.57.1", | ||
"eslint-config-prettier": "^6.7.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-jsx": "^0.1.0", | ||
"eslint-plugin-node": "^10.0.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-react": "^7.17.0", | ||
"eslint-plugin-react-hooks": "^4.1.2", | ||
"eslint-plugin-import": "^2.31.0", | ||
"eslint-plugin-react": "^7.37.1", | ||
"eslint-plugin-react-hooks": "^4.6.2", | ||
"express": "^4.15.4", | ||
"file-loader": "^2.0.0", | ||
"fork-ts-checker-notifier-webpack-plugin": "^3.0.0", | ||
"fork-ts-checker-webpack-plugin": "^5.0.14", | ||
"html-loader": "^0.5.5", | ||
"html-webpack-plugin": "^4.5.2", | ||
"husky": "^0.14.3", | ||
"jest": "^25.2.4", | ||
"jest": "^26.6.3", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. v25 has a peer dependency of typescript <v4, so we best update the version however >v27, we run into a host of problems with jestdom and timers that I was unable to resolve after v27, the jestdom environment is no longer included in the main jest package, and must be imported separately as soon as this happens, many tests start throwing errors that there's a lengthy thread here prisma/prisma#8558 with several workarounds however, of the solutions I've tried, I did not get a successful test run
caused any test that relied on RXJS to throw an error that we also started getting snapshot test failures.. the updates to the snapshots were fairly trivial.. removing sticking to v26 negates these issues, although I think we should revisit them soon There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we'd want to invest in the build setup for browser I think it'd make sense to go to vite & vitest, but I don't think it's worth the time |
||
"jest-canvas-mock": "^1.1.0", | ||
"js2xmlparser": "^3.0.0", | ||
"json-loader": "^0.5.7", | ||
|
@@ -146,18 +146,18 @@ | |
"postcss-loader": "^3.0.0", | ||
"postcss-preset-env": "^3.0.2", | ||
"precss": "^2.0.0", | ||
"prettier-eslint": "^13.0.0", | ||
"prettier-eslint-cli": "^5.0.0", | ||
"prettier-eslint": "^16.3.0", | ||
"prettier-eslint-cli": "^8.0.1", | ||
"raf": "^3.4.0", | ||
"raw-loader": "^0.5.1", | ||
"react-hot-loader": "^4.13.0", | ||
"react-refresh": "^0.11.0", | ||
"react-test-renderer": "^17.0.2", | ||
"redux-mock-store": "^1.2.3", | ||
"style-loader": "^0.23.1", | ||
"ts-jest": "^25.0.0", | ||
"ts-jest": "^26.5.6", | ||
"ts-loader": "^8.0.2", | ||
"typescript": "^3.9.5", | ||
"typescript": "^4.6.3", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. introducing the latest driver version also introduced some type errors at compile time here, I've set the version of typescript to match that of the neo4j js driver |
||
"typescript-plugin-styled-components": "^1.5.0", | ||
"url-loader": "^1.1.2", | ||
"wait-on": "^3.1.0", | ||
|
@@ -206,7 +206,8 @@ | |
"memoize-one": "^5.2.1", | ||
"monaco-editor": "0.23.0", | ||
"neo4j-client-sso": "1.2.3", | ||
"neo4j-driver": "5.9.2", | ||
"neo4j-driver": "5.26.0", | ||
"neo4j-driver-core": "5.26.0", | ||
"re-resizable": "^6.9.9", | ||
"react": "^17.0.2", | ||
"react-dnd": "^11.1.3", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,7 @@ export type CypherBasicPropertyType = | |
| number | ||
| string | ||
| Integer | ||
| BigInt | ||
| bigint | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| Int8Array | ||
| CypherTemporalType | ||
| Point | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,6 @@ export function mapObjectValues<A, B>( | |
) | ||
} | ||
|
||
export function keys<T>(object: T): Array<keyof T> { | ||
export function keys<T extends {}>(object: T): Array<keyof T> { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixes a compile error where having T extend object satisfies the param types
|
||
return Object.keys(object) as Array<keyof T> | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { BrowserError } from 'services/exceptions' | ||
|
||
export function isError(error: unknown): error is Error { | ||
return error instanceof Error | ||
} | ||
|
||
export function isBrowserError(error: unknown): error is BrowserError { | ||
return error instanceof Error && 'code' in error | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the version of eslint we were using similarly had a peer dependency on typescript <v4
v9 has some breaking changes with eslint config, again, something we should address, but to keep the change surface low, I've gone with v8