@tinacms/graphql 0.59.1 → 0.59.2

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.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 212685fc3: Allow indexDB to skip building the query and fragment generation files
8
+
3
9
  ## 0.59.1
4
10
 
5
11
  ### 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>;
package/dist/index.js CHANGED
@@ -12340,7 +12340,7 @@ var validateField = async (field) => {
12340
12340
 
12341
12341
  // pnp:/Users/jeffsee/code/tinacms/packages/@tinacms/graphql/package.json
12342
12342
  var name = "@tinacms/graphql";
12343
- var version = "0.59.1";
12343
+ var version = "0.59.2";
12344
12344
  var main = "dist/index.js";
12345
12345
  var typings = "dist/index.d.ts";
12346
12346
  var files = [
@@ -12663,7 +12663,8 @@ var TinaSchema = class {
12663
12663
  var import_path = __toModule(require("path"));
12664
12664
  var indexDB = async ({
12665
12665
  database,
12666
- config
12666
+ config,
12667
+ buildSDK = true
12667
12668
  }) => {
12668
12669
  const flags = [];
12669
12670
  if (database.store.supportsIndexing()) {
@@ -12676,8 +12677,10 @@ var indexDB = async ({
12676
12677
  });
12677
12678
  const graphQLSchema = await _buildSchema(builder, tinaSchema);
12678
12679
  await database.indexData({ graphQLSchema, tinaSchema });
12679
- await _buildFragments(builder, tinaSchema, database.bridge.rootPath);
12680
- await _buildQueries(builder, tinaSchema, database.bridge.rootPath);
12680
+ if (buildSDK) {
12681
+ await _buildFragments(builder, tinaSchema, database.bridge.rootPath);
12682
+ await _buildQueries(builder, tinaSchema, database.bridge.rootPath);
12683
+ }
12681
12684
  };
12682
12685
  var _buildFragments = async (builder, tinaSchema, rootPath) => {
12683
12686
  const fragmentDefinitionsFields = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/graphql",
3
- "version": "0.59.1",
3
+ "version": "0.59.2",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [