@graphitation/graphql-codegen-supermassive-schema-extraction-plugin 1.1.2 → 1.2.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/.eslintcache CHANGED
@@ -1 +1 @@
1
- [{"/mnt/vss/_work/1/s/packages/graphql-codegen-supermassive-schema-extraction-plugin/src/index.ts":"1"},{"size":1174,"mtime":1680603722473,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"15useu0","/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":1174,"mtime":1687260856297,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1fxhjif","/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 Tue, 04 Apr 2023 10:29:00 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 20 Jun 2023 11:38:28 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.2.0
8
+
9
+ Tue, 20 Jun 2023 11:38:28 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Bump TS version in dev, move TS to peerDep (mnovikov@microsoft.com)
14
+ - Bump @graphitation/supermassive-extractors to v2.2.0
15
+
16
+ ## 1.1.3
17
+
18
+ Tue, 18 Apr 2023 13:36:20 GMT
19
+
20
+ ### Patches
21
+
22
+ - Add graphql as a dependency (scheruiyot@microsoft.com)
23
+
7
24
  ## 1.1.2
8
25
 
9
- Tue, 04 Apr 2023 10:29:00 GMT
26
+ Tue, 04 Apr 2023 10:29:16 GMT
10
27
 
11
28
  ### Patches
12
29
 
package/lib/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { PluginValidateFn, PluginFunction } from "@graphql-codegen/plugin-helpers";
2
2
  import { RawClientSideBasePluginConfig } from "@graphql-codegen/visitor-plugin-common";
3
- declare type PluginConfig = RawClientSideBasePluginConfig & {
3
+ type PluginConfig = RawClientSideBasePluginConfig & {
4
4
  files: string[];
5
5
  };
6
6
  export declare const plugin: PluginFunction<PluginConfig>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,cAAc,EACf,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAEvF,aAAK,YAAY,GAAG,6BAA6B,GAAG;IAClD,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,YAAY,CAQ/C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,gBAAgB,CAAC,YAAY,CAWnD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,cAAc,EACf,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAEvF,KAAK,YAAY,GAAG,6BAA6B,GAAG;IAClD,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,YAAY,CAQ/C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,gBAAgB,CAAC,YAAY,CAWnD,CAAC"}
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": ["import {\n Types,\n PluginValidateFn,\n PluginFunction,\n} from \"@graphql-codegen/plugin-helpers\";\nimport ts from \"typescript\";\nimport { GraphQLSchema } from \"graphql\";\nimport { printSchema, parse } from \"graphql\";\nimport { extractImplicitTypesToTypescript } from \"@graphitation/supermassive-extractors\";\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 tsContents: ts.SourceFile = extractImplicitTypesToTypescript(\n parse(printSchema(schema)),\n );\n\n const printer = ts.createPrinter();\n\n return printer.printNode(ts.EmitHint.SourceFile, tsContents, tsContents);\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 \"supermassive-typed-document-node\" requires extension to be \".ts\" or \".tsx\"!`,\n );\n }\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,wBAAe;AAEf,IAAAA,kBAAmC;AACnC,qCAAiD;AACjD,kBAAwB;AAOjB,MAAM,SAAuC,CAAC,WAA0B;AAC7E,QAAM,iBAA4B;AAAA,QAChC,2BAAM,6BAAY,MAAM,CAAC;AAAA,EAC3B;AAEA,QAAM,UAAU,kBAAAC,QAAG,cAAc;AAEjC,SAAO,QAAQ,UAAU,kBAAAA,QAAG,SAAS,YAAY,YAAY,UAAU;AACzE;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;",
6
+ "names": ["import_graphql", "ts"]
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": ["import {\n Types,\n PluginValidateFn,\n PluginFunction,\n} from \"@graphql-codegen/plugin-helpers\";\nimport ts from \"typescript\";\nimport { GraphQLSchema } from \"graphql\";\nimport { printSchema, parse } from \"graphql\";\nimport { extractImplicitTypesToTypescript } from \"@graphitation/supermassive-extractors\";\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 tsContents: ts.SourceFile = extractImplicitTypesToTypescript(\n parse(printSchema(schema)),\n );\n\n const printer = ts.createPrinter();\n\n return printer.printNode(ts.EmitHint.SourceFile, tsContents, tsContents);\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 \"supermassive-typed-document-node\" requires extension to be \".ts\" or \".tsx\"!`,\n );\n }\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAKA,OAAO,QAAQ;AAEf,SAAS,aAAa,aAAa;AACnC,SAAS,wCAAwC;AACjD,SAAS,eAAe;AAOjB,IAAM,SAAuC,CAAC,WAA0B;AAC7E,QAAM,aAA4B;AAAA,IAChC,MAAM,YAAY,MAAM,CAAC;AAAA,EAC3B;AAEA,QAAM,UAAU,GAAG,cAAc;AAEjC,SAAO,QAAQ,UAAU,GAAG,SAAS,YAAY,YAAY,UAAU;AACzE;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;",
6
+ "names": []
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": "1.1.2",
4
+ "version": "1.2.0",
5
5
  "main": "./lib/index",
6
6
  "repository": {
7
7
  "type": "git",
@@ -17,14 +17,16 @@
17
17
  "devDependencies": {
18
18
  "@graphql-codegen/plugin-helpers": "^1.18.2",
19
19
  "@types/jest": "^26.0.22",
20
- "monorepo-scripts": "*"
20
+ "monorepo-scripts": "*",
21
+ "typescript": "^4.9.5"
21
22
  },
22
23
  "peerDependencies": {
23
- "@graphql-codegen/plugin-helpers": ">= 1.18.0 < 2"
24
+ "@graphql-codegen/plugin-helpers": ">= 1.18.0 < 2",
25
+ "typescript": "^4.3.0"
24
26
  },
25
27
  "dependencies": {
26
- "@graphitation/supermassive-extractors": "^2.1.0",
27
- "typescript": "^4.4.3 <4.5.0"
28
+ "@graphitation/supermassive-extractors": "^2.2.0",
29
+ "graphql": "^15.0.0"
28
30
  },
29
31
  "sideEffects": false,
30
32
  "access": "public",