@tinacms/graphql 0.59.4 → 0.59.7

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 CHANGED
@@ -1,5 +1,30 @@
1
1
  # tina-graphql
2
2
 
3
+ ## 0.59.7
4
+
5
+ ### Patch Changes
6
+
7
+ - c730fa1dd: fix: #1452: update indexDocument to handle adding new docs
8
+ - cd0f6f022: Do not resolve all documents in `getCollection` if it is not needed
9
+
10
+ ## 0.59.6
11
+
12
+ ### Patch Changes
13
+
14
+ - b399c734c: Fixes support for collection.templates in graphql
15
+
16
+ ## 0.59.5
17
+
18
+ ### Patch Changes
19
+
20
+ - 8ad8f03fd: Select field now validates when required is true.
21
+ - 04b7988d5: Some updates to the data layer POC work
22
+ - Don't attempt to put config files on to bridge if it's not supported
23
+ - Split logic for indexing all content vs a subset of files
24
+ - e3c41f69d: Fixed type for `required: true` on `type: "object"`
25
+ - f5390e841: Don't attempt to put config files on to bridge if it's not supported
26
+ - 32082e0b3: GraphQL number type is changed from "Int" to "Float"
27
+
3
28
  ## 0.59.4
4
29
 
5
30
  ### Patch Changes
@@ -43,6 +43,7 @@ export declare class Database {
43
43
  payload: {
44
44
  [key: string]: unknown;
45
45
  };
46
+ keepTemplateKey: boolean;
46
47
  }>;
47
48
  flush: (filepath: string) => Promise<string>;
48
49
  getLookup: (returnType: string) => Promise<LookupMapType>;
@@ -52,10 +53,16 @@ export declare class Database {
52
53
  getSchema: () => Promise<TinaSchema>;
53
54
  documentExists: (fullpath: unknown) => Promise<boolean>;
54
55
  query: (queryStrings: string[], hydrator: any) => Promise<object[]>;
55
- indexData: ({ graphQLSchema, tinaSchema, }: {
56
+ putConfigFiles: ({ graphQLSchema, tinaSchema, }: {
56
57
  graphQLSchema: DocumentNode;
57
58
  tinaSchema: TinaSchema;
58
59
  }) => Promise<void>;
60
+ indexContent: ({ graphQLSchema, tinaSchema, }: {
61
+ graphQLSchema: DocumentNode;
62
+ tinaSchema: TinaSchema;
63
+ }) => Promise<void>;
64
+ indexContentByPaths: (documentPaths: string[]) => Promise<void>;
65
+ _indexAllContent: () => Promise<void>;
59
66
  addToLookupMap: (lookup: LookupMapType) => Promise<void>;
60
67
  }
61
68
  export declare type LookupMapType = GlobalDocumentLookup | CollectionDocumentLookup | MultiCollectionDocumentLookup | MultiCollectionDocumentListLookup | CollectionDocumentListLookup | UnionDataLookup | NodeDocument;
@@ -68,7 +68,5 @@ export interface Store {
68
68
  * user's repo.
69
69
  */
70
70
  supportsIndexing(): boolean;
71
- put(filepath: string, data: object, options?: {
72
- includeTemplate?: boolean;
73
- }): Promise<void>;
71
+ put(filepath: string, data: object, keepTemplateKey?: boolean): Promise<void>;
74
72
  }