sanity-io / gatsby-source-sanity

Gatsby source plugin for building websites using Sanity.io as a backend.
https://www.sanity.io/
MIT License
197 stars 61 forks source link

apiVersion = 1 results in Warning #128

Open logemann opened 3 years ago

logemann commented 3 years ago

Since the plugin uses apiVersion = 1 which seems not the desired format of YYYY-MM-DD, we get the following warning:

Using the Sanity client without specifying an API version is deprecated. See https://docs.sanity.io/help/js-client-api-version

jfgilmore commented 3 years ago

Annoying warning messages are the worst, from what I can see v1 is hard-coded. Having a look at it now.