@graphitation/supermassive 0.2.0 → 0.4.2
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 +1 -1
- package/CHANGELOG.json +155 -0
- package/CHANGELOG.md +34 -2
- package/NOTICE +27 -0
- package/README.md +179 -5
- package/lib/ast/addTypesToRequestDocument.mjs +3 -1
- package/lib/benchmarks/index.mjs +16 -14
- package/lib/benchmarks/nice-benchmark.mjs +6 -3
- package/lib/benchmarks/swapi-schema/index.mjs +3 -2
- package/lib/benchmarks/swapi-schema/models.mjs +1 -0
- package/lib/benchmarks/swapi-schema/resolvers.mjs +23 -24
- package/lib/bin/supermassive.d.ts.map +1 -1
- package/lib/bin/supermassive.mjs +3 -1
- package/lib/collectFields.mjs +1 -0
- package/lib/executeWithSchema.d.ts.map +1 -1
- package/lib/executeWithSchema.js +8 -8
- package/lib/executeWithSchema.mjs +6 -4
- package/lib/executeWithoutSchema.mjs +15 -17
- package/lib/extractImplicitTypesRuntime.mjs +1 -0
- package/lib/extractImplicitTypesToTypescript.mjs +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -2
- package/lib/index.mjs +7 -8
- package/lib/jsutils/Path.mjs +1 -0
- package/lib/jsutils/devAssert.mjs +1 -0
- package/lib/jsutils/didYouMean.mjs +2 -1
- package/lib/jsutils/identityFunc.mjs +1 -0
- package/lib/jsutils/inspect.mjs +3 -2
- package/lib/jsutils/instanceOf.mjs +3 -2
- package/lib/jsutils/invariant.mjs +1 -0
- package/lib/jsutils/isAsyncIterable.mjs +1 -0
- package/lib/jsutils/isIterableObject.mjs +1 -0
- package/lib/jsutils/isObjectLike.mjs +1 -0
- package/lib/jsutils/isPromise.mjs +1 -0
- package/lib/jsutils/keyMap.mjs +1 -0
- package/lib/jsutils/keyValMap.mjs +1 -0
- package/lib/jsutils/mapValue.mjs +1 -0
- package/lib/jsutils/memoize3.mjs +1 -0
- package/lib/jsutils/naturalCompare.mjs +3 -2
- package/lib/jsutils/printPathArray.mjs +1 -0
- package/lib/jsutils/promiseForObject.mjs +1 -0
- package/lib/jsutils/promiseReduce.mjs +2 -1
- package/lib/jsutils/suggestionList.mjs +4 -3
- package/lib/jsutils/toObjMap.mjs +1 -0
- package/lib/transforms/annotateDocumentGraphQLTransform.mjs +3 -2
- package/lib/transforms/transformerTestUtils.mjs +14 -8
- package/lib/utilities/typeNameFromAST.mjs +1 -0
- package/lib/values.mjs +5 -4
- package/package.json +13 -3
- package/starwars.json +1 -0
- package/graphitation-supermassive-0.1.3-1.tgz +0 -0
- package/graphitation-supermassive-0.1.3-2.tgz +0 -0
- package/graphitation-supermassive-0.1.3.tgz +0 -0
- package/lib/bin/typeDefsToImplicitResolvers.d.ts +0 -3
- package/lib/bin/typeDefsToImplicitResolvers.d.ts.map +0 -1
- package/lib/bin/typeDefsToImplicitResolvers.js +0 -82
- package/lib/bin/typeDefsToImplicitResolvers.mjs +0 -59
- package/lib/execute.d.ts +0 -128
- package/lib/execute.d.ts.map +0 -1
- package/lib/execute.js +0 -376
- package/lib/execute.mjs +0 -365
- package/lib/extractImplicitTypes.d.ts +0 -6
- package/lib/extractImplicitTypes.d.ts.map +0 -1
- package/lib/extractImplicitTypes.js +0 -246
- package/lib/extractImplicitTypes.mjs +0 -233
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/home/freiksenet/work/graphitation/packages/supermassive/src/__tests__/index.test.ts":"1","/home/freiksenet/work/graphitation/packages/supermassive/src/ast/TypedAST.ts":"2","/home/freiksenet/work/graphitation/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts":"3","/home/freiksenet/work/graphitation/packages/supermassive/src/ast/addTypesToRequestDocument.ts":"4","/home/freiksenet/work/graphitation/packages/supermassive/src/collectFields.ts":"5","/home/freiksenet/work/graphitation/packages/supermassive/src/compiledQuery.ts":"6","/home/freiksenet/work/graphitation/packages/supermassive/src/execute.ts":"7","/home/freiksenet/work/graphitation/packages/supermassive/src/extractImplicitTypes.ts":"8","/home/freiksenet/work/graphitation/packages/supermassive/src/index.ts":"9","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/Maybe.ts":"10","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/ObjMap.ts":"11","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/Path.ts":"12","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/PromiseOrValue.ts":"13","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/devAssert.ts":"14","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/didYouMean.ts":"15","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/identityFunc.ts":"16","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/inspect.ts":"17","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/instanceOf.ts":"18","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/invariant.ts":"19","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/isAsyncIterable.ts":"20","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/isIterableObject.ts":"21","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/isObjectLike.ts":"22","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/isPromise.ts":"23","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/keyMap.ts":"24","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/keyValMap.ts":"25","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/mapValue.ts":"26","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/memoize3.ts":"27","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/naturalCompare.ts":"28","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/printPathArray.ts":"29","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/promiseForObject.ts":"30","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/promiseReduce.ts":"31","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/suggestionList.ts":"32","/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/toObjMap.ts":"33","/home/freiksenet/work/graphitation/packages/supermassive/src/types.ts":"34","/home/freiksenet/work/graphitation/packages/supermassive/src/utilities/typeNameFromAST.ts":"35","/home/freiksenet/work/graphitation/packages/supermassive/src/values.ts":"36"},{"size":3633,"mtime":1633682073513,"results":"37","hashOfConfig":"38"},{"size":14345,"mtime":1633336297415,"results":"39","hashOfConfig":"38"},{"size":5291,"mtime":1633336274575,"results":"40","hashOfConfig":"38"},{"size":2186,"mtime":1633336297415,"results":"41","hashOfConfig":"38"},{"size":3928,"mtime":1633336297415,"results":"42","hashOfConfig":"38"},{"size":3431,"mtime":1633681213683,"results":"43","hashOfConfig":"38"},{"size":27627,"mtime":1633682313353,"results":"44","hashOfConfig":"38"},{"size":4073,"mtime":1633336297415,"results":"45","hashOfConfig":"38"},{"size":217,"mtime":1633680984513,"results":"46","hashOfConfig":"38"},{"size":134,"mtime":1633336297395,"results":"47","hashOfConfig":"38"},{"size":277,"mtime":1633336297395,"results":"48","hashOfConfig":"38"},{"size":711,"mtime":1633336297395,"results":"49","hashOfConfig":"38"},{"size":48,"mtime":1633336297395,"results":"50","hashOfConfig":"38"},{"size":269,"mtime":1633336297395,"results":"51","hashOfConfig":"38"},{"size":1038,"mtime":1633336297395,"results":"52","hashOfConfig":"38"},{"size":108,"mtime":1633336297395,"results":"53","hashOfConfig":"38"},{"size":2797,"mtime":1633336297395,"results":"54","hashOfConfig":"38"},{"size":2294,"mtime":1633336297395,"results":"55","hashOfConfig":"38"},{"size":357,"mtime":1633336297395,"results":"56","hashOfConfig":"38"},{"size":325,"mtime":1633336297395,"results":"57","hashOfConfig":"38"},{"size":778,"mtime":1633336297395,"results":"58","hashOfConfig":"38"},{"size":278,"mtime":1633336297395,"results":"59","hashOfConfig":"38"},{"size":227,"mtime":1633336297395,"results":"60","hashOfConfig":"38"},{"size":921,"mtime":1633336297395,"results":"61","hashOfConfig":"38"},{"size":764,"mtime":1633336297395,"results":"62","hashOfConfig":"38"},{"size":441,"mtime":1633336297395,"results":"63","hashOfConfig":"38"},{"size":821,"mtime":1633336297395,"results":"64","hashOfConfig":"38"},{"size":1314,"mtime":1633336297395,"results":"65","hashOfConfig":"38"},{"size":253,"mtime":1633336297395,"results":"66","hashOfConfig":"38"},{"size":650,"mtime":1633336297395,"results":"67","hashOfConfig":"38"},{"size":803,"mtime":1633336297395,"results":"68","hashOfConfig":"38"},{"size":3938,"mtime":1633336297395,"results":"69","hashOfConfig":"38"},{"size":503,"mtime":1633336297395,"results":"70","hashOfConfig":"38"},{"size":2140,"mtime":1633336297415,"results":"71","hashOfConfig":"38"},{"size":308,"mtime":1633336297415,"results":"72","hashOfConfig":"38"},{"size":9317,"mtime":1633681340393,"results":"73","hashOfConfig":"38"},{"filePath":"74","messages":"75","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1cj2clg",{"filePath":"76","messages":"77","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"78","messages":"79","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"80","messages":"81","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"82","messages":"83","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"84","messages":"85","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"86","messages":"87","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"88","messages":"89","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"90","messages":"91","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"92","messages":"93","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"94","messages":"95","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"96","messages":"97","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"98","messages":"99","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"100","messages":"101","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"102","messages":"103","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"104","messages":"105","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"106","messages":"107","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"108","messages":"109","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"112","messages":"113","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"114","messages":"115","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"118","messages":"119","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"120","messages":"121","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"124","messages":"125","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"126","messages":"127","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"130","messages":"131","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"132","messages":"133","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"136","messages":"137","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"138","messages":"139","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"142","messages":"143","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"144","messages":"145","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/freiksenet/work/graphitation/packages/supermassive/src/__tests__/index.test.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/ast/TypedAST.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/ast/addTypesToRequestDocument.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/collectFields.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/compiledQuery.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/execute.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/extractImplicitTypes.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/index.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/Maybe.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/ObjMap.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/Path.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/PromiseOrValue.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/devAssert.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/didYouMean.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/identityFunc.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/inspect.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/instanceOf.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/invariant.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/isAsyncIterable.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/isIterableObject.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/isObjectLike.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/isPromise.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/keyMap.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/keyValMap.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/mapValue.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/memoize3.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/naturalCompare.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/printPathArray.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/promiseForObject.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/promiseReduce.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/suggestionList.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/jsutils/toObjMap.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/types.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/utilities/typeNameFromAST.ts",[],"/home/freiksenet/work/graphitation/packages/supermassive/src/values.ts",[]]
|
|
1
|
+
[{"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/execute.test.ts":"1","/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/extractImplicitTypes.test.ts":"2","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/TypedAST.ts":"3","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts":"4","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/addTypesToRequestDocument.ts":"5","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/index.ts":"6","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/nice-benchmark.ts":"7","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/index.ts":"8","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/models.ts":"9","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/resolvers.ts":"10","/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/__tests__/typeDefsToImplicitResolvers.test.ts":"11","/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/supermassive.ts":"12","/home/runner/work/graphitation/graphitation/packages/supermassive/src/collectFields.ts":"13","/home/runner/work/graphitation/graphitation/packages/supermassive/src/compiledQuery.ts":"14","/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithSchema.ts":"15","/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithoutSchema.ts":"16","/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesRuntime.ts":"17","/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesToTypescript.ts":"18","/home/runner/work/graphitation/graphitation/packages/supermassive/src/index.ts":"19","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Maybe.ts":"20","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/ObjMap.ts":"21","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Path.ts":"22","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/PromiseOrValue.ts":"23","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/devAssert.ts":"24","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/didYouMean.ts":"25","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/identityFunc.ts":"26","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/inspect.ts":"27","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/instanceOf.ts":"28","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/invariant.ts":"29","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isAsyncIterable.ts":"30","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isIterableObject.ts":"31","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isObjectLike.ts":"32","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isPromise.ts":"33","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyMap.ts":"34","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyValMap.ts":"35","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/mapValue.ts":"36","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/memoize3.ts":"37","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/naturalCompare.ts":"38","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/printPathArray.ts":"39","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseForObject.ts":"40","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseReduce.ts":"41","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/suggestionList.ts":"42","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/toObjMap.ts":"43","/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/annotateDocumentGraphQLTransform.ts":"44","/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/transformerTestUtils.ts":"45","/home/runner/work/graphitation/graphitation/packages/supermassive/src/types.ts":"46","/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/typeNameFromAST.ts":"47","/home/runner/work/graphitation/graphitation/packages/supermassive/src/values.ts":"48"},{"size":4277,"mtime":1640261301657,"results":"49","hashOfConfig":"50"},{"size":3025,"mtime":1640261301657,"results":"51","hashOfConfig":"50"},{"size":14345,"mtime":1640261301657,"results":"52","hashOfConfig":"50"},{"size":5291,"mtime":1640261301657,"results":"53","hashOfConfig":"50"},{"size":2186,"mtime":1640261301657,"results":"54","hashOfConfig":"50"},{"size":3145,"mtime":1640261301657,"results":"55","hashOfConfig":"50"},{"size":712,"mtime":1640261301657,"results":"56","hashOfConfig":"50"},{"size":381,"mtime":1640261301657,"results":"57","hashOfConfig":"50"},{"size":128,"mtime":1640261301657,"results":"58","hashOfConfig":"50"},{"size":9598,"mtime":1640261301657,"results":"59","hashOfConfig":"50"},{"size":846,"mtime":1640261301657,"results":"60","hashOfConfig":"50"},{"size":1650,"mtime":1640261301657,"results":"61","hashOfConfig":"50"},{"size":3913,"mtime":1640261301657,"results":"62","hashOfConfig":"50"},{"size":3431,"mtime":1640261301657,"results":"63","hashOfConfig":"50"},{"size":1387,"mtime":1640261301657,"results":"64","hashOfConfig":"50"},{"size":26993,"mtime":1640261301657,"results":"65","hashOfConfig":"50"},{"size":3998,"mtime":1640261301657,"results":"66","hashOfConfig":"50"},{"size":10386,"mtime":1640261301657,"results":"67","hashOfConfig":"50"},{"size":457,"mtime":1640261301657,"results":"68","hashOfConfig":"50"},{"size":134,"mtime":1640261301657,"results":"69","hashOfConfig":"50"},{"size":277,"mtime":1640261301657,"results":"70","hashOfConfig":"50"},{"size":711,"mtime":1640261301657,"results":"71","hashOfConfig":"50"},{"size":48,"mtime":1640261301657,"results":"72","hashOfConfig":"50"},{"size":269,"mtime":1640261301657,"results":"73","hashOfConfig":"50"},{"size":1038,"mtime":1640261301657,"results":"74","hashOfConfig":"50"},{"size":108,"mtime":1640261301657,"results":"75","hashOfConfig":"50"},{"size":2797,"mtime":1640261301657,"results":"76","hashOfConfig":"50"},{"size":2294,"mtime":1640261301657,"results":"77","hashOfConfig":"50"},{"size":357,"mtime":1640261301657,"results":"78","hashOfConfig":"50"},{"size":325,"mtime":1640261301657,"results":"79","hashOfConfig":"50"},{"size":778,"mtime":1640261301657,"results":"80","hashOfConfig":"50"},{"size":278,"mtime":1640261301657,"results":"81","hashOfConfig":"50"},{"size":227,"mtime":1640261301657,"results":"82","hashOfConfig":"50"},{"size":921,"mtime":1640261301657,"results":"83","hashOfConfig":"50"},{"size":764,"mtime":1640261301657,"results":"84","hashOfConfig":"50"},{"size":441,"mtime":1640261301657,"results":"85","hashOfConfig":"50"},{"size":821,"mtime":1640261301657,"results":"86","hashOfConfig":"50"},{"size":1314,"mtime":1640261301657,"results":"87","hashOfConfig":"50"},{"size":253,"mtime":1640261301657,"results":"88","hashOfConfig":"50"},{"size":650,"mtime":1640261301657,"results":"89","hashOfConfig":"50"},{"size":803,"mtime":1640261301657,"results":"90","hashOfConfig":"50"},{"size":3938,"mtime":1640261301657,"results":"91","hashOfConfig":"50"},{"size":503,"mtime":1640261301657,"results":"92","hashOfConfig":"50"},{"size":495,"mtime":1640261301657,"results":"93","hashOfConfig":"50"},{"size":6644,"mtime":1640261301657,"results":"94","hashOfConfig":"50"},{"size":3414,"mtime":1640261301657,"results":"95","hashOfConfig":"50"},{"size":308,"mtime":1640261301657,"results":"96","hashOfConfig":"50"},{"size":9234,"mtime":1640261301657,"results":"97","hashOfConfig":"50"},{"filePath":"98","messages":"99","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"19kgiu3",{"filePath":"100","messages":"101","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"102","messages":"103","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"104","messages":"105","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"106","messages":"107","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"108","messages":"109","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"112","messages":"113","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"114","messages":"115","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"118","messages":"119","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"120","messages":"121","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"124","messages":"125","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"126","messages":"127","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"130","messages":"131","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"132","messages":"133","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"136","messages":"137","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"138","messages":"139","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"142","messages":"143","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"144","messages":"145","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"148","messages":"149","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"150","messages":"151","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"154","messages":"155","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"160","messages":"161","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"166","messages":"167","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"168","messages":"169","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"172","messages":"173","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"184","messages":"185","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"190","messages":"191","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/execute.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/extractImplicitTypes.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/TypedAST.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/addTypesToRequestDocument.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/nice-benchmark.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/models.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/resolvers.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/__tests__/typeDefsToImplicitResolvers.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/supermassive.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/collectFields.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/compiledQuery.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithoutSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesRuntime.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesToTypescript.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Maybe.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/ObjMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Path.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/PromiseOrValue.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/devAssert.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/didYouMean.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/identityFunc.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/inspect.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/instanceOf.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/invariant.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isAsyncIterable.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isIterableObject.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isObjectLike.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isPromise.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyValMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/mapValue.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/memoize3.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/naturalCompare.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/printPathArray.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseForObject.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseReduce.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/suggestionList.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/toObjMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/annotateDocumentGraphQLTransform.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/transformerTestUtils.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/types.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/typeNameFromAST.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/values.ts",[]]
|
package/CHANGELOG.json
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@graphitation/supermassive",
|
|
3
|
+
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Thu, 23 Dec 2021 12:10:26 GMT",
|
|
6
|
+
"tag": "@graphitation/supermassive_v0.4.2",
|
|
7
|
+
"version": "0.4.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "mnovikov@microsoft.com",
|
|
12
|
+
"package": "@graphitation/supermassive",
|
|
13
|
+
"commit": "50a46ca3ff490d63949a5e77949b5269d7c4ab6a",
|
|
14
|
+
"comment": "Fix require in supermassive cli"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Thu, 23 Dec 2021 11:32:16 GMT",
|
|
21
|
+
"tag": "@graphitation/supermassive_v0.4.1",
|
|
22
|
+
"version": "0.4.1",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "mnovikov@microsoft.com",
|
|
27
|
+
"package": "@graphitation/supermassive",
|
|
28
|
+
"commit": "29d360b06e346a1f04fd20826fd2005da9f15a74",
|
|
29
|
+
"comment": "Add graphql-js notice"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Thu, 23 Dec 2021 11:31:14 GMT",
|
|
36
|
+
"tag": "@graphitation/supermassive_v0.4.0",
|
|
37
|
+
"version": "0.4.0",
|
|
38
|
+
"comments": {
|
|
39
|
+
"minor": [
|
|
40
|
+
{
|
|
41
|
+
"author": "mnovikov@microsoft.com",
|
|
42
|
+
"package": "@graphitation/supermassive",
|
|
43
|
+
"commit": "d3baa5116dc93bba4e38e5beb7f23c3edbbb0680",
|
|
44
|
+
"comment": "Added proper mjs builds (bump for main release)"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"date": "Tue, 14 Dec 2021 10:13:54 GMT",
|
|
51
|
+
"tag": "@graphitation/supermassive_v0.3.0",
|
|
52
|
+
"version": "0.3.0",
|
|
53
|
+
"comments": {
|
|
54
|
+
"minor": [
|
|
55
|
+
{
|
|
56
|
+
"author": "mnovikov@microsoft.com",
|
|
57
|
+
"package": "@graphitation/supermassive",
|
|
58
|
+
"commit": "fad5f1bc587470a2c85bf5763bb102a179a592b2",
|
|
59
|
+
"comment": "Support ESM in distro packages"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"date": "Thu, 09 Dec 2021 14:41:56 GMT",
|
|
66
|
+
"tag": "@graphitation/supermassive_v0.2.0",
|
|
67
|
+
"version": "0.2.0",
|
|
68
|
+
"comments": {
|
|
69
|
+
"none": [
|
|
70
|
+
{
|
|
71
|
+
"comment": "Expand on what/why/how",
|
|
72
|
+
"author": "eloy.de.enige@gmail.com",
|
|
73
|
+
"commit": "7db88d6e25f7de28b92750c3e1908b5096078e3e",
|
|
74
|
+
"package": "@graphitation/supermassive"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"date": "Fri, 26 Nov 2021 15:43:37 GMT",
|
|
81
|
+
"tag": "@graphitation/supermassive_v0.2.0",
|
|
82
|
+
"version": "0.2.0",
|
|
83
|
+
"comments": {
|
|
84
|
+
"minor": [
|
|
85
|
+
{
|
|
86
|
+
"comment": "Updated supermassive to be more suitable for usage",
|
|
87
|
+
"author": "mnovikov@microsoft.com",
|
|
88
|
+
"commit": "640e0b5d7ae7a8338346dd8b88a7dda7b2d9a060",
|
|
89
|
+
"package": "@graphitation/supermassive"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"date": "Tue, 26 Oct 2021 21:09:29 GMT",
|
|
96
|
+
"tag": "@graphitation/supermassive_v0.1.3",
|
|
97
|
+
"version": "0.1.3",
|
|
98
|
+
"comments": {
|
|
99
|
+
"patch": [
|
|
100
|
+
{
|
|
101
|
+
"comment": "Bump @graphitation/graphql-js-tag to v0.5.5",
|
|
102
|
+
"author": "modevold@microsoft.com",
|
|
103
|
+
"commit": "6fbd717cb21f2e9f49ddca58e0365b5381358b46",
|
|
104
|
+
"package": "@graphitation/supermassive"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"date": "Tue, 26 Oct 2021 12:46:12 GMT",
|
|
111
|
+
"tag": "@graphitation/supermassive_v0.1.2",
|
|
112
|
+
"version": "0.1.2",
|
|
113
|
+
"comments": {
|
|
114
|
+
"patch": [
|
|
115
|
+
{
|
|
116
|
+
"comment": "Align graphql dependency to version ^15.0.0 across packages",
|
|
117
|
+
"author": "modevold@microsoft.com",
|
|
118
|
+
"commit": "d8b94fe7725a968abfac81953b97a879b2bdaeb3",
|
|
119
|
+
"package": "@graphitation/supermassive"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"date": "Mon, 04 Oct 2021 13:48:04 GMT",
|
|
126
|
+
"tag": "@graphitation/supermassive_v0.1.1",
|
|
127
|
+
"version": "0.1.1",
|
|
128
|
+
"comments": {
|
|
129
|
+
"patch": [
|
|
130
|
+
{
|
|
131
|
+
"comment": "Bump @graphitation/graphql-js-tag to v0.5.4",
|
|
132
|
+
"author": "eloy.de.enige@gmail.com",
|
|
133
|
+
"commit": "ceb24aa25210090e38251be53d010d75abdad9ba",
|
|
134
|
+
"package": "@graphitation/supermassive"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"date": "Thu, 24 Jun 2021 12:32:15 GMT",
|
|
141
|
+
"tag": "@graphitation/supermassive_v0.1.0",
|
|
142
|
+
"version": "0.1.0",
|
|
143
|
+
"comments": {
|
|
144
|
+
"none": [
|
|
145
|
+
{
|
|
146
|
+
"comment": "Test and benchmark setup for supermassive",
|
|
147
|
+
"author": "eloy.de.enige@gmail.com",
|
|
148
|
+
"commit": "ebbad29ec11dae814bbe8c2e492d1baf5382c138",
|
|
149
|
+
"package": "@graphitation/supermassive"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,44 @@
|
|
|
1
1
|
# Change Log - @graphitation/supermassive
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 23 Dec 2021 12:10:26 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.4.2
|
|
8
|
+
|
|
9
|
+
Thu, 23 Dec 2021 12:10:26 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Fix require in supermassive cli (mnovikov@microsoft.com)
|
|
14
|
+
|
|
15
|
+
## 0.4.1
|
|
16
|
+
|
|
17
|
+
Thu, 23 Dec 2021 11:32:16 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Add graphql-js notice (mnovikov@microsoft.com)
|
|
22
|
+
|
|
23
|
+
## 0.4.0
|
|
24
|
+
|
|
25
|
+
Thu, 23 Dec 2021 11:31:14 GMT
|
|
26
|
+
|
|
27
|
+
### Minor changes
|
|
28
|
+
|
|
29
|
+
- Added proper mjs builds (bump for main release) (mnovikov@microsoft.com)
|
|
30
|
+
|
|
31
|
+
## 0.3.0
|
|
32
|
+
|
|
33
|
+
Tue, 14 Dec 2021 10:13:54 GMT
|
|
34
|
+
|
|
35
|
+
### Minor changes
|
|
36
|
+
|
|
37
|
+
- Support ESM in distro packages (mnovikov@microsoft.com)
|
|
38
|
+
|
|
7
39
|
## 0.2.0
|
|
8
40
|
|
|
9
|
-
Fri, 26 Nov 2021 15:43:
|
|
41
|
+
Fri, 26 Nov 2021 15:43:37 GMT
|
|
10
42
|
|
|
11
43
|
### Minor changes
|
|
12
44
|
|
package/NOTICE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
NOTICES
|
|
2
|
+
|
|
3
|
+
This repository incorporates material as listed below or described in the code.
|
|
4
|
+
|
|
5
|
+
graphql-js
|
|
6
|
+
|
|
7
|
+
MIT License
|
|
8
|
+
|
|
9
|
+
Copyright (c) GraphQL Contributors
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,15 +1,189 @@
|
|
|
1
1
|
# @graphitation/supermassive
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
_[Pack more performance into smaller space](https://en.wikipedia.org/wiki/Supermassive_black_hole)_
|
|
4
4
|
|
|
5
|
-
Supermassive is lightweight schema-less GraphQL executor and query build-time compiler.
|
|
5
|
+
Supermassive is a lightweight schema-less GraphQL executor and query build-time compiler.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## What
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Supermassive's goals are to provide a solution with the following optimizations for when all GraphQL operations (queries, mutations, subscriptions) needed by the user-experiences are statically known at build-time:
|
|
10
|
+
|
|
11
|
+
- Bundle size of production targets needs to be as small as possible.
|
|
12
|
+
- Performance is favored over runtime validation.
|
|
13
|
+
|
|
14
|
+
Such is the case in our scenarios, where our schema lives entirely in the client application and some of these applications have very little to no GraphQL needs [yet] other than to suffice the needs of a single or few components.
|
|
15
|
+
|
|
16
|
+
## Why
|
|
17
|
+
|
|
18
|
+
Running a GraphQL executor can be an expensive exercise. The JavaScript community has the good fortune of having the official reference implementation of the GraphQL specification being implemented in JavaScript, namely [graphql-js](http://github.com/graphql/graphql-js). Inevitably this means that most general purpose GraphQL libraries in the JavaScript ecosystem end up wrapping it or otherwise rely on it. However, graphql-js' goal is specifically to be an _all-encompassing_ implementation used for reference needs, _not_ to be an optimized solution for specific use-cases.
|
|
19
|
+
|
|
20
|
+
## How
|
|
21
|
+
|
|
22
|
+
Consider a GraphQL schema. It is typically a sizeable chunk of data, both in terms of type/field definition metadata as well as associated field-resolvers and _their_ code dependencies. Statically knowing all GraphQL operations allows us to reduce the bundle size to a minimum by [tree-shaking](https://en.wikipedia.org/wiki/Tree_shaking) all the definition metadata not required by any of the given operations. A JavaScript code bundler can in turn ensure only that code which is needed by the remaining field-resolvers is included in the production bundle. This means that the process is entirely dependency driven by needs expressed by the user-experiences, rather than requiring blunt manual configuration.
|
|
23
|
+
|
|
24
|
+
Similarly, the GraphQL operations themselves, described using e.g. [GraphQL SDL](https://graphql.org/learn/schema/) or [`graphql-js` AST](https://github.com/graphql/graphql-js/blob/main/src/language/ast.ts), can incur quite some overhead as operations and number of operations grow. Eliminating these from the bundles can save size as well as runtime processing.
|
|
25
|
+
|
|
26
|
+
## Roadmap
|
|
27
|
+
|
|
28
|
+
### Phase 1
|
|
29
|
+
|
|
30
|
+
In this initial phase, we will achieve the goal of tree-shaking the schema definitions. We do this by inlining required metadata into the documents that describe the operations, after which they can be executed with the need of the entire schema. This means overall bundle size will be decreased when only a subset of the schema is actually used, which pays off significantly when a host application introduces its first component(s) leveraging GraphQL.
|
|
31
|
+
|
|
32
|
+
Consider a GraphQL operation like the following:
|
|
33
|
+
|
|
34
|
+
```graphql
|
|
35
|
+
query CurrentUserNameQuery {
|
|
36
|
+
me {
|
|
37
|
+
name
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
This would lead to the following [conceptual] tree-shaking after compilation of the schema:
|
|
43
|
+
|
|
44
|
+
```diff
|
|
45
|
+
type Query {
|
|
46
|
+
me: User!
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
type User {
|
|
50
|
+
name: String!
|
|
51
|
+
- presence: Presence!
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
-type Presence {
|
|
55
|
+
- availability: PresenceAvailability!
|
|
56
|
+
-}
|
|
57
|
+
-
|
|
58
|
+
-enum PresenceAvailability {
|
|
59
|
+
- AVAILABLE
|
|
60
|
+
- BUSY
|
|
61
|
+
- OFFLINE
|
|
62
|
+
-}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
...and the field-resolver map:
|
|
66
|
+
|
|
67
|
+
```diff
|
|
68
|
+
import { getUser } from "user-service";
|
|
69
|
+
-import { getUserPresence } from "presence-service";
|
|
70
|
+
|
|
71
|
+
const resolvers = {
|
|
72
|
+
Query: {
|
|
73
|
+
me: async (_source, _args, context) => getUser(context.currentUserId),
|
|
74
|
+
},
|
|
75
|
+
User: {
|
|
76
|
+
name: (source) => source.name,
|
|
77
|
+
- presence: async (source) => getUserPresence(source.id),
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Phase 2
|
|
83
|
+
|
|
84
|
+
In this phase, we will expand on the previous phase by ahead-of-time compiling the resolution of the operations, their field-resolvers, and invocation thereof into JavaScript code. This essentially does away with any need for AST of the operation during execution. This means execution will be faster as no more generic lookups and checks need to be performed.
|
|
85
|
+
|
|
86
|
+
Consider the GraphQL operation shown in the previous phase, typical generic execution (as [described in the specification](https://spec.graphql.org/June2018/#sec-Execution)) would look something like the following recursive pseudo-code:
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
function visitSelectionSet(parentType, selectionSet, parentSource) {
|
|
90
|
+
const result = {};
|
|
91
|
+
for (const selection of selectionSet.selections) {
|
|
92
|
+
switch (selection.kind) {
|
|
93
|
+
case "Field": {
|
|
94
|
+
const type = getType(selection.type.name);
|
|
95
|
+
if (isScalarType(type)) {
|
|
96
|
+
result[selection.name] = parentType.invokeFieldResolver(
|
|
97
|
+
selection.name,
|
|
98
|
+
parentSource
|
|
99
|
+
);
|
|
100
|
+
} else if (isObjectType(type)) {
|
|
101
|
+
const source = parentType.invokeFieldResolver(
|
|
102
|
+
selection.name,
|
|
103
|
+
parentSource
|
|
104
|
+
);
|
|
105
|
+
result[selection.name] = visitSelectionSet(
|
|
106
|
+
type,
|
|
107
|
+
selection.selectionSet,
|
|
108
|
+
source
|
|
109
|
+
);
|
|
110
|
+
} else {
|
|
111
|
+
// ...
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
// ...
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return result;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function execute(query, rootSource = {}) {
|
|
121
|
+
return visitSelectionSet(getType("Query"), query.selectionSet, rootSource);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
execute(
|
|
125
|
+
parse(`
|
|
126
|
+
query CurrentUserNameQuery {
|
|
127
|
+
me {
|
|
128
|
+
name
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
`)
|
|
132
|
+
);
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Whereas a compiled version of the specific operation would look something like the following:
|
|
136
|
+
|
|
137
|
+
```ts
|
|
138
|
+
function CurrentUserNameQuery(rootSource = {}) {
|
|
139
|
+
const meSource = QueryType.fieldResolvers["me"](rootSource);
|
|
140
|
+
const result = {
|
|
141
|
+
me: {
|
|
142
|
+
name: UserType.fieldResolvers["name"](meSource),
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
return result;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
CurrentUserNameQuery();
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Phase 3
|
|
152
|
+
|
|
153
|
+
In this final phase, we will make it possible to replace the operations at runtime using a simple identifier, thus allowing GraphQL clients to execute their operations using these identifiers that they obtain through a concept known as ["persisted queries"](https://relay.dev/docs/guides/persisted-queries/). This means that GraphQL clients that do not require graphql-js AST _themselves_ to operate, such as Relay, will be able to greatly reduce the size of the User-Experience bundles by entirely eliminating the document in favour of a short identifier.
|
|
154
|
+
|
|
155
|
+
Again, considering the above GraphQL operation, a React component needing that data would include the GraphQL document in its bundle and look something like the following:
|
|
156
|
+
|
|
157
|
+
```tsx
|
|
158
|
+
function CurrentUser() {
|
|
159
|
+
const data = useQuery({
|
|
160
|
+
document: `
|
|
161
|
+
query CurrentUserNameQuery {
|
|
162
|
+
me {
|
|
163
|
+
name
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
`,
|
|
167
|
+
});
|
|
168
|
+
return <div>User: {data.me.name}</div>;
|
|
169
|
+
}
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
However, now that we can compile the operation to code ahead-of-time, and no longer need the operation AST during execution, we can eliminate the document entirely and compile the component to refer to the compiled version of the document instead:
|
|
173
|
+
|
|
174
|
+
```tsx
|
|
175
|
+
function CurrentUser() {
|
|
176
|
+
const data = useQuery({
|
|
177
|
+
persistedDocumentId: "CurrentUserNameQuery",
|
|
178
|
+
});
|
|
179
|
+
return <div>User: {data.me.name}</div>;
|
|
180
|
+
}
|
|
181
|
+
```
|
|
10
182
|
|
|
11
183
|
## Usage
|
|
12
184
|
|
|
185
|
+
There are 3 main parts of Supermassive - the executor, query annotator and implicit resolver extractor. Executor is the part that actually runs the queries. It takes resolvers object instead of schema and annotated documents instead of normal documents. Query annotator processes query to include type information inside them. It can be ran as part of query extraction stage in Relay Compiler or eg in `@graphitation/graphql-js-tag`. Implicit resolver extractor writes out resolvers for types that are only implicitly defined in GraphQL SDL, like Unions or Input Objects. It generates typescript file with extracted object that can be merged with the rest of the resolvers.
|
|
186
|
+
|
|
13
187
|
### Executor
|
|
14
188
|
|
|
15
189
|
Two functions are provided - `executeWithSchema` and `executeWithoutSchema`. They attempt to match `graphql-js`'s `execute` function parameters. `executeWithSchema` fully matches it and is meant for development or testing. It does the transform and resolver extraction in runtime. `executeWithoutSchema` relies on those being done during compile/bundling time.
|
|
@@ -40,7 +214,7 @@ function executeWithSchema(args: ExecutionWithSchemaArgs): PromiseOrValue<Execut
|
|
|
40
214
|
|
|
41
215
|
### Transform
|
|
42
216
|
|
|
43
|
-
`addTypesToRequestDocument` converts untyped graphql-js AST node into a
|
|
217
|
+
`addTypesToRequestDocument` converts untyped graphql-js AST node into a Supermassive typed one.
|
|
44
218
|
|
|
45
219
|
```js
|
|
46
220
|
function addTypesToRequestDocument(
|
|
@@ -14,6 +14,8 @@ var __objSpread = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
+
|
|
18
|
+
// src/ast/addTypesToRequestDocument.ts
|
|
17
19
|
import {
|
|
18
20
|
isListType,
|
|
19
21
|
isNamedType,
|
|
@@ -23,7 +25,7 @@ import {
|
|
|
23
25
|
visit,
|
|
24
26
|
visitWithTypeInfo
|
|
25
27
|
} from "graphql";
|
|
26
|
-
export * from "./TypedAST";
|
|
28
|
+
export * from "./TypedAST.mjs";
|
|
27
29
|
function addTypesToRequestDocument(schema, document) {
|
|
28
30
|
const typeInfo = new TypeInfo(schema);
|
|
29
31
|
return visit(document, visitWithTypeInfo(typeInfo, {
|
package/lib/benchmarks/index.mjs
CHANGED
|
@@ -18,23 +18,25 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
+
|
|
22
|
+
// src/benchmarks/index.ts
|
|
21
23
|
import fs from "fs";
|
|
22
24
|
import path from "path";
|
|
23
|
-
import NiceBenchmark from "./nice-benchmark";
|
|
24
|
-
import schema from "./swapi-schema";
|
|
25
|
-
import resolvers from "./swapi-schema/resolvers";
|
|
26
|
-
import models from "./swapi-schema/models";
|
|
25
|
+
import NiceBenchmark from "./nice-benchmark.mjs";
|
|
26
|
+
import schema from "./swapi-schema.mjs";
|
|
27
|
+
import resolvers from "./swapi-schema/resolvers.mjs";
|
|
28
|
+
import models from "./swapi-schema/models.mjs";
|
|
27
29
|
import {graphql, execute as graphqlExecute, parse} from "graphql";
|
|
28
30
|
import {compileQuery, isCompiledQuery} from "graphql-jit";
|
|
29
|
-
import {executeWithoutSchema as supermassiveExecute} from "../executeWithoutSchema";
|
|
30
|
-
import {addTypesToRequestDocument} from "../ast/addTypesToRequestDocument";
|
|
31
|
-
|
|
31
|
+
import {executeWithoutSchema as supermassiveExecute} from "../executeWithoutSchema.mjs";
|
|
32
|
+
import {addTypesToRequestDocument} from "../ast/addTypesToRequestDocument.mjs";
|
|
33
|
+
var query = fs.readFileSync(path.join(__dirname, "./fixtures/query1.graphql"), {
|
|
32
34
|
encoding: "utf-8"
|
|
33
35
|
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
var parsedQuery = parse(query);
|
|
37
|
+
var compiledQuery = compileQuery(schema, parsedQuery);
|
|
38
|
+
var typeAnnotatedQuery = addTypesToRequestDocument(schema, parsedQuery);
|
|
39
|
+
var queryRunningSuite = new NiceBenchmark("Query Running");
|
|
38
40
|
queryRunningSuite.add("graphql-js - string queries", () => __async(void 0, null, function* () {
|
|
39
41
|
const result = yield graphql({
|
|
40
42
|
schema,
|
|
@@ -86,15 +88,15 @@ queryRunningSuite.add("supermassive - runtime schemaless", () => __async(void 0,
|
|
|
86
88
|
throw new Error("Stuff ain't executing");
|
|
87
89
|
}
|
|
88
90
|
}));
|
|
89
|
-
|
|
91
|
+
var queryParsingSuite = new NiceBenchmark("Query parsing");
|
|
90
92
|
queryParsingSuite.add("graphql-js", () => __async(void 0, null, function* () {
|
|
91
93
|
parse(query);
|
|
92
94
|
}));
|
|
93
|
-
|
|
95
|
+
var queryCompilingSuite = new NiceBenchmark("Query compiling");
|
|
94
96
|
queryCompilingSuite.add("graphql-jit", () => __async(void 0, null, function* () {
|
|
95
97
|
yield compileQuery(schema, parsedQuery);
|
|
96
98
|
}));
|
|
97
|
-
|
|
99
|
+
var queryAnnotationSuite = new NiceBenchmark("Query annotation");
|
|
98
100
|
queryAnnotationSuite.add("supermassive", () => {
|
|
99
101
|
addTypesToRequestDocument(schema, parsedQuery);
|
|
100
102
|
});
|
|
@@ -18,8 +18,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
+
|
|
22
|
+
// src/benchmarks/nice-benchmark.ts
|
|
21
23
|
import {Suite} from "benchmark";
|
|
22
|
-
|
|
24
|
+
var NiceBenchmark = class {
|
|
23
25
|
constructor(name) {
|
|
24
26
|
this.name = name;
|
|
25
27
|
this.suite = new Suite(name);
|
|
@@ -43,7 +45,8 @@ class NiceBenchmark {
|
|
|
43
45
|
this.suite.run(options);
|
|
44
46
|
});
|
|
45
47
|
}
|
|
46
|
-
}
|
|
48
|
+
};
|
|
49
|
+
var nice_benchmark_default = NiceBenchmark;
|
|
47
50
|
export {
|
|
48
|
-
|
|
51
|
+
nice_benchmark_default as default
|
|
49
52
|
};
|