@digitalbazaar/vc 1.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalbazaar/vc",
3
- "version": "1.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Verifiable Credentials JavaScript library.",
5
5
  "homepage": "https://github.com/digitalbazaar/vc-js",
6
6
  "author": {
@@ -22,64 +22,50 @@
22
22
  "email": "support@digitalbazaar.com"
23
23
  },
24
24
  "license": "BSD-3-Clause",
25
- "main": "lib/index.js",
25
+ "type": "module",
26
+ "exports": "./lib/index.js",
26
27
  "files": [
27
28
  "lib/**/*.js"
28
29
  ],
29
30
  "dependencies": {
30
- "credentials-context": "^1.0.0",
31
- "jsonld": "^5.2.0",
32
- "jsonld-signatures": "^9.0.2"
31
+ "credentials-context": "^2.0.0",
32
+ "jsonld": "^6.0.0",
33
+ "jsonld-signatures": "^10.0.0"
33
34
  },
34
35
  "devDependencies": {
35
- "@babel/core": "^7.13.8",
36
- "@babel/plugin-transform-modules-commonjs": "^7.13.8",
37
- "@babel/plugin-transform-runtime": "^7.13.9",
38
- "@babel/preset-env": "^7.13.9",
39
- "@babel/runtime": "^7.13.9",
40
- "@digitalbazaar/ed25519-signature-2018": "^2.0.1",
41
- "@digitalbazaar/ed25519-signature-2020": "^2.1.0",
42
- "@digitalbazaar/ed25519-verification-key-2018": "^3.0.0",
43
- "@digitalbazaar/ed25519-verification-key-2020": "^2.0.0",
44
- "babel-loader": "^8.2.2",
45
- "chai": "^4.3.3",
36
+ "@digitalbazaar/ed25519-signature-2018": "^3.0.0",
37
+ "@digitalbazaar/ed25519-verification-key-2018": "^4.0.0",
38
+ "c8": "^7.11.3",
39
+ "chai": "^4.3.6",
46
40
  "cross-env": "^7.0.3",
47
- "did-context": "^3.0.1",
48
- "did-veres-one": "^13.0.0",
49
- "eslint": "^7.21.0",
50
- "eslint-config-digitalbazaar": "^2.6.1",
51
- "eslint-plugin-jsdoc": "^32.2.0",
52
- "karma": "^6.1.1",
53
- "karma-babel-preprocessor": "^8.0.1",
41
+ "did-context": "^3.1.1",
42
+ "did-veres-one": "^15.0.0",
43
+ "eslint": "^8.17.0",
44
+ "eslint-config-digitalbazaar": "^3.0.0",
45
+ "eslint-plugin-jsdoc": "^39.3.2",
46
+ "eslint-plugin-unicorn": "^42.0.0",
47
+ "karma": "^6.4.0",
54
48
  "karma-chai": "^0.1.0",
55
- "karma-chrome-launcher": "^3.1.0",
49
+ "karma-chrome-launcher": "^3.1.1",
56
50
  "karma-mocha": "^2.0.1",
57
51
  "karma-mocha-reporter": "^2.2.5",
58
52
  "karma-sourcemap-loader": "^0.3.8",
59
53
  "karma-webpack": "^5.0.0",
60
- "mocha": "^8.3.1",
54
+ "mocha": "^10.0.0",
61
55
  "mocha-lcov-reporter": "^1.3.0",
62
- "nyc": "^15.1.0",
63
56
  "uuid": "^8.3.2",
64
- "veres-one-context": "^11.0.0",
65
- "webpack": "^5.24.3"
57
+ "veres-one-context": "^12.0.0",
58
+ "webpack": "^5.73.0"
66
59
  },
67
- "nyc": {
68
- "exclude": [
69
- "test"
70
- ],
60
+ "c8": {
71
61
  "reporter": [
72
- "html",
73
- "text-summary"
62
+ "lcov",
63
+ "text-summary",
64
+ "text"
74
65
  ]
75
66
  },
76
- "browser": {
77
- "Buffer": false,
78
- "crypto": false,
79
- "util": false
80
- },
81
67
  "engines": {
82
- "node": ">=12"
68
+ "node": ">=14"
83
69
  },
84
70
  "keywords": [
85
71
  "JSON",
@@ -91,12 +77,12 @@
91
77
  "Credential"
92
78
  ],
93
79
  "scripts": {
94
- "test": "npm run lint && npm run test-node && npm run test-karma",
80
+ "test": "npm run test-node",
95
81
  "test-node": "cross-env NODE_ENV=test mocha --preserve-symlinks -t 10000 test/*.spec.js",
96
- "test-karma": "karma start karma.conf.js",
97
- "lint": "eslint lib test/*.spec.js",
98
- "coverage": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text-summary npm run test-node",
99
- "coverage-ci": "cross-env NODE_ENV=test nyc --reporter=lcovonly npm run test-node",
100
- "coverage-report": "nyc report"
82
+ "test-karma": "karma start karma.conf.cjs",
83
+ "lint": "eslint .",
84
+ "coverage": "cross-env NODE_ENV=test c8 npm run test-node",
85
+ "coverage-ci": "cross-env NODE_ENV=test c8 --reporter=lcovonly --reporter=text-summary --reporter=text npm run test-node",
86
+ "coverage-report": "c8 report"
101
87
  }
102
88
  }
package/CHANGELOG.md DELETED
@@ -1,92 +0,0 @@
1
- # @digitalbazaar/vc ChangeLog
2
-
3
- ## 1.0.0 - 2021-04-22
4
-
5
- ### Changed
6
- - **BREAKING**: Rename library to `@digitalbazaar/vc`.
7
- - Update dependencies.
8
-
9
- ### Removed
10
- - **BREAKING**: Remove typescript def generation support.
11
- - **BREAKING**: No longer shipping browser bundles.
12
- - **BREAKING**: Move binaries from `bin/` to `@digitalbazaar/vc-js-cli`.
13
-
14
- ## 0.6.4 - 2020-05-22
15
-
16
- ### Added
17
- - The results from verifying a presentation now includes `credentialId` which
18
- makes it possible to correlate success/failure messages with credentials.
19
-
20
- ## 0.6.3 - 2020-05-14
21
-
22
- ### Fixed
23
- - Improve error reporting when `suite` parameter is missing.
24
-
25
- ## 0.6.2 - 2020-05-04
26
-
27
- ### Fixed
28
- - Accept string value for a single VP context.
29
-
30
- ## 0.6.1 - 2020-05-01
31
-
32
- ### Fixed
33
- - Fix reporting of `credentialResults` in `verify` output.
34
-
35
- ## 0.6.0 - 2020-04-29
36
-
37
- ### Added
38
- - Add `checkStatus` option. This is a function that can be passed that
39
- will be executed when a VC has a `credentialStatus` attribute.
40
-
41
- ## 0.5.0 - 2020-03-26
42
-
43
- ### Changed
44
- - `verifiableCredential` param is now optional in `createPresentation()`.
45
- - **BREAKING**: `verify()` now only verifies presentations, not credentials,
46
- (since that will be the most common use case). For credentials, a separate
47
- `verifyCredential()` method has been added.
48
- - **BREAKING**: Rename `verify()`'s `purpose` parameter to
49
- `presentationPurpose`.
50
-
51
- ## 0.4.1 - 2020-02-20
52
-
53
- ### Changed
54
- - Multiple types for a VerifiableCredential no longer required (fix).
55
- - Multiple `@context`s for a VC no longer required (fix).
56
-
57
- ## 0.4.0 - 2020-02-14
58
-
59
- ### Changed
60
- - **BREAKING**: For VerifiablePresentations, break the async
61
- `createPresentation()` API into two separate calls:
62
- a **sync** `createPresentation()` and an async `signPresentation()`.
63
- - **BREAKING**: Change default proof purpose for VerifiablePresentations
64
- from `assertionMethod` to `authentication`.
65
- - **BREAKING**: A `challenge` param is required when verifying a VP.
66
-
67
- ### Added
68
- - Add support for optionally verifying unsigned presentations.
69
-
70
- ## 0.3.0 - 2020-01-28
71
-
72
- ### Changed
73
- - Update docs.
74
- - Evidence IDs are now optional.
75
- - Update webpack build.
76
- - Cleanups.
77
- - Use `credentials-context` package.
78
- - Update dependencies.
79
- - **BREAKING**: Add further checks for controller, suite and assertionMethod
80
-
81
- ### Removed
82
- - **BREAKING**: Node.js v6 support.
83
-
84
- ## 0.2.0 - 2019-08-07
85
-
86
- ### Added
87
- - Export `defaultDocumentLoader` in main vc.js.
88
-
89
- ## 0.1.0 - 2019-08-07
90
-
91
- ### Added
92
- - Initial version. See git history for changes.