graphql-modules 2.3.0-alpha-20231103075354-b583a894 → 2.4.0

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/README.md CHANGED
@@ -1,4 +1,7 @@
1
- [![modules](https://user-images.githubusercontent.com/25294569/64067074-ed185b80-cc2a-11e9-8f4d-5f1e19feaa0a.gif)](https://graphql-modules.com/)
1
+ [![GraphQLConf 2024 Banner: September 10-12, San Francisco. Hosted by the GraphQL Foundation](https://github.com/user-attachments/assets/bdb8cd5d-5186-4ece-b06b-b00a499b7868)](https://graphql.org/conf/2024/?utm_source=github&utm_medium=graphql_modules&utm_campaign=readme)
2
+
3
+ <!-- Uncomment when we remove GraphQL Conf banner -->
4
+ <!-- [![modules](https://user-images.githubusercontent.com/25294569/64067074-ed185b80-cc2a-11e9-8f4d-5f1e19feaa0a.gif)](https://graphql-modules.com/) -->
2
5
 
3
6
  [![npm version](https://badge.fury.io/js/graphql-modules.svg)](https://www.npmjs.com/package/graphql-modules)
4
7
  ![CI](https://github.com/Urigo/graphql-modules/workflows/CI/badge.svg)
package/di/injector.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { Type, InjectionToken, Provider } from './providers';
1
+ import { Type, InjectionToken, Provider, AbstractType } from './providers';
2
2
  import { ResolvedProvider, GlobalProviderMap } from './resolution';
3
3
  import { Key } from './registry';
4
4
  import { ExecutionContext } from './decorators';
5
5
  type ExecutionContextGetter = () => ExecutionContext | never;
6
6
  export declare abstract class Injector {
7
- abstract get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: any): T;
7
+ abstract get<T>(token: Type<T> | InjectionToken<T> | AbstractType<T>, notFoundValue?: any): T;
8
8
  }
9
9
  export declare class ReflectiveInjector implements Injector {
10
10
  displayName: string;
package/di/providers.d.ts CHANGED
@@ -24,7 +24,7 @@ export interface FactoryProvider<T> extends BaseProvider<T> {
24
24
  deps?: any[];
25
25
  }
26
26
  export interface BaseProvider<T> extends ProviderOptions {
27
- provide: Type<T> | InjectionToken<T>;
27
+ provide: Type<T> | InjectionToken<T> | AbstractType<T>;
28
28
  }
29
29
  export interface TypeProvider<T> extends Type<T> {
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-modules",
3
- "version": "2.3.0-alpha-20231103075354-b583a894",
3
+ "version": "2.4.0",
4
4
  "description": "Create reusable, maintainable, testable and extendable GraphQL modules",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {