Skip to content

Commit f241a4a

Browse files
authored
chore: update dependencies again (#2532)
1 parent 69ad780 commit f241a4a

14 files changed

Lines changed: 449 additions & 444 deletions

File tree

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.5/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.7/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",

demo-openid/src/HolderInquirer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ export class HolderInquirer extends BaseInquirer {
107107
public async dynamicCredentialRequest() {
108108
const credentialOffer = await this.inquireInput('Enter issuer url: ')
109109
const issuerMetadata = await this.holder.resolveIssuerMetadata(credentialOffer)
110-
const configurationsWithScope = Object.entries(
111-
issuerMetadata.credentialIssuer.credential_configurations_supported
112-
).filter(([, configuration]) => configuration.scope)
110+
const configurationsWithScope = Object.entries(issuerMetadata.knownCredentialConfigurations).filter(
111+
([, configuration]) => configuration.scope
112+
)
113113

114114
this.resolvedCredentialOffer = {
115115
credentialOfferPayload: {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@
5959
"reflect-metadata": "catalog:",
6060
"rxjs": "catalog:",
6161
"supertest": "^7.1.4",
62-
"tsdown": "^0.16.5",
62+
"tsdown": "^0.16.6",
6363
"tsyringe": "catalog:",
6464
"typescript": "catalog:",
6565
"undici": "^6.22.0",
66-
"vite": "npm:rolldown-vite@^7.2.5",
67-
"vite-node": "^5.1.0",
66+
"vite": "npm:rolldown-vite@^7.2.7",
67+
"vite-node": "^5.2.0",
6868
"vitest": "catalog:",
6969
"ws": "catalog:"
7070
},

packages/askar-to-drizzle-storage-migration/tests/migrate.drizzle.e2e.test.ts

Lines changed: 74 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -142,92 +142,91 @@ async function expectDatabaseWithRecords(agent: Agent | TenantAgent) {
142142
}
143143

144144
describe('Askar to Drizzle Migration', () => {
145-
test.each(['sqlite', 'postgres'] as const)(
146-
'%s askar to drizzle successful migration and deletion',
147-
async (databaseType) => {
148-
const storeId = `askar ${databaseType} to drizzle ${databaseType} successful migration ${Math.random()}`
149-
150-
const postgresDatabase = databaseType === 'postgres' ? await createDrizzlePostgresTestDatabase() : undefined
151-
const database = postgresDatabase?.drizzle ?? (await inMemoryDrizzleSqliteDatabase())
152-
153-
const drizzleModule = new DrizzleStorageModule({
154-
bundles: [coreBundle, didcommBundle, actionMenuBundle, anoncredsBundle],
155-
database,
156-
})
157-
158-
const askarModule = new AskarModule({
159-
askar,
160-
store: {
161-
id: storeId,
162-
key: 'GfwU1DC7gEZNs3w41tjBiZYj7BNToDoFEqKY6wZXqs1A',
163-
keyDerivationMethod: 'raw',
164-
database: databaseType === 'postgres' ? askarPostgresStorageConfig : undefined,
165-
},
166-
})
145+
test.each([
146+
'sqlite',
147+
'postgres',
148+
] as const)('%s askar to drizzle successful migration and deletion', async (databaseType) => {
149+
const storeId = `askar ${databaseType} to drizzle ${databaseType} successful migration ${Math.random()}`
167150

168-
await pushDrizzleSchema(drizzleModule)
151+
const postgresDatabase = databaseType === 'postgres' ? await createDrizzlePostgresTestDatabase() : undefined
152+
const database = postgresDatabase?.drizzle ?? (await inMemoryDrizzleSqliteDatabase())
169153

170-
const migrator = await AskarToDrizzleStorageMigrator.initialize({
171-
drizzleModule,
172-
askarModule,
173-
agentDependencies,
174-
logger: testLogger,
175-
})
154+
const drizzleModule = new DrizzleStorageModule({
155+
bundles: [coreBundle, didcommBundle, actionMenuBundle, anoncredsBundle],
156+
database,
157+
})
176158

177-
const askarAgent = new Agent({
178-
dependencies: agentDependencies,
179-
config: {
180-
logger: testLogger,
181-
},
182-
modules: {
183-
askar: askarModule,
184-
w3cCredentials: new W3cCredentialsModule({
185-
documentLoader: customDocumentLoader,
186-
}),
187-
},
188-
})
189-
await askarAgent.initialize()
159+
const askarModule = new AskarModule({
160+
askar,
161+
store: {
162+
id: storeId,
163+
key: 'GfwU1DC7gEZNs3w41tjBiZYj7BNToDoFEqKY6wZXqs1A',
164+
keyDerivationMethod: 'raw',
165+
database: databaseType === 'postgres' ? askarPostgresStorageConfig : undefined,
166+
},
167+
})
190168

191-
await populateDatabaseWithRecords(askarAgent)
169+
await pushDrizzleSchema(drizzleModule)
192170

193-
await migrator.migrate()
171+
const migrator = await AskarToDrizzleStorageMigrator.initialize({
172+
drizzleModule,
173+
askarModule,
174+
agentDependencies,
175+
logger: testLogger,
176+
})
194177

195-
const drizzleAgent = new Agent({
196-
dependencies: agentDependencies,
197-
config: {
198-
logger: testLogger,
199-
},
200-
modules: {
201-
drizzle: drizzleModule,
202-
},
203-
})
204-
await drizzleAgent.initialize()
178+
const drizzleAgent = new Agent({
179+
dependencies: agentDependencies,
180+
config: {
181+
logger: testLogger,
182+
},
183+
modules: {
184+
drizzle: drizzleModule,
185+
},
186+
})
187+
await drizzleAgent.initialize()
205188

206-
// Now expect all the populated records to be available in the Drizzle database
207-
await expectDatabaseWithRecords(drizzleAgent)
189+
const askarAgent = new Agent({
190+
dependencies: agentDependencies,
191+
config: {
192+
logger: testLogger,
193+
},
194+
modules: {
195+
w3cCredentials: new W3cCredentialsModule({
196+
documentLoader: customDocumentLoader,
197+
}),
198+
askar: askarModule,
199+
},
200+
})
201+
await askarAgent.initialize()
208202

209-
// We also still expect all the populated records to be available in the Askar database
210-
await expectDatabaseWithRecords(askarAgent)
203+
await populateDatabaseWithRecords(askarAgent)
204+
await migrator.migrate()
211205

212-
// After succesfull migration we delete the storage records
213-
await migrator.deleteStorageRecords()
206+
// Now expect all the populated records to be available in the Drizzle database
207+
await expectDatabaseWithRecords(drizzleAgent)
214208

215-
// It should not have deleted the keys
216-
expect(await askarAgent.kms.getPublicKey({ keyId: 'consistent-kid' })).toEqual({
217-
crv: 'Ed25519',
218-
kid: 'consistent-kid',
219-
kty: 'OKP',
220-
x: 'Df70zEA2tkZXPZxgc0KcM3s_vjut-PP_6QnM5AfLNfo',
221-
})
209+
// We also still expect all the populated records to be available in the Askar database
210+
await expectDatabaseWithRecords(askarAgent)
222211

223-
// But it should have deleted the other records
224-
expect(await askarAgent.genericRecords.getAll()).toEqual([])
212+
// After succesfull migration we delete the storage records
213+
await migrator.deleteStorageRecords()
214+
215+
// It should not have deleted the keys
216+
expect(await askarAgent.kms.getPublicKey({ keyId: 'consistent-kid' })).toEqual({
217+
crv: 'Ed25519',
218+
kid: 'consistent-kid',
219+
kty: 'OKP',
220+
x: 'Df70zEA2tkZXPZxgc0KcM3s_vjut-PP_6QnM5AfLNfo',
221+
})
225222

226-
await postgresDatabase?.teardown()
227-
await askarAgent.shutdown()
228-
await drizzleAgent.shutdown()
229-
}
230-
)
223+
// But it should have deleted the other records
224+
expect(await askarAgent.genericRecords.getAll()).toEqual([])
225+
226+
await postgresDatabase?.teardown()
227+
await askarAgent.shutdown()
228+
await drizzleAgent.shutdown()
229+
})
231230

232231
test.each(['sqlite', 'postgres'])('%s askar to drizzle with tenants successful migration', async (databaseType) => {
233232
const storeId = `${Math.random()} askar ${databaseType} to drizzle ${databaseType} with tenants successful migration`
@@ -267,10 +266,10 @@ describe('Askar to Drizzle Migration', () => {
267266
logger: testLogger,
268267
},
269268
modules: {
270-
askar: askarModule,
271269
w3cCredentials: new W3cCredentialsModule({
272270
documentLoader: customDocumentLoader,
273271
}),
272+
askar: askarModule,
274273
tenants: new TenantsModule(),
275274
},
276275
})

packages/cheqd/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"dependencies": {
3232
"@cheqd/sdk": "npm:@cheqd/sdk-esm@~5.3.7",
33-
"@cheqd/ts-proto": "^4.1.1",
33+
"@cheqd/ts-proto": "^4.2.0",
3434
"@cosmjs/crypto": "^0.36.2",
3535
"@cosmjs/proto-signing": "^0.36.2",
3636
"@cosmjs/stargate": "^0.36.2",

packages/core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@astronautlabs/jsonpath": "catalog:",
4343
"@digitalcredentials/jsonld": "^9.0.0",
4444
"@digitalcredentials/jsonld-signatures": "^12.0.1",
45-
"@digitalcredentials/vc": "^10.0.1",
45+
"@digitalcredentials/vc": "^10.0.2",
4646
"@multiformats/base-x": "^4.0.1",
4747
"@noble/curves": "^2.0.1",
4848
"@noble/hashes": "^2.0.1",
@@ -53,9 +53,9 @@
5353
"@peculiar/x509": "catalog:",
5454
"@sd-jwt/core": "^0.17.0",
5555
"@sd-jwt/decode": "^0.17.0",
56-
"@sd-jwt/jwt-status-list": "^0.17.0",
56+
"@sd-jwt/jwt-status-list": "^0.17.1",
5757
"@sd-jwt/present": "^0.17.0",
58-
"@sd-jwt/sd-jwt-vc": "^0.17.0",
58+
"@sd-jwt/sd-jwt-vc": "^0.17.1",
5959
"@sd-jwt/types": "^0.17.0",
6060
"@sd-jwt/utils": "^0.17.0",
6161
"@sphereon/pex-models": "catalog:",
@@ -65,7 +65,7 @@
6565
"buffer": "^6.0.3",
6666
"class-transformer": "catalog:",
6767
"class-validator": "catalog:",
68-
"dcql": "^2.0.1",
68+
"dcql": "^3.0.0",
6969
"did-resolver": "^4.1.0",
7070
"ec-compression": "0.0.1-alpha.12",
7171
"lru_map": "^0.4.1",

packages/didcomm/src/modules/connections/__tests__/ConnectionService.test.ts

Lines changed: 45 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -212,19 +212,18 @@ describe('DidCommConnectionService', () => {
212212
DidCommOutOfBandState.AwaitResponse,
213213
DidCommOutOfBandState.Done,
214214
]
215-
test.each(invalidConnectionStates)(
216-
`throws an error when out-of-band state is %s and not ${DidCommOutOfBandState.PrepareResponse}`,
217-
(state) => {
218-
expect.assertions(1)
219-
220-
const outOfBand = getMockOutOfBand({ state })
221-
const config = { label: '', routing: myRouting }
222-
223-
return expect(connectionService.createRequest(agentContext, outOfBand, config)).rejects.toThrow(
224-
`Invalid out-of-band record state ${state}, valid states are: ${DidCommOutOfBandState.PrepareResponse}.`
225-
)
226-
}
227-
)
215+
test.each(
216+
invalidConnectionStates
217+
)(`throws an error when out-of-band state is %s and not ${DidCommOutOfBandState.PrepareResponse}`, (state) => {
218+
expect.assertions(1)
219+
220+
const outOfBand = getMockOutOfBand({ state })
221+
const config = { label: '', routing: myRouting }
222+
223+
return expect(connectionService.createRequest(agentContext, outOfBand, config)).rejects.toThrow(
224+
`Invalid out-of-band record state ${state}, valid states are: ${DidCommOutOfBandState.PrepareResponse}.`
225+
)
226+
})
228227
})
229228

230229
describe('processRequest', () => {
@@ -425,19 +424,18 @@ describe('DidCommConnectionService', () => {
425424
DidCommOutOfBandState.PrepareResponse,
426425
DidCommOutOfBandState.Done,
427426
]
428-
test.each(invalidOutOfBandStates)(
429-
`throws an error when out-of-band state is %s and not ${DidCommOutOfBandState.AwaitResponse}`,
430-
(state) => {
431-
expect.assertions(1)
432-
433-
const inboundMessage = new DidCommInboundMessageContext(vi.fn()(), { agentContext })
434-
const outOfBand = getMockOutOfBand({ role: DidCommOutOfBandRole.Sender, state })
435-
436-
return expect(connectionService.processRequest(inboundMessage, outOfBand)).rejects.toThrow(
437-
`Invalid out-of-band record state ${state}, valid states are: ${DidCommOutOfBandState.AwaitResponse}.`
438-
)
439-
}
440-
)
427+
test.each(
428+
invalidOutOfBandStates
429+
)(`throws an error when out-of-band state is %s and not ${DidCommOutOfBandState.AwaitResponse}`, (state) => {
430+
expect.assertions(1)
431+
432+
const inboundMessage = new DidCommInboundMessageContext(vi.fn()(), { agentContext })
433+
const outOfBand = getMockOutOfBand({ role: DidCommOutOfBandRole.Sender, state })
434+
435+
return expect(connectionService.processRequest(inboundMessage, outOfBand)).rejects.toThrow(
436+
`Invalid out-of-band record state ${state}, valid states are: ${DidCommOutOfBandState.AwaitResponse}.`
437+
)
438+
})
441439
})
442440

443441
describe('createResponse', () => {
@@ -525,18 +523,17 @@ describe('DidCommConnectionService', () => {
525523
DidCommDidExchangeState.Abandoned,
526524
DidCommDidExchangeState.Start,
527525
]
528-
test.each(invalidOutOfBandStates)(
529-
`throws an error when connection state is %s and not ${DidCommDidExchangeState.RequestReceived}`,
530-
async (state) => {
531-
expect.assertions(1)
532-
533-
const connection = getMockConnection({ state })
534-
const outOfBand = getMockOutOfBand()
535-
return expect(connectionService.createResponse(agentContext, connection, outOfBand)).rejects.toThrow(
536-
`Connection record is in invalid state ${state}. Valid states are: ${DidCommDidExchangeState.RequestReceived}.`
537-
)
538-
}
539-
)
526+
test.each(
527+
invalidOutOfBandStates
528+
)(`throws an error when connection state is %s and not ${DidCommDidExchangeState.RequestReceived}`, async (state) => {
529+
expect.assertions(1)
530+
531+
const connection = getMockConnection({ state })
532+
const outOfBand = getMockOutOfBand()
533+
return expect(connectionService.createResponse(agentContext, connection, outOfBand)).rejects.toThrow(
534+
`Connection record is in invalid state ${state}. Valid states are: ${DidCommDidExchangeState.RequestReceived}.`
535+
)
536+
})
540537
})
541538

542539
describe('processResponse', () => {
@@ -767,17 +764,16 @@ describe('DidCommConnectionService', () => {
767764
DidCommDidExchangeState.Abandoned,
768765
DidCommDidExchangeState.Start,
769766
]
770-
test.each(invalidConnectionStates)(
771-
`throws an error when connection state is %s and not ${DidCommDidExchangeState.ResponseReceived} or ${DidCommDidExchangeState.Completed}`,
772-
(state) => {
773-
expect.assertions(1)
774-
const connection = getMockConnection({ state })
775-
776-
return expect(connectionService.createTrustPing(agentContext, connection)).rejects.toThrow(
777-
`Connection record is in invalid state ${state}. Valid states are: ${DidCommDidExchangeState.ResponseReceived}, ${DidCommDidExchangeState.Completed}.`
778-
)
779-
}
780-
)
767+
test.each(
768+
invalidConnectionStates
769+
)(`throws an error when connection state is %s and not ${DidCommDidExchangeState.ResponseReceived} or ${DidCommDidExchangeState.Completed}`, (state) => {
770+
expect.assertions(1)
771+
const connection = getMockConnection({ state })
772+
773+
return expect(connectionService.createTrustPing(agentContext, connection)).rejects.toThrow(
774+
`Connection record is in invalid state ${state}. Valid states are: ${DidCommDidExchangeState.ResponseReceived}, ${DidCommDidExchangeState.Completed}.`
775+
)
776+
})
781777
})
782778

783779
describe('processAck', () => {

0 commit comments

Comments
 (0)