@graphitation/graphql-codegen-supermassive-schema-extraction-plugin 0.2.0 → 1.0.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/CHANGELOG.md +11 -2
- package/lib/index.js +2 -2
- package/lib/index.mjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @graphitation/graphql-codegen-supermassive-schema-extraction-plugin
|
|
2
2
|
|
|
3
|
-
This log was last generated on Wed, 20 Jul 2022
|
|
3
|
+
This log was last generated on Wed, 20 Jul 2022 16:31:49 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.0.0
|
|
8
|
+
|
|
9
|
+
Wed, 20 Jul 2022 16:31:49 GMT
|
|
10
|
+
|
|
11
|
+
### Major changes
|
|
12
|
+
|
|
13
|
+
- importExplicitTypesFromTypescript is imported separately (jakubvejr@microsoft.com)
|
|
14
|
+
- Bump @graphitation/supermassive to v1.0.0
|
|
15
|
+
|
|
7
16
|
## 0.2.0
|
|
8
17
|
|
|
9
|
-
Wed, 20 Jul 2022 09:48:
|
|
18
|
+
Wed, 20 Jul 2022 09:48:13 GMT
|
|
10
19
|
|
|
11
20
|
### Minor changes
|
|
12
21
|
|
package/lib/index.js
CHANGED
|
@@ -46,10 +46,10 @@ __export(src_exports, {
|
|
|
46
46
|
module.exports = __toCommonJS(src_exports);
|
|
47
47
|
var import_typescript = __toESM(require("typescript"));
|
|
48
48
|
var import_graphql2 = require("graphql");
|
|
49
|
-
var
|
|
49
|
+
var import_extractors = require("@graphitation/supermassive/lib/extractors");
|
|
50
50
|
var import_path = require("path");
|
|
51
51
|
const plugin = (schema) => {
|
|
52
|
-
const tsContents = (0,
|
|
52
|
+
const tsContents = (0, import_extractors.extractImplicitTypesToTypescript)((0, import_graphql2.parse)((0, import_graphql2.printSchema)(schema)));
|
|
53
53
|
const printer = import_typescript.default.createPrinter();
|
|
54
54
|
return printer.printNode(import_typescript.default.EmitHint.SourceFile, tsContents, tsContents);
|
|
55
55
|
};
|
package/lib/index.mjs
CHANGED
|
@@ -22,7 +22,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22
22
|
// src/index.ts
|
|
23
23
|
import ts from "typescript";
|
|
24
24
|
import { printSchema, parse } from "graphql";
|
|
25
|
-
import { extractImplicitTypesToTypescript } from "@graphitation/supermassive";
|
|
25
|
+
import { extractImplicitTypesToTypescript } from "@graphitation/supermassive/lib/extractors";
|
|
26
26
|
import { extname } from "path";
|
|
27
27
|
var plugin = (schema) => {
|
|
28
28
|
const tsContents = extractImplicitTypesToTypescript(parse(printSchema(schema)));
|
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": "0.
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"main": "./lib/index",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@graphql-codegen/plugin-helpers": ">= 1.18.0 < 2",
|
|
25
25
|
"typescript": "^4.4.3 <4.5.0",
|
|
26
|
-
"@graphitation/supermassive": "^0.
|
|
26
|
+
"@graphitation/supermassive": "^1.0.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"typescript": "^4.4.3 <4.5.0"
|