@upstash/qstash 0.1.6 → 0.1.8

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.
Files changed (60) hide show
  1. package/README.md +9 -14
  2. package/esm/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/fnv32.js +0 -0
  3. package/esm/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/fnv64.js +0 -0
  4. package/esm/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/index.js +0 -0
  5. package/esm/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/util.js +0 -0
  6. package/esm/deps/deno.land/std@0.161.0/crypto/_wasm_crypto/lib/deno_std_wasm_crypto.generated.mjs +3253 -0
  7. package/esm/deps/deno.land/{std@0.149.0 → std@0.161.0/crypto}/_wasm_crypto/mod.js +0 -0
  8. package/esm/deps/deno.land/std@0.161.0/crypto/keystack.js +150 -0
  9. package/esm/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/mod.js +26 -8
  10. package/esm/deps/deno.land/std@0.161.0/crypto/timing_safe_equal.js +24 -0
  11. package/esm/deps/deno.land/std@0.161.0/crypto/util.js +27 -0
  12. package/esm/deps/deno.land/std@0.161.0/encoding/base64.js +122 -0
  13. package/esm/deps/deno.land/std@0.161.0/encoding/base64url.js +49 -0
  14. package/esm/deps/deno.land/std@0.161.0/encoding/hex.js +60 -0
  15. package/esm/deps/deno.land/std@0.161.0/fmt/colors.js +442 -0
  16. package/esm/deps/deno.land/std@0.161.0/testing/_diff.js +308 -0
  17. package/esm/deps/deno.land/std@0.161.0/testing/_format.js +23 -0
  18. package/esm/deps/deno.land/std@0.161.0/testing/asserts.js +615 -0
  19. package/esm/pkg/client/client.js +1 -1
  20. package/package.json +2 -2
  21. package/script/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/fnv32.js +0 -0
  22. package/script/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/fnv64.js +0 -0
  23. package/script/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/index.js +0 -0
  24. package/script/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/util.js +0 -0
  25. package/script/deps/deno.land/std@0.161.0/crypto/_wasm_crypto/lib/deno_std_wasm_crypto.generated.mjs +3261 -0
  26. package/script/deps/deno.land/{std@0.149.0 → std@0.161.0/crypto}/_wasm_crypto/mod.js +0 -0
  27. package/script/deps/deno.land/std@0.161.0/crypto/keystack.js +177 -0
  28. package/script/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/mod.js +30 -10
  29. package/script/deps/deno.land/std@0.161.0/crypto/timing_safe_equal.js +28 -0
  30. package/script/deps/deno.land/std@0.161.0/crypto/util.js +54 -0
  31. package/script/deps/deno.land/std@0.161.0/encoding/base64.js +127 -0
  32. package/script/deps/deno.land/std@0.161.0/encoding/base64url.js +77 -0
  33. package/script/deps/deno.land/std@0.161.0/encoding/hex.js +65 -0
  34. package/script/deps/deno.land/std@0.161.0/fmt/colors.js +516 -0
  35. package/script/deps/deno.land/std@0.161.0/testing/_diff.js +314 -0
  36. package/script/deps/deno.land/std@0.161.0/testing/_format.js +50 -0
  37. package/script/deps/deno.land/std@0.161.0/testing/asserts.js +641 -0
  38. package/script/pkg/client/client.js +1 -1
  39. package/types/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/fnv32.d.ts +0 -0
  40. package/types/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/fnv64.d.ts +0 -0
  41. package/types/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/index.d.ts +0 -0
  42. package/types/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/util.d.ts +0 -0
  43. package/types/deps/deno.land/{std@0.149.0 → std@0.161.0/crypto}/_wasm_crypto/lib/deno_std_wasm_crypto.generated.d.mts +0 -0
  44. package/types/deps/deno.land/{std@0.149.0 → std@0.161.0/crypto}/_wasm_crypto/mod.d.ts +0 -0
  45. package/types/deps/deno.land/std@0.161.0/crypto/keystack.d.ts +47 -0
  46. package/types/deps/deno.land/std@0.161.0/crypto/mod.d.ts +56 -0
  47. package/types/deps/deno.land/std@0.161.0/crypto/timing_safe_equal.d.ts +3 -0
  48. package/types/deps/deno.land/std@0.161.0/crypto/util.d.ts +16 -0
  49. package/types/deps/deno.land/std@0.161.0/encoding/base64.d.ts +11 -0
  50. package/types/deps/deno.land/std@0.161.0/encoding/base64url.d.ts +10 -0
  51. package/types/deps/deno.land/std@0.161.0/encoding/hex.d.ts +7 -0
  52. package/types/deps/deno.land/std@0.161.0/fmt/colors.d.ts +270 -0
  53. package/types/deps/deno.land/std@0.161.0/testing/_diff.d.ts +26 -0
  54. package/types/deps/deno.land/std@0.161.0/testing/_format.d.ts +1 -0
  55. package/types/deps/deno.land/std@0.161.0/testing/asserts.d.ts +160 -0
  56. package/types/pkg/client/messages.d.ts +1 -1
  57. package/types/pkg/receiver.d.ts +1 -1
  58. package/esm/deps/deno.land/std@0.149.0/_wasm_crypto/lib/deno_std_wasm_crypto.generated.mjs +0 -3159
  59. package/script/deps/deno.land/std@0.149.0/_wasm_crypto/lib/deno_std_wasm_crypto.generated.mjs +0 -3167
  60. package/types/deps/deno.land/std@0.149.0/crypto/mod.d.ts +0 -53
package/README.md CHANGED
@@ -1,10 +1,8 @@
1
- # Upstash qStash SDK
1
+ # Upstash QStash SDK
2
2
 
3
- [![Tests](https://github.com/upstash/sdk-qstash-ts/actions/workflows/tests.yaml/badge.svg)](https://github.com/upstash/sdk-qstash-ts/actions/workflows/tests.yaml)
4
- ![npm (scoped)](https://img.shields.io/npm/v/@upstash/redis)
5
- ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@upstash/redis)
3
+ ![npm (scoped)](https://img.shields.io/npm/v/@upstash/qstash)
6
4
 
7
- **qStash** is an HTTP based messaging and scheduling solution for serverless and
5
+ **QStash** is an HTTP based messaging and scheduling solution for serverless and
8
6
  edge runtimes.
9
7
 
10
8
  It is 100% built on stateless HTTP requests and designed for:
@@ -19,10 +17,6 @@ It is 100% built on stateless HTTP requests and designed for:
19
17
  - WebAssembly
20
18
  - and other environments where HTTP is preferred over TCP.
21
19
 
22
- See
23
- [the list of APIs](https://docs.upstash.com/features/restapi#rest---redis-api-compatibility)
24
- supported.
25
-
26
20
  ## Status of the SDK
27
21
 
28
22
  It is currently in beta and we are actively collecting feedback from the
@@ -30,11 +24,11 @@ community. Please report any issues you encounter or feature requests in the
30
24
  [GitHub issues](https://github.com/upstash/sdk-qstash-ts/issues) or talk to us
31
25
  on [Discord](https://discord.gg/w9SenAtbme). Thank you!
32
26
 
33
- ## How does qStash work?
27
+ ## How does QStash work?
34
28
 
35
- qStash is the message broker between your serverless apps. You send aa HTTP
36
- request to qStash, that includes a destination, a payload and optional settings.
37
- We store your message durable and will deliver it to the destination API via
29
+ QStash is the message broker between your serverless apps. You send an HTTP
30
+ request to QStash, that includes a destination, a payload and optional settings.
31
+ We durably store your message and will deliver it to the destination API via
38
32
  HTTP. In case the destination is not ready to receive the message, we will retry
39
33
  the message later, to guarentee at-least-once delivery.
40
34
 
@@ -75,7 +69,8 @@ const c = new Client({
75
69
  });
76
70
 
77
71
  const res = await c.publishJSON({
78
- destination: "https://my-api...",
72
+ url: "https://my-api...",
73
+ // or topic: "the name or id of a topic"
79
74
  body: {
80
75
  hello: "world",
81
76
  },