@bunworks/inngest-realtime 0.1.0
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/CHANGELOG.md +172 -0
- package/CLAUDE.md +69 -0
- package/LICENSE.md +190 -0
- package/README.md +1 -0
- package/bun.lock +527 -0
- package/eslint.config.mjs +19 -0
- package/package.json +88 -0
- package/src/api.ts +83 -0
- package/src/channel.ts +122 -0
- package/src/env.d.ts +15 -0
- package/src/env.ts +152 -0
- package/src/hooks.ts +256 -0
- package/src/index.test.ts +840 -0
- package/src/index.ts +4 -0
- package/src/middleware.ts +68 -0
- package/src/subscribe/StreamFanout.ts +82 -0
- package/src/subscribe/TokenSubscription.ts +524 -0
- package/src/subscribe/helpers.ts +153 -0
- package/src/subscribe/index.ts +1 -0
- package/src/topic.ts +51 -0
- package/src/types.ts +499 -0
- package/src/util.ts +104 -0
- package/tsconfig.build.json +7 -0
- package/tsconfig.json +114 -0
- package/tsdown.config.ts +18 -0
- package/vitest.config.ts +22 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# @inngest/realtime
|
|
2
|
+
|
|
3
|
+
## 0.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1160](https://github.com/inngest/inngest-js/pull/1160) [`ab446473`](https://github.com/inngest/inngest-js/commit/ab4464730ffea7d85de7db603fbda9fb3ac645fe) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Widen `zod` dependency range to support v3/v4 across libraries
|
|
8
|
+
|
|
9
|
+
- [#1166](https://github.com/inngest/inngest-js/pull/1166) [`1d08b13b`](https://github.com/inngest/inngest-js/commit/1d08b13b589fd17eab55241cb1c34e826776a00f) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Re-export realtime types from `middleware` entrypoint
|
|
10
|
+
|
|
11
|
+
- [#1159](https://github.com/inngest/inngest-js/pull/1159) [`a79b55af`](https://github.com/inngest/inngest-js/commit/a79b55af4a759b933c2c101798b21f3a14df58b2) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Fix `@inngest/realtime` attempting to nest steps with `inngest@3.45.0`
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`9fa34d12`](https://github.com/inngest/inngest-js/commit/9fa34d1250e25256ddb69606d7932419f131e998), [`ab446473`](https://github.com/inngest/inngest-js/commit/ab4464730ffea7d85de7db603fbda9fb3ac645fe), [`b5139f04`](https://github.com/inngest/inngest-js/commit/b5139f041cfef8a78d75bf9d0254d892e40060fe)]:
|
|
14
|
+
- inngest@3.45.1
|
|
15
|
+
|
|
16
|
+
## 0.4.4
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#1111](https://github.com/inngest/inngest-js/pull/1111) [`b960a7ba`](https://github.com/inngest/inngest-js/commit/b960a7ba1c217474681a478085830e79e1326838) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Alter build process to produce proper ESM/CJS dual build
|
|
21
|
+
|
|
22
|
+
## 0.4.3
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- [#1057](https://github.com/inngest/inngest-js/pull/1057) [`7401e276`](https://github.com/inngest/inngest-js/commit/7401e276ab7356a2564bbbd8973a49b5066875bf) Thanks [@MonsterDeveloper](https://github.com/MonsterDeveloper)! - Fixed automatic token fetching on mount if the hook is disabled
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [[`6507c0cd`](https://github.com/inngest/inngest-js/commit/6507c0cdc792ef905b06481f69b4e7fe8ad75fe7), [`6507c0cd`](https://github.com/inngest/inngest-js/commit/6507c0cdc792ef905b06481f69b4e7fe8ad75fe7), [`1cf1e525`](https://github.com/inngest/inngest-js/commit/1cf1e525a90186af0bbb6024198259d0e9006adc)]:
|
|
29
|
+
- inngest@3.44.0
|
|
30
|
+
|
|
31
|
+
## 0.4.2
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- [#1080](https://github.com/inngest/inngest-js/pull/1080) [`fde816ab`](https://github.com/inngest/inngest-js/commit/fde816ab79a1c256b125445fe927e1e648b74db6) Thanks [@djfarrelly](https://github.com/djfarrelly)! - Fix Vite environment variable support for subscribe
|
|
36
|
+
|
|
37
|
+
## 0.4.1
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- [#1082](https://github.com/inngest/inngest-js/pull/1082) [`8e5ee6a`](https://github.com/inngest/inngest-js/commit/8e5ee6a7f543a30f4271c3eea98efc24e7ed7d23) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Bump `inngest` dependency to `^3.42.0`
|
|
42
|
+
|
|
43
|
+
This version changed a lot of `Inngest*.Like` types to future-proof them against updates.
|
|
44
|
+
Before this, all updates caused typing issues when we upgraded, but following this patch we shouldn't see that issue again.
|
|
45
|
+
|
|
46
|
+
## 0.4.0
|
|
47
|
+
|
|
48
|
+
### Minor Changes
|
|
49
|
+
|
|
50
|
+
- [#1071](https://github.com/inngest/inngest-js/pull/1071) [`719b9dc`](https://github.com/inngest/inngest-js/commit/719b9dcbdb16ab8710a4273a289ec833cfd3242f) Thanks [@djfarrelly](https://github.com/djfarrelly)! - Move server-side only middleware to separate import
|
|
51
|
+
|
|
52
|
+
## 0.3.3
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- [#1068](https://github.com/inngest/inngest-js/pull/1068) [`b43bc02`](https://github.com/inngest/inngest-js/commit/b43bc0273d16b5f0fd3ab69d31bcd373245bb27f) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Add `@inngest/realtime/browser` entrypoint to bypass some import issues
|
|
57
|
+
|
|
58
|
+
- Updated dependencies [[`8ba5486`](https://github.com/inngest/inngest-js/commit/8ba548647ab17b91b750eea997c016dedee9f1c2)]:
|
|
59
|
+
- inngest@3.40.3
|
|
60
|
+
|
|
61
|
+
## 0.3.2
|
|
62
|
+
|
|
63
|
+
### Patch Changes
|
|
64
|
+
|
|
65
|
+
- [#1058](https://github.com/inngest/inngest-js/pull/1058) [`b683116`](https://github.com/inngest/inngest-js/commit/b683116bcf4a4771599b4f953a99b47d98fb015b) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Fix errors being thrown on reader close
|
|
66
|
+
|
|
67
|
+
- Updated dependencies [[`ec2320a`](https://github.com/inngest/inngest-js/commit/ec2320a2dbbfacf22d2399c0eb28f3280507b49f), [`ac9748f`](https://github.com/inngest/inngest-js/commit/ac9748f506f34f3f9329c73d55d39aeecd76499b)]:
|
|
68
|
+
- inngest@3.40.2
|
|
69
|
+
|
|
70
|
+
## 0.3.1
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- [#960](https://github.com/inngest/inngest-js/pull/960) [`fc966ca`](https://github.com/inngest/inngest-js/commit/fc966ca94f699d6534f2fc5c85bbcf5be3c6795a) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Fix requiring signing key for dev in `@inngest/realtime`
|
|
75
|
+
|
|
76
|
+
- [#965](https://github.com/inngest/inngest-js/pull/965) [`e55d93e`](https://github.com/inngest/inngest-js/commit/e55d93ef481010e677623978ec89e918fcdd606e) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Fix throw of `TypeError: Failed to execute 'cancel' on 'ReadableStream': Cannot cancel a locked stream` when unmounting or cancelling a stream utilizing the callback feature
|
|
77
|
+
|
|
78
|
+
- [#964](https://github.com/inngest/inngest-js/pull/964) [`e674884`](https://github.com/inngest/inngest-js/commit/e67488412e4d052ce161f6d5ea719db6786880de) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Fix fanout writers throwing during some closures
|
|
79
|
+
|
|
80
|
+
- [#959](https://github.com/inngest/inngest-js/pull/959) [`50d627e`](https://github.com/inngest/inngest-js/commit/50d627ecdc2fc28ebca046e3a4ab9980f1714132) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Fix being unable to access environment variables in some bundled environments
|
|
81
|
+
|
|
82
|
+
- [#960](https://github.com/inngest/inngest-js/pull/960) [`fc966ca`](https://github.com/inngest/inngest-js/commit/fc966ca94f699d6534f2fc5c85bbcf5be3c6795a) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Fix debug log incorrectly displaying topics we're subscribing to
|
|
83
|
+
|
|
84
|
+
## 0.3.0
|
|
85
|
+
|
|
86
|
+
### Minor Changes
|
|
87
|
+
|
|
88
|
+
- [#949](https://github.com/inngest/inngest-js/pull/949) [`d18006d`](https://github.com/inngest/inngest-js/commit/d18006dbffe7501b145f914992951439a9859261) Thanks [@jpwilliams](https://github.com/jpwilliams)! - `useInngestSubscription()` no longer accepts an `app`; always use a `token` when subscribing on the client
|
|
89
|
+
|
|
90
|
+
- [#949](https://github.com/inngest/inngest-js/pull/949) [`d18006d`](https://github.com/inngest/inngest-js/commit/d18006dbffe7501b145f914992951439a9859261) Thanks [@jpwilliams](https://github.com/jpwilliams)! - `subscribe()` call no longer accepts an `app` as the first parameter
|
|
91
|
+
|
|
92
|
+
One can be passed alongside other arguments, e.g.
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
subscribe({
|
|
96
|
+
app,
|
|
97
|
+
channel: "hello-world",
|
|
98
|
+
topics: ["messages"],
|
|
99
|
+
});
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
An app is still required if you are not using a token retrieved from `getSubscriptionToken()`.
|
|
103
|
+
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- [#949](https://github.com/inngest/inngest-js/pull/949) [`d18006d`](https://github.com/inngest/inngest-js/commit/d18006dbffe7501b145f914992951439a9859261) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Public environment variables (such as `NEXT_PUBLIC_*`) are now also accessed when looking for Inngest during subscriptions
|
|
107
|
+
|
|
108
|
+
- [#949](https://github.com/inngest/inngest-js/pull/949) [`d18006d`](https://github.com/inngest/inngest-js/commit/d18006dbffe7501b145f914992951439a9859261) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Environment variables are also now captured in Deno and Netlify
|
|
109
|
+
|
|
110
|
+
## 0.2.0
|
|
111
|
+
|
|
112
|
+
### Minor Changes
|
|
113
|
+
|
|
114
|
+
- [#930](https://github.com/inngest/inngest-js/pull/930) [`8e71cdd`](https://github.com/inngest/inngest-js/commit/8e71cddda13289bcc3a1f0bff7cff9cec54439ae) Thanks [@jpwilliams](https://github.com/jpwilliams)! - `fnId` and `runId` in streamed messages are now optional
|
|
115
|
+
|
|
116
|
+
### Patch Changes
|
|
117
|
+
|
|
118
|
+
- [#930](https://github.com/inngest/inngest-js/pull/930) [`8e71cdd`](https://github.com/inngest/inngest-js/commit/8e71cddda13289bcc3a1f0bff7cff9cec54439ae) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Fix bad parsing of some message types
|
|
119
|
+
|
|
120
|
+
## 0.1.2
|
|
121
|
+
|
|
122
|
+
### Patch Changes
|
|
123
|
+
|
|
124
|
+
- [#927](https://github.com/inngest/inngest-js/pull/927) [`dc00cbf`](https://github.com/inngest/inngest-js/commit/dc00cbf197c776b8ff04fb67cbc1d3a62569f6d0) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Fix connecting to production; avoid `ws://` `301` redirect
|
|
125
|
+
|
|
126
|
+
## 0.1.1
|
|
127
|
+
|
|
128
|
+
### Patch Changes
|
|
129
|
+
|
|
130
|
+
- [#914](https://github.com/inngest/inngest-js/pull/914) [`9a5dd61`](https://github.com/inngest/inngest-js/commit/9a5dd61abb03936bf2df6196ee48e626508b70bf) Thanks [@tonyhb](https://github.com/tonyhb)! - Allow customization of the dev server URL in realtime
|
|
131
|
+
|
|
132
|
+
- Updated dependencies [[`9a5dd61`](https://github.com/inngest/inngest-js/commit/9a5dd61abb03936bf2df6196ee48e626508b70bf)]:
|
|
133
|
+
- inngest@3.32.9
|
|
134
|
+
|
|
135
|
+
## 0.1.0
|
|
136
|
+
|
|
137
|
+
### Minor Changes
|
|
138
|
+
|
|
139
|
+
- [#907](https://github.com/inngest/inngest-js/pull/907) [`b283b22`](https://github.com/inngest/inngest-js/commit/b283b221723d27e9d64e5f36e3751a9c697a4c09) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Remove `stream.getIterator()`; `ReadableStream` is iterable from Node 18+, which is our target
|
|
140
|
+
|
|
141
|
+
- [#907](https://github.com/inngest/inngest-js/pull/907) [`b283b22`](https://github.com/inngest/inngest-js/commit/b283b221723d27e9d64e5f36e3751a9c697a4c09) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Renamed `stream.get*Stream()` methods to be more explicit about what each chunk of the stream will contain:
|
|
142
|
+
|
|
143
|
+
- `stream.getStream()` is now `stream.getJsonStream()`
|
|
144
|
+
- `stream.getWebStream()` is now `stream.getEncodedStream()` (making sure this isn't confused with generic Web APIs)
|
|
145
|
+
|
|
146
|
+
### Patch Changes
|
|
147
|
+
|
|
148
|
+
- [#905](https://github.com/inngest/inngest-js/pull/905) [`4ae971b`](https://github.com/inngest/inngest-js/commit/4ae971bda2141bf9e25a250783e5256d9b907d49) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Add `getWebStream()`, used to generate a stream with `Uint8Array` encoding appropriate for use within a `Response`
|
|
149
|
+
|
|
150
|
+
- [#907](https://github.com/inngest/inngest-js/pull/907) [`b283b22`](https://github.com/inngest/inngest-js/commit/b283b221723d27e9d64e5f36e3751a9c697a4c09) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Fix typing of retrieving a `Response`-compatible stream to be `ReadableStream<Uint8Array>`
|
|
151
|
+
|
|
152
|
+
- [#907](https://github.com/inngest/inngest-js/pull/907) [`b283b22`](https://github.com/inngest/inngest-js/commit/b283b221723d27e9d64e5f36e3751a9c697a4c09) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Better handle backpressure when writing to many generated streams
|
|
153
|
+
|
|
154
|
+
## 0.0.3
|
|
155
|
+
|
|
156
|
+
### Patch Changes
|
|
157
|
+
|
|
158
|
+
- [#902](https://github.com/inngest/inngest-js/pull/902) [`9546be7`](https://github.com/inngest/inngest-js/commit/9546be72b03a01c0f9d8efcf8ca5bb2639e23473) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Allow connecting to cloud/dev in `@inngest/realtime`
|
|
159
|
+
|
|
160
|
+
## 0.0.2
|
|
161
|
+
|
|
162
|
+
### Patch Changes
|
|
163
|
+
|
|
164
|
+
- [#897](https://github.com/inngest/inngest-js/pull/897) [`2f7c89c`](https://github.com/inngest/inngest-js/commit/2f7c89c6c60668349f2cb792ed219b20c6c271f0) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Loosen `react` peer dependency
|
|
165
|
+
|
|
166
|
+
- [#897](https://github.com/inngest/inngest-js/pull/897) [`2f7c89c`](https://github.com/inngest/inngest-js/commit/2f7c89c6c60668349f2cb792ed219b20c6c271f0) Thanks [@jpwilliams](https://github.com/jpwilliams)! - `app` is now optional when using `useInngestSubscription()`
|
|
167
|
+
|
|
168
|
+
## 0.0.1
|
|
169
|
+
|
|
170
|
+
### Patch Changes
|
|
171
|
+
|
|
172
|
+
- [#866](https://github.com/inngest/inngest-js/pull/866) [`98efeb4`](https://github.com/inngest/inngest-js/commit/98efeb4eb6f80f418251a22377f428b42b9fff37) Thanks [@jpwilliams](https://github.com/jpwilliams)! - Initial release of `@inngest/realtime` v0
|
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
|
4
|
+
|
|
5
|
+
## Package Overview
|
|
6
|
+
|
|
7
|
+
This is the `@inngest/realtime` package - a React-focused library that provides real-time capabilities for Inngest applications. It enables real-time subscriptions, channel management, and React hooks for building interactive applications with live data updates.
|
|
8
|
+
|
|
9
|
+
## Development Workflow
|
|
10
|
+
|
|
11
|
+
### Setup
|
|
12
|
+
```bash
|
|
13
|
+
# From the realtime package directory
|
|
14
|
+
cd packages/realtime/
|
|
15
|
+
pnpm install
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Common Commands
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pnpm test # Run Jest tests
|
|
22
|
+
pnpm build # Build TypeScript to dist/
|
|
23
|
+
pnpm pack # Create inngest-realtime.tgz for local testing
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Testing Strategy
|
|
27
|
+
|
|
28
|
+
- **Unit tests**: Jest (`pnpm test`)
|
|
29
|
+
- **React testing**: Tests React hooks and components
|
|
30
|
+
- Uses `ts-jest` for TypeScript support
|
|
31
|
+
|
|
32
|
+
## Architecture
|
|
33
|
+
|
|
34
|
+
### Key Concepts
|
|
35
|
+
- **Real-time Subscriptions**: Live data streaming capabilities
|
|
36
|
+
- **Channel Management**: Topic-based message routing
|
|
37
|
+
- **React Integration**: Custom hooks for React applications
|
|
38
|
+
- **Token-based Authentication**: Secure subscription management
|
|
39
|
+
|
|
40
|
+
### Package Structure
|
|
41
|
+
- `src/index.ts` - Main exports and core functionality
|
|
42
|
+
- `src/hooks.ts` - React hooks for real-time features
|
|
43
|
+
- `src/channel.ts` - Channel management logic
|
|
44
|
+
- `src/topic.ts` - Topic-based messaging
|
|
45
|
+
- `src/api.ts` - API integration layer
|
|
46
|
+
- `src/middleware.ts` - Inngest middleware integration
|
|
47
|
+
- `src/subscribe/` - Subscription management utilities
|
|
48
|
+
|
|
49
|
+
### Exports
|
|
50
|
+
The package provides two main export paths:
|
|
51
|
+
- `@inngest/realtime` - Core real-time functionality
|
|
52
|
+
- `@inngest/realtime/hooks` - React hooks specifically
|
|
53
|
+
|
|
54
|
+
## React Integration
|
|
55
|
+
|
|
56
|
+
This package is designed specifically for React applications (requires React >=18.0.0):
|
|
57
|
+
- Provides React hooks for real-time subscriptions
|
|
58
|
+
- Manages WebSocket connections and state
|
|
59
|
+
- Integrates with React's concurrent features
|
|
60
|
+
|
|
61
|
+
## Dependencies
|
|
62
|
+
|
|
63
|
+
- **Peer Dependencies**: React >=18.0.0 (required)
|
|
64
|
+
- **Core Dependencies**: inngest, zod for validation, debug for logging
|
|
65
|
+
- **Schema Validation**: Supports both Zod and Valibot for schema validation
|
|
66
|
+
|
|
67
|
+
## Integration with Inngest
|
|
68
|
+
|
|
69
|
+
Works as middleware and extension to the main Inngest package, providing real-time capabilities that complement Inngest's event-driven architecture.
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2025 Inngest Inc.
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @inngest/realtime
|