Skip to content

Commit d884171

Browse files
authored
Development Dependency updates and tightening security (#1405)
1 parent 6714eba commit d884171

16 files changed

Lines changed: 2293 additions & 3711 deletions

File tree

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"private": true,
44
"type": "module",
55
"devDependencies": {
6-
"@types/node": "^24.0.10",
7-
"husky": "^8.0.3",
8-
"lerna": "^9.0.3",
9-
"lint-staged": "^16.2.3",
10-
"standard": "^17.1.2",
11-
"ts-standard": "^12.0.2",
12-
"typescript": "^5.9.2"
6+
"@types/node": "^24.12.2",
7+
"husky": "8.0.3",
8+
"lerna": "9.0.7",
9+
"lint-staged": "16.4.0",
10+
"standard": "17.1.2",
11+
"ts-standard": "12.0.2",
12+
"typescript": "5.9.3"
1313
},
1414
"lint-staged": {
1515
"*.{js,html}": [

packages/bolt-connection/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
"devDependencies": {
3535
"@types/jest": "^29.5.3",
3636
"@types/node": "^24.3.0",
37-
"fast-check": "^3.10.0",
38-
"jest": "^29.6.2",
39-
"lolex": "^6.0.0",
40-
"ts-jest": "^29.1.1",
41-
"typescript": "^5.9.2"
37+
"fast-check": "3.23.2",
38+
"jest": "29.7.0",
39+
"@sinonjs/fake-timers": "15.3.2",
40+
"ts-jest": "29.4.9",
41+
"typescript": "5.9.3"
4242
},
4343
"dependencies": {
4444
"buffer": "^6.0.3",

packages/bolt-connection/test/rediscovery/rediscovery.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { RawRoutingTable } from '../../src/bolt'
1919
import Rediscovery from '../../src/rediscovery'
2020
import RoutingTable from '../../src/rediscovery/routing-table'
2121
import FakeConnection from '../fake-connection'
22-
import lolex from 'lolex'
22+
import lolex from '@sinonjs/fake-timers'
2323
import { newError, error, int, internal } from 'neo4j-driver-core'
2424

2525
const {

packages/core/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737
"devDependencies": {
3838
"@types/jest": "^29.5.10",
3939
"@types/node": "^24.3.0",
40-
"esdoc": "^1.1.0",
41-
"esdoc-importpath-plugin": "^1.0.2",
42-
"esdoc-standard-plugin": "^1.0.0",
43-
"fast-check": "^3.14.0",
44-
"jest": "^29.7.0",
40+
"esdoc": "1.1.0",
41+
"esdoc-importpath-plugin": "1.0.2",
42+
"esdoc-standard-plugin": "1.0.0",
43+
"fast-check": "3.23.2",
44+
"jest": "29.7.0",
4545
"source-map": "0.7.4",
46-
"ts-jest": "^29.1.1",
47-
"ts-node": "^10.9.1",
48-
"typescript": "^5.9.2"
46+
"ts-jest": "29.4.9",
47+
"ts-node": "10.9.2",
48+
"typescript": "5.9.3"
4949
}
5050
}

packages/neo4j-driver-lite/package.json

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,20 @@
4848
"@rollup/plugin-commonjs": "^21.1.0",
4949
"@rollup/plugin-node-resolve": "^13.3.0",
5050
"@types/jest": "^29.5.10",
51-
"browser-resolve": "^2.0.0",
52-
"browserify-sign": "^4.2.2",
53-
"esdoc": "^1.1.0",
54-
"esdoc-importpath-plugin": "^1.0.2",
55-
"esdoc-standard-plugin": "^1.0.0",
56-
"isomorphic-ws": "^4.0.1",
57-
"jest": "^29.7.0",
58-
"rollup": "^2.77.4-1",
59-
"rollup-plugin-polyfill-node": "^0.11.0",
60-
"testcontainers": "^8.16.0",
61-
"ts-jest": "^29.1.1",
62-
"ts-node": "^10.9.1",
63-
"typescript": "^5.9.2",
64-
"uglify-js": "^3.17.4",
65-
"ws": "^8.14.2"
51+
"browser-resolve": "2.0.0",
52+
"esdoc": "1.1.0",
53+
"esdoc-importpath-plugin": "1.0.2",
54+
"esdoc-standard-plugin": "1.0.0",
55+
"isomorphic-ws": "4.0.1",
56+
"jest": "29.7.0",
57+
"rollup": "2.80.0",
58+
"rollup-plugin-polyfill-node": "0.13.0",
59+
"testcontainers": "8.16.0",
60+
"ts-jest": "29.4.9",
61+
"ts-node": "10.9.2",
62+
"typescript": "5.9.3",
63+
"uglify-js": "3.19.3",
64+
"ws": "8.20.0"
6665
},
6766
"dependencies": {
6867
"neo4j-driver-bolt-connection": "workspace:*",

packages/neo4j-driver/gulpfile.babel.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ const uglify = require('gulp-uglify')
2121
const watch = require('gulp-watch')
2222
const batch = require('gulp-batch')
2323
const replace = require('gulp-replace')
24-
const fs = require('fs-extra')
2524
const path = require('path')
2625
const minimist = require('minimist')
27-
const install = require('gulp-install')
28-
const file = require('gulp-file')
2926
const rollup = require('rollup')
3027
const rollupCommonJs = require('@rollup/plugin-commonjs')
3128
const rollupNodeResolve = require('@rollup/plugin-node-resolve').default
@@ -86,26 +83,6 @@ gulp.task('browser::esm', gulp.series('generate-esm-bundle', 'minify-esm-bundle'
8683
/** Build all-in-one files for use in the browser */
8784
gulp.task('browser', gulp.series('nodejs', gulp.parallel('browser::umd', 'browser::esm')))
8885

89-
// prepares directory for package.test.js
90-
gulp.task(
91-
'install-driver-into-sandbox',
92-
gulp.series('nodejs', function () {
93-
const testDir = path.join('build', 'sandbox')
94-
fs.emptyDirSync(testDir)
95-
96-
const packageJsonContent = JSON.stringify({
97-
private: true,
98-
dependencies: {
99-
'neo4j-driver': __dirname
100-
}
101-
})
102-
103-
return file('package.json', packageJsonContent, { src: true })
104-
.pipe(gulp.dest(testDir))
105-
.pipe(install())
106-
})
107-
)
108-
10986
gulp.task('test-nodejs', () => {
11087
return runJestTests()
11188
})

packages/neo4j-driver/package.json

Lines changed: 35 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -44,51 +44,46 @@
4444
"jsdelivr": "lib/browser/neo4j-web.js",
4545
"types": "types/index.d.ts",
4646
"devDependencies": {
47-
"@babel/core": "^7.20.7",
48-
"@babel/plugin-transform-runtime": "^7.19.6",
49-
"@babel/preset-env": "^7.20.7",
50-
"@babel/register": "^7.18.9",
51-
"@babel/runtime": "^7.20.7",
47+
"@babel/core": "7.29.0",
48+
"@babel/plugin-transform-runtime": "7.29.0",
49+
"@babel/preset-env": "7.29.2",
50+
"@babel/register": "7.28.6",
51+
"@babel/runtime": "7.29.2",
5252
"@rollup/plugin-commonjs": "^21.1.0",
5353
"@rollup/plugin-node-resolve": "^13.3.0",
54-
"@types/node": "^24.3.0",
55-
"@types/vinyl": "^2.0.12",
5654
"@types/jest": "^29.5.14",
57-
"async": "^3.2.5",
58-
"browser-resolve": "^2.0.0",
59-
"browserify-sign": "^4.2.2",
60-
"esdoc": "^1.1.0",
61-
"esdoc-importpath-plugin": "^1.0.2",
62-
"esdoc-standard-plugin": "^1.0.0",
63-
"fancy-log": "^2.0.0",
64-
"fs-extra": "^11.1.1",
65-
"gulp": "^4.0.2",
66-
"gulp-batch": "^1.0.5",
67-
"gulp-decompress": "^3.0.0",
68-
"gulp-download": "^0.0.1",
69-
"gulp-file": "^0.4.0",
70-
"gulp-install": "^1.1.0",
71-
"gulp-replace": "^1.1.4",
72-
"gulp-typescript": "^5.0.1",
73-
"gulp-uglify": "^3.0.2",
74-
"gulp-watch": "^5.0.1",
75-
"isomorphic-ws": "^4.0.1",
76-
"jest": "^29.7.0",
77-
"jest-environment-jsdom": "^29.7.0",
78-
"lolex": "^6.0.0",
79-
"minimist": "^1.2.8",
80-
"rollup": "^2.77.4-1",
81-
"rollup-plugin-polyfill-node": "^0.11.0",
82-
"semver": "^7.5.4",
55+
"@types/node": "^24.12.2",
56+
"@types/vinyl": "^2.0.12",
57+
"async": "3.2.6",
58+
"browser-resolve": "2.0.0",
59+
"esdoc": "1.1.0",
60+
"esdoc-importpath-plugin": "1.0.2",
61+
"esdoc-standard-plugin": "1.0.0",
62+
"fancy-log": "2.0.0",
63+
"gulp": "4.0.2",
64+
"gulp-batch": "1.0.5",
65+
"gulp-decompress": "3.0.0",
66+
"gulp-replace": "1.1.4",
67+
"gulp-typescript": "5.0.1",
68+
"gulp-uglify": "3.0.2",
69+
"gulp-watch": "5.0.1",
70+
"isomorphic-ws": "4.0.1",
71+
"jest": "29.7.0",
72+
"jest-environment-jsdom": "29.7.0",
73+
"@sinonjs/fake-timers": "15.3.2",
74+
"minimist": "1.2.8",
75+
"rollup": "2.80.0",
76+
"rollup-plugin-polyfill-node": "0.13.0",
77+
"semver": "7.7.4",
8378
"source-map": "0.7.4",
84-
"testcontainers": "^8.16.0",
79+
"testcontainers": "8.16.0",
8580
"tmp": "0.2.1",
86-
"ts-jest": "^29.1.1",
87-
"ts-node": "^10.9.1",
88-
"typescript": "^5.9.2",
89-
"vinyl-buffer": "^1.0.1",
90-
"webpack": "^5.89.0",
91-
"ws": "^8.14.2"
81+
"ts-jest": "29.4.9",
82+
"ts-node": "10.9.2",
83+
"typescript": "5.9.3",
84+
"vinyl-buffer": "1.0.1",
85+
"webpack": "5.106.2",
86+
"ws": "8.20.0"
9287
},
9388
"dependencies": {
9489
"neo4j-driver-bolt-connection": "workspace:*",

packages/neo4j-driver/test/driver.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import neo4j from '../src'
1919
import sharedNeo4j from './internal/shared-neo4j'
20-
import lolex from 'lolex'
20+
import lolex from '@sinonjs/fake-timers'
2121
import testUtils from './internal/test-utils'
2222
import { json, internal, bookmarkManager } from 'neo4j-driver-core'
2323

packages/neo4j-driver/test/internal/connection-channel.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { alloc } from '../../../bolt-connection/lib/channel'
2525
import { Neo4jError, newError, error, internal } from 'neo4j-driver-core'
2626
import sharedNeo4j from '../internal/shared-neo4j'
2727
import { ServerVersion } from '../../src/internal/server-version'
28-
import lolex from 'lolex'
28+
import lolex from '@sinonjs/fake-timers'
2929
import ConnectionErrorHandler from '../../../bolt-connection/lib/connection/connection-error-handler'
3030
import testUtils from '../internal/test-utils'
3131
import { WRITE } from '../../src/driver'

packages/neo4j-driver/test/internal/connection-provider-pooled.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
import PooledConnectionProvider from '../../../bolt-connection/lib/connection-provider/connection-provider-pooled'
1818
import FakeConnection from './fake-connection'
19-
import lolex from 'lolex'
19+
import lolex from '@sinonjs/fake-timers'
2020

2121
describe('#unit PooledConnectionProvider', () => {
2222
it('should treat closed connections as invalid', async () => {

0 commit comments

Comments
 (0)