@tinacms/graphql 0.0.0-202231073 → 0.0.0-2022311213023

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,6 +1,19 @@
1
1
  # tina-graphql
2
2
 
3
- ## 0.0.0-202231073
3
+ ## 0.0.0-2022311213023
4
+
5
+ ### Patch Changes
6
+
7
+ - 4da32454b: Modify database to write config json files without whitespace to reduce file sizes
8
+ - 06666d39f: Link to MDX documentation when unregistered component error occurs
9
+
10
+ ## 0.59.10
11
+
12
+ ### Patch Changes
13
+
14
+ - cf33bcec1: Fix issue where store.clear() was not being awaited causing an invalid state after reindex
15
+
16
+ ## 0.59.9
4
17
 
5
18
  ### Patch Changes
6
19
 
@@ -41,7 +54,7 @@
41
54
  - Updated dependencies [8b3be903f]
42
55
  - Updated dependencies [a87e1e6fa]
43
56
  - Updated dependencies [b01f2e382]
44
- - @tinacms/datalayer@0.0.0-202231073
57
+ - @tinacms/datalayer@0.1.0
45
58
 
46
59
  ## 0.59.8
47
60
 
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.8";
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 = [
@@ -20147,7 +20147,7 @@ var parseMDXInner = (tree, field) => {
20147
20147
  if (!template) {
20148
20148
  if ((0, import_lodash4.isNull)(node.name)) {
20149
20149
  } else {
20150
- throw new Error(`Found unregistered JSX or HTML: <${node.name}>. Please ensure all structured elements have been registered with your schema.`);
20150
+ throw new Error(`Found unregistered JSX or HTML: <${node.name}>. Please ensure all structured elements have been registered with your schema. https://tina.io/docs/editing/mdx/`);
20151
20151
  }
20152
20152
  }
20153
20153
  if (node.children.length > 0) {
@@ -23839,8 +23839,8 @@ var Database = class {
23839
23839
  tinaSchema
23840
23840
  }) => {
23841
23841
  if (this.bridge.supportsBuilding()) {
23842
- await this.bridge.putConfig(import_path4.default.join(GENERATED_FOLDER, `_graphql.json`), JSON.stringify(graphQLSchema, null, 2));
23843
- await this.bridge.putConfig(import_path4.default.join(GENERATED_FOLDER, `_schema.json`), JSON.stringify(tinaSchema.schema, null, 2));
23842
+ await this.bridge.putConfig(import_path4.default.join(GENERATED_FOLDER, `_graphql.json`), JSON.stringify(graphQLSchema));
23843
+ await this.bridge.putConfig(import_path4.default.join(GENERATED_FOLDER, `_schema.json`), JSON.stringify(tinaSchema.schema));
23844
23844
  }
23845
23845
  };
23846
23846
  this.indexContent = async ({
@@ -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);
@@ -23900,7 +23900,7 @@ var Database = class {
23900
23900
  const updatedLookup = __spreadProps(__spreadValues({}, lookupMap), {
23901
23901
  [lookup.type]: lookup
23902
23902
  });
23903
- await this.bridge.putConfig(lookupPath, JSON.stringify(updatedLookup, null, 2));
23903
+ await this.bridge.putConfig(lookupPath, JSON.stringify(updatedLookup));
23904
23904
  };
23905
23905
  this.bridge = config.bridge;
23906
23906
  this.store = config.store;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/graphql",
3
- "version": "0.0.0-202231073",
3
+ "version": "0.0.0-2022311213023",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@graphql-tools/relay-operation-optimizer": "^6.4.1",
49
- "@tinacms/datalayer": "0.0.0-202231073",
49
+ "@tinacms/datalayer": "0.1.0",
50
50
  "body-parser": "^1.19.0",
51
51
  "cors": "^2.8.5",
52
52
  "dataloader": "^2.0.0",
@@ -96,7 +96,7 @@
96
96
  "directory": "packages/tina-graphql"
97
97
  },
98
98
  "devDependencies": {
99
- "@tinacms/datalayer": "0.0.0-202231073",
99
+ "@tinacms/datalayer": "0.1.0",
100
100
  "@tinacms/scripts": "0.50.7",
101
101
  "@types/cors": "^2.8.7",
102
102
  "@types/estree": "^0.0.50",