From 4dd739df792724b7ae4b8eb143d8b4d65b371ea2 Mon Sep 17 00:00:00 2001 From: Perfect Makanju Date: Wed, 3 Feb 2021 18:51:12 +0100 Subject: [PATCH] Release: v0.0.11 (#35) --- changelogs/v0.0.11.md | 14 ++++++++++++++ etc/sdk.api.md | 4 +++- lerna.json | 2 +- packages/sdk/package.json | 6 +++--- packages/storage/package.json | 4 ++-- packages/users/package.json | 2 +- 6 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 changelogs/v0.0.11.md diff --git a/changelogs/v0.0.11.md b/changelogs/v0.0.11.md new file mode 100644 index 0000000..f2609aa --- /dev/null +++ b/changelogs/v0.0.11.md @@ -0,0 +1,14 @@ +# CHANGELOG + +## v0.0.11 + +This release contains a fix with breaking changes. + +### New Features + +- Added a `debugMode` to `UserStorage` class. `new UserStorage(user, { debugMode: true });`. +This will activate logging of internal operations for further debugging by the user. + +### New Fixes + +- Fixes to ensure users file and bucket information are fully loaded before results are returned. diff --git a/etc/sdk.api.md b/etc/sdk.api.md index 27ec933..bc788e6 100644 --- a/etc/sdk.api.md +++ b/etc/sdk.api.md @@ -7,6 +7,7 @@ import { Buckets } from '@textile/hub'; import { Client } from '@textile/hub'; import { IGunChainReference } from 'gun/types/chain'; +import Pino from 'pino'; import { UserAuth } from '@textile/hub'; // @public (undocumented) @@ -179,7 +180,7 @@ export class GundbMetadataStore implements UserMetadataStore { findFileMetadataByUuid(uuid: string): Promise; // Warning: (ae-forgotten-export) The symbol "GunChainReference" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "GunDataState" needs to be exported by the entry point index.d.ts - static fromIdentity(username: string, userpass: string, gunOrServer?: GunChainReference | string): Promise; + static fromIdentity(username: string, userpass: string, gunOrServer?: GunChainReference | string, logger?: Pino.Logger | boolean): Promise; listBuckets(): Promise; upsertFileMetadata(metadata: FileMetadata): Promise; } @@ -376,6 +377,7 @@ export class UserStorage { // @public (undocumented) export interface UserStorageConfig { bucketsInit?: (auth: UserAuth) => Buckets; + debugMode?: boolean; // (undocumented) metadataStoreInit?: (identity: Identity) => Promise; // (undocumented) diff --git a/lerna.json b/lerna.json index d17c87a..f29d6a7 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "packages/*" ], - "version": "0.0.10", + "version": "0.0.11", "npmClient": "yarn", "useWorkspaces": true, "command": { diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 596644b..0d0a6b4 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@spacehq/sdk", - "version": "0.0.10", + "version": "0.0.11", "description": "Space SDK Library", "main": "dist/index", "types": "dist/index", @@ -33,7 +33,7 @@ "typescript": "^3.9.3" }, "dependencies": { - "@spacehq/storage": "^0.0.10", - "@spacehq/users": "^0.0.10" + "@spacehq/storage": "^0.0.11", + "@spacehq/users": "^0.0.11" } } diff --git a/packages/storage/package.json b/packages/storage/package.json index 98fff9e..31cbc24 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -1,6 +1,6 @@ { "name": "@spacehq/storage", - "version": "0.0.10", + "version": "0.0.11", "description": "Space storage implementation", "main": "dist/index", "types": "dist/index", @@ -42,7 +42,7 @@ }, "dependencies": { "@improbable-eng/grpc-web": "^0.13.0", - "@spacehq/users": "^0.0.10", + "@spacehq/users": "^0.0.11", "@textile/crypto": "^2.0.0", "@textile/hub": "^4.1.0", "@textile/threads-id": "^0.4.0", diff --git a/packages/users/package.json b/packages/users/package.json index 9967b1a..09635f6 100644 --- a/packages/users/package.json +++ b/packages/users/package.json @@ -1,6 +1,6 @@ { "name": "@spacehq/users", - "version": "0.0.10", + "version": "0.0.11", "description": "Space users implementation", "main": "dist/index", "types": "dist/index",