Commit c5401b5
authored
feat(durable-iterator): rewrite + enchance (#965)
- [x] feat: rewrite
- [x] feat: refresh token without re-estimate websocket connection
- [x] feat: tags with publish events filter support
- [x] feat: support `targets` and `exclude` as callback for filter
- [x] fix: should run before retry-plugin to avoid conflict
- [x] fix: server-side client, retry-plugin not preserve extra
iterator's fields (rpc methods in this case)
- [x] test
- [x] docs
Closes: https://github.com/unnoq/orpc/issues/993
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Introduced Durable Iterator: end-to-end durable streaming with
token-based auth, auto-reconnect, resume/replay, publishEvent,
tagging/target/exclude filters, client & handler plugins, and token
refresh.
* Streaming cancellation via AbortController; added getSignedValue
helper and new utilities overlayProxy and fallback.
* **Documentation**
* Renamed docs/sidebar to “Durable Iterator” and updated streaming
examples to show AbortController usage.
* **Chores**
* Package rename and CI/playground updates for
@orpc/experimental-durable-iterator.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 5176631 commit c5401b5
File tree
97 files changed
+6377
-2442
lines changed- .github/workflows
- apps/content
- .vitepress
- docs
- client
- helpers
- integrations
- packages
- client/src/plugins
- contract/src/plugins
- durable-event-iterator/src
- client
- durable-object
- durable-iterator
- src
- client
- durable-object
- tests
- server/src
- adapters/websocket
- helpers
- plugins
- playgrounds/cloudflare-worker
- src
- components
- lib
- worker
- dos
- routers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
97 files changed
+6377
-2442
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
30 | 40 | | |
31 | 41 | | |
32 | 42 | | |
| |||
42 | 52 | | |
43 | 53 | | |
44 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
45 | 60 | | |
46 | 61 | | |
47 | 62 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | | - | |
| 31 | + | |
29 | 32 | | |
0 commit comments