sourcegraph / openctx

See contextual info about code from your dev tools, in your editor, code review, and anywhere else you read code.
https://openctx.org
Apache License 2.0
135 stars 14 forks source link

expose async-generator client API #185

Closed sqs closed 1 month ago

sqs commented 1 month ago

Previously, the client and controller only exposed a "watch" API using RxJS Observables so that callers could subscribe to and watch changes (to mentions, annotations, etc.). This required callers to depend on RxJS, which is a big dependency that can introduce complexity in their own applications. Now, there is a new API xyzChanges__asyncGenerator for each of meta, mentions, items, and annotations that lets callers just use native async generators. This API is experimental and may be changed without notice.