@cedarjs/api-server 3.0.0-canary.13517 → 3.0.0-canary.13519

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/dist/bin.js CHANGED
@@ -493,7 +493,13 @@ async function redwoodFastifyGraphQLServer(fastify2, options) {
493
493
  if (graphqlOptions?.realtime) {
494
494
  const { useCedarRealtime } = await import("@cedarjs/realtime");
495
495
  const originalExtraPlugins = graphqlOptions.extraPlugins ?? [];
496
- originalExtraPlugins.push(useCedarRealtime(graphqlOptions.realtime));
496
+ originalExtraPlugins.push(
497
+ // This type cast is needed because useCedarRealtime returns an
498
+ // EnvelopPlugin and here we need a YogaPlugin. I can't change the
499
+ // return type of `useCedarRealtime` yet, because it'd be a breaking
500
+ // change.
501
+ useCedarRealtime(graphqlOptions.realtime)
502
+ );
497
503
  graphqlOptions.extraPlugins = originalExtraPlugins;
498
504
  if (graphqlOptions.realtime.subscriptions) {
499
505
  method.push("PUT");
package/dist/cjs/bin.js CHANGED
@@ -509,7 +509,13 @@ async function redwoodFastifyGraphQLServer(fastify2, options) {
509
509
  if (graphqlOptions?.realtime) {
510
510
  const { useCedarRealtime } = await import("@cedarjs/realtime");
511
511
  const originalExtraPlugins = graphqlOptions.extraPlugins ?? [];
512
- originalExtraPlugins.push(useCedarRealtime(graphqlOptions.realtime));
512
+ originalExtraPlugins.push(
513
+ // This type cast is needed because useCedarRealtime returns an
514
+ // EnvelopPlugin and here we need a YogaPlugin. I can't change the
515
+ // return type of `useCedarRealtime` yet, because it'd be a breaking
516
+ // change.
517
+ useCedarRealtime(graphqlOptions.realtime)
518
+ );
513
519
  graphqlOptions.extraPlugins = originalExtraPlugins;
514
520
  if (graphqlOptions.realtime.subscriptions) {
515
521
  method.push("PUT");
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../src/plugins/graphql.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,SAAS,CAAA;AAM3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAKjE,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE;QACP,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,OAAO,CAAC,EAAE,kBAAkB,CAAA;KAC7B,CAAA;CACF;AAED,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,4BAA4B,iBA8FtC"}
1
+ {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../src/plugins/graphql.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,SAAS,CAAA;AAO3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAKjE,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE;QACP,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,OAAO,CAAC,EAAE,kBAAkB,CAAA;KAC7B,CAAA;CACF;AAED,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,4BAA4B,iBAmGtC"}
@@ -66,7 +66,13 @@ async function redwoodFastifyGraphQLServer(fastify, options) {
66
66
  if (graphqlOptions?.realtime) {
67
67
  const { useCedarRealtime } = await import("@cedarjs/realtime");
68
68
  const originalExtraPlugins = graphqlOptions.extraPlugins ?? [];
69
- originalExtraPlugins.push(useCedarRealtime(graphqlOptions.realtime));
69
+ originalExtraPlugins.push(
70
+ // This type cast is needed because useCedarRealtime returns an
71
+ // EnvelopPlugin and here we need a YogaPlugin. I can't change the
72
+ // return type of `useCedarRealtime` yet, because it'd be a breaking
73
+ // change.
74
+ useCedarRealtime(graphqlOptions.realtime)
75
+ );
70
76
  graphqlOptions.extraPlugins = originalExtraPlugins;
71
77
  if (graphqlOptions.realtime.subscriptions) {
72
78
  method.push("PUT");
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../src/plugins/graphql.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,SAAS,CAAA;AAM3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAKjE,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE;QACP,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,OAAO,CAAC,EAAE,kBAAkB,CAAA;KAC7B,CAAA;CACF;AAED,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,4BAA4B,iBA8FtC"}
1
+ {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../src/plugins/graphql.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,SAAS,CAAA;AAO3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAKjE,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE;QACP,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,OAAO,CAAC,EAAE,kBAAkB,CAAA;KAC7B,CAAA;CACF;AAED,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,4BAA4B,iBAmGtC"}
@@ -33,7 +33,13 @@ async function redwoodFastifyGraphQLServer(fastify, options) {
33
33
  if (graphqlOptions?.realtime) {
34
34
  const { useCedarRealtime } = await import("@cedarjs/realtime");
35
35
  const originalExtraPlugins = graphqlOptions.extraPlugins ?? [];
36
- originalExtraPlugins.push(useCedarRealtime(graphqlOptions.realtime));
36
+ originalExtraPlugins.push(
37
+ // This type cast is needed because useCedarRealtime returns an
38
+ // EnvelopPlugin and here we need a YogaPlugin. I can't change the
39
+ // return type of `useCedarRealtime` yet, because it'd be a breaking
40
+ // change.
41
+ useCedarRealtime(graphqlOptions.realtime)
42
+ );
37
43
  graphqlOptions.extraPlugins = originalExtraPlugins;
38
44
  if (graphqlOptions.realtime.subscriptions) {
39
45
  method.push("PUT");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/api-server",
3
- "version": "3.0.0-canary.13517+cbeae4a6d",
3
+ "version": "3.0.0-canary.13519+cde190735",
4
4
  "description": "CedarJS's HTTP server for Serverless Functions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -111,11 +111,11 @@
111
111
  "test:watch": "vitest watch"
112
112
  },
113
113
  "dependencies": {
114
- "@cedarjs/context": "3.0.0-canary.13517",
115
- "@cedarjs/fastify-web": "3.0.0-canary.13517",
116
- "@cedarjs/internal": "3.0.0-canary.13517",
117
- "@cedarjs/project-config": "3.0.0-canary.13517",
118
- "@cedarjs/web-server": "3.0.0-canary.13517",
114
+ "@cedarjs/context": "3.0.0-canary.13519",
115
+ "@cedarjs/fastify-web": "3.0.0-canary.13519",
116
+ "@cedarjs/internal": "3.0.0-canary.13519",
117
+ "@cedarjs/project-config": "3.0.0-canary.13519",
118
+ "@cedarjs/web-server": "3.0.0-canary.13519",
119
119
  "@fastify/multipart": "9.4.0",
120
120
  "@fastify/url-data": "6.0.3",
121
121
  "ansis": "4.2.0",
@@ -132,12 +132,13 @@
132
132
  "yargs": "17.7.2"
133
133
  },
134
134
  "devDependencies": {
135
- "@cedarjs/framework-tools": "3.0.0-canary.13517",
135
+ "@cedarjs/framework-tools": "3.0.0-canary.13519",
136
136
  "@types/aws-lambda": "8.10.161",
137
137
  "@types/dotenv-defaults": "^5.0.0",
138
138
  "@types/qs": "6.14.0",
139
139
  "@types/split2": "4.2.3",
140
140
  "@types/yargs": "17.0.35",
141
+ "graphql-yoga": "5.18.0",
141
142
  "memfs": "4.56.10",
142
143
  "pino-abstract-transport": "1.2.0",
143
144
  "tsx": "4.21.0",
@@ -145,7 +146,7 @@
145
146
  "vitest": "3.2.4"
146
147
  },
147
148
  "peerDependencies": {
148
- "@cedarjs/graphql-server": "3.0.0-canary.13517"
149
+ "@cedarjs/graphql-server": "3.0.0-canary.13519"
149
150
  },
150
151
  "peerDependenciesMeta": {
151
152
  "@cedarjs/graphql-server": {
@@ -155,5 +156,5 @@
155
156
  "publishConfig": {
156
157
  "access": "public"
157
158
  },
158
- "gitHead": "cbeae4a6d56b4d31469c43fc57fe413ed53a711c"
159
+ "gitHead": "cde190735641cfa1426193d7484eb4e0fcf6375e"
159
160
  }