@tinacms/graphql 0.59.9 → 0.59.10

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.59.10
4
+
5
+ ### Patch Changes
6
+
7
+ - cf33bcec1: Fix issue where store.clear() was not being awaited causing an invalid state after reindex
8
+
3
9
  ## 0.59.9
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -12389,7 +12389,7 @@ var validateField = async (field) => {
12389
12389
 
12390
12390
  // pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/graphql/package.json
12391
12391
  var name = "@tinacms/graphql";
12392
- var version = "0.59.9";
12392
+ var version = "0.59.10";
12393
12393
  var main = "dist/index.js";
12394
12394
  var typings = "dist/index.d.ts";
12395
12395
  var files = [
@@ -23849,7 +23849,7 @@ var Database = class {
23849
23849
  }) => {
23850
23850
  const lookup = JSON.parse(await this.bridge.get(import_path4.default.join(GENERATED_FOLDER, "_lookup.json")));
23851
23851
  if (this.store.supportsSeeding()) {
23852
- this.store.clear();
23852
+ await this.store.clear();
23853
23853
  await this.store.seed(import_path4.default.join(GENERATED_FOLDER, "_graphql.json"), graphQLSchema);
23854
23854
  await this.store.seed(import_path4.default.join(GENERATED_FOLDER, "_schema.json"), tinaSchema.schema);
23855
23855
  await this.store.seed(import_path4.default.join(GENERATED_FOLDER, "_lookup.json"), lookup);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/graphql",
3
- "version": "0.59.9",
3
+ "version": "0.59.10",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [