- added: Detect conflicts while creating repos, and report these with a new
ConflictError
type.
- Added: Allow for customization of info and sync servers via edgeServers option.
- fixed: Change info-server client to not block on server request for server list
- fixed: Gracefully fallback to current/default server info when info-server requests fail
- add: Optional
apiKey
parameter tocreateRepo
- fixed: Do not include raw sync keys in error messages.
- fixed: Do not include raw sync keys in log messages.
- changed: Simplify the
log
option to only take strings. - changed: Simplify the
fetch
option to be a subset of the fetch API.
This release isn't a breaking change because we now take a subset of what we took before, so previous options would still be acceptable.
syncKeyToRepoId
utility function added and exposed as public API.
- Shuffle sync server list before trying requests instead of using the same order
- API change to allow
hash
field to be optional inGetStoreResponse
- New
makeSyncClient
andSyncClient
interface replacescreateRepo
method
- Export public V2 REST API types
- Add createRepo