Skip to content

Commit 1e2271a

Browse files
authored
chore: update mdoc (openwallet-foundation#2090)
Signed-off-by: Timo Glastra <timo@animo.id>
1 parent 9f404f2 commit 1e2271a

9 files changed

Lines changed: 23 additions & 45 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
# This expects you to have a script called release which does a build for your packages and calls changeset publish
4747
publish: pnpm release
4848
title: 'chore(release): new version'
49+
commit: 'chore(release): new version'
4950
createGithubReleases: false
5051
env:
5152
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -56,7 +57,7 @@ jobs:
5657
run: echo "CURRENT_PACKAGE_VERSION=$(node -p "require('./packages/core/package.json').version")" >> $GITHUB_ENV
5758

5859
- name: Create Github Release
59-
if: steps.changesets.outputs.published == 'true'
60+
if: "startsWith(github.event.head_commit.message, 'chore(release): new version')"
6061
uses: softprops/action-gh-release@v2
6162
with:
6263
tag_name: v${{ env.CURRENT_PACKAGE_VERSION }}

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@peculiar/asn1-schema": "^2.3.8",
3636
"@peculiar/asn1-x509": "^2.3.8",
3737
"@peculiar/x509": "^1.11.0",
38-
"@protokoll/mdoc-client": "0.2.36",
38+
"@animo-id/mdoc": "0.2.38",
3939
"@sd-jwt/core": "^0.7.0",
4040
"@sd-jwt/decode": "^0.7.0",
4141
"@sd-jwt/jwt-status-list": "^0.7.0",

packages/core/src/modules/dif-presentation-exchange/models/DifPexCredentialsForRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { MdocRecord } from '../../mdoc'
22
import type { SdJwtVcRecord } from '../../sd-jwt-vc'
33
import type { ClaimFormat, W3cCredentialRecord } from '../../vc'
4-
import type { MdocNameSpaces } from '@protokoll/mdoc-client'
4+
import type { MdocNameSpaces } from '@animo-id/mdoc'
55

66
export interface DifPexCredentialsForRequest {
77
/**

packages/core/src/modules/mdoc/Mdoc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { MdocSignOptions, MdocNameSpaces, MdocVerifyOptions } from './MdocOptions'
22
import type { AgentContext } from '../../agent'
3-
import type { IssuerSignedDocument } from '@protokoll/mdoc-client'
3+
import type { IssuerSignedDocument } from '@animo-id/mdoc'
44

55
import {
66
DeviceSignedDocument,
@@ -9,7 +9,7 @@ import {
99
cborEncode,
1010
parseDeviceSigned,
1111
parseIssuerSigned,
12-
} from '@protokoll/mdoc-client'
12+
} from '@animo-id/mdoc'
1313

1414
import { getJwkFromKey, JwaSignatureAlgorithm } from '../../crypto'
1515
import { X509Certificate, X509ModuleConfig } from '../x509'

packages/core/src/modules/mdoc/MdocContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { AgentContext } from '../../agent'
22
import type { JwkJson } from '../../crypto'
3-
import type { MdocContext, X509Context } from '@protokoll/mdoc-client'
3+
import type { MdocContext, X509Context } from '@animo-id/mdoc'
44

55
import { p256 } from '@noble/curves/p256'
66
import { hkdf } from '@noble/hashes/hkdf'

packages/core/src/modules/mdoc/MdocDeviceResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { MdocDeviceResponseOpenId4VpOptions, MdocDeviceResponseVerifyOptions } from './MdocOptions'
22
import type { AgentContext } from '../../agent'
33
import type { DifPresentationExchangeDefinition } from '../dif-presentation-exchange'
4-
import type { PresentationDefinition } from '@protokoll/mdoc-client'
4+
import type { PresentationDefinition } from '@animo-id/mdoc'
55
import type { InputDescriptorV2 } from '@sphereon/pex-models'
66

77
import {
@@ -14,7 +14,7 @@ import {
1414
MDocStatus,
1515
cborEncode,
1616
parseDeviceResponse,
17-
} from '@protokoll/mdoc-client'
17+
} from '@animo-id/mdoc'
1818

1919
import { CredoError } from '../../error'
2020
import { uuid } from '../../utils/uuid'

packages/core/src/modules/mdoc/MdocOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { Mdoc } from './Mdoc'
22
import type { Key } from '../../crypto/Key'
33
import type { DifPresentationExchangeDefinition } from '../dif-presentation-exchange'
4-
import type { ValidityInfo, MdocNameSpaces } from '@protokoll/mdoc-client'
4+
import type { ValidityInfo, MdocNameSpaces } from '@animo-id/mdoc'
55

6-
export type { MdocNameSpaces } from '@protokoll/mdoc-client'
6+
export type { MdocNameSpaces } from '@animo-id/mdoc'
77

88
export interface MdocVerificationContext {
99
/**

packages/core/src/modules/mdoc/__tests__/mdocOpenId4VcDeviceResponse.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { cborEncode, parseDeviceResponse } from '@animo-id/mdoc'
12
// eslint-disable-next-line import/no-extraneous-dependencies
23
import { Key as AskarKey, Jwk } from '@hyperledger/aries-askar-nodejs'
3-
import { cborEncode, parseDeviceResponse } from '@protokoll/mdoc-client'
44

55
import { Agent, KeyType } from '../../..'
66
import { getInMemoryAgentOptions } from '../../../../tests'

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)