Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Commit

Permalink
feat: making database usable outside of the Atala World (#75)
Browse files Browse the repository at this point in the history
* feat: making databases extendable.
BREAKING CHANGE:  It is now required to pass collections field with getDefaultCollections(). For more information check the examples in github or the documentation portal.
  • Loading branch information
elribonazo authored Jan 10, 2024
1 parent 072d034 commit 61a0c60
Show file tree
Hide file tree
Showing 71 changed files with 2,607 additions and 1,996 deletions.
2 changes: 1 addition & 1 deletion .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ branches:
- name: '@pluto-encrypted/*/v+([0-9]).X.X'
type: maintenance
- name: '@pluto-encrypted/*/v+([0-9])'
type: maintenances
type: maintenance
- name: 'develop'
prerelease: 'rc'

Expand Down
390 changes: 211 additions & 179 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@
"dependencies": {
"typedoc-plugin-external-module-map": "^2.0.1"
}
}
}
12 changes: 2 additions & 10 deletions packages/database/coverage/coverage-summary.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
{"total": {"lines":{"total":207,"covered":207,"skipped":0,"pct":100},"statements":{"total":218,"covered":218,"skipped":0,"pct":100},"functions":{"total":77,"covered":77,"skipped":0,"pct":100},"branches":{"total":72,"covered":72,"skipped":0,"pct":100},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/index.ts": {"lines":{"total":153,"covered":153,"skipped":0,"pct":100},"functions":{"total":67,"covered":67,"skipped":0,"pct":100},"statements":{"total":164,"covered":164,"skipped":0,"pct":100},"branches":{"total":50,"covered":50,"skipped":0,"pct":100}}
,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/Credential.ts": {"lines":{"total":11,"covered":11,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/CredentialRequestMetadata.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/DID.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/DIDPair.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/LinkSecret.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/Mediator.ts": {"lines":{"total":4,"covered":4,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/Message.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/PrivateKey.ts": {"lines":{"total":28,"covered":28,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":28,"covered":28,"skipped":0,"pct":100},"branches":{"total":18,"covered":18,"skipped":0,"pct":100}}
{"total": {"lines":{"total":31,"covered":31,"skipped":0,"pct":100},"statements":{"total":31,"covered":31,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"branches":{"total":18,"covered":18,"skipped":0,"pct":100},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}}
,"/Users/ribo/Projects/personal/pluto-encrypted/packages/database/src/index.ts": {"lines":{"total":31,"covered":31,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":31,"covered":31,"skipped":0,"pct":100},"branches":{"total":18,"covered":18,"skipped":0,"pct":100}}
}
4 changes: 3 additions & 1 deletion packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@
"@pluto-encrypted/indexdb": "1.9.4",
"@pluto-encrypted/inmemory": "1.9.4",
"@pluto-encrypted/leveldb": "1.9.4",
"@pluto-encrypted/shared": "1.9.3",
"@vitest/coverage-v8": "^1.0.4",
"level": "^6.0.1"
},
"dependencies": {
"@atala/prism-wallet-sdk": "^4.0.0-rc.1",
"@pluto-encrypted/encryption": "1.9.3",
"@pluto-encrypted/shared": "1.9.3",
"rxdb": "^14.17.0",
"rxjs": "7.8.1",
"uuid": "^9.0.1"
Expand All @@ -59,4 +61,4 @@
"build/*"
],
"gitHead": "6aa4ce8bbb9938fc4c4e790efffa5b902631362c"
}
}
Loading

0 comments on commit 61a0c60

Please sign in to comment.