@cedarjs/graphql-server 6.0.0-canary.2829 → 6.0.0-canary.2830
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/createGraphQLYoga.js +5 -5
- package/dist/directives/makeDirectives.d.ts +2 -2
- package/dist/directives/makeDirectives.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/makeMergedSchema.d.ts +4 -4
- package/dist/makeMergedSchema.d.ts.map +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +5 -1
- package/dist/plugins/useRedwoodDirective.d.ts +9 -3
- package/dist/plugins/useRedwoodDirective.d.ts.map +1 -1
- package/dist/plugins/useRedwoodDirective.js +3 -1
- package/dist/plugins/useRedwoodError.d.ts +2 -2
- package/dist/plugins/useRedwoodError.js +3 -3
- package/dist/plugins/useRedwoodOpenTelemetry.d.ts +2 -2
- package/dist/plugins/useRedwoodOpenTelemetry.d.ts.map +1 -1
- package/dist/plugins/useRedwoodTrustedDocuments.d.ts +4 -2
- package/dist/plugins/useRedwoodTrustedDocuments.d.ts.map +1 -1
- package/dist/types.d.ts +12 -8
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -13,8 +13,8 @@ import { configureGraphQLIntrospection } from "./introspection.js";
|
|
|
13
13
|
import { makeMergedSchema } from "./makeMergedSchema.js";
|
|
14
14
|
import {
|
|
15
15
|
useArmor,
|
|
16
|
+
useCedarDirective,
|
|
16
17
|
useRedwoodAuthContext,
|
|
17
|
-
useRedwoodDirective,
|
|
18
18
|
useRedwoodError,
|
|
19
19
|
useRedwoodGlobalContextSetter,
|
|
20
20
|
useRedwoodOpenTelemetry,
|
|
@@ -49,15 +49,15 @@ const createGraphQLYoga = async ({
|
|
|
49
49
|
includeScalars
|
|
50
50
|
}) => {
|
|
51
51
|
let schema;
|
|
52
|
-
let
|
|
52
|
+
let cedarDirectivePlugins = [];
|
|
53
53
|
const logger = loggerConfig.logger;
|
|
54
54
|
const isDevEnv = process.env.NODE_ENV === "development";
|
|
55
55
|
try {
|
|
56
56
|
const projectDirectives = makeDirectivesForPlugin(directives);
|
|
57
57
|
if (projectDirectives.length > 0) {
|
|
58
58
|
;
|
|
59
|
-
|
|
60
|
-
(directive) =>
|
|
59
|
+
cedarDirectivePlugins = projectDirectives.map(
|
|
60
|
+
(directive) => useCedarDirective(directive)
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
63
|
let projectSubscriptions = [];
|
|
@@ -99,7 +99,7 @@ const createGraphQLYoga = async ({
|
|
|
99
99
|
if (context) {
|
|
100
100
|
plugins.push(useRedwoodPopulateContext(context));
|
|
101
101
|
}
|
|
102
|
-
plugins.push(...
|
|
102
|
+
plugins.push(...cedarDirectivePlugins);
|
|
103
103
|
if (openTelemetryOptions !== void 0) {
|
|
104
104
|
plugins.push(useRedwoodOpenTelemetry(openTelemetryOptions));
|
|
105
105
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type DocumentNode } from 'graphql';
|
|
2
|
-
import type {
|
|
2
|
+
import type { CedarDirective, TransformerDirective, TransformerDirectiveFunc, ValidatorDirective, ValidatorDirectiveFunc } from '../plugins/useRedwoodDirective.js';
|
|
3
3
|
export type DirectiveGlobImports = Record<string, any>;
|
|
4
|
-
export declare const makeDirectivesForPlugin: (directiveGlobs: DirectiveGlobImports) =>
|
|
4
|
+
export declare const makeDirectivesForPlugin: (directiveGlobs: DirectiveGlobImports) => CedarDirective[];
|
|
5
5
|
export declare const getDirectiveName: (schema: DocumentNode) => string | undefined;
|
|
6
6
|
export declare const createValidatorDirective: (schema: DocumentNode, directiveFunc: ValidatorDirectiveFunc) => ValidatorDirective;
|
|
7
7
|
export declare const createTransformerDirective: (schema: DocumentNode, directiveFunc: TransformerDirectiveFunc) => TransformerDirective;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeDirectives.d.ts","sourceRoot":"","sources":["../../src/directives/makeDirectives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAEjD,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"makeDirectives.d.ts","sourceRoot":"","sources":["../../src/directives/makeDirectives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAEjD,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACpB,wBAAwB,EACxB,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,mCAAmC,CAAA;AAW1C,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAEtD,eAAO,MAAM,uBAAuB,GAClC,gBAAgB,oBAAoB,KACnC,cAAc,EAwBhB,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,QAAQ,YAAY,uBAMpD,CAAA;AAED,eAAO,MAAM,wBAAwB,GACnC,QAAQ,YAAY,EACpB,eAAe,sBAAsB,KACpC,kBAmBF,CAAA;AAED,eAAO,MAAM,0BAA0B,GACrC,QAAQ,YAAY,EACpB,eAAe,wBAAwB,KACtC,oBAmBF,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export * from './makeMergedSchema.js';
|
|
|
7
7
|
export * from './createGraphQLYoga.js';
|
|
8
8
|
export * from './types.js';
|
|
9
9
|
export { createValidatorDirective, createTransformerDirective, getDirectiveName, makeDirectivesForPlugin, } from './directives/makeDirectives.js';
|
|
10
|
-
export { hasDirective, DirectiveType, useRedwoodDirective, } from './plugins/useRedwoodDirective.js';
|
|
11
|
-
export type { DirectiveParams, RedwoodDirective, ValidatorDirective, ValidatorDirectiveFunc, TransformerDirective, TransformerDirectiveFunc, ValidateArgs, TransformArgs, } from './plugins/useRedwoodDirective.js';
|
|
10
|
+
export { hasDirective, DirectiveType, useCedarDirective, useRedwoodDirective, } from './plugins/useRedwoodDirective.js';
|
|
11
|
+
export type { DirectiveParams, CedarDirective, RedwoodDirective, ValidatorDirective, ValidatorDirectiveFunc, TransformerDirective, TransformerDirectiveFunc, ValidateArgs, TransformArgs, } from './plugins/useRedwoodDirective.js';
|
|
12
12
|
export * as rootSchema from './rootSchema.js';
|
|
13
13
|
export { context, setContext } from '@cedarjs/context';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AAErC,cAAc,8BAA8B,CAAA;AAE5C,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,YAAY,CAAA;AAE1B,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,gCAAgC,CAAA;AAEvC,OAAO,EACL,YAAY,EACZ,aAAa,EACb,mBAAmB,GACpB,MAAM,kCAAkC,CAAA;AAEzC,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,YAAY,EACZ,aAAa,GACd,MAAM,kCAAkC,CAAA;AAEzC,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAG7C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AAErC,cAAc,8BAA8B,CAAA;AAE5C,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,YAAY,CAAA;AAE1B,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,gCAAgC,CAAA;AAEvC,OAAO,EACL,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,kCAAkC,CAAA;AAEzC,YAAY,EACV,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,YAAY,EACZ,aAAa,GACd,MAAM,kCAAkC,CAAA;AAEzC,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAG7C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
hasDirective,
|
|
17
17
|
DirectiveType,
|
|
18
|
+
useCedarDirective,
|
|
18
19
|
useRedwoodDirective
|
|
19
20
|
} from "./plugins/useRedwoodDirective.js";
|
|
20
21
|
import * as rootSchema from "./rootSchema.js";
|
|
@@ -29,5 +30,6 @@ export {
|
|
|
29
30
|
makeDirectivesForPlugin,
|
|
30
31
|
rootSchema,
|
|
31
32
|
setContext,
|
|
33
|
+
useCedarDirective,
|
|
32
34
|
useRedwoodDirective
|
|
33
35
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { IExecutableSchemaDefinition } from '@graphql-tools/schema';
|
|
2
2
|
import type { GraphQLSchema } from 'graphql';
|
|
3
|
-
import type {
|
|
3
|
+
import type { CedarDirective } from './plugins/useRedwoodDirective.js';
|
|
4
4
|
import type { CedarSubscription } from './subscriptions/makeSubscriptions.js';
|
|
5
|
-
import type { ServicesGlobImports, SdlGlobImports,
|
|
5
|
+
import type { ServicesGlobImports, SdlGlobImports, CedarScalarConfig } from './types.js';
|
|
6
6
|
export declare const makeMergedSchema: ({ sdls, services, schemaOptions, directives, subscriptions, includeScalars, }: {
|
|
7
7
|
sdls: SdlGlobImports;
|
|
8
8
|
services: ServicesGlobImports;
|
|
9
|
-
directives:
|
|
9
|
+
directives: CedarDirective[];
|
|
10
10
|
subscriptions: CedarSubscription[];
|
|
11
|
-
includeScalars?:
|
|
11
|
+
includeScalars?: CedarScalarConfig;
|
|
12
12
|
/**
|
|
13
13
|
* A list of options passed to [makeExecutableSchema](https://www.graphql-tools.com/docs/generate-schema/#makeexecutableschemaoptions).
|
|
14
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeMergedSchema.d.ts","sourceRoot":"","sources":["../src/makeMergedSchema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAA;AAUxE,OAAO,KAAK,EACV,aAAa,EAKd,MAAM,SAAS,CAAA;AAIhB,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"makeMergedSchema.d.ts","sourceRoot":"","sources":["../src/makeMergedSchema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAA;AAUxE,OAAO,KAAK,EACV,aAAa,EAKd,MAAM,SAAS,CAAA;AAIhB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AAEtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AAC7E,OAAO,KAAK,EAEV,mBAAmB,EAEnB,cAAc,EACd,iBAAiB,EAClB,MAAM,YAAY,CAAA;AAuUnB,eAAO,MAAM,gBAAgB,GAAI,+EAO9B;IACD,IAAI,EAAE,cAAc,CAAA;IACpB,QAAQ,EAAE,mBAAmB,CAAA;IAC7B,UAAU,EAAE,cAAc,EAAE,CAAA;IAC5B,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,cAAc,CAAC,EAAE,iBAAiB,CAAA;IAElC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAA;CACrD,kBA+CA,CAAA"}
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useArmor } from './useArmor.js';
|
|
2
2
|
export { useRedwoodAuthContext } from './useRedwoodAuthContext.js';
|
|
3
|
-
export { useRedwoodDirective } from './useRedwoodDirective.js';
|
|
3
|
+
export { useCedarDirective, useRedwoodDirective, } from './useRedwoodDirective.js';
|
|
4
4
|
export { useRedwoodError } from './useRedwoodError.js';
|
|
5
5
|
export { useRedwoodGlobalContextSetter } from './useRedwoodGlobalContextSetter.js';
|
|
6
6
|
export { useRedwoodLogger } from './useRedwoodLogger.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,OAAO,EACL,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAA;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAE5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA"}
|
package/dist/plugins/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { useArmor } from "./useArmor.js";
|
|
2
2
|
import { useRedwoodAuthContext } from "./useRedwoodAuthContext.js";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
useCedarDirective,
|
|
5
|
+
useRedwoodDirective
|
|
6
|
+
} from "./useRedwoodDirective.js";
|
|
4
7
|
import { useRedwoodError } from "./useRedwoodError.js";
|
|
5
8
|
import { useRedwoodGlobalContextSetter } from "./useRedwoodGlobalContextSetter.js";
|
|
6
9
|
import { useRedwoodLogger } from "./useRedwoodLogger.js";
|
|
@@ -9,6 +12,7 @@ import { useRedwoodPopulateContext } from "./useRedwoodPopulateContext.js";
|
|
|
9
12
|
import { useRedwoodOpenTelemetry } from "./useRedwoodOpenTelemetry.js";
|
|
10
13
|
export {
|
|
11
14
|
useArmor,
|
|
15
|
+
useCedarDirective,
|
|
12
16
|
useRedwoodAuthContext,
|
|
13
17
|
useRedwoodDirective,
|
|
14
18
|
useRedwoodError,
|
|
@@ -54,7 +54,9 @@ export declare enum DirectiveType {
|
|
|
54
54
|
VALIDATOR = "VALIDATOR_DIRECTIVE",
|
|
55
55
|
TRANSFORMER = "TRANSFORMER_DIRECTIVE"
|
|
56
56
|
}
|
|
57
|
-
export type
|
|
57
|
+
export type CedarDirective = ValidatorDirective | TransformerDirective;
|
|
58
|
+
/** @deprecated Use `CedarDirective` instead. */
|
|
59
|
+
export type RedwoodDirective = CedarDirective;
|
|
58
60
|
export interface ValidatorDirective extends ValidatorDirectiveOptions {
|
|
59
61
|
schema: DocumentNode;
|
|
60
62
|
}
|
|
@@ -75,9 +77,13 @@ export type DirectivePluginOptions = ValidatorDirectiveOptions | TransformerDire
|
|
|
75
77
|
export declare function hasDirective(info: GraphQLResolveInfo): boolean;
|
|
76
78
|
export declare function getDirectiveByName(fieldConfig: GraphQLFieldConfig<any, any, any>, directiveName: string): null | DirectiveNode;
|
|
77
79
|
export declare function isPromise(value: any): value is Promise<unknown>;
|
|
78
|
-
export type
|
|
80
|
+
export type UseCedarDirectiveReturn = Plugin<{
|
|
79
81
|
onResolvedValue: ValidatorDirectiveFunc | TransformerDirectiveFunc;
|
|
80
82
|
}>;
|
|
81
|
-
|
|
83
|
+
/** @deprecated Use `UseCedarDirectiveReturn` instead. */
|
|
84
|
+
export type useRedwoodDirectiveReturn = UseCedarDirectiveReturn;
|
|
85
|
+
export declare const useCedarDirective: (options: DirectivePluginOptions) => UseCedarDirectiveReturn;
|
|
86
|
+
/** @deprecated Use `useCedarDirective` instead. */
|
|
87
|
+
export declare const useRedwoodDirective: (options: DirectivePluginOptions) => UseCedarDirectiveReturn;
|
|
82
88
|
export {};
|
|
83
89
|
//# sourceMappingURL=useRedwoodDirective.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRedwoodDirective.d.ts","sourceRoot":"","sources":["../../src/plugins/useRedwoodDirective.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,kBAAkB,EAElB,kBAAkB,EAEnB,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAErD,MAAM,WAAW,eAAe,CAC9B,SAAS,GAAG,GAAG,EACf,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAEnC,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,OAAO,EAAE,aAAa,CAAA;IACtB,IAAI,EAAE,kBAAkB,CAAA;IACxB,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,aAAa,EAAE,aAAa,CAAA;IAC5B,aAAa,EAAE,SAAS,CAAA;CACz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|
|
109
109
|
}
|
|
110
|
-
const
|
|
110
|
+
const useCedarDirective = (options) => {
|
|
111
111
|
const wasDirectiveApplied = /* @__PURE__ */ Symbol.for(`useRedwoodDirective.${options.name}}`);
|
|
112
112
|
return {
|
|
113
113
|
onSchemaChange({ schema, replaceSchema }) {
|
|
@@ -123,6 +123,7 @@ const useRedwoodDirective = (options) => {
|
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
+
const useRedwoodDirective = useCedarDirective;
|
|
126
127
|
const _isValidator = (options) => {
|
|
127
128
|
return options.type === "VALIDATOR_DIRECTIVE" /* VALIDATOR */;
|
|
128
129
|
};
|
|
@@ -134,5 +135,6 @@ export {
|
|
|
134
135
|
getDirectiveByName,
|
|
135
136
|
hasDirective,
|
|
136
137
|
isPromise,
|
|
138
|
+
useCedarDirective,
|
|
137
139
|
useRedwoodDirective
|
|
138
140
|
};
|
|
@@ -2,13 +2,13 @@ import type { Plugin } from 'graphql-yoga';
|
|
|
2
2
|
import type { Logger } from '@cedarjs/api/logger';
|
|
3
3
|
import type { CedarGraphQLContext } from '../types.js';
|
|
4
4
|
/**
|
|
5
|
-
* Converts
|
|
5
|
+
* Converts CedarErrors to GraphQLErrors
|
|
6
6
|
*
|
|
7
7
|
* This is a workaround for the fact that graphql-yoga doesn't support custom error types.
|
|
8
8
|
*
|
|
9
9
|
* Yoga automatically masks unexpected errors and prevents leaking sensitive information to clients.
|
|
10
10
|
*
|
|
11
|
-
* Since
|
|
11
|
+
* Since CedarErrors (such as ServiceValidation errors) are expected,
|
|
12
12
|
* we need to convert them to GraphQLErrors so that they are not masked.
|
|
13
13
|
*
|
|
14
14
|
* See: https://the-guild.dev/graphql/yoga-server/docs/features/error-masking
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
handleStreamOrSingleExecutionResult,
|
|
3
3
|
createGraphQLError
|
|
4
4
|
} from "graphql-yoga";
|
|
5
|
-
import {
|
|
5
|
+
import { CedarError } from "@cedarjs/api";
|
|
6
6
|
const useRedwoodError = (logger) => {
|
|
7
7
|
return {
|
|
8
8
|
async onExecute() {
|
|
@@ -12,10 +12,10 @@ const useRedwoodError = (logger) => {
|
|
|
12
12
|
payload,
|
|
13
13
|
({ result, setResult }) => {
|
|
14
14
|
const errors = result.errors?.map((error) => {
|
|
15
|
-
if (error.originalError instanceof
|
|
15
|
+
if (error.originalError instanceof CedarError) {
|
|
16
16
|
logger.debug(
|
|
17
17
|
{ custom: { name: error.originalError.name } },
|
|
18
|
-
"Converting
|
|
18
|
+
"Converting CedarError to GraphQLError"
|
|
19
19
|
);
|
|
20
20
|
return createGraphQLError(error.message, {
|
|
21
21
|
extensions: error.extensions
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Plugin } from '@envelop/core';
|
|
2
2
|
import * as opentelemetry from '@opentelemetry/api';
|
|
3
|
-
import type {
|
|
3
|
+
import type { CedarOpenTelemetryConfig } from '../types.js';
|
|
4
4
|
export declare enum AttributeName {
|
|
5
5
|
EXECUTION_ERROR = "graphql.execute.error",
|
|
6
6
|
EXECUTION_RESULT = "graphql.execute.result",
|
|
@@ -17,6 +17,6 @@ declare const tracingSpanSymbol = "OPEN_TELEMETRY_GRAPHQL";
|
|
|
17
17
|
type PluginContext = {
|
|
18
18
|
[tracingSpanSymbol]: opentelemetry.Span;
|
|
19
19
|
};
|
|
20
|
-
export declare const useRedwoodOpenTelemetry: (options:
|
|
20
|
+
export declare const useRedwoodOpenTelemetry: (options: CedarOpenTelemetryConfig) => Plugin<PluginContext>;
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=useRedwoodOpenTelemetry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRedwoodOpenTelemetry.d.ts","sourceRoot":"","sources":["../../src/plugins/useRedwoodOpenTelemetry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAuB,MAAM,eAAe,CAAA;AAKhE,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AAGnD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"useRedwoodOpenTelemetry.d.ts","sourceRoot":"","sources":["../../src/plugins/useRedwoodOpenTelemetry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAuB,MAAM,eAAe,CAAA;AAKhE,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AAGnD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAE3D,oBAAY,aAAa;IACvB,eAAe,0BAA0B;IACzC,gBAAgB,2BAA2B;IAC3C,kBAAkB,+BAA+B;IACjD,mBAAmB,+BAA+B;IAClD,kBAAkB,8BAA8B;IAChD,oBAAoB,gCAAgC;IACpD,aAAa,0BAA0B;IACvC,wBAAwB,kCAAkC;IAC1D,4BAA4B,6BAA6B;IACzD,mBAAmB,8BAA8B;CAClD;AAGD,QAAA,MAAM,iBAAiB,2BAA2B,CAAA;AAElD,KAAK,aAAa,GAAG;IACnB,CAAC,iBAAiB,CAAC,EAAE,aAAa,CAAC,IAAI,CAAA;CACxC,CAAA;AAED,eAAO,MAAM,uBAAuB,GAClC,SAAS,wBAAwB,KAChC,MAAM,CAAC,aAAa,CAgHtB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { UsePersistedOperationsOptions } from '@graphql-yoga/plugin-persisted-operations';
|
|
2
2
|
import type { Plugin } from 'graphql-yoga';
|
|
3
3
|
import type { CedarGraphQLContext } from '../types.js';
|
|
4
|
-
export type
|
|
4
|
+
export type CedarTrustedDocumentOptions = Omit<UsePersistedOperationsOptions, 'getPersistedOperation'> & {
|
|
5
5
|
/**
|
|
6
6
|
* Whether to disable the plugin
|
|
7
7
|
* @default false
|
|
@@ -19,5 +19,7 @@ export type RedwoodTrustedDocumentOptions = Omit<UsePersistedOperationsOptions,
|
|
|
19
19
|
disabled?: false;
|
|
20
20
|
store: Readonly<Record<string, string>>;
|
|
21
21
|
});
|
|
22
|
-
|
|
22
|
+
/** @deprecated Use `CedarTrustedDocumentOptions` instead. */
|
|
23
|
+
export type RedwoodTrustedDocumentOptions = CedarTrustedDocumentOptions;
|
|
24
|
+
export declare const useRedwoodTrustedDocuments: (options: CedarTrustedDocumentOptions) => Plugin<CedarGraphQLContext>;
|
|
23
25
|
//# sourceMappingURL=useRedwoodTrustedDocuments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRedwoodTrustedDocuments.d.ts","sourceRoot":"","sources":["../../src/plugins/useRedwoodTrustedDocuments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAA;AAC9F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"useRedwoodTrustedDocuments.d.ts","sourceRoot":"","sources":["../../src/plugins/useRedwoodTrustedDocuments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAA;AAC9F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC5C,6BAA6B,EAC7B,uBAAuB,CACxB,GAAG;IACF;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CACzC,GAAG,CACE;IAAE,QAAQ,EAAE,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CAAE,GAC5D;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CAAE,CAChE,CAAA;AAEH,6DAA6D;AAC7D,MAAM,MAAM,6BAA6B,GAAG,2BAA2B,CAAA;AAoEvE,eAAO,MAAM,0BAA0B,GACrC,SAAS,2BAA2B,KACnC,MAAM,CAAC,mBAAmB,CA8B5B,CAAA"}
|
package/dist/types.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ import type { AuthContextPayload, CorsConfig, Decoder } from '@cedarjs/api';
|
|
|
8
8
|
import type { CedarRequestContext } from '@cedarjs/api/runtime';
|
|
9
9
|
import type { CedarRealtimeOptions } from '@cedarjs/realtime';
|
|
10
10
|
import type { DirectiveGlobImports } from './directives/makeDirectives.js';
|
|
11
|
-
import type { useRedwoodDirectiveReturn, DirectivePluginOptions } from './plugins/useRedwoodDirective.js';
|
|
11
|
+
import type { UseCedarDirectiveReturn, useRedwoodDirectiveReturn, DirectivePluginOptions } from './plugins/useRedwoodDirective.js';
|
|
12
12
|
import type { LoggerConfig } from './plugins/useRedwoodLogger.js';
|
|
13
|
-
import type { RedwoodTrustedDocumentOptions } from './plugins/useRedwoodTrustedDocuments.js';
|
|
13
|
+
import type { CedarTrustedDocumentOptions, RedwoodTrustedDocumentOptions } from './plugins/useRedwoodTrustedDocuments.js';
|
|
14
14
|
export type Resolver = (...args: unknown[]) => unknown;
|
|
15
15
|
export type Services = {
|
|
16
16
|
[funcName: string]: Resolver;
|
|
@@ -33,7 +33,7 @@ export interface MakeServicesInterface {
|
|
|
33
33
|
}
|
|
34
34
|
export type MakeServices = (args: MakeServicesInterface) => ServicesGlobImports;
|
|
35
35
|
export type GraphQLTypeWithFields = GraphQLObjectType | GraphQLInterfaceType;
|
|
36
|
-
export type { useRedwoodDirectiveReturn, DirectivePluginOptions };
|
|
36
|
+
export type { UseCedarDirectiveReturn, useRedwoodDirectiveReturn, DirectivePluginOptions, CedarTrustedDocumentOptions, RedwoodTrustedDocumentOptions, };
|
|
37
37
|
export type GetCurrentUser = (decoded: AuthContextPayload[0], raw: AuthContextPayload[1], req?: AuthContextPayload[2]) => Promise<null | Record<string, unknown>>;
|
|
38
38
|
export type GenerateGraphiQLHeader = () => string;
|
|
39
39
|
export type Context = Record<string, unknown>;
|
|
@@ -65,7 +65,7 @@ export interface RedwoodGraphQLContext {
|
|
|
65
65
|
currentUser?: ThenArg<ReturnType<GetCurrentUser>> | AuthContextPayload | null;
|
|
66
66
|
[index: string]: unknown;
|
|
67
67
|
}
|
|
68
|
-
export interface
|
|
68
|
+
export interface CedarOpenTelemetryConfig {
|
|
69
69
|
/**
|
|
70
70
|
* @description Enables the creation of a span for each resolver execution.
|
|
71
71
|
*/
|
|
@@ -79,9 +79,13 @@ export interface RedwoodOpenTelemetryConfig {
|
|
|
79
79
|
*/
|
|
80
80
|
result: boolean;
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
/** @deprecated Please use CedarOpenTelemetryConfig */
|
|
83
|
+
export type RedwoodOpenTelemetryConfig = CedarOpenTelemetryConfig;
|
|
84
|
+
export interface CedarScalarConfig {
|
|
83
85
|
File?: boolean;
|
|
84
86
|
}
|
|
87
|
+
/** @deprecated Please use CedarScalarConfig */
|
|
88
|
+
export type RedwoodScalarConfig = CedarScalarConfig;
|
|
85
89
|
/**
|
|
86
90
|
* GraphQLYogaOptions
|
|
87
91
|
*/
|
|
@@ -208,18 +212,18 @@ export type GraphQLYogaOptions = {
|
|
|
208
212
|
* @see https://benjie.dev/graphql/trusted-documents
|
|
209
213
|
* @see https://the-guild.dev/graphql/yoga-server/docs/features/persisted-operations
|
|
210
214
|
*/
|
|
211
|
-
trustedDocuments?:
|
|
215
|
+
trustedDocuments?: CedarTrustedDocumentOptions;
|
|
212
216
|
/**
|
|
213
217
|
* @description Configure OpenTelemetry plugin behaviour
|
|
214
218
|
*/
|
|
215
|
-
openTelemetryOptions?:
|
|
219
|
+
openTelemetryOptions?: CedarOpenTelemetryConfig;
|
|
216
220
|
/**
|
|
217
221
|
* @description Configure which scalars to include in the schema. This should match your
|
|
218
222
|
* `graphql.includeScalars` configuration in `cedar.toml`.
|
|
219
223
|
*
|
|
220
224
|
* The default is to include. You must set to `false` to exclude.
|
|
221
225
|
*/
|
|
222
|
-
includeScalars?:
|
|
226
|
+
includeScalars?: CedarScalarConfig;
|
|
223
227
|
};
|
|
224
228
|
/**
|
|
225
229
|
* @description Configure GraphQLHandler with options
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAC1E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAA;AACxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AAChF,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACb,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AAC1E,OAAO,KAAK,EACV,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,kCAAkC,CAAA;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAA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GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAA;AAEtD,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,kBAAkB,EAClB,eAAe,GAAG,wBAAwB,CAC3C,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/graphql-server",
|
|
3
|
-
"version": "6.0.0-canary.
|
|
3
|
+
"version": "6.0.0-canary.2830",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"test:watch": "yarn test --watch"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@cedarjs/api": "6.0.0-canary.
|
|
36
|
-
"@cedarjs/context": "6.0.0-canary.
|
|
35
|
+
"@cedarjs/api": "6.0.0-canary.2830",
|
|
36
|
+
"@cedarjs/context": "6.0.0-canary.2830",
|
|
37
37
|
"@envelop/core": "5.5.1",
|
|
38
38
|
"@envelop/depth-limit": "4.0.0",
|
|
39
39
|
"@envelop/disable-introspection": "6.0.0",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@babel/cli": "7.29.7",
|
|
58
58
|
"@babel/core": "^7.26.10",
|
|
59
|
-
"@cedarjs/framework-tools": "6.0.0-canary.
|
|
60
|
-
"@cedarjs/project-config": "6.0.0-canary.
|
|
61
|
-
"@cedarjs/realtime": "6.0.0-canary.
|
|
59
|
+
"@cedarjs/framework-tools": "6.0.0-canary.2830",
|
|
60
|
+
"@cedarjs/project-config": "6.0.0-canary.2830",
|
|
61
|
+
"@cedarjs/realtime": "6.0.0-canary.2830",
|
|
62
62
|
"@envelop/types": "5.2.1",
|
|
63
63
|
"@types/aws-lambda": "8.10.162",
|
|
64
64
|
"@types/jsonwebtoken": "9.0.10",
|