Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Web5 agent and API packages to latest crypto and dids versions #445

Merged
merged 72 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
b7513b5
upgrade packages and slow test
LiranCohen Feb 2, 2024
7f6a92e
update identity-agent
LiranCohen Feb 2, 2024
6a4b2d7
update proxy-agent
LiranCohen Feb 3, 2024
99d8da5
increase timeouts
LiranCohen Feb 3, 2024
9d21fb2
Revert changes to SyncManager tests
frankhinek Feb 10, 2024
2ace67e
Minor nit - import ordering
frankhinek Feb 10, 2024
9f49875
Rebase on main
frankhinek Feb 10, 2024
add24ac
Initial refactor of Crypto, DID, and DWN APIs
frankhinek Feb 14, 2024
1c59dc2
Add IdentityApi and more tests
frankhinek Feb 15, 2024
20f8820
Improve DidApi type inference and add more tests
frankhinek Feb 15, 2024
5e93583
Added support for Events and Protocols to AgentDwnApi
frankhinek Feb 15, 2024
cdf6cc9
AgentDwnApi sendRequest MVP
frankhinek Feb 17, 2024
7195c5f
reset changes
frankhinek Feb 17, 2024
7b83803
Add more AgentDwnApi sendRequest tests
frankhinek Feb 17, 2024
09e626d
Refactor data stores
frankhinek Feb 19, 2024
d46990e
Improve data store index/cache handling and rename to AgentDataStore
frankhinek Feb 19, 2024
87fabf0
DWN sendRequest and MVP of SyncApi working
frankhinek Feb 19, 2024
dcfa8f8
Rename agent and sync tests working
frankhinek Feb 19, 2024
a353fa7
All sync tests passing and added createIdentity to test harness
frankhinek Feb 19, 2024
d69de01
Add more testing for SyncEngineLevel
frankhinek Feb 19, 2024
dbc7fb2
Clean up internal utility functions
frankhinek Feb 20, 2024
768d71a
stage WIP
frankhinek Feb 23, 2024
cc74e9a
Delete package-lock.json
frankhinek Feb 23, 2024
396b2ca
AppDataVault WIP
frankhinek Feb 27, 2024
27248c7
Fix launch.json issues
frankhinek Feb 27, 2024
e8eb5ab
Switch to getJoseSignatureAlgorithmFromPublicKey in @web5/crypto
frankhinek Feb 27, 2024
390e68f
Fix prototyping directory structure
frankhinek Feb 27, 2024
99fea82
CompactJwe.decrypt and FlattenedJwe.decrypt working
frankhinek Feb 28, 2024
9df15f0
Enhanced CryptoApi support for key conversion and wrapping
frankhinek Mar 1, 2024
fbaa96e
Split Crypto and KeyManager
frankhinek Mar 2, 2024
5151f1a
AppDataVault refactored to use CompactJwe
frankhinek Mar 3, 2024
9f1bd07
Improve structure of JWE code
frankhinek Mar 3, 2024
f3e3bbe
Add AppDataVault docs
frankhinek Mar 3, 2024
d27d071
Complete refactoring and renaming of IdentityVault
frankhinek Mar 5, 2024
41ec845
Fix @web5/agent exports and minor refactoring
frankhinek Mar 6, 2024
c329f7e
Resolve key manager type issues in agent package
frankhinek Mar 8, 2024
1a23b52
Remove test timeouts
frankhinek Mar 8, 2024
2b8344c
Add createDwn utility to Agent DWN API
frankhinek Mar 8, 2024
bd95897
Remove unused type definitions
frankhinek Mar 8, 2024
54a8a8d
Resolve bug in HdIdentityVault
frankhinek Mar 8, 2024
1516a3b
Update @web5/user-agent to use latest agent, crypto, dids packages
frankhinek Mar 8, 2024
d781cb0
Update @web5/proxy-agent to use latest agent, crypto, dids packages
frankhinek Mar 8, 2024
55e0b7b
Remove chai-as-promised from @web5/agent
frankhinek Mar 8, 2024
6b3e60c
Minor identity vault refactor
frankhinek Mar 11, 2024
7e16aff
Add list() to IdentityApi and improve tests
frankhinek Mar 11, 2024
3973054
Improve DX for Agent DidApi
frankhinek Mar 11, 2024
ae1443c
Update user-agent and proxy-agent for identity vault changes
frankhinek Mar 11, 2024
640d1e2
Remove legacy code
frankhinek Mar 12, 2024
234dbf7
Fix typo in test harness
frankhinek Mar 12, 2024
02c2677
Refactor DID API
frankhinek Mar 12, 2024
de97504
Update @web5/api to use latest web5 deps
frankhinek Mar 12, 2024
8fbc453
Break up into smaller PRs
frankhinek Mar 12, 2024
720ce52
Minor api test improvements
frankhinek Mar 13, 2024
dfdd26d
Resolve Chrome browser AES 192 test failures
frankhinek Mar 13, 2024
db149b8
Use @web5/common data and stream utilities
frankhinek Mar 13, 2024
56279bd
Bump dwn-server dep to 0.1.11
frankhinek Mar 13, 2024
e4790ea
Improve docs and remove DWN SDK as a dep from api package
frankhinek Mar 14, 2024
f08faf5
Add more docs
frankhinek Mar 14, 2024
2029a9a
Rename ResponseStatus detail to message
frankhinek Mar 14, 2024
bd4099e
Add local dwn-server node to VSCode launch files
frankhinek Mar 15, 2024
1ba7176
Refactor identity-agent and add docs
frankhinek Mar 15, 2024
5526d90
Attemp to fix alpha publish workflow
frankhinek Mar 15, 2024
8a3e6d6
Resolve 'Failed to replace env in config' error
frankhinek Mar 15, 2024
16b7c88
Revert hermit in Alpha publishing workflow
frankhinek Mar 15, 2024
b00d0c4
Implement requested changes
frankhinek Mar 18, 2024
eb353b1
Reintroduce hermit
frankhinek Mar 18, 2024
fac1595
Update to latest web5 deps and DWN SDK
frankhinek Mar 22, 2024
825d91d
update protocol definitions to support new `can` verbs
LiranCohen Mar 22, 2024
0f2cb78
fix email protocol and associated tests
LiranCohen Mar 22, 2024
261086d
Remove commented code
frankhinek Mar 29, 2024
2395ad4
Bug fix to DWN-backed data stores
frankhinek Mar 29, 2024
69ae3a1
Revert EOF change
frankhinek Mar 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/alpha-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

# https://cashapp.github.io/hermit/usage/ci/
- name: Init Hermit
uses: cashapp/activate-hermit@v1
uses: cashapp/activate-hermit@31ce88b17a84941bb1b782f1b7b317856addf286 #v1.1.0
with:
cache: "true"

Expand Down Expand Up @@ -58,6 +58,8 @@ jobs:
shell: bash

- name: Build all workspace packages
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
run: pnpm --recursive --stream build

- name: Publish selected @web5/* packages
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"devDependencies": {
"@npmcli/package-json": "5.0.0",
"@typescript-eslint/eslint-plugin": "6.4.0",
"@web5/dwn-server": "0.1.9",
"@web5/dwn-server": "0.1.15",
"eslint-plugin-mocha": "10.1.0",
"npkill": "0.11.3"
}
Expand Down
5 changes: 4 additions & 1 deletion packages/agent/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"preLaunchTask": "build tests",
"skipFiles": [
"<node_internals>/**"
]
],
"env": {
"TEST_DWN_URL": "http://localhost:3000"
}
}
]
}
2 changes: 1 addition & 1 deletion packages/agent/build/esbuild-tests.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const browserConfig = require('./esbuild-browser-config.cjs');
esbuild.build({
...browserConfig,
format : 'esm',
entryPoints : ['./tests/**/*.spec.*'],
entryPoints : ['./tests/*.spec.*'],
bundle : true,
minify : false,
outdir : 'tests/compiled',
Expand Down
21 changes: 11 additions & 10 deletions packages/agent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web5/agent",
"version": "0.2.6",
"version": "0.3.0",
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -68,25 +68,27 @@
"node": ">=18.0.0"
},
"dependencies": {
"@noble/hashes": "1.3.3",
"@tbd54566975/dwn-sdk-js": "0.2.10",
"@web5/common": "0.2.3",
"@web5/crypto": "0.2.2",
"@web5/dids": "0.2.4",
"@noble/ciphers": "0.4.1",
"@scure/bip39": "1.2.2",
"@tbd54566975/dwn-sdk-js": "0.2.21",
"@web5/common": "0.2.4",
"@web5/crypto": "0.4.1",
"@web5/dids": "0.4.3",
"abstract-level": "1.0.4",
"ed25519-keygen": "0.4.11",
"level": "8.0.0",
"readable-stream": "4.4.2",
"ms": "2.1.3",
"readable-web-to-node-stream": "3.0.2",
"ulidx": "2.1.0"
},
"devDependencies": {
"@playwright/test": "1.40.1",
"@types/chai": "4.3.6",
"@types/chai-as-promised": "7.1.5",
"@types/dns-packet": "5.6.4",
"@types/eslint": "8.44.2",
"@types/mocha": "10.0.1",
"@types/ms": "0.7.31",
"@types/node": "20.11.19",
"@types/readable-stream": "4.0.6",
"@types/sinon": "17.0.2",
"@typescript-eslint/eslint-plugin": "6.4.0",
"@typescript-eslint/parser": "6.4.0",
Expand All @@ -95,7 +97,6 @@
"abstract-level": "1.0.4",
"c8": "9.0.0",
"chai": "4.3.10",
"chai-as-promised": "7.1.1",
"esbuild": "0.19.8",
"eslint": "8.47.0",
"eslint-plugin-mocha": "10.1.0",
Expand Down
Loading
Loading