UNPKG

3.46 kBMarkdownView Raw
1# Change Log
2
3All notable changes will be documented in this file.
4
5## 6.0.4
6
7### Changes
8
9- Provide document count when sourcing nodes
10
11## 6.0.3
12
13### Changes
14
15- Export image prop type interfaces
16
17## 6.0.2
18
19### Changes
20
21- Exclude listener creation/updates from being sent in watch mode
22- Add path resolution for typescript definitions
23
24## 6.0.1
25
26### Changes
27
28- Optimize incremental builds when using the refresh endpoint with webhooks
29
30## 6.0.0
31
32### BREAKING
33
34- Raw fields without an underscore prefix `rawBody` vs `_rawBody` have been removed, use the underscored version instead
35- `sanity` prefix removed for fields that were not on document types (`sanityId` => `id`, `sanityChildren` => `children`)
36
37### Fixes
38
39- `_raw` fields now available in nested fields
40- Several improvements to reference resolving in raw fields
41
42## 5.0.3
43
44### Fixes
45
46- Add GraphQL resolvers on conflict-free Gatsby fields
47
48### Changes
49
50- Warn when renaming fields due to Gatsby internal prop conflicts
51
52## 5.0.2
53
54### Fixes
55
56- Include original image size in srcSet
57
58## 5.0.1
59
60### Changes
61
62- Add `<link rel="preconnect" href="https://cdn.sanity.io">` to `<head>`, potentially speeding up loading of images
63
64## 5.0.0
65
66### BREAKING
67
68- `resolveReferences` no longer returns `_raw` fields - they are mapped to their original field names instead
69- `resolveReferences` returns `null` if the reference cannot be resolved
70- Image and file asset documents maintain their original document ID instead of remapping to a Gatsby node ID in UUID shape
71
72## 4.0.5
73
74### Changes
75
76- Exposed `resolveReferences` method for rare cases where you need to resolve from userland/custom GraphQL resolvers
77
78## 4.0.4
79
80### Fixes
81
82- The RootQuery type from the Sanity GraphQL API is no longer added as a type in Gatsby
83- Document types that are not defined in the GraphQL schema are now skipped (with a warning) instead of preventing the build from completing
84
85## 4.0.3
86
87### Changes
88
89- Add `dateformat` directive to date fields, reintroducing `dateFormat` field-level argument
90
91## 4.0.2
92
93### Changes
94
95- Upgrade dependencies to their latest versions
96
97## 4.0.1
98
99### Fixes
100
101- Try to resolve all lists with custom resolvers, since we cannot know whether or not they contain references at schema define time
102
103## 4.0.0
104
105### BREAKING
106
107- Add `dontInfer` directive to declared schema types, which prevents fields that are not declared in the GraphQL schema from appearing in the Gatsby GraphQL schema. Remember to run `sanity graphql deploy` after changing your schema, or you will not be able to query for the new additions.
108
109## 3.0.0
110
111### BREAKING
112
113- A deployed GraphQL schema is now _required_ to use the plugin. The reasoning behind this is that the generated/inferred schemas inside of Gatsby are very unpredictable - maintaining support for both inferred _and_ generated schemas is too much work.
114
115### Fixes
116
117- Compile an ES5 target in order for the Gatsby image props methods to be usable in older browsers
118
119## 2.1.0
120
121### Fixes
122
123- Explicitly declare field resolvers for unions and reference fields. Fixes:
124 - Fields that can be more than a single type (polymorphic fields)
125 - Arrays containing both references _and_ inline objects are now handled
126
127## 2.0.3
128
129### Changes
130
131- Allow passing image object to `getGatsbyImageProps()`
132
133## 2.0.2
134
135### Changes
136
137- Replace URL parsing with browser-compatible version
138
139## 2.0.0
140
141### BREAKING
142
143- Require Gatsby >= 2.2.0
144- Explicitly define all fields based on GraphQL schema