@graphitation/graphql-codegen-supermassive-schema-extraction-plugin 2.0.28 → 2.1.1

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/.eslintcache CHANGED
@@ -1 +1 @@
1
- [{"/mnt/vss/_work/1/s/packages/graphql-codegen-supermassive-schema-extraction-plugin/src/index.ts":"1"},{"size":1175,"mtime":1743154001775,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1nkbaae","/mnt/vss/_work/1/s/packages/graphql-codegen-supermassive-schema-extraction-plugin/src/index.ts",[],[]]
1
+ [{"/mnt/vss/_work/1/s/packages/graphql-codegen-supermassive-schema-extraction-plugin/src/index.ts":"1"},{"size":1175,"mtime":1744126075549,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1nkbaae","/mnt/vss/_work/1/s/packages/graphql-codegen-supermassive-schema-extraction-plugin/src/index.ts",[],[]]
package/CHANGELOG.md CHANGED
@@ -1,12 +1,29 @@
1
1
  # Change Log - @graphitation/graphql-codegen-supermassive-schema-extraction-plugin
2
2
 
3
- <!-- This log was last generated on Fri, 28 Mar 2025 09:36:43 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Tue, 08 Apr 2025 15:38:15 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 2.1.1
8
+
9
+ Tue, 08 Apr 2025 15:38:15 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @graphitation/supermassive to v3.10.1
14
+
15
+ ## 2.1.0
16
+
17
+ Wed, 02 Apr 2025 11:43:32 GMT
18
+
19
+ ### Minor changes
20
+
21
+ - Changed build target from ES6 to ES2018 (vrazuvaev@microsoft.com_msteamsmdb)
22
+ - Bump @graphitation/supermassive to v3.10.0
23
+
7
24
  ## 2.0.28
8
25
 
9
- Fri, 28 Mar 2025 09:36:43 GMT
26
+ Fri, 28 Mar 2025 09:57:05 GMT
10
27
 
11
28
  ### Patches
12
29
 
package/lib/index.js CHANGED
@@ -16,26 +16,6 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var __async = (__this, __arguments, generator) => {
20
- return new Promise((resolve, reject) => {
21
- var fulfilled = (value) => {
22
- try {
23
- step(generator.next(value));
24
- } catch (e) {
25
- reject(e);
26
- }
27
- };
28
- var rejected = (value) => {
29
- try {
30
- step(generator.throw(value));
31
- } catch (e) {
32
- reject(e);
33
- }
34
- };
35
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
36
- step((generator = generator.apply(__this, __arguments)).next());
37
- });
38
- };
39
19
  var src_exports = {};
40
20
  __export(src_exports, {
41
21
  plugin: () => plugin,
@@ -54,10 +34,10 @@ const plugin = (schema) => {
54
34
  return `export const definitions = JSON.parse('${JSON.stringify(typeDefs)}');
55
35
  `;
56
36
  };
57
- const validate = (schema, documents, config, outputFile) => __async(void 0, null, function* () {
37
+ const validate = async (schema, documents, config, outputFile) => {
58
38
  if ((0, import_path.extname)(outputFile) !== ".ts" && (0, import_path.extname)(outputFile) !== ".tsx") {
59
39
  throw new Error(
60
40
  `Plugin "graphql-codegen-supermassive-schema-extraction-plugin" requires extension to be ".ts" or ".tsx"!`
61
41
  );
62
42
  }
63
- });
43
+ };
package/lib/index.js.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts"],
4
4
  "sourcesContent": ["import {\n Types,\n PluginValidateFn,\n PluginFunction,\n} from \"@graphql-codegen/plugin-helpers\";\nimport { GraphQLSchema } from \"graphql\";\nimport { printSchema, parse } from \"graphql\";\nimport {\n encodeASTSchema,\n mergeSchemaDefinitions,\n} from \"@graphitation/supermassive\";\nimport { extname } from \"path\";\nimport { RawClientSideBasePluginConfig } from \"@graphql-codegen/visitor-plugin-common\";\n\ntype PluginConfig = RawClientSideBasePluginConfig & {\n files: string[];\n};\n\nexport const plugin: PluginFunction<PluginConfig> = (schema: GraphQLSchema) => {\n const schemaAST = parse(printSchema(schema));\n const typeDefs = mergeSchemaDefinitions(\n { types: {} },\n encodeASTSchema(schemaAST),\n );\n\n return `export const definitions = JSON.parse('${JSON.stringify(typeDefs)}');\n`;\n};\n\nexport const validate: PluginValidateFn<PluginConfig> = async (\n schema: GraphQLSchema,\n documents: Types.DocumentFile[],\n config,\n outputFile: string,\n) => {\n if (extname(outputFile) !== \".ts\" && extname(outputFile) !== \".tsx\") {\n throw new Error(\n `Plugin \"graphql-codegen-supermassive-schema-extraction-plugin\" requires extension to be \".ts\" or \".tsx\"!`,\n );\n }\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,IAAAA,kBAAmC;AACnC,0BAGO;AACP,kBAAwB;AAOjB,MAAM,SAAuC,CAAC,WAA0B;AAC7E,QAAM,gBAAY,2BAAM,6BAAY,MAAM,CAAC;AAC3C,QAAM,eAAW;AAAA,IACf,EAAE,OAAO,CAAC,EAAE;AAAA,QACZ,qCAAgB,SAAS;AAAA,EAC3B;AAEA,SAAO,0CAA0C,KAAK,UAAU,QAAQ;AAAA;AAE1E;AAEO,MAAM,WAA2C,CACtD,QACA,WACA,QACA,eACG;AACH,UAAI,qBAAQ,UAAU,MAAM,aAAS,qBAAQ,UAAU,MAAM,QAAQ;AACnE,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,IAAAA,kBAAmC;AACnC,0BAGO;AACP,kBAAwB;AAOjB,MAAM,SAAuC,CAAC,WAA0B;AAC7E,QAAM,gBAAY,2BAAM,6BAAY,MAAM,CAAC;AAC3C,QAAM,eAAW;AAAA,IACf,EAAE,OAAO,CAAC,EAAE;AAAA,QACZ,qCAAgB,SAAS;AAAA,EAC3B;AAEA,SAAO,0CAA0C,KAAK,UAAU,QAAQ;AAAA;AAE1E;AAEO,MAAM,WAA2C,OACtD,QACA,WACA,QACA,eACG;AACH,UAAI,qBAAQ,UAAU,MAAM,aAAS,qBAAQ,UAAU,MAAM,QAAQ;AACnE,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;",
6
6
  "names": ["import_graphql"]
7
7
  }
package/lib/index.mjs CHANGED
@@ -1,24 +1,3 @@
1
- var __async = (__this, __arguments, generator) => {
2
- return new Promise((resolve, reject) => {
3
- var fulfilled = (value) => {
4
- try {
5
- step(generator.next(value));
6
- } catch (e) {
7
- reject(e);
8
- }
9
- };
10
- var rejected = (value) => {
11
- try {
12
- step(generator.throw(value));
13
- } catch (e) {
14
- reject(e);
15
- }
16
- };
17
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
18
- step((generator = generator.apply(__this, __arguments)).next());
19
- });
20
- };
21
-
22
1
  // src/index.ts
23
2
  import { printSchema, parse } from "graphql";
24
3
  import {
@@ -35,13 +14,13 @@ var plugin = (schema) => {
35
14
  return `export const definitions = JSON.parse('${JSON.stringify(typeDefs)}');
36
15
  `;
37
16
  };
38
- var validate = (schema, documents, config, outputFile) => __async(void 0, null, function* () {
17
+ var validate = async (schema, documents, config, outputFile) => {
39
18
  if (extname(outputFile) !== ".ts" && extname(outputFile) !== ".tsx") {
40
19
  throw new Error(
41
20
  `Plugin "graphql-codegen-supermassive-schema-extraction-plugin" requires extension to be ".ts" or ".tsx"!`
42
21
  );
43
22
  }
44
- });
23
+ };
45
24
  export {
46
25
  plugin,
47
26
  validate
package/lib/index.mjs.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts"],
4
4
  "sourcesContent": ["import {\n Types,\n PluginValidateFn,\n PluginFunction,\n} from \"@graphql-codegen/plugin-helpers\";\nimport { GraphQLSchema } from \"graphql\";\nimport { printSchema, parse } from \"graphql\";\nimport {\n encodeASTSchema,\n mergeSchemaDefinitions,\n} from \"@graphitation/supermassive\";\nimport { extname } from \"path\";\nimport { RawClientSideBasePluginConfig } from \"@graphql-codegen/visitor-plugin-common\";\n\ntype PluginConfig = RawClientSideBasePluginConfig & {\n files: string[];\n};\n\nexport const plugin: PluginFunction<PluginConfig> = (schema: GraphQLSchema) => {\n const schemaAST = parse(printSchema(schema));\n const typeDefs = mergeSchemaDefinitions(\n { types: {} },\n encodeASTSchema(schemaAST),\n );\n\n return `export const definitions = JSON.parse('${JSON.stringify(typeDefs)}');\n`;\n};\n\nexport const validate: PluginValidateFn<PluginConfig> = async (\n schema: GraphQLSchema,\n documents: Types.DocumentFile[],\n config,\n outputFile: string,\n) => {\n if (extname(outputFile) !== \".ts\" && extname(outputFile) !== \".tsx\") {\n throw new Error(\n `Plugin \"graphql-codegen-supermassive-schema-extraction-plugin\" requires extension to be \".ts\" or \".tsx\"!`,\n );\n }\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAMA,SAAS,aAAa,aAAa;AACnC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,eAAe;AAOjB,IAAM,SAAuC,CAAC,WAA0B;AAC7E,QAAM,YAAY,MAAM,YAAY,MAAM,CAAC;AAC3C,QAAM,WAAW;AAAA,IACf,EAAE,OAAO,CAAC,EAAE;AAAA,IACZ,gBAAgB,SAAS;AAAA,EAC3B;AAEA,SAAO,0CAA0C,KAAK,UAAU,QAAQ;AAAA;AAE1E;AAEO,IAAM,WAA2C,CACtD,QACA,WACA,QACA,eACG;AACH,MAAI,QAAQ,UAAU,MAAM,SAAS,QAAQ,UAAU,MAAM,QAAQ;AACnE,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;",
5
+ "mappings": ";AAMA,SAAS,aAAa,aAAa;AACnC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,eAAe;AAOjB,IAAM,SAAuC,CAAC,WAA0B;AAC7E,QAAM,YAAY,MAAM,YAAY,MAAM,CAAC;AAC3C,QAAM,WAAW;AAAA,IACf,EAAE,OAAO,CAAC,EAAE;AAAA,IACZ,gBAAgB,SAAS;AAAA,EAC3B;AAEA,SAAO,0CAA0C,KAAK,UAAU,QAAQ;AAAA;AAE1E;AAEO,IAAM,WAA2C,OACtD,QACA,WACA,QACA,eACG;AACH,MAAI,QAAQ,UAAU,MAAM,SAAS,QAAQ,UAAU,MAAM,QAAQ;AACnE,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@graphitation/graphql-codegen-supermassive-schema-extraction-plugin",
3
3
  "license": "MIT",
4
- "version": "2.0.28",
4
+ "version": "2.1.1",
5
5
  "main": "./lib/index",
6
6
  "repository": {
7
7
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  "@graphql-codegen/plugin-helpers": ">= 1.18.0 < 2"
24
24
  },
25
25
  "dependencies": {
26
- "@graphitation/supermassive": "^3.9.0",
26
+ "@graphitation/supermassive": "^3.10.1",
27
27
  "graphql": "^15.0.0"
28
28
  },
29
29
  "sideEffects": false,