fix(sync): address package review feedback

This commit is contained in:
johannesjo 2026-05-14 12:11:48 +02:00
parent f0706ac779
commit 3bb07fc6d0
16 changed files with 79 additions and 25 deletions

View file

@ -134,7 +134,7 @@ packages/sync-providers/src/
├── file-based/dropbox/ # Dropbox provider implementation
├── file-based/webdav/ # WebDAV + Nextcloud providers
├── file-based/local-file/ # LocalFile provider classes
└── provider.types.ts # Provider-neutral contracts
└── provider-types.ts # Provider-neutral contracts
```
### App Sync Wiring

View file

@ -111,10 +111,11 @@ the package barrel deliberately and check that it is not app-owned.
The root `@sp/sync-providers` barrel has been removed; consumers MUST import
from focused subpath barrels: `@sp/sync-providers/dropbox`, `/webdav`,
`/super-sync`, `/local-file`, `/http`, `/errors`, `/file-based`, `/pkce`,
`/platform`, `/provider-types`, and `/credential-store`. Provider classes and
provider-owned string constants are exported there, but app enums such as
`SyncProviderId` are not. Internal helpers such as WebDAV API/adapter classes
stay unexported unless a second host needs them.
`/platform`, `/provider-types`, `/credential-store`, and `/log`. Provider
classes, provider-owned string constants, and shared privacy-boundary logging
helpers are exported there, but app enums such as `SyncProviderId` are not.
Internal helpers such as WebDAV API/adapter classes stay unexported unless a
second host needs them.
`@sp/sync-core` still exports deprecated full-state op compatibility defaults
and host-defined `OpType.SyncImport` / `BackupImport` / `Repair` strings for