chore: Prepare 0.0.6 for Serverpod 4.0.0 (#129)
This commit is contained in:
parent
b89725f6ea
commit
27d875ee39
10 changed files with 57 additions and 43 deletions
35
CHANGELOG.md
35
CHANGELOG.md
|
|
@ -1,11 +1,32 @@
|
||||||
## Unreleased
|
## 0.0.6
|
||||||
|
|
||||||
- refactor: BREAKING. Rename integration and synchronization APIs to `OfflineSync*`
|
- refactor: BREAKING. Rename integration APIs and ownership scopes:
|
||||||
and ownership scopes to spaces, including `spaceId`, `session.offlineSync`,
|
- Rename `CrdtDatabase*` wrappers to `OfflineSyncDatabase*`.
|
||||||
`client.offlineSync`, and `session.offlineSync.spaces`.
|
- Rename `CrdtSync` to `OfflineSyncEngine` and `CrdtSyncSession` to
|
||||||
- refactor: Rename the synchronization endpoint, serialized events, and space
|
`OfflineSyncSubscription`.
|
||||||
metadata tables. Regenerate server/client code with the matching Serverpod CLI
|
- Access sync through `.offlineSync` and `.offlineSyncDb` instead of
|
||||||
and apply the corresponding database migrations.
|
`.crdt` and `.crdtDb`.
|
||||||
|
- Replace `CrdtScope*` models and services with `OfflineSyncSpace*`
|
||||||
|
- Change access to shared spaces through `.spaces` instead of `.scopes`.
|
||||||
|
- Use `spaceId` in models and indexes, and `offline_sync_spaces` in
|
||||||
|
ownership relations.
|
||||||
|
- Initialize with `initializeOfflineSync` and use `offlineSyncDatabaseInterceptor`.
|
||||||
|
- Import client helpers from `offline_sync.dart` instead of `crdt.dart`.
|
||||||
|
- Rename the synchronization endpoint, serialized events, and space metadata
|
||||||
|
tables.
|
||||||
|
- fix: Recompute `onDelete=SetDefault` repairs when default targets are
|
||||||
|
inserted, deleted, restored, or hidden to preserve authored values.
|
||||||
|
- fix: Reject local deletes atomically when a needed `SetDefault` target is
|
||||||
|
missing, hidden, owned by another space, or deleted in the same batch.
|
||||||
|
- fix: Preserve projection-selected nulls during inserts instead of reapplying
|
||||||
|
column defaults, and apply fixed UUID foreign-key defaults in local upserts.
|
||||||
|
- fix: Resolve composite unique conflicts when only a fixed discriminator
|
||||||
|
column changes.
|
||||||
|
- perf: Avoid redundant foreign-key projection for ordinary local writes and
|
||||||
|
primary-key upserts, and batch dependency checks and field-clock writes.
|
||||||
|
- perf: Overlap independent membership reads and skip unnecessary space lookups
|
||||||
|
for untracked tables.
|
||||||
|
- chore: Update Serverpod to `4.0.0` and use the published CLI.
|
||||||
|
|
||||||
## 0.0.5
|
## 0.0.5
|
||||||
|
|
||||||
|
|
|
||||||
12
README.md
12
README.md
|
|
@ -100,18 +100,18 @@ Add the packages to the server and client `pubspec.yaml` files.
|
||||||
```yaml
|
```yaml
|
||||||
# your_project_client/pubspec.yaml
|
# your_project_client/pubspec.yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
serverpod_offline_sync_client: 0.0.4
|
serverpod_offline_sync_client: 0.0.6
|
||||||
```0.0.5
|
```
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# your_project_server/pubspec.yaml
|
# your_project_server/pubspec.yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
serverpod_offline_sync_server: 0.0.4
|
serverpod_offline_sync_server: 0.0.6
|
||||||
```0.0.5
|
```
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> Version `0.0.4` requires Serverpod `4.0.0-rc.2`.
|
> Version `0.0.6` requires Serverpod `4.0.0`.
|
||||||
0.0.5
|
|
||||||
After adding the dependencies, list the `serverpod_offline_sync` module on the
|
After adding the dependencies, list the `serverpod_offline_sync` module on the
|
||||||
`generator.yaml` file and enable the experimental `database: sync` option:
|
`generator.yaml` file and enable the experimental `database: sync` option:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ dependencies:
|
||||||
benchmark_harness: ^2.4.0
|
benchmark_harness: ^2.4.0
|
||||||
intl: ^0.20.2
|
intl: ^0.20.2
|
||||||
path: ^1.9.1
|
path: ^1.9.1
|
||||||
serverpod_database: 4.0.0-rc.2
|
serverpod_database: 4.0.0
|
||||||
serverpod_offline_sync:
|
serverpod_offline_sync:
|
||||||
path: ../packages/serverpod_offline_sync
|
path: ../packages/serverpod_offline_sync
|
||||||
serverpod_offline_sync_server:
|
serverpod_offline_sync_server:
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ dependencies:
|
||||||
http: ^1.5.0
|
http: ^1.5.0
|
||||||
path: ^1.9.1
|
path: ^1.9.1
|
||||||
path_provider: ^2.1.5
|
path_provider: ^2.1.5
|
||||||
serverpod_database: 4.0.0-rc.2
|
serverpod_database: 4.0.0
|
||||||
serverpod_offline_sync_client:
|
serverpod_offline_sync_client:
|
||||||
path: ../../packages/serverpod_offline_sync_client
|
path: ../../packages/serverpod_offline_sync_client
|
||||||
serverpod_offline_sync_test_client:
|
serverpod_offline_sync_test_client:
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
name: serverpod_offline_sync
|
name: serverpod_offline_sync
|
||||||
version: 0.0.5
|
version: 0.0.6
|
||||||
description: Shared package for the Serverpod Offline Sync project.
|
description: Shared package for the Serverpod Offline Sync project.
|
||||||
homepage: https://github.com/marcelomendoncasoares/serverpod_offline_sync
|
homepage: https://github.com/marcelomendoncasoares/serverpod_offline_sync
|
||||||
|
|
||||||
|
|
@ -11,8 +11,8 @@ resolution: workspace
|
||||||
dependencies:
|
dependencies:
|
||||||
clock: ^1.1.2
|
clock: ^1.1.2
|
||||||
meta: ^1.18.0
|
meta: ^1.18.0
|
||||||
serverpod_database: 4.0.0-rc.2
|
serverpod_database: 4.0.0
|
||||||
serverpod_serialization: 4.0.0-rc.2
|
serverpod_serialization: 4.0.0
|
||||||
uuid: ^4.5.3
|
uuid: ^4.5.3
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
name: serverpod_offline_sync_client
|
name: serverpod_offline_sync_client
|
||||||
version: 0.0.5
|
version: 0.0.6
|
||||||
description: Client transport adapter for the Serverpod Offline Sync project.
|
description: Client transport adapter for the Serverpod Offline Sync project.
|
||||||
homepage: https://github.com/marcelomendoncasoares/serverpod_offline_sync
|
homepage: https://github.com/marcelomendoncasoares/serverpod_offline_sync
|
||||||
|
|
||||||
|
|
@ -9,9 +9,9 @@ environment:
|
||||||
resolution: workspace
|
resolution: workspace
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
serverpod_client: 4.0.0-rc.2
|
serverpod_client: 4.0.0
|
||||||
serverpod_database: 4.0.0-rc.2
|
serverpod_database: 4.0.0
|
||||||
serverpod_offline_sync: 0.0.5
|
serverpod_offline_sync: 0.0.6
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
lints: '>=3.0.0 <7.0.0'
|
lints: '>=3.0.0 <7.0.0'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
name: serverpod_offline_sync_server
|
name: serverpod_offline_sync_server
|
||||||
version: 0.0.5
|
version: 0.0.6
|
||||||
description: Server module for the Serverpod Offline Sync project.
|
description: Server module for the Serverpod Offline Sync project.
|
||||||
homepage: https://github.com/marcelomendoncasoares/serverpod_offline_sync
|
homepage: https://github.com/marcelomendoncasoares/serverpod_offline_sync
|
||||||
|
|
||||||
|
|
@ -10,11 +10,11 @@ resolution: workspace
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
meta: ^1.16.0
|
meta: ^1.16.0
|
||||||
serverpod: 4.0.0-rc.2
|
serverpod: 4.0.0
|
||||||
serverpod_database: 4.0.0-rc.2
|
serverpod_database: 4.0.0
|
||||||
serverpod_offline_sync: 0.0.5
|
serverpod_offline_sync: 0.0.6
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
lints: '>=3.0.0 <7.0.0'
|
lints: '>=3.0.0 <7.0.0'
|
||||||
serverpod_test: 4.0.0-rc.2
|
serverpod_test: 4.0.0
|
||||||
test: ^1.25.5
|
test: ^1.25.5
|
||||||
|
|
|
||||||
|
|
@ -14,14 +14,7 @@ workspace:
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
melos: ^7.5.1
|
melos: ^7.5.1
|
||||||
serverpod_cli: 4.0.0-rc.2
|
serverpod_cli: 4.0.0
|
||||||
|
|
||||||
dependency_overrides:
|
|
||||||
serverpod_cli:
|
|
||||||
git:
|
|
||||||
url: https://github.com/serverpod/serverpod.git
|
|
||||||
path: tools/serverpod_cli
|
|
||||||
ref: 3e9ccff494c4fd2b190d013aa74bd93a619358e4
|
|
||||||
|
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# serverpod:
|
# serverpod:
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ environment:
|
||||||
resolution: workspace
|
resolution: workspace
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
serverpod_auth_core_client: 4.0.0-rc.2
|
serverpod_auth_core_client: 4.0.0
|
||||||
serverpod_client: 4.0.0-rc.2
|
serverpod_client: 4.0.0
|
||||||
serverpod_database: 4.0.0-rc.2
|
serverpod_database: 4.0.0
|
||||||
serverpod_offline_sync_client:
|
serverpod_offline_sync_client:
|
||||||
path: ../../packages/serverpod_offline_sync_client
|
path: ../../packages/serverpod_offline_sync_client
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ environment:
|
||||||
resolution: workspace
|
resolution: workspace
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
serverpod: 4.0.0-rc.2
|
serverpod: 4.0.0
|
||||||
serverpod_auth_core_server: 4.0.0-rc.2
|
serverpod_auth_core_server: 4.0.0
|
||||||
serverpod_offline_sync:
|
serverpod_offline_sync:
|
||||||
path: ../../packages/serverpod_offline_sync
|
path: ../../packages/serverpod_offline_sync
|
||||||
serverpod_offline_sync_server:
|
serverpod_offline_sync_server:
|
||||||
|
|
@ -19,12 +19,12 @@ dev_dependencies:
|
||||||
clock: ^1.1.2
|
clock: ^1.1.2
|
||||||
lints: '>=3.0.0 <7.0.0'
|
lints: '>=3.0.0 <7.0.0'
|
||||||
path: ^1.9.1
|
path: ^1.9.1
|
||||||
serverpod_database: 4.0.0-rc.2
|
serverpod_database: 4.0.0
|
||||||
serverpod_offline_sync_client:
|
serverpod_offline_sync_client:
|
||||||
path: ../../packages/serverpod_offline_sync_client
|
path: ../../packages/serverpod_offline_sync_client
|
||||||
serverpod_offline_sync_test_client:
|
serverpod_offline_sync_test_client:
|
||||||
path: ../serverpod_offline_sync_test_client
|
path: ../serverpod_offline_sync_test_client
|
||||||
serverpod_test: 4.0.0-rc.2
|
serverpod_test: 4.0.0
|
||||||
test: ^1.25.5
|
test: ^1.25.5
|
||||||
uuid: ^4.5.3
|
uuid: ^4.5.3
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue