Skip to content

Commit

Permalink
Merge branch 'main' into feat/connection-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoGlastra authored Jun 21, 2024
2 parents ad52d88 + b005166 commit f0ae21a
Show file tree
Hide file tree
Showing 263 changed files with 23,267 additions and 14,156 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
13 changes: 13 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": true,
"privatePackages": false,
"fixed": [["@credo-ts/*"]],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"snapshot": {
"useCalculatedVersion": true
}
}
5 changes: 5 additions & 0 deletions .changeset/fifty-bulldogs-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@credo-ts/core': patch
---

pex query fix
35 changes: 35 additions & 0 deletions .changeset/wet-tools-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
'@credo-ts/action-menu': patch
'@credo-ts/anoncreds': patch
'@credo-ts/askar': patch
'@credo-ts/bbs-signatures': patch
'@credo-ts/cheqd': patch
'@credo-ts/core': patch
'@credo-ts/drpc': patch
'@credo-ts/indy-sdk-to-askar-migration': patch
'@credo-ts/indy-vdr': patch
'@credo-ts/node': patch
'@credo-ts/openid4vc': patch
'@credo-ts/question-answer': patch
'@credo-ts/react-native': patch
'@credo-ts/tenants': patch
---

- feat: allow serving dids from did record (#1856)
- fix: set created at for anoncreds records (#1862)
- feat: add goal to public api for credential and proof (#1867)
- fix(oob): only reuse connection if enabled (#1868)
- fix: issuer id query anoncreds w3c (#1870)
- feat: sd-jwt issuance without holder binding (#1871)
- chore: update oid4vci deps (#1873)
- fix: query for qualified/unqualified forms in revocation notification (#1866)
- fix: wrong schema id is stored for credentials (#1884)
- fix: process credential or proof problem report message related to connectionless or out of band exchange (#1859)
- fix: unqualified indy revRegDefId in migration (#1887)
- feat: verify SD-JWT Token status list and SD-JWT VC fixes (#1872)
- fix(anoncreds): combine creds into one proof (#1893)
- fix: AnonCreds proof requests with unqualified dids (#1891)
- fix: WebSocket priority in Message Pick Up V2 (#1888)
- fix: anoncreds predicate only proof with unqualified dids (#1907)
- feat: add pagination params to storage service (#1883)
- feat: add message handler middleware and fallback (#1894)
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"extensions": ["esbenp.prettier-vscode"]
}
},
"postCreateCommand": "yarn install"
"postCreateCommand": "pnpm install"
}
109 changes: 0 additions & 109 deletions .github/workflows/continuous-deployment.yml

This file was deleted.

120 changes: 33 additions & 87 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: Continuous Integration

on:
pull_request:
branches: [main, '**-pre']
branches:
- main
- '**-pre'
types: [opened, synchronize, reopened, labeled]
push:
branches: [main, '**-pre']
branches:
- main
- '**-pre'
workflow_dispatch:

env:
Expand Down Expand Up @@ -49,28 +53,30 @@ jobs:
- name: Checkout credo-ts
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 9.1.0

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
# Node 18.20 and 20.13 broke ffi-napi
# https://github.com/nodejs/node/issues/52240
node-version: 18.19
cache: 'yarn'
node-version: 18
cache: 'pnpm'

- name: Install dependencies
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Linting
run: yarn lint
run: pnpm lint

- name: Prettier
run: yarn check-format
run: pnpm check-format

- name: Check Types
run: yarn check-types
run: pnpm check-types

- name: Compile
run: yarn build
run: pnpm build

unit-tests:
runs-on: ubuntu-20.04
Expand All @@ -79,9 +85,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# Node 18.20 and 20.12 broke ffi-napi
# https://github.com/nodejs/node/issues/52240
node-version: [18.19, 20.11]
node-version: [18, 20]
# Each shard runs a set of the tests
# Make sure to UPDATE THE TEST command with the total length of
# the shards if you change this!!
Expand All @@ -91,17 +95,21 @@ jobs:
- name: Checkout credo
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 9.1.0

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache: 'pnpm'

- name: Install dependencies
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Run tests
run: yarn test:unit --coverage --forceExit --shard=${{ matrix.shard }}/2
run: pnpm test:unit --coverage --forceExit --shard=${{ matrix.shard }}/2

# Upload coverage for shard
- run: mv coverage/coverage-final.json coverage/${{ matrix.shard }}.json
Expand All @@ -118,9 +126,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# Node 18.20 and 20.12 broke ffi-napi
# https://github.com/nodejs/node/issues/52240
node-version: [18.19, 20.11]
node-version: [18, 20]

steps:
- name: Checkout credo
Expand All @@ -130,17 +136,21 @@ jobs:
- name: Setup services
run: docker compose up -d

- uses: pnpm/action-setup@v2
with:
version: 9.1.0

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache: 'pnpm'

- name: Install dependencies
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Run tests
run: yarn test:e2e --coverage --forceExit
run: pnpm test:e2e --coverage --forceExit

# Upload coverage for e2e
- run: mv coverage/coverage-final.json coverage/e2e.json
Expand All @@ -163,67 +173,3 @@ jobs:
- uses: codecov/codecov-action@v4
with:
directory: coverage

version-stable:
runs-on: ubuntu-20.04
name: Release stable
needs: [e2e-tests, unit-tests, validate]
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch'
steps:
- name: Checkout agent-framework-javascript
uses: actions/checkout@v4
with:
# pulls all commits (needed for lerna to correctly version)
fetch-depth: 0
persist-credentials: false

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
# Node 18.20 and 20.13 broke ffi-napi
# https://github.com/nodejs/node/issues/52240
node-version: 18.19
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Git config
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
# Lerna will use the latest tag to determine the latest released version. As we create a tag for each commit
# we need to remove all pre-release tags so we can determine the last stable release
- name: Remove all pre-release tags
run: git tag -l | grep -vE 'v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$' | xargs git tag -d

# no-private is important to not include the internal packages (demo, sample, etc...)
- name: Update version
run: |
export NEXT_VERSION_BUMP=$(./node_modules/.bin/ts-node ./scripts/get-next-bump.ts)
yarn lerna version --conventional-commits --no-git-tag-version --no-push --yes --exact --no-private $NEXT_VERSION_BUMP
- name: Format lerna changes
run: yarn format

- name: Get updated version
id: new-version
run: |
NEW_VERSION=$(node -p "require('./lerna.json').version")
echo $NEW_VERSION
echo version="${NEW_VERSION}" >> "$GITHUB_OUTPUT"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: |
chore(release): v${{ steps.new-version.outputs.version }}
author: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'
committer: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'
branch: lerna-release
signoff: true
title: |
chore(release): v${{ steps.new-version.outputs.version }}
body: |
Release version ${{ steps.new-version.outputs.version }}
2 changes: 1 addition & 1 deletion .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
# Please look up the latest version from
# https://github.com/amannn/action-semantic-pull-request/releases
- uses: amannn/action-semantic-pull-request@v5.4.0
- uses: amannn/action-semantic-pull-request@v5.5.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
Loading

0 comments on commit f0ae21a

Please sign in to comment.