You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Bookmark manager for no longer tracking per database (#1017)
Changes in the BookmarkManagerConfig:
* `initialBookmarks` type changed from `Map<string,Iterable<string>>` to `Iterable<string>`
* `bookmarksSupplier` type changed from `(db?: string) => Promise<Iterable<string>>` to `() => Promise<Iterable<string>>`
* `bookmarksConsumer` type changed from `(db: string, bookmarks: Iterable<string>) => Promise<void>` to `(bookmarks: Iterable<string>) => Promise<void>`
Changes in the BookmarkManager:
* `getAllBookmarks` and `forget` were removed
* `updateBookmarks` signature changed to `updateBookmarks (previousBookmarks: Iterable<string>, newBookmarks: Iterable<string>): Promise<void>`
* `getBookmarks` signature changed to `getBookmarks (): Promise<Iterable<string>>`
⚠️ This is a experimental feature.
* @property {Map<string,Iterable<string>>} [initialBookmarks@experimental] Defines the initial set of bookmarks. The key is the database name and the values are the bookmarks.
95
-
* @property {function([database]: string):Promise<Iterable<string>>} [bookmarksSupplier] Called for supplying extra bookmarks to the BookmarkManager
96
-
* 1. supplying bookmarks from the given database when the default BookmarkManager's `.getBookmarks(database)` gets called.
97
-
* 2. supplying all the bookmarks when the default BookmarkManager's `.getAllBookmarks()` gets called
98
-
* @property {function(database: string, bookmarks: Iterable<string>): Promise<void>} [bookmarksConsumer] Called when the set of bookmarks for database get updated
70
+
* @property {Iterable<string>} [initialBookmarks] Defines the initial set of bookmarks. The key is the database name and the values are the bookmarks.
71
+
* @property {function():Promise<Iterable<string>>} [bookmarksSupplier] Called for supplying extra bookmarks to the BookmarkManager
72
+
* @property {function(bookmarks: Iterable<string>): Promise<void>} [bookmarksConsumer] Called when the set of bookmarks get updated
99
73
*/
100
74
/**
101
75
* Provides an configured {@link BookmarkManager} instance.
0 commit comments