@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.${table}`,
23
- `Query.${table.toLocaleLowerCase()}`,
24
- `${table}:${recordId}`,
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.13524+64f541c46",
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.13524",
38
- "@cedarjs/cli-helpers": "3.0.0-canary.13524",
39
- "@cedarjs/fastify-web": "3.0.0-canary.13524",
40
- "@cedarjs/internal": "3.0.0-canary.13524",
41
- "@cedarjs/prerender": "3.0.0-canary.13524",
42
- "@cedarjs/project-config": "3.0.0-canary.13524",
43
- "@cedarjs/structure": "3.0.0-canary.13524",
44
- "@cedarjs/telemetry": "3.0.0-canary.13524",
45
- "@cedarjs/utils": "3.0.0-canary.13524",
46
- "@cedarjs/web-server": "3.0.0-canary.13524",
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": "64f541c46831ac89850fc7c4f84bc7820ba3c6d3"
110
+ "gitHead": "3bc0f7b991d4a98aba713b1f37a6f29ce9484008"
111
111
  }