@upstash/qstash 0.1.1 → 0.1.4
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 +10 -16
- package/package.json +1 -1
- package/types/entrypoints/cloudflare.d.ts +1 -1
- package/types/entrypoints/nodejs.d.ts +1 -1
package/README.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
# Upstash qStash SDK
|
|
2
2
|
|
|
3
|
-
[](https://github.com/upstash/sdk-qstash-ts/actions/workflows/tests.yaml)
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
**qStash** is
|
|
8
|
-
|
|
7
|
+
**qStash** is an HTTP based messaging and scheduling solution for serverless and
|
|
8
|
+
edge runtimes.
|
|
9
9
|
|
|
10
|
-
It is
|
|
10
|
+
It is 100% built on stateless HTTP requests and designed for:
|
|
11
11
|
|
|
12
12
|
- Serverless functions (AWS Lambda ...)
|
|
13
13
|
- Cloudflare Workers (see
|
|
14
|
-
[the example](https://github.com/upstash/
|
|
15
|
-
- Fastly Compute@Edge
|
|
16
|
-
|
|
17
|
-
-
|
|
14
|
+
[the example](https://github.com/upstash/sdk-qstash-ts/tree/main/examples/cloudflare-workers))
|
|
15
|
+
- Fastly Compute@Edge
|
|
16
|
+
- Next.js, including [edge](https://nextjs.org/docs/api-reference/edge-runtime)
|
|
17
|
+
- Deno
|
|
18
18
|
- Client side web/mobile applications
|
|
19
19
|
- WebAssembly
|
|
20
20
|
- and other environments where HTTP is preferred over TCP.
|
|
@@ -86,9 +86,8 @@ console.log(res);
|
|
|
86
86
|
|
|
87
87
|
### Receiving a message
|
|
88
88
|
|
|
89
|
-
How to
|
|
90
|
-
|
|
91
|
-
handler function.
|
|
89
|
+
How to receive a message depends on your http server. The `Receiver.verify`
|
|
90
|
+
method should be called by you as the first step in your handler function.
|
|
92
91
|
|
|
93
92
|
```ts
|
|
94
93
|
import { Receiver } from "@upstash/qstash";
|
|
@@ -108,11 +107,6 @@ const isValid = await r.verify({
|
|
|
108
107
|
* The raw request body.
|
|
109
108
|
*/
|
|
110
109
|
body: "string";
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* URL of the endpoint where the request was sent to.
|
|
114
|
-
*/
|
|
115
|
-
url: "string";
|
|
116
110
|
})
|
|
117
111
|
```
|
|
118
112
|
|
package/package.json
CHANGED