Skip to content

Commit

Permalink
Merge branch 'develop' into feature/cdb-2608-anchor-retry-logic-for-t…
Browse files Browse the repository at this point in the history
…ips-that-have-no-anchor-requests
  • Loading branch information
stephhuynh18 committed Aug 8, 2023
2 parents 3a1deec + a4ee30a commit 7ca2da4
Show file tree
Hide file tree
Showing 58 changed files with 815 additions and 220 deletions.
8 changes: 8 additions & 0 deletions packages/3id-did-resolver/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.24.0-rc.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/[email protected]...@ceramicnetwork/[email protected]) (2023-08-07)

**Note:** Version bump only for package @ceramicnetwork/3id-did-resolver





# [2.23.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/[email protected]...@ceramicnetwork/[email protected]) (2023-07-31)

**Note:** Version bump only for package @ceramicnetwork/3id-did-resolver
Expand Down
8 changes: 4 additions & 4 deletions packages/3id-did-resolver/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ceramicnetwork/3id-did-resolver",
"version": "2.23.0",
"version": "2.24.0-rc.0",
"description": "DID Resolver for the 3ID method",
"keywords": [
"Ceramic",
Expand Down Expand Up @@ -40,16 +40,16 @@
"clean": "npx rimraf ./lib"
},
"dependencies": {
"@ceramicnetwork/common": "^2.30.0",
"@ceramicnetwork/stream-tile": "^2.26.0",
"@ceramicnetwork/common": "^2.31.0-rc.0",
"@ceramicnetwork/stream-tile": "^2.27.0-rc.0",
"@ceramicnetwork/streamid": "^2.17.0",
"cross-fetch": "^3.1.4",
"lru_map": "^0.4.1",
"multiformats": "^11.0.1",
"uint8arrays": "^4.0.3"
},
"devDependencies": {
"@ceramicnetwork/http-client": "^2.27.0",
"@ceramicnetwork/http-client": "^2.28.0-rc.0",
"did-resolver": "^4.0.1"
},
"gitHead": "56e646e82ee6e9cdb0b762bbbf77b8432edce367"
Expand Down
8 changes: 8 additions & 0 deletions packages/anchor-listener/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.16.0-rc.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/[email protected]...@ceramicnetwork/[email protected]) (2023-08-07)

**Note:** Version bump only for package @ceramicnetwork/anchor-listener





# [1.15.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/[email protected]...@ceramicnetwork/[email protected]) (2023-07-31)

**Note:** Version bump only for package @ceramicnetwork/anchor-listener
Expand Down
6 changes: 3 additions & 3 deletions packages/anchor-listener/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ceramicnetwork/anchor-listener",
"version": "1.15.0",
"version": "1.16.0-rc.0",
"description": "Ceramic anchor events listener",
"keywords": [
"ceramic",
Expand Down Expand Up @@ -30,12 +30,12 @@
"author": "3Box Labs",
"license": "(Apache-2.0 OR MIT)",
"dependencies": {
"@ceramicnetwork/anchor-utils": "^1.13.0",
"@ceramicnetwork/anchor-utils": "^1.14.0-rc.0",
"@ethersproject/providers": "^5.5.1",
"rxjs": "^7.5.2"
},
"devDependencies": {
"@ceramicnetwork/common": "^2.30.0",
"@ceramicnetwork/common": "^2.31.0-rc.0",
"@ethersproject/abi": "^5.7.0",
"@jest/globals": "^28.1.3",
"multiformats": "^11.0.1",
Expand Down
8 changes: 8 additions & 0 deletions packages/anchor-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.14.0-rc.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/[email protected]...@ceramicnetwork/[email protected]) (2023-08-07)

**Note:** Version bump only for package @ceramicnetwork/anchor-utils





# [1.13.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/[email protected]...@ceramicnetwork/[email protected]) (2023-07-31)

**Note:** Version bump only for package @ceramicnetwork/anchor-utils
Expand Down
4 changes: 2 additions & 2 deletions packages/anchor-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ceramicnetwork/anchor-utils",
"version": "1.13.0",
"version": "1.14.0-rc.0",
"description": "Ceramic anchor contract constants, interface and utilities",
"keywords": [
"ceramic",
Expand Down Expand Up @@ -30,7 +30,7 @@
"author": "3Box Labs",
"license": "(Apache-2.0 OR MIT)",
"dependencies": {
"@ceramicnetwork/common": "^2.30.0",
"@ceramicnetwork/common": "^2.31.0-rc.0",
"@ethersproject/abi": "^5.7.0",
"multiformats": "^11.0.1",
"uint8arrays": "^4.0.3"
Expand Down
8 changes: 8 additions & 0 deletions packages/blockchain-utils-validation/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.23.0-rc.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/[email protected]...@ceramicnetwork/[email protected]) (2023-08-07)

**Note:** Version bump only for package @ceramicnetwork/blockchain-utils-validation





# [2.22.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/[email protected]...@ceramicnetwork/[email protected]) (2023-07-31)

**Note:** Version bump only for package @ceramicnetwork/blockchain-utils-validation
Expand Down
4 changes: 2 additions & 2 deletions packages/blockchain-utils-validation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ceramicnetwork/blockchain-utils-validation",
"version": "2.22.0",
"version": "2.23.0-rc.0",
"description": "Blockchain utils for validation of linked blockchain accounts",
"keywords": [
"ceramic",
Expand Down Expand Up @@ -38,7 +38,7 @@
},
"dependencies": {
"@ceramicnetwork/blockchain-utils-linking": "^2.16.0",
"@ceramicnetwork/common": "^2.30.0",
"@ceramicnetwork/common": "^2.31.0-rc.0",
"@ethersproject/contracts": "^5.5.0",
"@ethersproject/providers": "^5.5.1",
"@ethersproject/wallet": "^5.5.0",
Expand Down
11 changes: 11 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.36.0-rc.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/[email protected]...@ceramicnetwork/[email protected]) (2023-08-07)


### Features

* **core:** query results ordering on custom fields ([#2864](https://github.com/ceramicnetwork/js-ceramic/issues/2864)) ([d56a13f](https://github.com/ceramicnetwork/js-ceramic/commit/d56a13f0ce25983f5a60e2a78816843e56c4fda2))





# [2.35.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/[email protected]...@ceramicnetwork/[email protected]) (2023-07-31)

**Note:** Version bump only for package @ceramicnetwork/cli
Expand Down
18 changes: 9 additions & 9 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ceramicnetwork/cli",
"version": "2.35.0",
"version": "2.36.0-rc.0",
"description": "Typescript implementation of the Ceramic CLI",
"keywords": [
"Ceramic",
Expand Down Expand Up @@ -41,14 +41,14 @@
},
"dependencies": {
"@awaitjs/express": "^0.9.0",
"@ceramicnetwork/3id-did-resolver": "^2.23.0",
"@ceramicnetwork/common": "^2.30.0",
"@ceramicnetwork/core": "^2.37.0",
"@ceramicnetwork/http-client": "^2.27.0",
"@ceramicnetwork/ipfs-daemon": "^2.23.0",
"@ceramicnetwork/3id-did-resolver": "^2.24.0-rc.0",
"@ceramicnetwork/common": "^2.31.0-rc.0",
"@ceramicnetwork/core": "^2.38.0-rc.0",
"@ceramicnetwork/http-client": "^2.28.0-rc.0",
"@ceramicnetwork/ipfs-daemon": "^2.24.0-rc.0",
"@ceramicnetwork/logger": "^2.5.0",
"@ceramicnetwork/observability": "^1.4.1",
"@ceramicnetwork/stream-tile": "^2.26.0",
"@ceramicnetwork/stream-tile": "^2.27.0-rc.0",
"@ceramicnetwork/streamid": "^2.17.0",
"@stablelib/random": "^1.0.1",
"aws-sdk": "^2.1049.0",
Expand Down Expand Up @@ -77,8 +77,8 @@
"uint8arrays": "^4.0.3"
},
"devDependencies": {
"@ceramicnetwork/stream-model": "^1.12.0",
"@ceramicnetwork/stream-tile-handler": "^2.25.0",
"@ceramicnetwork/stream-model": "^1.13.0-rc.0",
"@ceramicnetwork/stream-tile-handler": "^2.26.0-rc.0",
"@stablelib/sha256": "^1.0.1",
"@types/express": "^4.17.13",
"@types/levelup": "^5.1.0",
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/daemon/collection-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export function collectionQuery(query: Record<string, any>): BaseQuery & Paginat
account: query.account,
filter: query.filter,
queryFilters: query.queryFilters,
sorting: query.sorting,
...pagination,
}
} catch (e) {
Expand Down
11 changes: 11 additions & 0 deletions packages/common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.31.0-rc.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/[email protected]...@ceramicnetwork/[email protected]) (2023-08-07)


### Features

* **core:** query results ordering on custom fields ([#2864](https://github.com/ceramicnetwork/js-ceramic/issues/2864)) ([d56a13f](https://github.com/ceramicnetwork/js-ceramic/commit/d56a13f0ce25983f5a60e2a78816843e56c4fda2))





# [2.30.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/[email protected]...@ceramicnetwork/[email protected]) (2023-07-31)

**Note:** Version bump only for package @ceramicnetwork/common
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ceramicnetwork/common",
"version": "2.30.0",
"version": "2.31.0-rc.0",
"description": "Ceramic common types and utilities",
"keywords": [
"ceramic",
Expand Down
5 changes: 3 additions & 2 deletions packages/common/src/index-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ export type RangeValueFilter<T extends string | number> =
/**
* String or number field value filter
*/
export type ScalarValueFilter<T extends string | number = string | number> = CommonValueFilter<T> &
RangeValueFilter<T>
export type ScalarValueFilter<T extends string | number = string | number> =
| CommonValueFilter<T>
| RangeValueFilter<T>

/**
* Any supported field value filter on an object
Expand Down
11 changes: 11 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.38.0-rc.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/[email protected]...@ceramicnetwork/[email protected]) (2023-08-07)


### Features

* **core:** query results ordering on custom fields ([#2864](https://github.com/ceramicnetwork/js-ceramic/issues/2864)) ([d56a13f](https://github.com/ceramicnetwork/js-ceramic/commit/d56a13f0ce25983f5a60e2a78816843e56c4fda2))





# [2.37.0](https://github.com/ceramicnetwork/js-ceramic/compare/@ceramicnetwork/[email protected]...@ceramicnetwork/[email protected]) (2023-07-31)

**Note:** Version bump only for package @ceramicnetwork/core
Expand Down
34 changes: 17 additions & 17 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ceramicnetwork/core",
"version": "2.37.0",
"version": "2.38.0-rc.0",
"description": "Typescript implementation of the Ceramic protocol",
"keywords": [
"Ceramic",
Expand Down Expand Up @@ -41,22 +41,22 @@
"clean": "npx rimraf ./lib"
},
"dependencies": {
"@ceramicnetwork/anchor-listener": "^1.15.0",
"@ceramicnetwork/anchor-utils": "^1.13.0",
"@ceramicnetwork/anchor-listener": "^1.16.0-rc.0",
"@ceramicnetwork/anchor-utils": "^1.14.0-rc.0",
"@ceramicnetwork/codecs": "^1.5.0",
"@ceramicnetwork/common": "^2.30.0",
"@ceramicnetwork/ipfs-topology": "^2.24.0",
"@ceramicnetwork/common": "^2.31.0-rc.0",
"@ceramicnetwork/ipfs-topology": "^2.25.0-rc.0",
"@ceramicnetwork/observability": "^1.4.1",
"@ceramicnetwork/pinning-aggregation": "^2.22.0",
"@ceramicnetwork/pinning-ipfs-backend": "^2.22.0",
"@ceramicnetwork/stream-caip10-link": "^2.25.0",
"@ceramicnetwork/stream-caip10-link-handler": "^2.23.0",
"@ceramicnetwork/stream-model": "^1.12.0",
"@ceramicnetwork/stream-model-handler": "^1.12.0",
"@ceramicnetwork/stream-model-instance": "^1.12.0",
"@ceramicnetwork/stream-model-instance-handler": "^1.12.0",
"@ceramicnetwork/stream-tile": "^2.26.0",
"@ceramicnetwork/stream-tile-handler": "^2.25.0",
"@ceramicnetwork/pinning-aggregation": "^2.23.0-rc.0",
"@ceramicnetwork/pinning-ipfs-backend": "^2.23.0-rc.0",
"@ceramicnetwork/stream-caip10-link": "^2.26.0-rc.0",
"@ceramicnetwork/stream-caip10-link-handler": "^2.24.0-rc.0",
"@ceramicnetwork/stream-model": "^1.13.0-rc.0",
"@ceramicnetwork/stream-model-handler": "^1.13.0-rc.0",
"@ceramicnetwork/stream-model-instance": "^1.13.0-rc.0",
"@ceramicnetwork/stream-model-instance-handler": "^1.13.0-rc.0",
"@ceramicnetwork/stream-tile": "^2.27.0-rc.0",
"@ceramicnetwork/stream-tile-handler": "^2.26.0-rc.0",
"@ceramicnetwork/streamid": "^2.17.0",
"@ceramicnetwork/wasm-bloom-filter": "^0.1.0",
"@datastructures-js/priority-queue": "^6.1.0",
Expand Down Expand Up @@ -89,8 +89,8 @@
"uint8arrays": "^4.0.3"
},
"devDependencies": {
"@ceramicnetwork/3id-did-resolver": "^2.23.0",
"@ceramicnetwork/ipfs-daemon": "^2.23.0",
"@ceramicnetwork/3id-did-resolver": "^2.24.0-rc.0",
"@ceramicnetwork/ipfs-daemon": "^2.24.0-rc.0",
"@databases/pg-test": "^3.1.2",
"@didtools/cacao": "^2.1.0",
"@types/node": "^18.0.3",
Expand Down
13 changes: 8 additions & 5 deletions packages/core/src/ceramic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -739,12 +739,10 @@ export class Ceramic implements CeramicApi {
throw new Error('Writes to streams are not supported in gateway mode')
}

const id = normalizeStreamID(streamId)
this._logger.verbose(`Apply commit to stream ${id.toString()}`)
opts = { ...DEFAULT_APPLY_COMMIT_OPTS, ...opts, ...this._loadOptsOverride }
const state$ = await this.repository.applyCommit(
normalizeStreamID(streamId),
commit,
opts as CreateOpts
)
const state$ = await this.repository.applyCommit(id, commit, opts as CreateOpts)

const stream = streamFromState<T>(
this.context,
Expand All @@ -754,6 +752,7 @@ export class Ceramic implements CeramicApi {
)

await this.repository.indexStreamIfNeeded(state$)
this._logger.verbose(`Applied commit to stream ${id.toString()}`)

return stream
}
Expand Down Expand Up @@ -786,13 +785,17 @@ export class Ceramic implements CeramicApi {
opts = { ...DEFAULT_CREATE_FROM_GENESIS_OPTS, ...opts, ...this._loadOptsOverride }
const genesisCid = await this.dispatcher.storeCommit(genesis)
const streamId = new StreamID(type, genesisCid)
this._logger.verbose(
`Created stream from genesis, StreamID: ${streamId.toString()}, genesis CID: ${genesisCid.toString()}`
)
const state$ = await this.repository.applyCreateOpts(streamId, opts)
const stream = streamFromState<T>(
this.context,
this._streamHandlers,
state$.value,
this.repository.updates$
)
this._logger.verbose(`Created stream ${streamId.toString()} from state`)

await this.repository.indexStreamIfNeeded(state$)

Expand Down
Loading

0 comments on commit 7ca2da4

Please sign in to comment.