@orpc/bun 2.0.0-beta.23 → 2.0.0-beta.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -41,6 +41,7 @@ You can read the documentation [here](https://orpc.dev).
41
41
 
42
42
  - [@orpc/publisher](https://www.npmjs.com/package/@orpc/publisher): Pub/Sub with memory, Redis, and Upstash adapters.
43
43
  - [@orpc/ratelimit](https://www.npmjs.com/package/@orpc/ratelimit): Rate limiting with memory, Redis, and Upstash adapters.
44
+ - [@orpc/hibernation](https://www.npmjs.com/package/@orpc/hibernation): Leverage Hibernation APIs like [Cloudflare's Hibernation WebSocket](https://developers.cloudflare.com/durable-objects/best-practices/websockets/#durable-objects-hibernation-websocket-api).
44
45
  - [@orpc/json-schema](https://www.npmjs.com/package/@orpc/json-schema): Smart coercion for OpenAPI requests.
45
46
 
46
47
  **Framework & ecosystem integrations**
@@ -111,6 +112,7 @@ Like what we build over at [middleapi](https://github.com/middleapi)? You can he
111
112
  </tr>
112
113
  <tr>
113
114
  <td align="center"><a href="https://github.com/itigoore01?ref=orpc" target="_blank" rel="noopener" title="shota"><img src="https://avatars.githubusercontent.com/u/11831107?u=c976a6dc7e055eb026304c46c99100ed22b0c8e0&amp;v=4" width="139" alt="shota"/><br />shota</a></td>
115
+ <td align="center"><a href="https://github.com/ellis-driscoll?ref=orpc" target="_blank" rel="noopener" title="Ellis Driscoll"><img src="https://avatars.githubusercontent.com/u/70685966?u=c5f95bc33b5991d9744abe00052542e4a2ed3cb9&amp;v=4" width="139" alt="Ellis Driscoll"/><br />Ellis Driscoll</a></td>
114
116
  </tr>
115
117
  </table>
116
118
 
@@ -136,8 +138,9 @@ Like what we build over at [middleapi](https://github.com/middleapi)? You can he
136
138
  <td align="center"><a href="https://github.com/mr-kelly?ref=orpc" target="_blank" rel="noopener" title="Kelly Peilin Chan"><img src="https://avatars.githubusercontent.com/u/520852?u=6b0f7105f694e7b5cacf410a3f04c7044b469dc8&amp;v=4" width="119" alt="Kelly Peilin Chan"/><br />Kelly Peilin Chan</a></td>
137
139
  </tr>
138
140
  <tr>
141
+ <td align="center"><a href="https://github.com/guyariely?ref=orpc" target="_blank" rel="noopener" title="Guy Ariely"><img src="https://avatars.githubusercontent.com/u/42813496?u=edb6b7f563bf28e160a290832e7da57c0506f8ca&amp;v=4" width="119" alt="Guy Ariely"/><br />Guy Ariely</a></td>
139
142
  <td align="center"><a href="https://github.com/piscis?ref=orpc" target="_blank" rel="noopener" title="Alex"><img src="https://avatars.githubusercontent.com/u/326163?u=b245f368bd940cf51d08c0b6bf55f8257f359437&amp;v=4" width="119" alt="Alex"/><br />Alex</a></td>
140
- <td align="center"><a href="https://github.com/finom?ref=orpc" target="_blank" rel="noopener" title="Andrey Gubanov"><img src="https://avatars.githubusercontent.com/u/1082083?u=29e91400dbd4a9c217048a8f59562c4f740498e6&amp;v=4" width="119" alt="Andrey Gubanov"/><br />Andrey Gubanov</a></td>
143
+ <td align="center"><a href="https://github.com/finom?ref=orpc" target="_blank" rel="noopener" title="Andrey Gubanov"><img src="https://avatars.githubusercontent.com/u/1082083?u=c5f2daf7ebece498e85c83367bb37b4e10e2649d&amp;v=4" width="119" alt="Andrey Gubanov"/><br />Andrey Gubanov</a></td>
141
144
  </tr>
142
145
  </table>
143
146
 
package/dist/index.d.mts CHANGED
@@ -54,6 +54,12 @@ interface BunRedisPublisherOptions extends PublisherOptions {
54
54
  seconds?: number;
55
55
  };
56
56
  }
57
+ /**
58
+ * Publisher adapter for Bun's built-in Redis client. Distributes events across
59
+ * processes via Redis Pub/Sub, with optional resume support backed by Redis Streams.
60
+ *
61
+ * @see {@link https://orpc.dev/docs/helpers/publisher#adapters | Publisher Helpers - Adapters}
62
+ */
57
63
  declare class BunRedisPublisher<T extends Record<string, object>> extends Publisher<T> {
58
64
  private readonly redis;
59
65
  private subscriber;
@@ -97,6 +103,12 @@ interface BunRedisRateLimiterOptions {
97
103
  timeout: number;
98
104
  };
99
105
  }
106
+ /**
107
+ * Rate limiter adapter for Bun's built-in Redis client. Enforces a fixed-window
108
+ * limit using a Redis Lua script, with optional blocking mode.
109
+ *
110
+ * @see {@link https://orpc.dev/docs/helpers/ratelimit#adapters | Rate Limit Helpers - Adapters}
111
+ */
100
112
  declare class BunRedisRateLimiter implements RateLimiter {
101
113
  private readonly redis;
102
114
  private readonly prefix;
package/dist/index.d.ts CHANGED
@@ -54,6 +54,12 @@ interface BunRedisPublisherOptions extends PublisherOptions {
54
54
  seconds?: number;
55
55
  };
56
56
  }
57
+ /**
58
+ * Publisher adapter for Bun's built-in Redis client. Distributes events across
59
+ * processes via Redis Pub/Sub, with optional resume support backed by Redis Streams.
60
+ *
61
+ * @see {@link https://orpc.dev/docs/helpers/publisher#adapters | Publisher Helpers - Adapters}
62
+ */
57
63
  declare class BunRedisPublisher<T extends Record<string, object>> extends Publisher<T> {
58
64
  private readonly redis;
59
65
  private subscriber;
@@ -97,6 +103,12 @@ interface BunRedisRateLimiterOptions {
97
103
  timeout: number;
98
104
  };
99
105
  }
106
+ /**
107
+ * Rate limiter adapter for Bun's built-in Redis client. Enforces a fixed-window
108
+ * limit using a Redis Lua script, with optional blocking mode.
109
+ *
110
+ * @see {@link https://orpc.dev/docs/helpers/ratelimit#adapters | Rate Limit Helpers - Adapters}
111
+ */
100
112
  declare class BunRedisRateLimiter implements RateLimiter {
101
113
  private readonly redis;
102
114
  private readonly prefix;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/bun",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.23",
4
+ "version": "2.0.0-beta.24",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.dev",
7
7
  "repository": {
@@ -22,12 +22,12 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@standardserver/core": "^0.6.0",
26
- "@orpc/publisher": "2.0.0-beta.23",
27
- "@orpc/shared": "2.0.0-beta.23",
28
- "@orpc/client": "2.0.0-beta.23",
29
- "@orpc/server": "2.0.0-beta.23",
30
- "@orpc/ratelimit": "2.0.0-beta.23"
25
+ "@standardserver/core": "^0.7.1",
26
+ "@orpc/client": "2.0.0-beta.24",
27
+ "@orpc/publisher": "2.0.0-beta.24",
28
+ "@orpc/ratelimit": "2.0.0-beta.24",
29
+ "@orpc/shared": "2.0.0-beta.24",
30
+ "@orpc/server": "2.0.0-beta.24"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/bun": "^1.3.14",