From 7d5736ab4ede3fdb82ce2397f675c8a36c479c9c Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Mon, 5 Aug 2024 16:45:01 -0400 Subject: [PATCH 1/5] Update actions. --- .github/workflows/main.yaml | 78 +++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..ad46014 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,78 @@ +name: Bedrock Node.js CI + +on: [push] + +jobs: + lint: + runs-on: ubuntu-latest + timeout-minutes: 10 + strategy: + matrix: + node-version: [20.x] + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - name: Run eslint + run: npm run lint + test-node: + needs: [lint] + runs-on: ubuntu-latest + timeout-minutes: 10 + services: + mongodb: + image: mongo:5 + ports: + - 27017:27017 + strategy: + matrix: + node-version: [18.x, 20.x] + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: | + npm install + cd test + npm install + - name: Run test with Node.js ${{ matrix.node-version }} + run: | + cd test + npm test + coverage: + needs: [test-node] + runs-on: ubuntu-latest + timeout-minutes: 10 + services: + mongodb: + image: mongo:5 + ports: + - 27017:27017 + strategy: + matrix: + node-version: [20.x] + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: | + npm install + cd test + npm install + - name: Generate coverage report + run: | + cd test + npm run coverage-ci + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + file: ./test/coverage/lcov.info + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} From 66065d687ff381a88644b2a8140ef1a822f7d585 Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Mon, 5 Aug 2024 16:46:38 -0400 Subject: [PATCH 2/5] Remove unused jsdoc dependency. --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index f8e9f50..d288a4d 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,7 @@ "eslint": "^8.51.0", "eslint-config-digitalbazaar": "^5.0.1", "eslint-plugin-jsdoc": "^46.8.2", - "eslint-plugin-unicorn": "^48.0.1", - "jsdoc-to-markdown": "^8.0.0" + "eslint-plugin-unicorn": "^48.0.1" }, "engines": { "node": ">=18" From a118b9bfdbe3915e1ce931655eec5ef1c6495e65 Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Mon, 5 Aug 2024 16:48:44 -0400 Subject: [PATCH 3/5] Update linting. --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d288a4d..a0d470a 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "schemas/**/*.js" ], "scripts": { - "lint": "eslint ." + "lint": "eslint --ext .cjs,.js ." }, "repository": { "type": "git", @@ -45,10 +45,10 @@ "lib": "./lib" }, "devDependencies": { - "eslint": "^8.51.0", - "eslint-config-digitalbazaar": "^5.0.1", - "eslint-plugin-jsdoc": "^46.8.2", - "eslint-plugin-unicorn": "^48.0.1" + "eslint": "^8.57.0", + "eslint-config-digitalbazaar": "^5.2.0", + "eslint-plugin-jsdoc": "^48.11.0", + "eslint-plugin-unicorn": "^55.0.0" }, "engines": { "node": ">=18" From 81f29a93e092e2508b6c620e74d9ba7ac7b0b67e Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Mon, 5 Aug 2024 17:00:00 -0400 Subject: [PATCH 4/5] Update dependencies. --- .github/workflows/main.yml | 77 -------------------------------------- CHANGELOG.md | 9 +++++ package.json | 12 +++--- test/package.json | 50 ++++++++++++------------- 4 files changed, 40 insertions(+), 108 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 69ad771..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,77 +0,0 @@ -name: Bedrock Node.js CI - -on: [push] - -jobs: - lint: - runs-on: ubuntu-latest - timeout-minutes: 10 - strategy: - matrix: - node-version: [20.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - name: Run eslint - run: npm run lint - test-node: - needs: [lint] - runs-on: ubuntu-latest - timeout-minutes: 10 - services: - mongodb: - image: mongo:5 - ports: - - 27017:27017 - strategy: - matrix: - node-version: [18.x, 20.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - run: | - npm install - cd test - npm install - - name: Run test with Node.js ${{ matrix.node-version }} - run: | - cd test - npm test - coverage: - needs: [test-node] - runs-on: ubuntu-latest - timeout-minutes: 10 - services: - mongodb: - image: mongo:5 - ports: - - 27017:27017 - strategy: - matrix: - node-version: [20.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - run: | - npm install - cd test - npm install - - name: Generate coverage report - run: | - cd test - npm run coverage-ci - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - with: - file: ./test/coverage/lcov.info - fail_ci_if_error: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 95c3689..a0390ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # bedrock-profile-http ChangeLog +## 23.0.0 - 2024-08-xx + +- **BREAKING**: Update peer dependencies. + - `@bedrock/core@6.1.3` + - `@bedrock/express@8.3.1` + - `@bedrock/https-agent@4.1.0` + - `@bedrock/profile@24.0.0` (major version) +- Update minor, test, and dev dependencies. + ## 23.0.0 - 2023-10-12 ### Changed diff --git a/package.json b/package.json index a0d470a..970d011 100644 --- a/package.json +++ b/package.json @@ -29,16 +29,16 @@ }, "homepage": "https://github.com/digitalbazaar/bedrock-profile-http", "dependencies": { - "@digitalbazaar/ed25519-signature-2020": "^5.2.0", - "@digitalbazaar/ezcap": "^4.0.0" + "@digitalbazaar/ed25519-signature-2020": "^5.4.0", + "@digitalbazaar/ezcap": "^4.1.0" }, "peerDependencies": { "@bedrock/app-identity": "^4.0.0", - "@bedrock/core": "^6.0.1", - "@bedrock/express": "^8.2.0", - "@bedrock/https-agent": "^4.0.0", + "@bedrock/core": "^6.1.3", + "@bedrock/express": "^8.3.1", + "@bedrock/https-agent": "^4.1.0", "@bedrock/passport": "^11.0.0", - "@bedrock/profile": "^23.0.0", + "@bedrock/profile": "^24.0.0", "@bedrock/validation": "^7.1.0" }, "directories": { diff --git a/test/package.json b/test/package.json index 3c9e767..2a69110 100644 --- a/test/package.json +++ b/test/package.json @@ -13,37 +13,37 @@ "dependencies": { "@bedrock/account": "^9.0.0", "@bedrock/app-identity": "^4.0.0", - "@bedrock/core": "^6.0.1", - "@bedrock/did-context": "^5.0.0", - "@bedrock/did-io": "^10.1.0", - "@bedrock/edv-storage": "^18.0.0", - "@bedrock/express": "^8.0.0", - "@bedrock/https-agent": "^4.0.0", - "@bedrock/jsonld-document-loader": "^4.0.0", - "@bedrock/kms": "^14.0.0", - "@bedrock/kms-http": "^18.0.0", - "@bedrock/ledger-context": "^24.0.0", - "@bedrock/meter": "^5.0.0", - "@bedrock/meter-http": "^12.0.0", - "@bedrock/meter-usage-reporter": "^9.0.0", - "@bedrock/mongodb": "^10.0.0", + "@bedrock/core": "^6.1.3", + "@bedrock/did-context": "^6.0.0", + "@bedrock/did-io": "^10.3.1", + "@bedrock/edv-storage": "^19.0.0", + "@bedrock/express": "^8.3.1", + "@bedrock/https-agent": "^4.1.0", + "@bedrock/jsonld-document-loader": "^5.1.0", + "@bedrock/kms": "^15.0.0", + "@bedrock/kms-http": "^21.0.0", + "@bedrock/ledger-context": "^25.0.0", + "@bedrock/meter": "^5.3.0", + "@bedrock/meter-http": "^13.0.0", + "@bedrock/meter-usage-reporter": "^9.0.1", + "@bedrock/mongodb": "^10.2.0", "@bedrock/package-manager": "^3.0.0", "@bedrock/passport": "^11.0.0", - "@bedrock/profile": "^23.0.0", + "@bedrock/profile": "^24.0.0", "@bedrock/profile-http": "file:..", - "@bedrock/security-context": "^8.0.0", - "@bedrock/server": "^5.0.0", - "@bedrock/ssm-mongodb": "^10.1.0", - "@bedrock/test": "^8.0.5", + "@bedrock/security-context": "^9.0.0", + "@bedrock/server": "^5.1.0", + "@bedrock/ssm-mongodb": "^11.2.1", + "@bedrock/test": "^8.2.0", "@bedrock/validation": "^7.1.0", - "@bedrock/veres-one-context": "^15.0.0", - "@bedrock/zcap-storage": "^8.0.0", - "@digitalbazaar/zcap": "^9.0.0", + "@bedrock/veres-one-context": "^16.0.0", + "@bedrock/zcap-storage": "^8.0.1", + "@digitalbazaar/zcap": "^9.0.1", "@digitalbazaar/zcap-context": "^2.0.0", - "apisauce": "^2.1.5", - "c8": "^7.11.3", + "apisauce": "^3.0.1", + "c8": "^10.1.2", "cross-env": "^7.0.3", - "uuid": "^9.0.0" + "uuid": "^10.0.0" }, "c8": { "excludeNodeModules": false, From ee4cab61deb509bbf15e3f26e722901a1d6c1c46 Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Mon, 5 Aug 2024 17:03:58 -0400 Subject: [PATCH 5/5] Remove unused dependency. `@digitalbazaar/zcap-context` is not used directly. --- test/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/test/package.json b/test/package.json index 2a69110..caade3e 100644 --- a/test/package.json +++ b/test/package.json @@ -39,7 +39,6 @@ "@bedrock/veres-one-context": "^16.0.0", "@bedrock/zcap-storage": "^8.0.1", "@digitalbazaar/zcap": "^9.0.1", - "@digitalbazaar/zcap-context": "^2.0.0", "apisauce": "^3.0.1", "c8": "^10.1.2", "cross-env": "^7.0.3",