Skip to content

Commit

Permalink
release(0.0.50-alpha): auth simplify and decouple
Browse files Browse the repository at this point in the history
  • Loading branch information
donatandelic committed Jul 24, 2024
1 parent 6876b09 commit aa3f7ec
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
20 changes: 18 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit aa3f7ec

Please sign in to comment.