Skip to content

Commit 87caa63

Browse files
authored
Bump dependencies (#699)
* Bump dependencies * Mongo test types
1 parent 5943bb6 commit 87caa63

9 files changed

Lines changed: 5922 additions & 3807 deletions

File tree

package-lock.json

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

package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -40,60 +40,60 @@
4040
"migrate:status": "migrate-mongo status -f migrate-mongo-config.js"
4141
},
4242
"dependencies": {
43-
"@aws-sdk/client-s3": "^3.911.0",
44-
"@aws-sdk/client-sns": "^3.911.0",
45-
"@defra/forms-model": "^3.0.578",
46-
"@defra/hapi-tracing": "^1.28.0",
43+
"@aws-sdk/client-s3": "^3.934.0",
44+
"@aws-sdk/client-sns": "^3.934.0",
45+
"@defra/forms-model": "^3.0.581",
46+
"@defra/hapi-tracing": "^1.29.0",
4747
"@elastic/ecs-pino-format": "^1.5.0",
48-
"@hapi/hapi": "^21.4.3",
48+
"@hapi/hapi": "^21.4.4",
4949
"@hapi/hoek": "^11.0.7",
5050
"@hapi/jwt": "^3.2.1",
5151
"aws4": "^1.13.2",
5252
"convict": "^6.2.4",
5353
"dotenv": "^17.2.3",
54-
"hapi-pino": "^12.1.0",
54+
"hapi-pino": "^13.0.0",
5555
"http-status-codes": "^2.3.0",
5656
"joi": "^17.13.3",
5757
"migrate-mongo": "^12.1.3",
58-
"mongodb": "^6.18.0",
59-
"pino": "^9.7.0",
60-
"pino-pretty": "^13.0.0",
58+
"mongodb": "^6.21.0",
59+
"pino": "^9.14.0",
60+
"pino-pretty": "^13.1.2",
6161
"proxy-agent": "^6.5.0"
6262
},
6363
"devDependencies": {
64-
"@babel/cli": "^7.27.2",
65-
"@babel/core": "^7.27.4",
64+
"@babel/cli": "^7.28.3",
65+
"@babel/core": "^7.28.5",
6666
"@babel/plugin-syntax-import-attributes": "^7.27.1",
67-
"@babel/preset-env": "^7.27.2",
67+
"@babel/preset-env": "^7.28.5",
6868
"@types/convict": "^6.1.6",
6969
"@types/eslint": "^9.6.1",
7070
"@types/jest": "^29.5.14",
71-
"@types/node": "^24.0.3",
71+
"@types/node": "^24.10.1",
7272
"@types/slug": "^5.0.9",
73-
"@typescript-eslint/eslint-plugin": "^8.34.1",
74-
"@typescript-eslint/parser": "^8.32.0",
73+
"@typescript-eslint/eslint-plugin": "^8.47.0",
74+
"@typescript-eslint/parser": "^8.47.0",
7575
"aws-sdk-client-mock": "^4.1.0",
7676
"aws-sdk-client-mock-jest": "^4.1.0",
77-
"babel-jest": "^30.0.2",
77+
"babel-jest": "^30.2.0",
7878
"babel-plugin-module-resolver": "^5.0.2",
7979
"babel-plugin-transform-import-meta": "^2.3.3",
80-
"editorconfig-checker": "^6.0.1",
80+
"editorconfig-checker": "^6.1.1",
8181
"eslint": "^8.57.1",
82-
"eslint-config-prettier": "^10.1.5",
82+
"eslint-config-prettier": "^10.1.8",
8383
"eslint-config-standard": "^17.1.0",
84-
"eslint-import-resolver-typescript": "^4.4.3",
85-
"eslint-plugin-import": "^2.31.0",
84+
"eslint-import-resolver-typescript": "^4.4.4",
85+
"eslint-plugin-import": "^2.32.0",
8686
"eslint-plugin-jest": "^28.14.0",
87-
"eslint-plugin-jsdoc": "^51.0.1",
87+
"eslint-plugin-jsdoc": "^51.4.1",
8888
"eslint-plugin-n": "^16.6.2",
8989
"eslint-plugin-promise": "^6.6.0",
9090
"husky": "^9.1.7",
9191
"jest": "^29.7.0",
92-
"lint-staged": "^16.1.2",
93-
"oidc-client-ts": "^3.3.0",
94-
"prettier": "^3.5.3",
95-
"tsx": "^4.19.4",
96-
"typescript": "^5.8.3"
92+
"lint-staged": "^16.2.6",
93+
"oidc-client-ts": "^3.4.1",
94+
"prettier": "^3.6.2",
95+
"tsx": "^4.20.6",
96+
"typescript": "^5.9.3"
9797
},
9898
"engines": {
9999
"node": "^22.11.0",

src/api/forms/__stubs__/mongo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export const buildMockCollection = () => {
44
bulkWrite: jest.fn(),
55
count: jest.fn(),
66
countDocuments: jest.fn(),
7+
db: jest.fn(),
78
deleteMany: jest.fn(),
89
deleteOne: jest.fn(),
910
hint: jest.fn(),

src/api/forms/repositories/form-definition-repository.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,9 @@ describe('form-definition-repository', () => {
145145
let conditions
146146

147147
beforeEach(() => {
148-
jest.mocked(db.collection).mockReturnValue(mockCollection)
149-
148+
jest
149+
.mocked(db.collection)
150+
.mockReturnValue(/** @type {any} */ (mockCollection))
150151
mockDefinition = buildDefinition({})
151152
const component1 = buildTextFieldComponent({
152153
id: component1Id

src/api/forms/repositories/form-metadata-repository.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ describe('form-metadata-repository', () => {
8383
})
8484

8585
beforeEach(() => {
86-
jest.mocked(db.collection).mockReturnValue(mockCollection)
86+
jest
87+
.mocked(db.collection)
88+
.mockReturnValue(/** @type {any} */ (mockCollection))
8789
jest.clearAllMocks()
8890
})
8991
describe('update', () => {

src/api/forms/repositories/form-versions-repository.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ describe('form-versions-repository', () => {
4141

4242
beforeEach(() => {
4343
jest.clearAllMocks()
44-
jest.mocked(db.collection).mockReturnValue(mockCollection)
44+
jest
45+
.mocked(db.collection)
46+
.mockReturnValue(/** @type {any} */ (mockCollection))
4547
})
4648

4749
describe('createVersion', () => {

src/api/forms/repositories/helpers.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,9 @@ describe('repository helpers', () => {
436436

437437
describe('removeById', () => {
438438
beforeEach(() => {
439-
jest.mocked(db.collection).mockReturnValue(mockCollection)
439+
jest
440+
.mocked(db.collection)
441+
.mockReturnValue(/** @type {any} */ (mockCollection))
440442
})
441443

442444
it('should remove', async () => {

src/api/forms/service/condition-migration-helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ export function convertConditionDataToV2(
273273
// if a condition can't be migrated and is in use, throw an error, else we discard the orphaned condition
274274
if (componentId) {
275275
return {
276-
id: randomUUID().toString(),
276+
id: randomUUID(),
277277
componentId,
278278
operator: conditionData.operator,
279279
type: determineConditionType(conditionData),

src/plugins/auth/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function processGroupsClaim(groupsClaim, oid) {
3636
processedGroups = parsed
3737
} else {
3838
logger.warn(
39-
`[authGroupsInvalid] Auth: User ${oid}: 'groups' claim was string but not valid JSON array: '${String(groupsClaim)}'`
39+
`[authGroupsInvalid] Auth: User ${oid}: 'groups' claim was string but not valid JSON array: '${groupsClaim}'`
4040
)
4141
}
4242
} catch (err) {

0 commit comments

Comments
 (0)