add release notes

This commit is contained in:
Arlen Beiler 2025-12-17 20:43:31 +00:00
parent 25edc0b92d
commit 7d19067225

View file

@ -0,0 +1,43 @@
title: $:/changenotes/5.4.0/#9117
description: Allow syncadaptors to batch sync
release: 5.4.0
tags: $:/tags/ChangeNote
change-type: enhancement
change-category: developer
github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9117
github-contributors: Arlen22
Adds the following methods to the syncadapter interface.
```ts
interface SyncAdapter {
/** Callback for the sync adapter to call to request a poll */
subscribe?(cb: () => void): void;
saveTiddlers?(options: {
syncer: Syncer,
tiddlers: Tiddler[],
onNext: (title: string, adaptorInfo: any, revision: string) => void,
onDone: () => void,
onError: (err: Error) => void
}): void;
loadTiddlers?(options: {
syncer: Syncer,
titles: string[],
onNext: (tiddlerFields: TiddlerFields) => void,
onDone: () => void,
onError: (err: Error) => void
}): void;
deleteTiddlers?(options: {
syncer: Syncer,
titles: string[],
onNext: (title: string) => void,
onDone: () => void,
onError: (err: Error) => void
}): void;
}
```