@tinacms/graphql 1.5.13 → 1.5.15

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.
@@ -40,6 +40,17 @@ export declare const transformDocumentIntoPayload: (fullPath: string, rawData: {
40
40
  __typename: string;
41
41
  id: string;
42
42
  }>;
43
+ /**
44
+ * Updates a property in an object using a JSONPath.
45
+ * @param obj - The object to update.
46
+ * @param path - The JSONPath string.
47
+ * @param newValue - The new value to set at the specified path.
48
+ * @returns the updated object.
49
+ */
50
+ export declare const updateObjectWithJsonPath: (obj: any, path: string, oldValue: any, newValue: any) => {
51
+ object: any;
52
+ updated: boolean;
53
+ };
43
54
  /**
44
55
  * The resolver provides functions for all possible types of lookup
45
56
  * values and retrieves them from the database
@@ -346,7 +357,7 @@ export declare class Resolver {
346
357
  * Finds references to a document
347
358
  * @param id the id of the document to find references to
348
359
  * @param c the collection to find references in
349
- * @returns references to the document in the form of a map of collection names to a list of fields that reference the document
360
+ * @returns a map of references to the document
350
361
  */
351
362
  private findReferences;
352
363
  private buildFieldMutations;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/graphql",
3
- "version": "1.5.13",
3
+ "version": "1.5.15",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "typings": "dist/index.d.ts",
@@ -44,8 +44,8 @@
44
44
  "readable-stream": "^4.7.0",
45
45
  "scmp": "^2.1.0",
46
46
  "yup": "^0.32.11",
47
- "@tinacms/mdx": "1.6.0",
48
- "@tinacms/schema-tools": "1.7.1"
47
+ "@tinacms/mdx": "1.6.1",
48
+ "@tinacms/schema-tools": "1.7.2"
49
49
  },
50
50
  "publishConfig": {
51
51
  "registry": "https://registry.npmjs.org"
@@ -76,8 +76,8 @@
76
76
  "vite": "^4.5.9",
77
77
  "vitest": "^0.32.4",
78
78
  "zod": "^3.24.2",
79
- "@tinacms/schema-tools": "1.7.1",
80
- "@tinacms/scripts": "1.3.2"
79
+ "@tinacms/schema-tools": "1.7.2",
80
+ "@tinacms/scripts": "1.3.3"
81
81
  },
82
82
  "scripts": {
83
83
  "types": "pnpm tsc",