Skip to content

Commit

Permalink
Prepare new release v0.5.0 and push new client versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatz committed Jan 19, 2025
1 parent 2fb294f commit 1042ea2
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v0.5.0

* Breaking change: RecordApi.list now nests records in a parent structure to
include cursor now and be extensible for the future.
* Update all the client libraries to expect a ListResponse.

## v0.4.1

Minor update:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

4 changes: 4 additions & 0 deletions client/trailbase-dart/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.0

- Return ListResponse from RecordApi::list.

## 0.1.2

- Add support for "realtime" subscriptions to listen for record changes:
Expand Down
2 changes: 1 addition & 1 deletion client/trailbase-dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: trailbase
description: Thing client library for TrailBase.
homepage: https://trailbase.io
repository: https://github.com/trailbaseio/trailbase
version: 0.1.2
version: 0.2.0

environment:
sdk: ^3.5.3
Expand Down
5 changes: 3 additions & 2 deletions client/trailbase-dotnet/src/RecordApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public class ListResponse<T> {
/// <summary>The actual records.</summary>
public List<T> records { get; }

/// <summary>ListResponse constructor.</summary>
[JsonConstructor]
public ListResponse(
string? cursor,
Expand Down Expand Up @@ -290,7 +291,7 @@ public async Task<ListResponse<T>> List<T>(
List<string>? filters
) {
string json = await (await ListImpl(pagination, order, filters)).ReadAsStringAsync();
return JsonSerializer.Deserialize<ListResponse<T>>(json);
return JsonSerializer.Deserialize<ListResponse<T>>(json) ?? new ListResponse<T>(null, []);
}

/// <summary>
Expand All @@ -307,7 +308,7 @@ public async Task<ListResponse<T>> List<T>(
JsonTypeInfo<ListResponse<T>> jsonTypeInfo
) {
string json = await (await ListImpl(pagination, order, filters)).ReadAsStringAsync();
return JsonSerializer.Deserialize<ListResponse<T>>(json, jsonTypeInfo);
return JsonSerializer.Deserialize<ListResponse<T>>(json, jsonTypeInfo) ?? new ListResponse<T>(null, []);
}

private async Task<HttpContent> ListImpl(
Expand Down
4 changes: 2 additions & 2 deletions client/trailbase-dotnet/src/TrailBase.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageId>TrailBase</PackageId>
<Version>0.1.5</Version>
<Version>0.2.0</Version>
<Authors>TrailBase authors</Authors>
<PackageReadmeFile>./README.md</PackageReadmeFile>
<PackageLicenseExpression>OSL-3.0</PackageLicenseExpression>
Expand All @@ -27,7 +27,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.1" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.3.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.3.1" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion client/trailbase-dotnet/test/TrailBase.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.3.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.3.1" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion client/trailbase-py/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "trailbase"
version = "0.1.1"
version = "0.2.0"
description = ""
authors = ["TrailBase <[email protected]>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion client/trailbase-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "trailbase-client"
version = "0.0.5"
version = "0.1.0"
edition = "2021"
license = "OSL-3.0"
description = "Client for accessing TrailBase's record APIs"
Expand Down
2 changes: 1 addition & 1 deletion examples/blog/flutter/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ packages:
path: "../../../client/trailbase-dart"
relative: true
source: path
version: "0.1.2"
version: "0.2.0"
typed_data:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion trailbase-core/js/client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "trailbase",
"description": "Official TrailBase client",
"version": "0.1.5",
"version": "0.2.0",
"license": "OSL-3.0",
"type": "module",
"main": "./src/index.ts",
Expand Down

0 comments on commit 1042ea2

Please sign in to comment.