Skip to content

Commit

Permalink
chore: update js deps (#94)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohsin Zaidi <2236875+smrz2001@users.noreply.github.com>
  • Loading branch information
nathanielc and smrz2001 authored Feb 2, 2024
1 parent aa99dae commit 03ed4ba
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 54 deletions.
12 changes: 6 additions & 6 deletions suite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"@aws-sdk/client-api-gateway": "^3.427.0",
"@aws-sdk/client-dynamodb": "^3.427.0",
"@aws-sdk/client-lambda": "^3.427.0",
"@ceramicnetwork/common": "3.4.1",
"@ceramicnetwork/http-client": "3.4.1",
"@ceramicnetwork/stream-model": "2.4.1",
"@ceramicnetwork/stream-model-instance": "2.4.1",
"@ceramicnetwork/stream-tile": "3.4.1",
"@ceramicnetwork/streamid": "3.4.1",
"@ceramicnetwork/common": "4.1.0",
"@ceramicnetwork/http-client": "4.1.0",
"@ceramicnetwork/stream-model": "3.1.0",
"@ceramicnetwork/stream-model-instance": "3.1.0",
"@ceramicnetwork/stream-tile": "4.1.0",
"@ceramicnetwork/streamid": "4.1.0",
"@composedb/devtools": "0.6.1",
"@ipld/dag-json": "^10.1.7",
"@jest/globals": "^29.7.0",
Expand Down
172 changes: 135 additions & 37 deletions suite/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions suite/src/__tests__/fast/update.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CeramicApi, SyncOptions } from '@ceramicnetwork/common'
import { StreamReaderWriter, SyncOptions } from '@ceramicnetwork/common'
import CeramicClient from '@ceramicnetwork/http-client'
import { TileDocument } from '@ceramicnetwork/stream-tile'
import { afterAll, beforeAll, expect, test, describe } from '@jest/globals'
Expand Down Expand Up @@ -38,7 +38,7 @@ function testUpdate(composeDbUrls: string[]) {
// Create and update on first node
test(`create stream on ${firstNodeUrl}`, async () => {
firstCeramic = await newCeramic(firstNodeUrl)
firstTile = await TileDocument.create(firstCeramic as CeramicApi, content, metadata, {
firstTile = await TileDocument.create(firstCeramic as StreamReaderWriter, content, metadata, {
anchor: false,
})
console.log(
Expand Down
4 changes: 2 additions & 2 deletions suite/src/__tests__/slow/ceramic-cas-integration.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AnchorStatus, CeramicApi } from '@ceramicnetwork/common'
import { AnchorStatus, StreamReaderWriter } from '@ceramicnetwork/common'
import { TileDocument } from '@ceramicnetwork/stream-tile'
import { jest, describe, test, beforeAll, expect } from '@jest/globals'
import { newCeramic, waitForAnchor } from '../../utils/ceramicHelpers.js'
Expand All @@ -8,7 +8,7 @@ const ComposeDbUrls = String(process.env.COMPOSEDB_URLS).split(',')
// Skipped https://linear.app/3boxlabs/issue/WS1-1460/unskip-ceramic-cas-basic-integration
describe.skip('Ceramic<->CAS basic integration', () => {
jest.setTimeout(1000 * 60 * 60) // 1 hour
let ceramic: CeramicApi
let ceramic: StreamReaderWriter

beforeAll(async () => {
ceramic = await newCeramic(ComposeDbUrls[0])
Expand Down
14 changes: 7 additions & 7 deletions suite/src/__tests__/slow/ceramic-ceramic-integration.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CeramicApi, StreamUtils } from '@ceramicnetwork/common'
import { StreamReaderWriter, StreamUtils } from '@ceramicnetwork/common'
import { TileDocument } from '@ceramicnetwork/stream-tile'
import { jest, describe, test, beforeAll, expect } from '@jest/globals'
import { newCeramic, waitForAnchor, waitForCondition } from '../../utils/ceramicHelpers.js'
Expand All @@ -7,8 +7,8 @@ const UPDATE_TIMEOUT = 60 // 60 seconds for regular updates to propagate from on
const ComposeDbUrls = String(process.env.COMPOSEDB_URLS).split(',')

const createWithOneLoadWithTheOther = async (
ceramic1: CeramicApi,
ceramic2: CeramicApi,
ceramic1: StreamReaderWriter,
ceramic2: StreamReaderWriter,
): Promise<void> => {
const content = { foo: 'bar' }
const doc1 = await TileDocument.create(ceramic1, content)
Expand All @@ -18,8 +18,8 @@ const createWithOneLoadWithTheOther = async (
}

const updatesAreShared = async (
ceramic1: CeramicApi,
ceramic2: CeramicApi,
ceramic1: StreamReaderWriter,
ceramic2: StreamReaderWriter,
anchor: boolean,
): Promise<void> => {
const content0 = { foo: 0 }
Expand Down Expand Up @@ -96,8 +96,8 @@ const updatesAreShared = async (

describe.skip('Ceramic<->Ceramic multi-node integration', () => {
jest.setTimeout(1000 * 60 * 60) // 1 hour
let ceramic1: CeramicApi
let ceramic2: CeramicApi
let ceramic1: StreamReaderWriter
let ceramic2: StreamReaderWriter

beforeAll(async () => {
ceramic1 = await newCeramic(ComposeDbUrls[0])
Expand Down

0 comments on commit 03ed4ba

Please sign in to comment.