@tinacms/graphql 0.60.3 → 0.60.4

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,11 @@
1
1
  # tina-graphql
2
2
 
3
+ ## 0.60.4
4
+
5
+ ### Patch Changes
6
+
7
+ - d103b27ad: Fix issue where new collections would not be added when CLI restarts
8
+
3
9
  ## 0.60.3
4
10
 
5
11
  ### Patch Changes
@@ -44,8 +44,6 @@ export declare class Database {
44
44
  private tinaSchema;
45
45
  private collectionIndexDefinitions;
46
46
  private _lookup;
47
- private _graphql;
48
- private _tinaSchema;
49
47
  constructor(config: CreateDatabase);
50
48
  private collectionForPath;
51
49
  private partitionPathsByCollection;
@@ -65,6 +63,10 @@ export declare class Database {
65
63
  };
66
64
  keepTemplateKey: boolean;
67
65
  }>;
66
+ /**
67
+ * Clears the internal cache of the tinaSchema and the lookup file. This allows the state to be reset
68
+ */
69
+ clearCache(): void;
68
70
  flush: (filepath: string) => Promise<string>;
69
71
  getLookup: (returnType: string) => Promise<LookupMapType>;
70
72
  getGraphQLSchema: () => Promise<DocumentNode>;
package/dist/index.js CHANGED
@@ -12480,7 +12480,7 @@ var validateField = async (field) => {
12480
12480
 
12481
12481
  // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/package.json
12482
12482
  var name = "@tinacms/graphql";
12483
- var version = "0.60.3";
12483
+ var version = "0.60.4";
12484
12484
  var main = "dist/index.js";
12485
12485
  var typings = "dist/index.d.ts";
12486
12486
  var files = [
@@ -23628,6 +23628,10 @@ var Database = class {
23628
23628
  }
23629
23629
  return { pathsByCollection, nonCollectionPaths, collections };
23630
23630
  }
23631
+ clearCache() {
23632
+ this.tinaSchema = null;
23633
+ this._lookup = null;
23634
+ }
23631
23635
  async indexStatusCallbackWrapper(fn) {
23632
23636
  await this.indexStatusCallback({ status: "inprogress" });
23633
23637
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/graphql",
3
- "version": "0.60.3",
3
+ "version": "0.60.4",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [