@cedarjs/realtime 2.5.0 → 2.5.1-next.27
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 +6 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Realtime
|
|
2
2
|
|
|
3
|
-
The real-time solution for
|
|
3
|
+
The real-time solution for CedarJS is initially for GraphQL.
|
|
4
4
|
|
|
5
5
|
In GraphQL, there are two options for real-time updates: **live queries** and **subscriptions**. Subscriptions are part of the GraphQL specification, whereas live queries are not.
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ There are times where subscriptions are well-suited for a realtime problem — a
|
|
|
8
8
|
|
|
9
9
|
### Features
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
CedarJS Realtime handles the hard parts of a GraphQL Realtime implementation by automatically:
|
|
12
12
|
|
|
13
13
|
- allowing GraphQL Subscription operations to be handled
|
|
14
14
|
- merging in your subscriptions types and mapping their handler functions (subscribe, and resolve) to your GraphQL schema letting you keep your subscription logic organized and apart from services (your subscription my use a service to respond to an event)
|
|
@@ -25,7 +25,7 @@ It provides a first-class developer experience for real-time updates with GraphQ
|
|
|
25
25
|
|
|
26
26
|
and have the latest data reflected in your app.
|
|
27
27
|
|
|
28
|
-
Lastly, the
|
|
28
|
+
Lastly, the Cedar CLI has commands to
|
|
29
29
|
|
|
30
30
|
- generate a boilerplate implementation and sample code needed to create your custom
|
|
31
31
|
- subscriptions
|
|
@@ -35,14 +35,14 @@ Regardless of the implementation chosen, **a stateful server and store are neede
|
|
|
35
35
|
|
|
36
36
|
### useRedwoodRealtime
|
|
37
37
|
|
|
38
|
-
The `useRedwoodRealtime` plugin adds support for
|
|
38
|
+
The `useRedwoodRealtime` plugin adds support for Cedar Realtime in GraphQL Yoga Server.
|
|
39
39
|
|
|
40
|
-
Note: Since a stateful server and store are needed, this plugin cannot be used this
|
|
40
|
+
Note: Since a stateful server and store are needed, this plugin cannot be used this CedarJS applications deployed to serverless.
|
|
41
41
|
|
|
42
42
|
> **Warning**
|
|
43
43
|
>
|
|
44
44
|
> This is a new internal package. There are still changes we want to make, so we're marking it as experimental for now.
|
|
45
|
-
> **Don't depend on this directly in a
|
|
45
|
+
> **Don't depend on this directly in a Cedar project**.
|
|
46
46
|
|
|
47
47
|
<!-- ## Package size
|
|
48
48
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/realtime",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1-next.27+4a00a5632",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"graphql": "16.12.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@cedarjs/framework-tools": "
|
|
37
|
+
"@cedarjs/framework-tools": "2.5.1-next.27",
|
|
38
38
|
"@envelop/core": "5.5.0",
|
|
39
39
|
"@envelop/testing": "7.0.0",
|
|
40
40
|
"@envelop/types": "5.2.1",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "4a00a56324db4db5db1559e21850f4d9b5856b52"
|
|
59
59
|
}
|