@graphql-codegen/typescript-apollo-angular 5.0.1 → 6.0.0-alpha-20261107124255-1bddcc0442364c874cc159f94fb047c42d108d19

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/cjs/index.js CHANGED
@@ -36,7 +36,7 @@ exports.addToSchema = (0, graphql_1.parse)(`
36
36
  directive @NgModule(module: String!) on OBJECT | FIELD
37
37
  directive @namedClient(name: String!) on OBJECT | FIELD
38
38
  `);
39
- const validate = async (schema, documents, config, outputFile) => {
39
+ const validate = async (schema, documents, config, { outputFile }) => {
40
40
  if ((0, path_1.extname)(outputFile) !== '.ts') {
41
41
  throw new Error(`Plugin "apollo-angular" requires extension to be ".ts"!`);
42
42
  }
package/esm/index.js CHANGED
@@ -31,7 +31,7 @@ export const addToSchema = parse(`
31
31
  directive @NgModule(module: String!) on OBJECT | FIELD
32
32
  directive @namedClient(name: String!) on OBJECT | FIELD
33
33
  `);
34
- export const validate = async (schema, documents, config, outputFile) => {
34
+ export const validate = async (schema, documents, config, { outputFile }) => {
35
35
  if (extname(outputFile) !== '.ts') {
36
36
  throw new Error(`Plugin "apollo-angular" requires extension to be ".ts"!`);
37
37
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-apollo-angular",
3
- "version": "5.0.1",
3
+ "version": "6.0.0-alpha-20261107124255-1bddcc0442364c874cc159f94fb047c42d108d19",
4
4
  "description": "GraphQL Code Generator plugin for generating ready-to-use Angular Components based on GraphQL operations",
5
5
  "peerDependencies": {
6
- "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
6
+ "graphql": "^16.0.0 || ^17.0.0"
7
7
  },
8
8
  "dependencies": {
9
- "@graphql-codegen/plugin-helpers": "^6.3.0",
10
- "@graphql-codegen/visitor-plugin-common": "^6.3.0",
9
+ "@graphql-codegen/plugin-helpers": "^8.0.0",
10
+ "@graphql-codegen/visitor-plugin-common": "^8.0.0",
11
11
  "auto-bind": "~4.0.0",
12
12
  "change-case-all": "1.0.15",
13
13
  "tslib": "^2.8.1"
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "license": "MIT",
21
21
  "engines": {
22
- "node": ">= 16.0.0"
22
+ "node": ">=22.18.0"
23
23
  },
24
24
  "main": "cjs/index.js",
25
25
  "module": "esm/index.js",
@@ -3,5 +3,5 @@ import { ApolloAngularRawPluginConfig } from './config.cjs';
3
3
  import { ApolloAngularVisitor } from './visitor.cjs';
4
4
  export declare const plugin: PluginFunction<ApolloAngularRawPluginConfig>;
5
5
  export declare const addToSchema: import("graphql").DocumentNode;
6
- export declare const validate: PluginValidateFn<any>;
6
+ export declare const validate: PluginValidateFn<ApolloAngularRawPluginConfig>;
7
7
  export { ApolloAngularVisitor };
@@ -3,5 +3,5 @@ import { ApolloAngularRawPluginConfig } from './config.js';
3
3
  import { ApolloAngularVisitor } from './visitor.js';
4
4
  export declare const plugin: PluginFunction<ApolloAngularRawPluginConfig>;
5
5
  export declare const addToSchema: import("graphql").DocumentNode;
6
- export declare const validate: PluginValidateFn<any>;
6
+ export declare const validate: PluginValidateFn<ApolloAngularRawPluginConfig>;
7
7
  export { ApolloAngularVisitor };