@gqloom/core 0.9.2 → 0.9.4

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.
@@ -183,7 +183,7 @@ var WEAVER_CONFIG = Symbol.for("gqloom.weaver_config");
183
183
  var RESOLVER_OPTIONS_KEY = Symbol.for("gqloom.resolver-options");
184
184
  var IS_RESOLVER = Symbol.for("gqloom.is-resolver");
185
185
  var CONTEXT_MAP_KEY = Symbol.for("gqloom.context-map");
186
- var FIELD_HIDDEN = Symbol.for("gqloom.field-hidden");
186
+ var FIELD_HIDDEN = false;
187
187
 
188
188
  // src/utils/context.ts
189
189
  function onlyMemoization() {
@@ -88,9 +88,9 @@ declare const IS_RESOLVER: unique symbol;
88
88
  */
89
89
  declare const CONTEXT_MAP_KEY: unique symbol;
90
90
  /**
91
- * The symbol to set fields to be hidden
91
+ * Set fields to be hidden
92
92
  */
93
- declare const FIELD_HIDDEN: unique symbol;
93
+ declare const FIELD_HIDDEN = false;
94
94
 
95
95
  declare const symbols_CONTEXT_MAP_KEY: typeof CONTEXT_MAP_KEY;
96
96
  declare const symbols_FIELD_HIDDEN: typeof FIELD_HIDDEN;
@@ -88,9 +88,9 @@ declare const IS_RESOLVER: unique symbol;
88
88
  */
89
89
  declare const CONTEXT_MAP_KEY: unique symbol;
90
90
  /**
91
- * The symbol to set fields to be hidden
91
+ * Set fields to be hidden
92
92
  */
93
- declare const FIELD_HIDDEN: unique symbol;
93
+ declare const FIELD_HIDDEN = false;
94
94
 
95
95
  declare const symbols_CONTEXT_MAP_KEY: typeof CONTEXT_MAP_KEY;
96
96
  declare const symbols_FIELD_HIDDEN: typeof FIELD_HIDDEN;
package/dist/context.cjs CHANGED
@@ -205,7 +205,6 @@ var WEAVER_CONFIG = Symbol.for("gqloom.weaver_config");
205
205
  var RESOLVER_OPTIONS_KEY = Symbol.for("gqloom.resolver-options");
206
206
  var IS_RESOLVER = Symbol.for("gqloom.is-resolver");
207
207
  var CONTEXT_MAP_KEY = Symbol.for("gqloom.context-map");
208
- var FIELD_HIDDEN = Symbol.for("gqloom.field-hidden");
209
208
 
210
209
  // src/utils/context.ts
211
210
  function onlyMemoization() {
@@ -424,6 +423,14 @@ var asyncContextProvider = Object.assign(
424
423
  ],
425
424
  with: (...keyValues) => {
426
425
  return createProvider(...keyValues);
426
+ },
427
+ run: async (resolve, ...keyValues) => {
428
+ const store = onlyMemoization();
429
+ const map = getMemoizationMap(store);
430
+ for (const [key, value] of keyValues) {
431
+ map.set(key, value);
432
+ }
433
+ return resolverPayloadStorage.run(store, resolve);
427
434
  }
428
435
  }
429
436
  );
@@ -1,4 +1,4 @@
1
- import { P as OnlyMemoizationPayload, R as ResolverPayload, B as BaseField, v as Middleware, K as ResolvingFields } from './context-BbSIyDtg.cjs';
1
+ import { P as OnlyMemoizationPayload, R as ResolverPayload, B as BaseField, v as Middleware, K as ResolvingFields } from './context-aKflesHT.cjs';
2
2
  import { AsyncLocalStorage } from 'node:async_hooks';
3
3
  import 'graphql';
4
4
 
@@ -119,7 +119,44 @@ interface CallableContextMemoization<T> extends ContextMemoization<T> {
119
119
  */
120
120
  declare function createMemoization<T>(...args: ConstructorParameters<typeof ContextMemoization<T>>): CallableContextMemoization<T>;
121
121
  interface AsyncContextProvider extends Middleware {
122
+ /**
123
+ * Creates a middleware that injects key-value pairs into the context during resolver execution.
124
+ * The injected values will be available throughout the entire resolver execution chain.
125
+ *
126
+ * @param keyValues - An array of tuples containing a WeakKey and its corresponding value
127
+ * @returns A middleware function that injects the provided key-value pairs into the context
128
+ *
129
+ * @example
130
+ * ```ts
131
+ * const executor = resolver.toExecutor(
132
+ * asyncContextProvider.with(
133
+ * useDefaultName.provide(() => "Default Name")
134
+ * )
135
+ * )
136
+ * ```
137
+ */
122
138
  with: (...keyValues: [WeakKey, any][]) => Middleware;
139
+ /**
140
+ * Executes an async function with injected context values.
141
+ * The provided key-value pairs will be available in the context during the function execution.
142
+ *
143
+ * @template T - The return type of the async function
144
+ * @param resolve - The async function to execute
145
+ * @param keyValues - An array of tuples containing a WeakKey and its corresponding value
146
+ * @returns A Promise that resolves to the result of the async function
147
+ *
148
+ * @example
149
+ * ```ts
150
+ * const result = await asyncContextProvider.run(
151
+ * async () => {
152
+ * const name = useDefaultName()
153
+ * return `Hello, ${name}!`
154
+ * },
155
+ * useDefaultName.provide(() => "John")
156
+ * )
157
+ * ```
158
+ */
159
+ run: <T>(resolve: () => Promise<T>, ...keyValues: [WeakKey, any][]) => Promise<T>;
123
160
  }
124
161
  declare const asyncContextProvider: AsyncContextProvider;
125
162
 
package/dist/context.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as OnlyMemoizationPayload, R as ResolverPayload, B as BaseField, v as Middleware, K as ResolvingFields } from './context-BbSIyDtg.js';
1
+ import { P as OnlyMemoizationPayload, R as ResolverPayload, B as BaseField, v as Middleware, K as ResolvingFields } from './context-aKflesHT.js';
2
2
  import { AsyncLocalStorage } from 'node:async_hooks';
3
3
  import 'graphql';
4
4
 
@@ -119,7 +119,44 @@ interface CallableContextMemoization<T> extends ContextMemoization<T> {
119
119
  */
120
120
  declare function createMemoization<T>(...args: ConstructorParameters<typeof ContextMemoization<T>>): CallableContextMemoization<T>;
121
121
  interface AsyncContextProvider extends Middleware {
122
+ /**
123
+ * Creates a middleware that injects key-value pairs into the context during resolver execution.
124
+ * The injected values will be available throughout the entire resolver execution chain.
125
+ *
126
+ * @param keyValues - An array of tuples containing a WeakKey and its corresponding value
127
+ * @returns A middleware function that injects the provided key-value pairs into the context
128
+ *
129
+ * @example
130
+ * ```ts
131
+ * const executor = resolver.toExecutor(
132
+ * asyncContextProvider.with(
133
+ * useDefaultName.provide(() => "Default Name")
134
+ * )
135
+ * )
136
+ * ```
137
+ */
122
138
  with: (...keyValues: [WeakKey, any][]) => Middleware;
139
+ /**
140
+ * Executes an async function with injected context values.
141
+ * The provided key-value pairs will be available in the context during the function execution.
142
+ *
143
+ * @template T - The return type of the async function
144
+ * @param resolve - The async function to execute
145
+ * @param keyValues - An array of tuples containing a WeakKey and its corresponding value
146
+ * @returns A Promise that resolves to the result of the async function
147
+ *
148
+ * @example
149
+ * ```ts
150
+ * const result = await asyncContextProvider.run(
151
+ * async () => {
152
+ * const name = useDefaultName()
153
+ * return `Hello, ${name}!`
154
+ * },
155
+ * useDefaultName.provide(() => "John")
156
+ * )
157
+ * ```
158
+ */
159
+ run: <T>(resolve: () => Promise<T>, ...keyValues: [WeakKey, any][]) => Promise<T>;
123
160
  }
124
161
  declare const asyncContextProvider: AsyncContextProvider;
125
162
 
package/dist/context.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  getResolvingFields,
4
4
  isOnlyMemoryPayload,
5
5
  onlyMemoization
6
- } from "./chunk-BQAPYNA7.js";
6
+ } from "./chunk-JWAIAFGL.js";
7
7
 
8
8
  // src/context/context.ts
9
9
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -206,6 +206,14 @@ var asyncContextProvider = Object.assign(
206
206
  ],
207
207
  with: (...keyValues) => {
208
208
  return createProvider(...keyValues);
209
+ },
210
+ run: async (resolve, ...keyValues) => {
211
+ const store = onlyMemoization();
212
+ const map = getMemoizationMap(store);
213
+ for (const [key, value] of keyValues) {
214
+ map.set(key, value);
215
+ }
216
+ return resolverPayloadStorage.run(store, resolve);
209
217
  }
210
218
  }
211
219
  );
package/dist/index.cjs CHANGED
@@ -490,7 +490,7 @@ var WEAVER_CONFIG = Symbol.for("gqloom.weaver_config");
490
490
  var RESOLVER_OPTIONS_KEY = Symbol.for("gqloom.resolver-options");
491
491
  var IS_RESOLVER = Symbol.for("gqloom.is-resolver");
492
492
  var CONTEXT_MAP_KEY = Symbol.for("gqloom.context-map");
493
- var FIELD_HIDDEN = Symbol.for("gqloom.field-hidden");
493
+ var FIELD_HIDDEN = false;
494
494
 
495
495
  // src/utils/context.ts
496
496
  function onlyMemoization() {
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FieldOptions, Q as QueryOptions, M as MutationOptions, R as ResolverPayload, S as SubscriptionOptions, G as GraphQLFieldOptions, a as StandardSchemaV1, b as GraphQLSilk, c as MayPromise, d as Query, e as QueryChainFactory, f as QueryFactoryWithChain, g as Mutation, h as MutationChainFactory, i as MutationFactoryWithChain, j as Field, k as FieldChainFactory, l as FieldFactoryWithUtils, m as SubscriptionChainFactory, n as Subscription, o as SubscriptionFactoryWithChain, O as Operation, p as FIELD_HIDDEN, q as ResolverOptionsWithExtensions, r as OmitInUnion, V as ValueOf, s as ResolverOptions, t as FieldOrOperation, u as Resolver, I as IS_RESOLVER, v as Middleware, w as InferInputI, W as WEAVER_CONFIG, B as BaseField } from './context-BbSIyDtg.cjs';
2
- export { $ as BaseChainFactory, ai as CallableInputParser, D as CallableMiddlewareOptions, _ as ChainFactoryOptions, ae as FieldFactory, a4 as FieldFactoryWithResolve, ag as FieldMeta, a9 as FieldOrOperationType, Z as IChainFactory, aa as InferFieldInput, ab as InferFieldOutput, ah as InferInputO, y as IsAny, a5 as Loom, E as MiddlewareConfig, A as MiddlewareOperation, C as MiddlewareOptions, ad as MutationFactory, a3 as MutationFactoryWithResolve, P as OnlyMemoizationPayload, a8 as OperationType, ac as QueryFactory, a2 as QueryFactoryWithResolve, z as RequireKeys, a0 as ResolvableSubscription, a6 as ResolverOptionsWithParent, K as ResolvingFields, a7 as ResolvingOptions, x as SYMBOLS, af as SubscriptionFactory, a1 as SubscriptionNeedResolve, H as applyMiddlewares, Y as assignContextMap, aj as createInputParser, J as filterMiddlewares, X as getMemoizationMap, L as getResolvingFields, al as getStandardValue, U as isOnlyMemoryPayload, T as onlyMemoization, ak as parseInputValue, N as parseResolvingFields } from './context-BbSIyDtg.cjs';
1
+ import { F as FieldOptions, Q as QueryOptions, M as MutationOptions, R as ResolverPayload, S as SubscriptionOptions, G as GraphQLFieldOptions, a as StandardSchemaV1, b as GraphQLSilk, c as MayPromise, d as Query, e as QueryChainFactory, f as QueryFactoryWithChain, g as Mutation, h as MutationChainFactory, i as MutationFactoryWithChain, j as Field, k as FieldChainFactory, l as FieldFactoryWithUtils, m as SubscriptionChainFactory, n as Subscription, o as SubscriptionFactoryWithChain, O as Operation, p as FIELD_HIDDEN, q as ResolverOptionsWithExtensions, r as OmitInUnion, V as ValueOf, s as ResolverOptions, t as FieldOrOperation, u as Resolver, I as IS_RESOLVER, v as Middleware, w as InferInputI, W as WEAVER_CONFIG, B as BaseField } from './context-aKflesHT.cjs';
2
+ export { $ as BaseChainFactory, ai as CallableInputParser, D as CallableMiddlewareOptions, _ as ChainFactoryOptions, ae as FieldFactory, a4 as FieldFactoryWithResolve, ag as FieldMeta, a9 as FieldOrOperationType, Z as IChainFactory, aa as InferFieldInput, ab as InferFieldOutput, ah as InferInputO, y as IsAny, a5 as Loom, E as MiddlewareConfig, A as MiddlewareOperation, C as MiddlewareOptions, ad as MutationFactory, a3 as MutationFactoryWithResolve, P as OnlyMemoizationPayload, a8 as OperationType, ac as QueryFactory, a2 as QueryFactoryWithResolve, z as RequireKeys, a0 as ResolvableSubscription, a6 as ResolverOptionsWithParent, K as ResolvingFields, a7 as ResolvingOptions, x as SYMBOLS, af as SubscriptionFactory, a1 as SubscriptionNeedResolve, H as applyMiddlewares, Y as assignContextMap, aj as createInputParser, J as filterMiddlewares, X as getMemoizationMap, L as getResolvingFields, al as getStandardValue, U as isOnlyMemoryPayload, T as onlyMemoization, ak as parseInputValue, N as parseResolvingFields } from './context-aKflesHT.cjs';
3
3
  import { GraphQLFieldExtensions, GraphQLScalarType, GraphQLObjectType, GraphQLOutputType, GraphQLNullableType, GraphQLList, GraphQLNonNull, GraphQLObjectTypeConfig, GraphQLUnionType, GraphQLInterfaceType, GraphQLInputObjectType, GraphQLFieldMap, GraphQLFieldConfig, GraphQLSchemaConfig, GraphQLNamedType, GraphQLSchema, GraphQLFieldConfigArgumentMap, GraphQLType, GraphQLInputType, GraphQLInterfaceTypeConfig } from 'graphql';
4
4
 
5
5
  declare function getOperationOptions(resolveOrOptions: ((...args: any) => any) | FieldOptions<any, any, any, any> | QueryOptions<any, any> | MutationOptions<any, any>): any;
@@ -467,4 +467,4 @@ interface GQLoomExtensionAttribute {
467
467
  directives?: string[];
468
468
  }
469
469
 
470
- export { BaseField, type BatchLoadFn, ChainResolver, type CoreSchemaWeaverConfig, type CoreSchemaWeaverConfigOptions, type DirectiveItem, type DirectiveRecord, EasyDataLoader, Field, FieldChainFactory, FieldFactoryWithUtils, FieldOptions, FieldOrOperation, type GQLoomExtensionAttribute, type GQLoomExtensions, type GlobalWeaverContext, GraphQLFieldOptions, GraphQLSchemaLoom, GraphQLSilk, InferInputI, type ListSilk, LoomObjectType, MayPromise, Middleware, Mutation, MutationChainFactory, MutationFactoryWithChain, MutationOptions, type NonNullSilk, type NullableSilk, OPERATION_OBJECT_NAMES, ObjectChainResolver, OmitInUnion, Operation, Query, QueryChainFactory, QueryFactoryWithChain, QueryOptions, Resolver, type ResolverFactory, ResolverOptions, ResolverOptionsWithExtensions, ResolverPayload, type SchemaWeaver, StandardSchemaV1, Subscription, SubscriptionChainFactory, SubscriptionFactoryWithChain, SubscriptionOptions, type ToExecutorProps, ValueOf, type WeaverConfig, type WeaverContext, capitalize, collectName, collectNames, createField, createMutation, createQuery, createSubscription, deepMerge, defaultSubscriptionResolve, ensureInputObjectType, ensureInputType, ensureInterfaceType, field, getCacheType, getFieldOptions, getGraphQLType, getOperationOptions, getSubscriptionOptions, initWeaverContext, inputToArgs, isSchemaVendorWeaver, isSilk, listSilk, loom, mapValue, markErrorLocation, markLocation, meta, mutation, nonNullSilk, notNullish, nullableSilk, parseSilk, pascalCase, provideWeaverContext, query, resolver, screamingSnakeCase, silk, subscription, toObjMap, tryIn, weave, weaverContext };
470
+ export { BaseField, type BatchLoadFn, ChainResolver, type CoreSchemaWeaverConfig, type CoreSchemaWeaverConfigOptions, type DirectiveItem, type DirectiveRecord, EasyDataLoader, type Executor, Field, FieldChainFactory, FieldFactoryWithUtils, FieldOptions, FieldOrOperation, type GQLoomExtensionAttribute, type GQLoomExtensions, type GlobalWeaverContext, GraphQLFieldOptions, GraphQLSchemaLoom, GraphQLSilk, InferInputI, type ListSilk, LoomObjectType, MayPromise, Middleware, Mutation, MutationChainFactory, MutationFactoryWithChain, MutationOptions, type NonNullSilk, type NullableSilk, OPERATION_OBJECT_NAMES, ObjectChainResolver, OmitInUnion, Operation, Query, QueryChainFactory, QueryFactoryWithChain, QueryOptions, Resolver, type ResolverFactory, ResolverOptions, ResolverOptionsWithExtensions, ResolverPayload, type SchemaWeaver, StandardSchemaV1, Subscription, SubscriptionChainFactory, SubscriptionFactoryWithChain, SubscriptionOptions, type ToExecutorProps, ValueOf, type WeaverConfig, type WeaverContext, capitalize, collectName, collectNames, createField, createMutation, createQuery, createSubscription, deepMerge, defaultSubscriptionResolve, ensureInputObjectType, ensureInputType, ensureInterfaceType, field, getCacheType, getFieldOptions, getGraphQLType, getOperationOptions, getSubscriptionOptions, initWeaverContext, inputToArgs, isSchemaVendorWeaver, isSilk, listSilk, loom, mapValue, markErrorLocation, markLocation, meta, mutation, nonNullSilk, notNullish, nullableSilk, parseSilk, pascalCase, provideWeaverContext, query, resolver, screamingSnakeCase, silk, subscription, toObjMap, tryIn, weave, weaverContext };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FieldOptions, Q as QueryOptions, M as MutationOptions, R as ResolverPayload, S as SubscriptionOptions, G as GraphQLFieldOptions, a as StandardSchemaV1, b as GraphQLSilk, c as MayPromise, d as Query, e as QueryChainFactory, f as QueryFactoryWithChain, g as Mutation, h as MutationChainFactory, i as MutationFactoryWithChain, j as Field, k as FieldChainFactory, l as FieldFactoryWithUtils, m as SubscriptionChainFactory, n as Subscription, o as SubscriptionFactoryWithChain, O as Operation, p as FIELD_HIDDEN, q as ResolverOptionsWithExtensions, r as OmitInUnion, V as ValueOf, s as ResolverOptions, t as FieldOrOperation, u as Resolver, I as IS_RESOLVER, v as Middleware, w as InferInputI, W as WEAVER_CONFIG, B as BaseField } from './context-BbSIyDtg.js';
2
- export { $ as BaseChainFactory, ai as CallableInputParser, D as CallableMiddlewareOptions, _ as ChainFactoryOptions, ae as FieldFactory, a4 as FieldFactoryWithResolve, ag as FieldMeta, a9 as FieldOrOperationType, Z as IChainFactory, aa as InferFieldInput, ab as InferFieldOutput, ah as InferInputO, y as IsAny, a5 as Loom, E as MiddlewareConfig, A as MiddlewareOperation, C as MiddlewareOptions, ad as MutationFactory, a3 as MutationFactoryWithResolve, P as OnlyMemoizationPayload, a8 as OperationType, ac as QueryFactory, a2 as QueryFactoryWithResolve, z as RequireKeys, a0 as ResolvableSubscription, a6 as ResolverOptionsWithParent, K as ResolvingFields, a7 as ResolvingOptions, x as SYMBOLS, af as SubscriptionFactory, a1 as SubscriptionNeedResolve, H as applyMiddlewares, Y as assignContextMap, aj as createInputParser, J as filterMiddlewares, X as getMemoizationMap, L as getResolvingFields, al as getStandardValue, U as isOnlyMemoryPayload, T as onlyMemoization, ak as parseInputValue, N as parseResolvingFields } from './context-BbSIyDtg.js';
1
+ import { F as FieldOptions, Q as QueryOptions, M as MutationOptions, R as ResolverPayload, S as SubscriptionOptions, G as GraphQLFieldOptions, a as StandardSchemaV1, b as GraphQLSilk, c as MayPromise, d as Query, e as QueryChainFactory, f as QueryFactoryWithChain, g as Mutation, h as MutationChainFactory, i as MutationFactoryWithChain, j as Field, k as FieldChainFactory, l as FieldFactoryWithUtils, m as SubscriptionChainFactory, n as Subscription, o as SubscriptionFactoryWithChain, O as Operation, p as FIELD_HIDDEN, q as ResolverOptionsWithExtensions, r as OmitInUnion, V as ValueOf, s as ResolverOptions, t as FieldOrOperation, u as Resolver, I as IS_RESOLVER, v as Middleware, w as InferInputI, W as WEAVER_CONFIG, B as BaseField } from './context-aKflesHT.js';
2
+ export { $ as BaseChainFactory, ai as CallableInputParser, D as CallableMiddlewareOptions, _ as ChainFactoryOptions, ae as FieldFactory, a4 as FieldFactoryWithResolve, ag as FieldMeta, a9 as FieldOrOperationType, Z as IChainFactory, aa as InferFieldInput, ab as InferFieldOutput, ah as InferInputO, y as IsAny, a5 as Loom, E as MiddlewareConfig, A as MiddlewareOperation, C as MiddlewareOptions, ad as MutationFactory, a3 as MutationFactoryWithResolve, P as OnlyMemoizationPayload, a8 as OperationType, ac as QueryFactory, a2 as QueryFactoryWithResolve, z as RequireKeys, a0 as ResolvableSubscription, a6 as ResolverOptionsWithParent, K as ResolvingFields, a7 as ResolvingOptions, x as SYMBOLS, af as SubscriptionFactory, a1 as SubscriptionNeedResolve, H as applyMiddlewares, Y as assignContextMap, aj as createInputParser, J as filterMiddlewares, X as getMemoizationMap, L as getResolvingFields, al as getStandardValue, U as isOnlyMemoryPayload, T as onlyMemoization, ak as parseInputValue, N as parseResolvingFields } from './context-aKflesHT.js';
3
3
  import { GraphQLFieldExtensions, GraphQLScalarType, GraphQLObjectType, GraphQLOutputType, GraphQLNullableType, GraphQLList, GraphQLNonNull, GraphQLObjectTypeConfig, GraphQLUnionType, GraphQLInterfaceType, GraphQLInputObjectType, GraphQLFieldMap, GraphQLFieldConfig, GraphQLSchemaConfig, GraphQLNamedType, GraphQLSchema, GraphQLFieldConfigArgumentMap, GraphQLType, GraphQLInputType, GraphQLInterfaceTypeConfig } from 'graphql';
4
4
 
5
5
  declare function getOperationOptions(resolveOrOptions: ((...args: any) => any) | FieldOptions<any, any, any, any> | QueryOptions<any, any> | MutationOptions<any, any>): any;
@@ -467,4 +467,4 @@ interface GQLoomExtensionAttribute {
467
467
  directives?: string[];
468
468
  }
469
469
 
470
- export { BaseField, type BatchLoadFn, ChainResolver, type CoreSchemaWeaverConfig, type CoreSchemaWeaverConfigOptions, type DirectiveItem, type DirectiveRecord, EasyDataLoader, Field, FieldChainFactory, FieldFactoryWithUtils, FieldOptions, FieldOrOperation, type GQLoomExtensionAttribute, type GQLoomExtensions, type GlobalWeaverContext, GraphQLFieldOptions, GraphQLSchemaLoom, GraphQLSilk, InferInputI, type ListSilk, LoomObjectType, MayPromise, Middleware, Mutation, MutationChainFactory, MutationFactoryWithChain, MutationOptions, type NonNullSilk, type NullableSilk, OPERATION_OBJECT_NAMES, ObjectChainResolver, OmitInUnion, Operation, Query, QueryChainFactory, QueryFactoryWithChain, QueryOptions, Resolver, type ResolverFactory, ResolverOptions, ResolverOptionsWithExtensions, ResolverPayload, type SchemaWeaver, StandardSchemaV1, Subscription, SubscriptionChainFactory, SubscriptionFactoryWithChain, SubscriptionOptions, type ToExecutorProps, ValueOf, type WeaverConfig, type WeaverContext, capitalize, collectName, collectNames, createField, createMutation, createQuery, createSubscription, deepMerge, defaultSubscriptionResolve, ensureInputObjectType, ensureInputType, ensureInterfaceType, field, getCacheType, getFieldOptions, getGraphQLType, getOperationOptions, getSubscriptionOptions, initWeaverContext, inputToArgs, isSchemaVendorWeaver, isSilk, listSilk, loom, mapValue, markErrorLocation, markLocation, meta, mutation, nonNullSilk, notNullish, nullableSilk, parseSilk, pascalCase, provideWeaverContext, query, resolver, screamingSnakeCase, silk, subscription, toObjMap, tryIn, weave, weaverContext };
470
+ export { BaseField, type BatchLoadFn, ChainResolver, type CoreSchemaWeaverConfig, type CoreSchemaWeaverConfigOptions, type DirectiveItem, type DirectiveRecord, EasyDataLoader, type Executor, Field, FieldChainFactory, FieldFactoryWithUtils, FieldOptions, FieldOrOperation, type GQLoomExtensionAttribute, type GQLoomExtensions, type GlobalWeaverContext, GraphQLFieldOptions, GraphQLSchemaLoom, GraphQLSilk, InferInputI, type ListSilk, LoomObjectType, MayPromise, Middleware, Mutation, MutationChainFactory, MutationFactoryWithChain, MutationOptions, type NonNullSilk, type NullableSilk, OPERATION_OBJECT_NAMES, ObjectChainResolver, OmitInUnion, Operation, Query, QueryChainFactory, QueryFactoryWithChain, QueryOptions, Resolver, type ResolverFactory, ResolverOptions, ResolverOptionsWithExtensions, ResolverPayload, type SchemaWeaver, StandardSchemaV1, Subscription, SubscriptionChainFactory, SubscriptionFactoryWithChain, SubscriptionOptions, type ToExecutorProps, ValueOf, type WeaverConfig, type WeaverContext, capitalize, collectName, collectNames, createField, createMutation, createQuery, createSubscription, deepMerge, defaultSubscriptionResolve, ensureInputObjectType, ensureInputType, ensureInterfaceType, field, getCacheType, getFieldOptions, getGraphQLType, getOperationOptions, getSubscriptionOptions, initWeaverContext, inputToArgs, isSchemaVendorWeaver, isSilk, listSilk, loom, mapValue, markErrorLocation, markLocation, meta, mutation, nonNullSilk, notNullish, nullableSilk, parseSilk, pascalCase, provideWeaverContext, query, resolver, screamingSnakeCase, silk, subscription, toObjMap, tryIn, weave, weaverContext };
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  onlyMemoization,
12
12
  parseResolvingFields,
13
13
  symbols_exports
14
- } from "./chunk-BQAPYNA7.js";
14
+ } from "./chunk-JWAIAFGL.js";
15
15
 
16
16
  // src/utils/args.ts
17
17
  function getOperationOptions(resolveOrOptions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gqloom/core",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "Create GraphQL schema and resolvers with TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",