@lunora/react 0.0.0 → 1.0.0-alpha.10

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 (34) hide show
  1. package/LICENSE.md +105 -0
  2. package/README.md +152 -9
  3. package/__assets__/package-og.svg +14 -0
  4. package/dist/index.d.mts +556 -0
  5. package/dist/index.d.ts +556 -0
  6. package/dist/index.mjs +19 -0
  7. package/dist/packem_shared/AuthLoading-DtKgZT2Z.mjs +33 -0
  8. package/dist/packem_shared/CheckoutButton-CVSry8U1.mjs +185 -0
  9. package/dist/packem_shared/LunoraProvider-D38Xp16l.mjs +80 -0
  10. package/dist/packem_shared/cache-CAp1fVNL.mjs +75 -0
  11. package/dist/packem_shared/hydratePreloaded-B6OHn0eL.mjs +46 -0
  12. package/dist/packem_shared/lunoraQueryOptions-Cij4KWBK.mjs +16 -0
  13. package/dist/packem_shared/query-key-B5eRQCbR.mjs +13 -0
  14. package/dist/packem_shared/query-options.d-D4okOpO8.d.mts +38 -0
  15. package/dist/packem_shared/query-options.d-D4okOpO8.d.ts +38 -0
  16. package/dist/packem_shared/stable-key-CaKZv9lp.mjs +30 -0
  17. package/dist/packem_shared/use-paginated-core-DP72UNWn.mjs +176 -0
  18. package/dist/packem_shared/useAuth-CNUKtOOp.mjs +129 -0
  19. package/dist/packem_shared/useAuthState-BiGhtSCs.mjs +36 -0
  20. package/dist/packem_shared/useConnectionStatus-DRSY9ldm.mjs +30 -0
  21. package/dist/packem_shared/useFlag-Bg5DpkGv.mjs +224 -0
  22. package/dist/packem_shared/useInfiniteQuery-BBIDFXBN.mjs +97 -0
  23. package/dist/packem_shared/useMutation-CrvMXRsk.mjs +67 -0
  24. package/dist/packem_shared/useMutator-IIrLtDiM.mjs +47 -0
  25. package/dist/packem_shared/usePaginatedQuery-AQO3kdp1.mjs +46 -0
  26. package/dist/packem_shared/usePresence-D7jLuxj0.mjs +108 -0
  27. package/dist/packem_shared/useQuery-EB74gtBJ.mjs +42 -0
  28. package/dist/packem_shared/useRateLimit-DTEffQEi.mjs +64 -0
  29. package/dist/packem_shared/useStream-MdYnWDL_.mjs +125 -0
  30. package/dist/packem_shared/useSubscription-DSJuryrU.mjs +139 -0
  31. package/dist/server.d.mts +51 -0
  32. package/dist/server.d.ts +51 -0
  33. package/dist/server.mjs +31 -0
  34. package/package.json +60 -17
package/package.json CHANGED
@@ -1,31 +1,74 @@
1
1
  {
2
2
  "name": "@lunora/react",
3
- "version": "0.0.0",
3
+ "version": "1.0.0-alpha.10",
4
4
  "description": "React hooks for Lunora: useQuery, useMutation, useSubscription, and useAuth",
5
- "license": "FSL-1.1-Apache-2.0",
5
+ "keywords": [
6
+ "cloudflare",
7
+ "durable-objects",
8
+ "hooks",
9
+ "lunora",
10
+ "react",
11
+ "realtime",
12
+ "usequery",
13
+ "workers"
14
+ ],
6
15
  "homepage": "https://lunora.sh",
16
+ "bugs": "https://github.com/anolilab/lunora/issues",
17
+ "license": "FSL-1.1-Apache-2.0",
18
+ "author": {
19
+ "name": "Daniel Bannert",
20
+ "email": "d.bannert@anolilab.de"
21
+ },
7
22
  "repository": {
8
23
  "type": "git",
9
24
  "url": "git+https://github.com/anolilab/lunora.git",
10
25
  "directory": "packages/react"
11
26
  },
12
- "bugs": {
13
- "url": "https://github.com/anolilab/lunora/issues"
14
- },
15
- "keywords": [
16
- "lunora",
17
- "cloudflare",
18
- "workers",
19
- "durable-objects",
20
- "react",
21
- "hooks",
22
- "usequery",
23
- "realtime"
27
+ "files": [
28
+ "./dist",
29
+ "README.md",
30
+ "LICENSE.md",
31
+ "__assets__"
24
32
  ],
33
+ "type": "module",
34
+ "sideEffects": false,
35
+ "module": "./dist/index.mjs",
36
+ "types": "./dist/index.d.ts",
37
+ "exports": {
38
+ ".": {
39
+ "types": "./dist/index.d.ts",
40
+ "import": "./dist/index.mjs"
41
+ },
42
+ "./server": {
43
+ "types": "./dist/server.d.ts",
44
+ "import": "./dist/server.mjs"
45
+ },
46
+ "./package.json": "./package.json"
47
+ },
25
48
  "publishConfig": {
26
49
  "access": "public"
27
50
  },
28
- "files": [
29
- "README.md"
30
- ]
51
+ "dependencies": {
52
+ "@lunora/client": "1.0.0-alpha.8",
53
+ "@lunora/ratelimit": "1.0.0-alpha.3"
54
+ },
55
+ "peerDependencies": {
56
+ "@tanstack/react-query": "^5.101.0",
57
+ "react": "^19.2.7",
58
+ "react-dom": "^19.2.7"
59
+ },
60
+ "peerDependenciesMeta": {
61
+ "@tanstack/react-query": {
62
+ "optional": false
63
+ },
64
+ "react": {
65
+ "optional": false
66
+ },
67
+ "react-dom": {
68
+ "optional": false
69
+ }
70
+ },
71
+ "engines": {
72
+ "node": "^22.15.0 || >=24.11.0"
73
+ }
31
74
  }