@cedarjs/graphql-server 2.4.1 → 2.4.2-next.143
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/cjs/rootSchema.d.ts.map +1 -1
- package/dist/cjs/rootSchema.js +20 -9
- package/dist/cjs/types.d.ts +1 -1
- package/dist/rootSchema.d.ts.map +1 -1
- package/dist/rootSchema.js +21 -10
- package/dist/types.d.ts +1 -1
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootSchema.d.ts","sourceRoot":"","sources":["../../src/rootSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACb,MAAM,iBAAiB,CAAA;AAMxB;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"rootSchema.d.ts","sourceRoot":"","sources":["../../src/rootSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACb,MAAM,iBAAiB,CAAA;AAMxB;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,gCAyClB,CAAA;AAED,eAAO,MAAM,aAAa;;CAIzB,CAAA;AACD,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,aAAa,CAAA;AAEzD,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,OAAO,cAAc,CAAA;IAC7B,IAAI,EAAE,OAAO,YAAY,CAAA;IACzB,IAAI,EAAE,OAAO,YAAY,CAAA;IACzB,QAAQ,EAAE,OAAO,gBAAgB,CAAA;IACjC,IAAI,EAAE,OAAO,YAAY,CAAA;IACzB,UAAU,EAAE,OAAO,kBAAkB,CAAA;IACrC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,IAAI,EAAE,OAAO,YAAY,CAAA;CAC1B;AAED,eAAO,MAAM,SAAS,EAAE,SA0BvB,CAAA"}
|
package/dist/cjs/rootSchema.js
CHANGED
|
@@ -40,7 +40,7 @@ const schema = import_graphql_tag.gql`
|
|
|
40
40
|
|
|
41
41
|
Defines details about Cedar such as the current user and version information.
|
|
42
42
|
"""
|
|
43
|
-
type
|
|
43
|
+
type Cedar {
|
|
44
44
|
"The version of CedarJS."
|
|
45
45
|
version: String
|
|
46
46
|
"The current user."
|
|
@@ -49,14 +49,23 @@ const schema = import_graphql_tag.gql`
|
|
|
49
49
|
prismaVersion: String
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
type Redwood {
|
|
53
|
+
"The version of CedarJS."
|
|
54
|
+
version: String @deprecated(reason: "Use the Cedar type instead.")
|
|
55
|
+
"The current user."
|
|
56
|
+
currentUser: JSON @deprecated(reason: "Use the Cedar type instead.")
|
|
57
|
+
"The version of Prisma."
|
|
58
|
+
prismaVersion: String @deprecated(reason: "Use the Cedar type instead.")
|
|
59
|
+
}
|
|
60
|
+
|
|
52
61
|
"""
|
|
53
|
-
About the
|
|
62
|
+
About the Cedar queries.
|
|
54
63
|
"""
|
|
55
64
|
type Query {
|
|
56
|
-
"Fetches the
|
|
57
|
-
redwood: Redwood
|
|
58
|
-
"Fetches the
|
|
59
|
-
|
|
65
|
+
"Fetches the Cedar root schema."
|
|
66
|
+
redwood: Redwood @deprecated(reason: "Use 'cedar' instead.")
|
|
67
|
+
"Fetches the Cedar root schema."
|
|
68
|
+
cedar: Cedar
|
|
60
69
|
}
|
|
61
70
|
`;
|
|
62
71
|
const scalarSchemas = {
|
|
@@ -72,15 +81,17 @@ const resolvers = {
|
|
|
72
81
|
JSON: import_graphql_scalars.JSONResolver,
|
|
73
82
|
JSONObject: import_graphql_scalars.JSONObjectResolver,
|
|
74
83
|
Query: {
|
|
84
|
+
// TODO: Remove this in the next major release. Don't forget to also update
|
|
85
|
+
// `validateSchema.ts`
|
|
75
86
|
redwood: () => ({
|
|
76
|
-
version: import_api.
|
|
87
|
+
version: import_api.cedarVersion,
|
|
77
88
|
prismaVersion: import_api.prismaVersion,
|
|
78
89
|
currentUser: (_args, context) => {
|
|
79
90
|
return context?.currentUser;
|
|
80
91
|
}
|
|
81
92
|
}),
|
|
82
|
-
|
|
83
|
-
version: import_api.
|
|
93
|
+
cedar: () => ({
|
|
94
|
+
version: import_api.cedarVersion,
|
|
84
95
|
prismaVersion: import_api.prismaVersion,
|
|
85
96
|
currentUser: (_args, context) => {
|
|
86
97
|
return context?.currentUser;
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ export type GraphQLYogaOptions = {
|
|
|
211
211
|
openTelemetryOptions?: RedwoodOpenTelemetryConfig;
|
|
212
212
|
/**
|
|
213
213
|
* @description Configure which scalars to include in the schema. This should match your
|
|
214
|
-
* `graphql.includeScalars` configuration in `
|
|
214
|
+
* `graphql.includeScalars` configuration in `cedar.toml`.
|
|
215
215
|
*
|
|
216
216
|
* The default is to include. You must set to `false` to exclude.
|
|
217
217
|
*/
|
package/dist/rootSchema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootSchema.d.ts","sourceRoot":"","sources":["../src/rootSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACb,MAAM,iBAAiB,CAAA;AAMxB;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"rootSchema.d.ts","sourceRoot":"","sources":["../src/rootSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACb,MAAM,iBAAiB,CAAA;AAMxB;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,gCAyClB,CAAA;AAED,eAAO,MAAM,aAAa;;CAIzB,CAAA;AACD,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,aAAa,CAAA;AAEzD,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,OAAO,cAAc,CAAA;IAC7B,IAAI,EAAE,OAAO,YAAY,CAAA;IACzB,IAAI,EAAE,OAAO,YAAY,CAAA;IACzB,QAAQ,EAAE,OAAO,gBAAgB,CAAA;IACjC,IAAI,EAAE,OAAO,YAAY,CAAA;IACzB,UAAU,EAAE,OAAO,kBAAkB,CAAA;IACrC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,IAAI,EAAE,OAAO,YAAY,CAAA;CAC1B;AAED,eAAO,MAAM,SAAS,EAAE,SA0BvB,CAAA"}
|
package/dist/rootSchema.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
ByteResolver
|
|
9
9
|
} from "graphql-scalars";
|
|
10
10
|
import { gql } from "graphql-tag";
|
|
11
|
-
import { prismaVersion,
|
|
11
|
+
import { prismaVersion, cedarVersion } from "@cedarjs/api";
|
|
12
12
|
const schema = gql`
|
|
13
13
|
scalar BigInt
|
|
14
14
|
scalar Date
|
|
@@ -23,7 +23,7 @@ const schema = gql`
|
|
|
23
23
|
|
|
24
24
|
Defines details about Cedar such as the current user and version information.
|
|
25
25
|
"""
|
|
26
|
-
type
|
|
26
|
+
type Cedar {
|
|
27
27
|
"The version of CedarJS."
|
|
28
28
|
version: String
|
|
29
29
|
"The current user."
|
|
@@ -32,14 +32,23 @@ const schema = gql`
|
|
|
32
32
|
prismaVersion: String
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
type Redwood {
|
|
36
|
+
"The version of CedarJS."
|
|
37
|
+
version: String @deprecated(reason: "Use the Cedar type instead.")
|
|
38
|
+
"The current user."
|
|
39
|
+
currentUser: JSON @deprecated(reason: "Use the Cedar type instead.")
|
|
40
|
+
"The version of Prisma."
|
|
41
|
+
prismaVersion: String @deprecated(reason: "Use the Cedar type instead.")
|
|
42
|
+
}
|
|
43
|
+
|
|
35
44
|
"""
|
|
36
|
-
About the
|
|
45
|
+
About the Cedar queries.
|
|
37
46
|
"""
|
|
38
47
|
type Query {
|
|
39
|
-
"Fetches the
|
|
40
|
-
redwood: Redwood
|
|
41
|
-
"Fetches the
|
|
42
|
-
|
|
48
|
+
"Fetches the Cedar root schema."
|
|
49
|
+
redwood: Redwood @deprecated(reason: "Use 'cedar' instead.")
|
|
50
|
+
"Fetches the Cedar root schema."
|
|
51
|
+
cedar: Cedar
|
|
43
52
|
}
|
|
44
53
|
`;
|
|
45
54
|
const scalarSchemas = {
|
|
@@ -55,15 +64,17 @@ const resolvers = {
|
|
|
55
64
|
JSON: JSONResolver,
|
|
56
65
|
JSONObject: JSONObjectResolver,
|
|
57
66
|
Query: {
|
|
67
|
+
// TODO: Remove this in the next major release. Don't forget to also update
|
|
68
|
+
// `validateSchema.ts`
|
|
58
69
|
redwood: () => ({
|
|
59
|
-
version:
|
|
70
|
+
version: cedarVersion,
|
|
60
71
|
prismaVersion,
|
|
61
72
|
currentUser: (_args, context) => {
|
|
62
73
|
return context?.currentUser;
|
|
63
74
|
}
|
|
64
75
|
}),
|
|
65
|
-
|
|
66
|
-
version:
|
|
76
|
+
cedar: () => ({
|
|
77
|
+
version: cedarVersion,
|
|
67
78
|
prismaVersion,
|
|
68
79
|
currentUser: (_args, context) => {
|
|
69
80
|
return context?.currentUser;
|
package/dist/types.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ export type GraphQLYogaOptions = {
|
|
|
211
211
|
openTelemetryOptions?: RedwoodOpenTelemetryConfig;
|
|
212
212
|
/**
|
|
213
213
|
* @description Configure which scalars to include in the schema. This should match your
|
|
214
|
-
* `graphql.includeScalars` configuration in `
|
|
214
|
+
* `graphql.includeScalars` configuration in `cedar.toml`.
|
|
215
215
|
*
|
|
216
216
|
* The default is to include. You must set to `false` to exclude.
|
|
217
217
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/graphql-server",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2-next.143+b69a4494c",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"test:watch": "yarn test --watch"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@babel/runtime-corejs3": "7.28.
|
|
41
|
-
"@cedarjs/api": "2.4.
|
|
42
|
-
"@cedarjs/context": "2.4.
|
|
43
|
-
"@envelop/core": "5.
|
|
40
|
+
"@babel/runtime-corejs3": "7.28.6",
|
|
41
|
+
"@cedarjs/api": "2.4.2-next.143+b69a4494c",
|
|
42
|
+
"@cedarjs/context": "2.4.2-next.143+b69a4494c",
|
|
43
|
+
"@envelop/core": "5.5.0",
|
|
44
44
|
"@envelop/depth-limit": "4.0.0",
|
|
45
45
|
"@envelop/disable-introspection": "6.0.0",
|
|
46
46
|
"@envelop/filter-operation-type": "6.0.0",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@graphql-tools/schema": "10.0.31",
|
|
51
51
|
"@graphql-tools/utils": "10.11.0",
|
|
52
52
|
"@graphql-yoga/plugin-persisted-operations": "3.18.0",
|
|
53
|
-
"@opentelemetry/api": "1.
|
|
54
|
-
"core-js": "3.
|
|
53
|
+
"@opentelemetry/api": "1.9.0",
|
|
54
|
+
"core-js": "3.48.0",
|
|
55
55
|
"graphql": "16.12.0",
|
|
56
56
|
"graphql-scalars": "1.25.0",
|
|
57
57
|
"graphql-tag": "2.12.6",
|
|
@@ -60,20 +60,20 @@
|
|
|
60
60
|
"uuid": "11.1.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@babel/cli": "7.28.
|
|
63
|
+
"@babel/cli": "7.28.6",
|
|
64
64
|
"@babel/core": "^7.26.10",
|
|
65
|
-
"@cedarjs/framework-tools": "
|
|
66
|
-
"@cedarjs/project-config": "2.4.
|
|
67
|
-
"@cedarjs/realtime": "2.4.
|
|
65
|
+
"@cedarjs/framework-tools": "2.4.2-next.143",
|
|
66
|
+
"@cedarjs/project-config": "2.4.2-next.143+b69a4494c",
|
|
67
|
+
"@cedarjs/realtime": "2.4.2-next.143+b69a4494c",
|
|
68
68
|
"@envelop/types": "5.2.1",
|
|
69
|
-
"@types/aws-lambda": "8.10.
|
|
69
|
+
"@types/aws-lambda": "8.10.160",
|
|
70
70
|
"@types/jsonwebtoken": "9.0.10",
|
|
71
|
-
"@types/lodash": "4.17.
|
|
71
|
+
"@types/lodash": "4.17.23",
|
|
72
72
|
"@whatwg-node/fetch": "0.10.13",
|
|
73
73
|
"@whatwg-node/promise-helpers": "^1.3.0",
|
|
74
74
|
"concurrently": "9.2.1",
|
|
75
75
|
"jsonwebtoken": "9.0.3",
|
|
76
|
-
"publint": "0.3.
|
|
76
|
+
"publint": "0.3.17",
|
|
77
77
|
"tsx": "4.21.0",
|
|
78
78
|
"typescript": "5.9.3",
|
|
79
79
|
"vitest": "3.2.4"
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "b69a4494c40b0a4807f6b492ae65d0596f374e8a"
|
|
85
85
|
}
|