@cedarjs/internal 8.0.0-canary.3591 → 8.0.0-canary.3595

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 +1 @@
1
- {"version":3,"file":"graphqlCodeGen.d.ts","sourceRoot":"","sources":["../../src/generate/graphqlCodeGen.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAqB9D,KAAK,aAAa,GAAG;IACnB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAa,OAAO,CAAC,aAAa,CAiFvE,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAa,OAAO,CAAC,aAAa,CA2DvE,CAAA;AAyFD,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM;SACD,MAAM;GAQ5D;AAgRD,eAAO,MAAM,iBAAiB,4RAe7B,CAAA"}
1
+ {"version":3,"file":"graphqlCodeGen.d.ts","sourceRoot":"","sources":["../../src/generate/graphqlCodeGen.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAqB9D,KAAK,aAAa,GAAG;IACnB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAa,OAAO,CAAC,aAAa,CAiFvE,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAa,OAAO,CAAC,aAAa,CA2DvE,CAAA;AAyFD,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM;SACD,MAAM;GAQ5D;AAwRD,eAAO,MAAM,iBAAiB,4RAe7B,CAAA"}
@@ -306,7 +306,12 @@ async function getPluginConfig(side) {
306
306
  });
307
307
  const scalars = {
308
308
  // We need these, otherwise these scalars are mapped to any
309
- BigInt: "number",
309
+ // On the api side resolvers can return a `bigint` (which is what Prisma
310
+ // returns for BigInt columns) or a `number`. graphql-scalars'
311
+ // BigIntResolver parses incoming values to a `number` when they fit in a
312
+ // safe integer and `BigInt.prototype.toJSON` isn't patched, and to a
313
+ // `bigint` otherwise, so inputs can be either
314
+ BigInt: side === 1 /* WEB */ ? "number" : { input: "bigint | number", output: "bigint | number" },
310
315
  // @Note: DateTime fields can be valid Date-strings, or the Date object in the api side. They're strings on the web side, unless `graphql.parsedScalars.DateTime` is set. Then they are Date objects when the web side reads them, and Apollo Client accepts a Date or a string when they're sent.
311
316
  DateTime: side === 1 /* WEB */ ? getParsedScalars().DateTime === "Date" ? { input: "Date | string", output: "Date" } : "string" : "Date | string",
312
317
  Date: side === 1 /* WEB */ ? "string" : "Date | string",
@@ -344,7 +349,7 @@ async function getPluginConfig(side) {
344
349
  query: true,
345
350
  mutation: true
346
351
  },
347
- contextType: `@cedarjs/graphql-server/dist/types#CedarGraphQLContext`
352
+ contextType: `@cedarjs/graphql-server/types#CedarGraphQLContext`
348
353
  };
349
354
  return pluginConfig;
350
355
  }
@@ -1,9 +1,9 @@
1
- import '@cedarjs/graphql-server'
1
+ import '@cedarjs/graphql-server/types'
2
2
 
3
3
  import type { CedarRealtimeOptions } from '@cedarjs/realtime'
4
4
 
5
5
  // The full type of the realtime option createGraphQLHandler() takes
6
- declare module '@cedarjs/graphql-server' {
6
+ declare module '@cedarjs/graphql-server/types' {
7
7
  interface RealtimeTypeMap {
8
8
  options: CedarRealtimeOptions
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/internal",
3
- "version": "8.0.0-canary.3591",
3
+ "version": "8.0.0-canary.3595",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -126,14 +126,14 @@
126
126
  "@babel/core": "^7.26.10",
127
127
  "@babel/parser": "7.29.12",
128
128
  "@babel/traverse": "7.29.12",
129
- "@cedarjs/api": "8.0.0-canary.3591",
130
- "@cedarjs/babel-config": "8.0.0-canary.3591",
131
- "@cedarjs/cli-helpers": "8.0.0-canary.3591",
132
- "@cedarjs/graphql-server": "8.0.0-canary.3591",
133
- "@cedarjs/project-config": "8.0.0-canary.3591",
134
- "@cedarjs/router": "8.0.0-canary.3591",
135
- "@cedarjs/structure": "8.0.0-canary.3591",
136
- "@cedarjs/utils": "8.0.0-canary.3591",
129
+ "@cedarjs/api": "8.0.0-canary.3595",
130
+ "@cedarjs/babel-config": "8.0.0-canary.3595",
131
+ "@cedarjs/cli-helpers": "8.0.0-canary.3595",
132
+ "@cedarjs/graphql-server": "8.0.0-canary.3595",
133
+ "@cedarjs/project-config": "8.0.0-canary.3595",
134
+ "@cedarjs/router": "8.0.0-canary.3595",
135
+ "@cedarjs/structure": "8.0.0-canary.3595",
136
+ "@cedarjs/utils": "8.0.0-canary.3595",
137
137
  "@graphql-codegen/add": "6.0.1",
138
138
  "@graphql-codegen/cli": "6.3.1",
139
139
  "@graphql-codegen/client-preset": "5.3.0",
@@ -171,7 +171,7 @@
171
171
  "vite-tsconfig-paths": "6.1.1"
172
172
  },
173
173
  "devDependencies": {
174
- "@cedarjs/framework-tools": "8.0.0-canary.3591",
174
+ "@cedarjs/framework-tools": "8.0.0-canary.3595",
175
175
  "@jridgewell/trace-mapping": "0.3.31",
176
176
  "@oxc-project/types": "^0.155.0",
177
177
  "concurrently": "9.2.5",