@tinacms/graphql 0.59.2 → 0.59.6

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,42 @@
1
1
  # tina-graphql
2
2
 
3
+ ## 0.59.6
4
+
5
+ ### Patch Changes
6
+
7
+ - b399c734c: Fixes support for collection.templates in graphql
8
+
9
+ ## 0.59.5
10
+
11
+ ### Patch Changes
12
+
13
+ - 8ad8f03fd: Select field now validates when required is true.
14
+ - 04b7988d5: Some updates to the data layer POC work
15
+ - Don't attempt to put config files on to bridge if it's not supported
16
+ - Split logic for indexing all content vs a subset of files
17
+ - e3c41f69d: Fixed type for `required: true` on `type: "object"`
18
+ - f5390e841: Don't attempt to put config files on to bridge if it's not supported
19
+ - 32082e0b3: GraphQL number type is changed from "Int" to "Float"
20
+
21
+ ## 0.59.4
22
+
23
+ ### Patch Changes
24
+
25
+ - b66aefde1: Fixed issue where one could not add a title and then a bold text
26
+ - 35884152b: Adds and audit command that checks files for errors.
27
+ - 4948beec6: Fix issues with mdx code blocks and inline code nodes
28
+
29
+ ## 0.59.3
30
+
31
+ ### Patch Changes
32
+
33
+ - 34cd3a44a: Fix issue where frontmatter parser would return a Date object which would be cast to epoch format
34
+ - b006a5ab9: Added delete button to image field
35
+ - a324b9c37: Export utilities for working with the data layer
36
+ - 80732bd97: Create a @tinacms/datalayer package which houses the logic for data management for the GraphQL API. This simplifies the @tinacms/graphql package and allows for a clearer separation.
37
+ - 0bec208e2: validate the schema for `path` and `matches`
38
+ - 5c070a83f: feat: Add UI banner for when in localMode
39
+
3
40
  ## 0.59.2
4
41
 
5
42
  ### 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
  }
package/dist/index.d.ts CHANGED
@@ -13,28 +13,14 @@ limitations under the License.
13
13
  export { indexDB } from './build';
14
14
  export { resolve } from './resolve';
15
15
  export { createDatabase } from './database';
16
- export { GithubBridge } from './database/bridge/github';
17
- export { GithubStore } from './database/store/github';
18
- export { FilesystemBridge } from './database/bridge/filesystem';
19
- export { FilesystemStore } from './database/store/filesystem';
20
- export { MemoryStore } from './database/store/memory';
21
- export { LevelStore } from './database/store/level';
22
- export type { GithubManagerInit } from './database/bridge/github';
23
16
  import type { Database } from './database';
17
+ export type { Database } from './database';
18
+ export type { Store } from './database/store';
19
+ export type { Bridge } from './database/bridge';
20
+ export { sequential, assertShape } from './util';
21
+ export { stringifyFile, parseFile } from './database/util';
24
22
  export declare const buildSchema: (rootPath: string, database: Database) => Promise<import("graphql").GraphQLSchema>;
25
23
  import type { TinaCloudSchema as TinaCloudSchemaBase, TinaCloudCollection as TinaCloudCollectionBase, TinaCloudTemplateBase as TinaTemplate, TinaFieldBase } from './types';
26
- export declare const listBranches: ({ auth, owner, repo }: {
27
- auth: any;
28
- owner: any;
29
- repo: any;
30
- }) => Promise<import("@octokit/types").OctokitResponse<import("@octokit/types").ReposListBranchesResponseData>>;
31
- export declare const createBranch: ({ auth, owner, repo, name, baseBranch }: {
32
- auth: any;
33
- owner: any;
34
- repo: any;
35
- name: any;
36
- baseBranch: any;
37
- }) => Promise<import("@octokit/types").OctokitResponse<import("@octokit/types").GitCreateRefResponseData>>;
38
24
  export declare type TinaCloudSchema = TinaCloudSchemaBase<false>;
39
25
  export declare type TinaSchema = TinaCloudSchema;
40
26
  export declare type TinaCloudCollection = TinaCloudCollectionBase<false>;