@tinacms/graphql 0.60.4 → 0.60.7

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,37 @@
1
1
  # tina-graphql
2
2
 
3
+ ## 0.60.7
4
+
5
+ ### Patch Changes
6
+
7
+ - f6cb634c2: Added an optional config key to the schema that will be used for tina cloud media store
8
+ - b1a4290e6: Use media config from the schema in the local media server
9
+ - 1955b8842: Uses new `schema.config` when resolving media/asset urls
10
+ - 8b81c3cf3: Added more context to error messages to help to user debug issues
11
+ - @tinacms/datalayer@0.1.1
12
+
13
+ ## 0.60.6
14
+
15
+ ### Patch Changes
16
+
17
+ - e2aafcd93: Add more GraphQL variables to the generated queries.
18
+ - a20fed8b7: Resolve Cloud URLs to Relative URLs when saving TinaCloud's media
19
+
20
+ Introduces a pair of functions (inside `media-utils.ts`) for handling URLs provided by TinaCloud (`resolveMediaCloudToRelative` and `resolveMediaRelativeToCloud`).
21
+
22
+ These are used in conjuction with two pairs of functions:
23
+
24
+ - When providing data to the preview: `resolveFieldData` and `parseMDX`
25
+ - When saving data to the document: `buildFieldMutations` and `stringifyMDX`
26
+
27
+ I also introduced tests around `media-utils.ts` (`media-utils.test.ts`).
28
+
29
+ ## 0.60.5
30
+
31
+ ### Patch Changes
32
+
33
+ - 57f09bdd7: Always use the query function when the dataLayer in enabled
34
+
3
35
  ## 0.60.4
4
36
 
5
37
  ### Patch Changes
@@ -126,9 +126,11 @@ export declare const astBuilder: {
126
126
  queryName: string;
127
127
  fragName: string;
128
128
  }) => OperationDefinitionNode;
129
- ListQueryOperationDefinition: ({ queryName, fragName, }: {
129
+ ListQueryOperationDefinition: ({ queryName, fragName, filterType, dataLayer, }: {
130
130
  queryName: string;
131
131
  fragName: string;
132
+ filterType: string;
133
+ dataLayer: boolean;
132
134
  }) => OperationDefinitionNode;
133
135
  toGraphQLAst: (ast: {
134
136
  globalTemplates: TypeDefinitionNode[];
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ limitations under the License.
12
12
  */
13
13
  export { indexDB } from './build';
14
14
  export { resolve } from './resolve';
15
+ export * from './resolver/error';
15
16
  export { createDatabase } from './database';
16
17
  export type { QueryOptions } from './database';
17
18
  import type { Database } from './database';