@tinacms/graphql 0.59.1 → 0.59.5

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.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 8ad8f03fd: Select field now validates when required is true.
8
+ - 04b7988d5: Some updates to the data layer POC work
9
+ - Don't attempt to put config files on to bridge if it's not supported
10
+ - Split logic for indexing all content vs a subset of files
11
+ - e3c41f69d: Fixed type for `required: true` on `type: "object"`
12
+ - f5390e841: Don't attempt to put config files on to bridge if it's not supported
13
+ - 32082e0b3: GraphQL number type is changed from "Int" to "Float"
14
+
15
+ ## 0.59.4
16
+
17
+ ### Patch Changes
18
+
19
+ - b66aefde1: Fixed issue where one could not add a title and then a bold text
20
+ - 35884152b: Adds and audit command that checks files for errors.
21
+ - 4948beec6: Fix issues with mdx code blocks and inline code nodes
22
+
23
+ ## 0.59.3
24
+
25
+ ### Patch Changes
26
+
27
+ - 34cd3a44a: Fix issue where frontmatter parser would return a Date object which would be cast to epoch format
28
+ - b006a5ab9: Added delete button to image field
29
+ - a324b9c37: Export utilities for working with the data layer
30
+ - 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.
31
+ - 0bec208e2: validate the schema for `path` and `matches`
32
+ - 5c070a83f: feat: Add UI banner for when in localMode
33
+
34
+ ## 0.59.2
35
+
36
+ ### Patch Changes
37
+
38
+ - 212685fc3: Allow indexDB to skip building the query and fragment generation files
39
+
3
40
  ## 0.59.1
4
41
 
5
42
  ### Patch Changes
package/dist/build.d.ts CHANGED
@@ -12,7 +12,8 @@ limitations under the License.
12
12
  */
13
13
  import type { TinaSchema } from './schema';
14
14
  import { Database } from './database';
15
- export declare const indexDB: ({ database, config, }: {
15
+ export declare const indexDB: ({ database, config, buildSDK, }: {
16
16
  database: Database;
17
17
  config: TinaSchema['config'];
18
+ buildSDK?: boolean;
18
19
  }) => Promise<void>;
@@ -52,10 +52,16 @@ export declare class Database {
52
52
  getSchema: () => Promise<TinaSchema>;
53
53
  documentExists: (fullpath: unknown) => Promise<boolean>;
54
54
  query: (queryStrings: string[], hydrator: any) => Promise<object[]>;
55
- indexData: ({ graphQLSchema, tinaSchema, }: {
55
+ putConfigFiles: ({ graphQLSchema, tinaSchema, }: {
56
56
  graphQLSchema: DocumentNode;
57
57
  tinaSchema: TinaSchema;
58
58
  }) => Promise<void>;
59
+ indexContent: ({ graphQLSchema, tinaSchema, }: {
60
+ graphQLSchema: DocumentNode;
61
+ tinaSchema: TinaSchema;
62
+ }) => Promise<void>;
63
+ indexContentByPaths: (documentPaths: string[]) => Promise<void>;
64
+ _indexAllContent: () => Promise<void>;
59
65
  addToLookupMap: (lookup: LookupMapType) => Promise<void>;
60
66
  }
61
67
  export declare type LookupMapType = GlobalDocumentLookup | CollectionDocumentLookup | MultiCollectionDocumentLookup | MultiCollectionDocumentListLookup | CollectionDocumentListLookup | UnionDataLookup | NodeDocument;
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>;