Skip to content

Commit 9e39fff

Browse files
Release v3.0.3
Signed-off-by: Dmitri Zagidulin <[email protected]>
1 parent fc5ad32 commit 9e39fff

File tree

8 files changed

+36
-26
lines changed

8 files changed

+36
-26
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ssi Changelog
22

3-
## 3.0.1-3.0.2 - 2025-04-29
3+
## 3.0.1-3.0.3 - 2025-04-29
44
### Changed
55
- Fix `IJsonWebPublicKey` (ensure it extends `IKeyPairCore`)
66

package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,54 @@
11
{
22
"name": "@digitalcredentials/ssi",
33
"description": "Typescript types for the W3C Verifiable Credentials Data Model.",
4-
"version": "3.0.2",
4+
"version": "3.0.3",
55
"scripts": {
66
"build": "npm run clear && tsc -d",
77
"clear": "rimraf dist/*",
88
"lint": "ts-standard --fix --project tsconfig.spec.json",
99
"prepare": "npm run build",
10-
"prettier": "prettier src --write",
1110
"rebuild": "npm run clear && npm run build",
1211
"test": "npm run lint && npm run test-node",
13-
"test-node": "cross-env NODE_ENV=test mocha -r ts-node/register 'test/*.ts'"
12+
"test-node": "npx tsx --test test/*.spec.ts"
1413
},
1514
"files": [
1615
"dist",
1716
"README.md",
1817
"LICENSE.md"
1918
],
2019
"type": "module",
21-
"browser": "dist/index.js",
20+
"module": "./dist/index.js",
21+
"main": "./dist/index.js",
22+
"types": "./dist/index.d.ts",
2223
"exports": {
2324
".": {
24-
"types": "./src/index.ts",
25+
"types": "./dist/index.d.ts",
2526
"default": "./dist/index.js"
2627
},
2728
"./did": {
28-
"types": "./src/DID.ts",
29+
"types": "./dist/DID.d.ts",
2930
"default": "./dist/DID.js"
3031
},
3132
"./keypair": {
32-
"types": "./src/KeyPair.ts",
33+
"types": "./dist/KeyPair.d.ts",
3334
"default": "./dist/KeyPair.js"
3435
},
3536
"./vcdm": {
36-
"types": "./src/VCDM.ts",
37+
"types": "./dist/VCDM.d.ts",
3738
"default": "./dist/VCDM.js"
3839
}
3940
},
4041
"devDependencies": {
4142
"@types/chai": "^5.2.1",
4243
"@types/mocha": "^10.0.1",
4344
"@types/node": "^22.14.1",
44-
"chai": "^4.3.7",
4545
"cross-env": "^7.0.3",
4646
"mocha": "^10.2.0",
4747
"rimraf": "^3.0.2",
4848
"ts-node": "^10.9.1",
4949
"ts-standard": "^12.0.2",
50-
"typescript": "5.2.2"
50+
"typescript": "^5.8.3",
51+
"tsx": "^4.19.4"
5152
},
5253
"publishConfig": {
5354
"access": "public"
@@ -63,7 +64,7 @@
6364
"dcc"
6465
],
6566
"engines": {
66-
"node": ">=16.0"
67+
"node": ">=20.0"
6768
},
6869
"author": {
6970
"name": "Digital Credentials Consortium",
@@ -72,7 +73,7 @@
7273
"license": "MIT",
7374
"repository": {
7475
"type": "git",
75-
"url": "https://github.com/digitalcredentials/vc-data-model"
76+
"url": "git+https://github.com/digitalcredentials/vc-data-model.git"
7677
},
7778
"homepage": "https://github.com/digitalcredentials/vc-data-model",
7879
"bugs": "https://github.com/digitalcredentials/vc-data-model/issues"

src/DID.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*!
22
* Copyright (c) 2025 Digital Credentials Consortium. All rights reserved.
33
*/
4-
import { ILdType } from './LD'
5-
import { IPublicKey } from './KeyPair'
4+
import { ILdType } from './LD.js'
5+
import { IPublicKey } from './KeyPair.js'
66

77
/**
88
* A Decentralized Identifier (DID) URL

src/VCDM.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* Copyright (c) 2022-2025 Digital Credentials Consortium. All rights reserved.
33
*/
4-
import { ILdType, ILinkedDataObject } from './LD'
4+
import { ILdType, ILinkedDataObject } from './LD.js'
55

66
export interface IIssuerObject extends ILinkedDataObject {
77
id: string

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* Copyright (c) 2025 Digital Credentials Consortium. All rights reserved.
33
*/
4-
export * from './LD'
5-
export * from './DID'
6-
export * from './KeyPair'
7-
export * from './VCDM'
4+
export * from './LD.js'
5+
export * from './DID.js'
6+
export * from './KeyPair.js'
7+
export * from './VCDM.js'

test/VerifiableCredential.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ await describe('VerifiableCredential', async () => {
1515
})
1616
})
1717

18-
await describe('VerifiablePresentation', () => {
18+
await describe('VerifiablePresentation', async () => {
1919
await test('exists', async () => {
2020
const vp: IVerifiablePresentation = {
2121
'@context': ['http://example.com'],

tsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@
55
"lib": ["es2020"],
66
"module": "es6",
77
"moduleResolution": "node",
8+
"declarationMap": true,
9+
"declaration": true,
810
"outDir": "dist",
911
"noImplicitAny": true,
1012
"removeComments": false,
1113
"preserveConstEnums": true,
12-
"baseUrl": "."
14+
"baseUrl": ".",
15+
"skipLibCheck": true,
16+
"checkJs": true,
17+
"allowJs": true
1318
},
1419
"include": [
1520
"src/**/*",

tsconfig.spec.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,20 @@
22
"compilerOptions": {
33
"strict": true,
44
"target": "es2022",
5-
"lib": ["es2022", "dom"],
6-
"module": "commonjs",
5+
"lib": ["es2020"],
6+
"module": "es6",
77
"moduleResolution": "node",
8-
"outDir": "dist/",
8+
"declarationMap": true,
9+
"declaration": true,
10+
"outDir": "dist",
911
"noImplicitAny": true,
1012
"removeComments": false,
1113
"preserveConstEnums": true,
1214
"baseUrl": ".",
13-
"allowSyntheticDefaultImports": true,
1415
"skipLibCheck": true,
16+
"checkJs": true,
17+
"allowJs": true,
18+
"allowSyntheticDefaultImports": true,
1519
"resolveJsonModule": true
1620
},
1721
"ts-node": {

0 commit comments

Comments
 (0)