Skip to content

Commit 077ee4c

Browse files
committed
Changelog and cleanup entries.
1 parent 08b4ee7 commit 077ee4c

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed

PowerSync/PowerSync.Common/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# PowerSync.Common Changelog
22

3+
## 0.0.5-alpha.1
4+
- Using the latest (0.4.9) version of the core extension, it introduces support for the Rust Sync implementation and also makes it the default - users can still opt out and use the legacy C# sync implementation as option when calling `connect()`.
5+
36
## 0.0.4-alpha.1
47
- Fixed MAUI issues related to extension loading when installing package outside of the monorepo.
58

PowerSync/PowerSync.Common/Client/Sync/Stream/StreamingSyncImplementation.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public class BaseConnectionOptions(Dictionary<string, object>? parameters = null
8181
public Dictionary<string, object>? Params { get; set; } = parameters;
8282

8383
/// <summary>
84-
/// Wehether to use the RUST or C# sync client implementation.
84+
/// Whether to use the RUST or C# sync client implementation.
8585
/// </summary>
8686
public SyncClientImplementation? ClientImplementation { get; set; } = clientImplementation;
8787
}
@@ -561,7 +561,6 @@ void HandleInstruction(Instruction instruction)
561561

562562
protected async Task<StreamingSyncIterationResult> LegacyStreamingSyncIteration(CancellationToken signal, RequiredPowerSyncConnectionOptions resolvedOptions)
563563
{
564-
// There's also a warning explaining that the legacy client will be removed in the future
565564
logger.LogWarning("The legacy sync client implementation is deprecated and will be removed in a future release.");
566565
logger.LogDebug("Streaming sync iteration started");
567566
Options.Adapter.StartSession();
@@ -600,7 +599,7 @@ protected async Task<StreamingSyncIterationResult> LegacyStreamingSyncIteration(
600599
Buckets = req,
601600
IncludeChecksum = true,
602601
RawData = true,
603-
Parameters = resolvedOptions.Params, // Replace with actual params
602+
Parameters = resolvedOptions.Params,
604603
ClientId = clientId
605604
}
606605
};
@@ -664,7 +663,6 @@ protected async Task<StreamingSyncIterationResult> LegacyStreamingSyncIteration(
664663
if (!result.CheckpointValid)
665664
{
666665
// This means checksums failed. Start again with a new checkpoint.
667-
// TODO: better back-off
668666
await Task.Delay(50);
669667
return new StreamingSyncIterationResult { LegacyRetry = true };
670668
}
@@ -802,7 +800,6 @@ protected async Task<StreamingSyncIterationResult> LegacyStreamingSyncIteration(
802800
if (!result.CheckpointValid)
803801
{
804802
// This means checksums failed. Start again with a new checkpoint.
805-
// TODO: better back-off
806803
await Task.Delay(50);
807804
return new StreamingSyncIterationResult { LegacyRetry = false };
808805
}

PowerSync/PowerSync.Maui/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# PowerSync.Maui Changelog
22

3+
## 0.0.3-alpha.1
4+
- Upstream PowerSync.Common version bump
5+
- Using the latest (0.4.9) version of the core extension, it introduces support for the Rust Sync implementation and also makes it the default - users can still opt out and use the legacy C# sync implementation as option when calling `connect()`.
6+
37
## 0.0.2-alpha.1
48
- Fixed issues related to extension loading when installing package outside of the monorepo.
59

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ dotnet test -v n --framework net8.0 --filter "test-file-pattern"
106106

107107
### Integration Tests
108108
Integration tests in `PowerSync.Common.IntegrationTests` are intended to run against the [self-host nodejs demo](https://github.com/powersync-ja/self-host-demo/tree/main/demos/nodejs).
109-
The integration tests are disabled by default, define the following environment variable to let them run.
109+
The integration tests are disabled by default, define the following environment variable when running the tests.
110110

111111
```bash
112112
RUN_INTEGRATION_TESTS=true dotnet test -v n --framework net8.0
113113
```
114114

115-
Run integration tests exclusively.
115+
Only run integration tests, without any unit tests.
116116

117117
```bash
118118
RUN_INTEGRATION_TESTS=true dotnet test -v n --framework net8.0 --filter "Category=Integration"

Tests/PowerSync/PowerSync.Common.IntegrationTests/PowerSync.Common.IntegrationTests.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<!-- <TargetFrameworks>netstandard2.0;net6.0;net8.0;net9.0</TargetFrameworks> -->
54
<TargetFrameworks>net8.0</TargetFrameworks>
6-
75
<ImplicitUsings>enable</ImplicitUsings>
86
<Nullable>enable</Nullable>
97
<IsPackable>false</IsPackable>

Tests/PowerSync/PowerSync.Common.IntegrationTests/SyncIntegrationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public IntegrationFactAttribute()
248248
// Set default timeout if not already set
249249
if (Timeout == 0)
250250
{
251-
Timeout = 5000; // 30 seconds default for all integration tests
251+
Timeout = 5000; // 5 seconds default for all integration tests
252252
}
253253
}
254254
}

Tests/PowerSync/PowerSync.Common.Tests/Client/Sync/CRUDTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ public async Task UpdateTest()
127127
{ "description", "test2" }
128128
});
129129

130-
Console.WriteLine(JsonConvert.SerializeObject(tx.Crud.First()));
131-
Console.WriteLine(JsonConvert.SerializeObject(expectedCrudEntry));
132130
Assert.True(tx.Crud.First().Equals(expectedCrudEntry));
133131
}
134132

Tools/Setup/Setup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ public class PowerSyncSetup
99
{
1010
private const string VERSION = "0.4.9";
1111

12-
// https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.4.9/libpowersync_aarch64.android.a
1312
private const string GITHUB_BASE_URL = $"https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v{VERSION}";
1413
private const string MAVEN_BASE_URL = $"https://repo1.maven.org/maven2/com/powersync/powersync-sqlite-core/{VERSION}";
1514

0 commit comments

Comments
 (0)