@suss/extractor 0.10.0 → 0.11.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/dist/index.cjs CHANGED
@@ -883,6 +883,9 @@ function buildGraphqlMetadataValue(raw) {
883
883
  if (raw.graphqlDeclaredContract !== void 0) {
884
884
  graphql.declaredContract = raw.graphqlDeclaredContract;
885
885
  }
886
+ if (raw.graphqlUnresolvedFragments !== void 0) {
887
+ graphql.unresolvedFragments = raw.graphqlUnresolvedFragments;
888
+ }
886
889
  if (raw.graphqlUnresolvedDocument !== void 0) {
887
890
  graphql.unresolvedDocument = raw.graphqlUnresolvedDocument;
888
891
  }
package/dist/index.d.cts CHANGED
@@ -1067,6 +1067,25 @@ interface PatternPack {
1067
1067
  importModule: string;
1068
1068
  importName: string;
1069
1069
  uriProperty: string;
1070
+ /**
1071
+ * How this constructor's cache option installs a fragment
1072
+ * registry, for the library whose client can supply fragment
1073
+ * definitions at run time. `cacheProperty` is the construction
1074
+ * option the cache is passed in, `cacheConstructor` the cache
1075
+ * class, and `registryProperty` the cache option that installs
1076
+ * the registry. The adapter reads every construction and records
1077
+ * whether a registry is configured, absent, or unreadable; a
1078
+ * construction it cannot read counts as unreadable, never as
1079
+ * absent.
1080
+ */
1081
+ fragmentRegistry?: {
1082
+ cacheProperty: string;
1083
+ cacheConstructor: {
1084
+ importModule: string;
1085
+ importName: string;
1086
+ };
1087
+ registryProperty: string;
1088
+ };
1070
1089
  }>;
1071
1090
  /**
1072
1091
  * Which service a client talks to, keyed by the endpoint the
@@ -1897,6 +1916,9 @@ interface RawCodeStructure {
1897
1916
  /** The extractor cannot derive this. An adapter that has the SDL and knows
1898
1917
  * which field the resolver serves fills it in. */
1899
1918
  graphqlDeclaredContract?: GraphqlDeclaredContract;
1919
+ /** Fragment spreads in `graphqlDocument` with no definition in it, so a
1920
+ * partially read document is marked rather than passed off as whole. */
1921
+ graphqlUnresolvedFragments?: string[];
1900
1922
  /** Set when a document reference was recognized but its body could not be
1901
1923
  * read, so an unreadable document is accounted for instead of dropped. */
1902
1924
  graphqlUnresolvedDocument?: {
package/dist/index.d.ts CHANGED
@@ -1067,6 +1067,25 @@ interface PatternPack {
1067
1067
  importModule: string;
1068
1068
  importName: string;
1069
1069
  uriProperty: string;
1070
+ /**
1071
+ * How this constructor's cache option installs a fragment
1072
+ * registry, for the library whose client can supply fragment
1073
+ * definitions at run time. `cacheProperty` is the construction
1074
+ * option the cache is passed in, `cacheConstructor` the cache
1075
+ * class, and `registryProperty` the cache option that installs
1076
+ * the registry. The adapter reads every construction and records
1077
+ * whether a registry is configured, absent, or unreadable; a
1078
+ * construction it cannot read counts as unreadable, never as
1079
+ * absent.
1080
+ */
1081
+ fragmentRegistry?: {
1082
+ cacheProperty: string;
1083
+ cacheConstructor: {
1084
+ importModule: string;
1085
+ importName: string;
1086
+ };
1087
+ registryProperty: string;
1088
+ };
1070
1089
  }>;
1071
1090
  /**
1072
1091
  * Which service a client talks to, keyed by the endpoint the
@@ -1897,6 +1916,9 @@ interface RawCodeStructure {
1897
1916
  /** The extractor cannot derive this. An adapter that has the SDL and knows
1898
1917
  * which field the resolver serves fills it in. */
1899
1918
  graphqlDeclaredContract?: GraphqlDeclaredContract;
1919
+ /** Fragment spreads in `graphqlDocument` with no definition in it, so a
1920
+ * partially read document is marked rather than passed off as whole. */
1921
+ graphqlUnresolvedFragments?: string[];
1900
1922
  /** Set when a document reference was recognized but its body could not be
1901
1923
  * read, so an unreadable document is accounted for instead of dropped. */
1902
1924
  graphqlUnresolvedDocument?: {
package/dist/index.js CHANGED
@@ -841,6 +841,9 @@ function buildGraphqlMetadataValue(raw) {
841
841
  if (raw.graphqlDeclaredContract !== void 0) {
842
842
  graphql.declaredContract = raw.graphqlDeclaredContract;
843
843
  }
844
+ if (raw.graphqlUnresolvedFragments !== void 0) {
845
+ graphql.unresolvedFragments = raw.graphqlUnresolvedFragments;
846
+ }
844
847
  if (raw.graphqlUnresolvedDocument !== void 0) {
845
848
  graphql.unresolvedDocument = raw.graphqlUnresolvedDocument;
846
849
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suss/extractor",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "description": "Framework-agnostic extraction pipeline that turns raw extractions into suss behavioral summaries.",
6
6
  "keywords": [
@@ -45,7 +45,7 @@
45
45
  "typecheck": "tsc --noEmit"
46
46
  },
47
47
  "dependencies": {
48
- "@suss/behavioral-ir": "0.10.0"
48
+ "@suss/behavioral-ir": "0.11.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "tsup": "*",