From 302a14c1294356592e4d97c2730d2741ef5e761e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 16 Feb 2023 05:59:11 +0100 Subject: [PATCH] chore(main): release 0.4.0 (#77) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Basile Spaenlehauer --- CHANGELOG.md | 16 ++++++++++++++++ package.json | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ef9fead..1547e549 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## [0.4.0](https://github.com/graasp/graasp-sdk/compare/v0.3.0...v0.4.0) (2023-02-16) + + +### Features + +* **types:** add a magic `ImmutableCast` type to derive `*Record` (immutable) types from backend (mutable) types. Supports nested and optional props with basic or custom types. ([e21d1e5](https://github.com/graasp/graasp-sdk/commit/e21d1e57940ce0aa8235b321654743551ff38794)) +* **types:** create /frontend subpackage ([#75](https://github.com/graasp/graasp-sdk/issues/75)) ([e21d1e5](https://github.com/graasp/graasp-sdk/commit/e21d1e57940ce0aa8235b321654743551ff38794)) +* **types:** define `Item` as a discriminated union type ([e21d1e5](https://github.com/graasp/graasp-sdk/commit/e21d1e57940ce0aa8235b321654743551ff38794)) +* **types:** move query-client types to /frontend ([e21d1e5](https://github.com/graasp/graasp-sdk/commit/e21d1e57940ce0aa8235b321654743551ff38794)) + + +### Bug Fixes + +* update `extra` prop on `Member` (add `lang` and `favoriteItems`) ([e21d1e5](https://github.com/graasp/graasp-sdk/commit/e21d1e57940ce0aa8235b321654743551ff38794)) +* use generic type on `getExtra*` methods to infer return type from input type ([e21d1e5](https://github.com/graasp/graasp-sdk/commit/e21d1e57940ce0aa8235b321654743551ff38794)) + ## [0.3.0](https://github.com/graasp/graasp-sdk/compare/v0.2.0...v0.3.0) (2023-01-26) diff --git a/package.json b/package.json index 905c0ad7..d2711b9c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@graasp/sdk", - "version": "0.3.0", + "version": "0.4.0", "repository": "git@github.com:graasp/graasp-sdk.git", "author": "Graasp", "contributors": [