From aa3f7ecde4b79b84c606dc74934f752f1c81a06c Mon Sep 17 00:00:00 2001 From: Donat Andelic <34493754+donatandelic@users.noreply.github.com> Date: Wed, 24 Jul 2024 18:52:22 +0200 Subject: [PATCH] release(0.0.50-alpha): auth simplify and decouple --- CHANGELOG.md | 20 ++++++++++++++++++-- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d73cc13..7e07031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,26 @@ Notable and breaking changed and additions to the SDK. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) (*does not apply to alpha development*). +## [0.0.50-alpha] - 2024-07-24 + +### Changed +- [**BREAKING**] `authenticateSiwx` has been renamed to `signSiwx` +- - requires a SIWX message to be passed +- - no longer returns a `did` but instead returns the entire `user` (`AuthUserInformation`) +- [**BREAKING**] `SiwxSession` type renamed to `SignedSiwx` +- [**BREAKING**] `IKeyDidAuth` type renamed to `IDidAuth` +- `ISiwxAuth` now extends `IDidAuth` + +### Added +- `OrbisEVMAuth`, `OrbisSolanaAuth` and `OrbisTezosAuth` now expose `authenticateDid` for decoupled DID creation +- `get did()` added to `OrbisDB`, exposes the currently authenticated `DID` +- new method `parseUserFromCacao: AuthUserInformation` exposed under `/utils` +- `OrbisKeyDidAuth.createRandom` to create a random `did:key` + ## [0.0.40-alpha] - 2024-07-03 ### Changed -- **BREAKING** Major internal session management refactor +- [**BREAKING**] Major internal session management refactor - - Sessions now rely on the serialized `DIDSession` format, simplifying management and compatibility with other Ceramic ecosystem apps - - `serializedSession` as a new option for `connectUser` to pass a serialized session string - - `OrbisConnectResult` is rebuilt on the fly from the parsed serialized session @@ -20,7 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.0.20-alpha] - 2024-02-11 ### Changed -- **BREAKING** Updated function signature of `select.orderBy` (now matches other `SELECT` methods that accept multiple values - optionally) +- [**BREAKING**] Updated function signature of `select.orderBy` (now matches other `SELECT` methods that accept multiple values - optionally) ## [version] - YYYY-MM-DD diff --git a/package-lock.json b/package-lock.json index 33a1293..e01d4af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@useorbis/db-sdk", - "version": "0.0.40-alpha", + "version": "0.0.50-alpha", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@useorbis/db-sdk", - "version": "0.0.40-alpha", + "version": "0.0.50-alpha", "license": "MIT", "dependencies": { "@ceramicnetwork/http-client": "^5.16.0", diff --git a/package.json b/package.json index d6f27da..72b4c80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@useorbis/db-sdk", - "version": "0.0.40-alpha", + "version": "0.0.50-alpha", "description": "Orbis' Typescript SDK for building open-data experiences.", "keywords": [ "web3",