@cedarjs/cli 3.0.0-canary.13512 → 3.0.0-canary.13514
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.
|
@@ -117,8 +117,12 @@ const addLiveQueryListenerToGraphqlHandler = ({ force }) => {
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
if (!hasImport) {
|
|
120
|
+
const loggerImportIndex = contentLines.findIndex(
|
|
121
|
+
(line) => /import { logger } from ['"]src\/lib\/logger['"]/.test(line)
|
|
122
|
+
);
|
|
123
|
+
const insertIndex = loggerImportIndex >= 0 ? loggerImportIndex : lastImportIndex + 1;
|
|
120
124
|
contentLines.splice(
|
|
121
|
-
|
|
125
|
+
insertIndex,
|
|
122
126
|
0,
|
|
123
127
|
"import { startLiveQueryListener } from 'src/lib/liveQueriesListener'"
|
|
124
128
|
);
|
|
@@ -128,8 +132,11 @@ const addLiveQueryListenerToGraphqlHandler = ({ force }) => {
|
|
|
128
132
|
contentLines.splice(
|
|
129
133
|
handlerIndexAfterImport,
|
|
130
134
|
0,
|
|
131
|
-
"",
|
|
132
|
-
"
|
|
135
|
+
"// Fire-and-forget: we intentionally don't await this so it doesn't block the",
|
|
136
|
+
"// GraphQL handler from being registered. The listener doesn't need to be ready",
|
|
137
|
+
"// before the first request is handled.",
|
|
138
|
+
"void startLiveQueryListener()",
|
|
139
|
+
""
|
|
133
140
|
);
|
|
134
141
|
}
|
|
135
142
|
fs.writeFileSync(graphqlHandlerPath, contentLines.join("\n"));
|
|
@@ -259,8 +266,8 @@ const handler = async ({ force }) => {
|
|
|
259
266
|
Apply the migration to activate Postgres notifications:
|
|
260
267
|
${c.highlight("\n\xA0\xA0yarn cedar prisma migrate dev\n")}
|
|
261
268
|
|
|
262
|
-
|
|
263
|
-
|
|
269
|
+
You're then ready to use @live queries to get real-time updates as
|
|
270
|
+
soon as something in your database changes.
|
|
264
271
|
`;
|
|
265
272
|
}
|
|
266
273
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "3.0.0-canary.
|
|
3
|
+
"version": "3.0.0-canary.13514+509fee002",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"@babel/parser": "7.29.0",
|
|
35
35
|
"@babel/preset-typescript": "7.28.5",
|
|
36
36
|
"@babel/runtime-corejs3": "7.29.0",
|
|
37
|
-
"@cedarjs/api-server": "3.0.0-canary.
|
|
38
|
-
"@cedarjs/cli-helpers": "3.0.0-canary.
|
|
39
|
-
"@cedarjs/fastify-web": "3.0.0-canary.
|
|
40
|
-
"@cedarjs/internal": "3.0.0-canary.
|
|
41
|
-
"@cedarjs/prerender": "3.0.0-canary.
|
|
42
|
-
"@cedarjs/project-config": "3.0.0-canary.
|
|
43
|
-
"@cedarjs/structure": "3.0.0-canary.
|
|
44
|
-
"@cedarjs/telemetry": "3.0.0-canary.
|
|
45
|
-
"@cedarjs/web-server": "3.0.0-canary.
|
|
37
|
+
"@cedarjs/api-server": "3.0.0-canary.13514",
|
|
38
|
+
"@cedarjs/cli-helpers": "3.0.0-canary.13514",
|
|
39
|
+
"@cedarjs/fastify-web": "3.0.0-canary.13514",
|
|
40
|
+
"@cedarjs/internal": "3.0.0-canary.13514",
|
|
41
|
+
"@cedarjs/prerender": "3.0.0-canary.13514",
|
|
42
|
+
"@cedarjs/project-config": "3.0.0-canary.13514",
|
|
43
|
+
"@cedarjs/structure": "3.0.0-canary.13514",
|
|
44
|
+
"@cedarjs/telemetry": "3.0.0-canary.13514",
|
|
45
|
+
"@cedarjs/web-server": "3.0.0-canary.13514",
|
|
46
46
|
"@listr2/prompt-adapter-enquirer": "2.0.16",
|
|
47
47
|
"@opentelemetry/api": "1.9.0",
|
|
48
48
|
"@opentelemetry/core": "1.30.1",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"publishConfig": {
|
|
107
107
|
"access": "public"
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "509fee002b17abd8be431bc4a48dfde72a010866"
|
|
110
110
|
}
|