@cedarjs/cli 3.0.0-canary.13524 → 3.0.0-canary.13527
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Client } from 'pg'
|
|
2
2
|
|
|
3
3
|
import { liveQueryStore } from '@cedarjs/realtime'
|
|
4
|
+
import { pluralize } from '@cedarjs/utils/cedarPluralize'
|
|
4
5
|
|
|
5
6
|
import { logger } from 'src/lib/logger'
|
|
6
7
|
|
|
@@ -18,10 +19,14 @@ interface GetKeysToInvalidateArgs {
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
function getKeysToInvalidate({ table, recordId }: GetKeysToInvalidateArgs) {
|
|
22
|
+
// Using `toLowerCase()` rather than `toLocaleLowerCase()` because we want
|
|
23
|
+
// consistent casing across all locales.
|
|
24
|
+
const typeName = table.charAt(0).toLowerCase() + table.slice(1)
|
|
25
|
+
|
|
21
26
|
const keys = [
|
|
22
|
-
`Query.${
|
|
23
|
-
`Query.${
|
|
24
|
-
`${
|
|
27
|
+
`Query.${typeName}`,
|
|
28
|
+
`Query.${pluralize(typeName)}`,
|
|
29
|
+
`${typeName}:${recordId}`,
|
|
25
30
|
]
|
|
26
31
|
|
|
27
32
|
return keys
|
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.13527+3bc0f7b99",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,16 +34,16 @@
|
|
|
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/utils": "3.0.0-canary.
|
|
46
|
-
"@cedarjs/web-server": "3.0.0-canary.
|
|
37
|
+
"@cedarjs/api-server": "3.0.0-canary.13527",
|
|
38
|
+
"@cedarjs/cli-helpers": "3.0.0-canary.13527",
|
|
39
|
+
"@cedarjs/fastify-web": "3.0.0-canary.13527",
|
|
40
|
+
"@cedarjs/internal": "3.0.0-canary.13527",
|
|
41
|
+
"@cedarjs/prerender": "3.0.0-canary.13527",
|
|
42
|
+
"@cedarjs/project-config": "3.0.0-canary.13527",
|
|
43
|
+
"@cedarjs/structure": "3.0.0-canary.13527",
|
|
44
|
+
"@cedarjs/telemetry": "3.0.0-canary.13527",
|
|
45
|
+
"@cedarjs/utils": "3.0.0-canary.13527",
|
|
46
|
+
"@cedarjs/web-server": "3.0.0-canary.13527",
|
|
47
47
|
"@listr2/prompt-adapter-enquirer": "2.0.16",
|
|
48
48
|
"@opentelemetry/api": "1.9.0",
|
|
49
49
|
"@opentelemetry/core": "1.30.1",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"publishConfig": {
|
|
108
108
|
"access": "public"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "3bc0f7b991d4a98aba713b1f37a6f29ce9484008"
|
|
111
111
|
}
|