Skip to content

Commit

Permalink
feat: make models extendable (#76)
Browse files Browse the repository at this point in the history
* feat: making database usable outside of the Atala World (#75)
  • Loading branch information
elribonazo authored Jan 10, 2024
1 parent 072d034 commit 49918a5
Show file tree
Hide file tree
Showing 81 changed files with 2,746 additions and 2,112 deletions.
5 changes: 2 additions & 3 deletions .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 All @@ -19,8 +19,7 @@ plugins:
prepareCmd: "npm version ${nextRelease.version} --git-tag-version false"
}
]
- ["@semantic-release/exec", { prepareCmd: "npm run build" }]
- ["@semantic-release/exec", { prepareCmd: "npm publish --access public" }]
- ["@semantic-release/exec", { prepareCmd: "npm run build && npm publish --access public" }]
- [
"@semantic-release/git",
{
Expand Down
560 changes: 294 additions & 266 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}}
}
22 changes: 13 additions & 9 deletions packages/database/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pluto-encrypted/database",
"version": "1.11.1",
"version": "2.0.0-rc.3",
"description": "Encrypted database for Edge Wallet SDK that supports multiple db, IndexDB, LevelDB and InMemory",
"main": "./build/cjs/index.cjs",
"module": "./build/esm/index.mjs",
Expand Down Expand Up @@ -36,21 +36,25 @@
"@atala/prism-wallet-sdk": "^4.0.0-rc.1"
},
"optionalDependencies": {
"@pluto-encrypted/indexdb": "1.9.4",
"@pluto-encrypted/inmemory": "1.9.4",
"@pluto-encrypted/leveldb": "1.9.4"
"@pluto-encrypted/indexdb": "2.0.0-rc.3",
"@pluto-encrypted/inmemory": "2.0.0-rc.3",
"@pluto-encrypted/leveldb": "2.0.0-rc.3"
},
"devDependencies": {
"@pluto-encrypted/encryption": "1.9.3",
"@pluto-encrypted/indexdb": "1.9.4",
"@pluto-encrypted/inmemory": "1.9.4",
"@pluto-encrypted/leveldb": "1.9.4",
"@pluto-encrypted/encryption": "1.10.0-rc.1",
"@pluto-encrypted/indexdb": "2.0.0-rc.3",
"@pluto-encrypted/inmemory": "2.0.0-rc.3",
"@pluto-encrypted/leveldb": "2.0.0-rc.3",
"@pluto-encrypted/shared": "2.0.0-rc.3",
"@pluto-encrypted/schemas": "^1.0.0-rc.1",
"@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/encryption": "1.10.0-rc.1",
"@pluto-encrypted/shared": "2.0.0-rc.3",
"@pluto-encrypted/schemas": "^1.0.0-rc.1",
"rxdb": "^14.17.0",
"rxjs": "7.8.1",
"uuid": "^9.0.1"
Expand Down
Loading

0 comments on commit 49918a5

Please sign in to comment.