@sanity/client 6.27.0 → 6.27.2-canary.0

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/dist/index.cjs CHANGED
@@ -896,14 +896,14 @@ function _listen(query, params, opts = {}) {
896
896
  )
897
897
  );
898
898
  }
899
- const requiredApiVersion = "2021-03-26";
899
+ const requiredApiVersion = "2021-03-25";
900
900
  class LiveClient {
901
901
  #client;
902
902
  constructor(client) {
903
903
  this.#client = client;
904
904
  }
905
905
  /**
906
- * Requires `apiVersion` to be `2021-03-26` or later.
906
+ * Requires `apiVersion` to be `2021-03-25` or later.
907
907
  */
908
908
  events({
909
909
  includeDrafts = !1,
@@ -924,10 +924,6 @@ class LiveClient {
924
924
  throw new Error(
925
925
  "The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role."
926
926
  );
927
- if (includeDrafts && apiVersion !== "X")
928
- throw new Error(
929
- "The live events API requires API version X when 'includeDrafts: true'. This API is experimental and may change or even be removed."
930
- );
931
927
  const path = _getDataUrl(this.#client, "live/events"), url = new URL(this.#client.getUrl(path, !1)), tag = _tag && requestTagPrefix ? [requestTagPrefix, _tag].join(".") : _tag;
932
928
  tag && url.searchParams.set("tag", tag), includeDrafts && url.searchParams.set("includeDrafts", "true");
933
929
  const esOptions = {};
@@ -1496,7 +1492,7 @@ function defineDeprecatedCreateClient(createClient2) {
1496
1492
  return config.printNoDefaultExport(), createClient2(config$1);
1497
1493
  };
1498
1494
  }
1499
- var name = "@sanity/client", version = "6.27.0";
1495
+ var name = "@sanity/client", version = "6.27.2-canary.0";
1500
1496
  const middleware = [
1501
1497
  middleware$1.debug({ verbose: !0, namespace: "sanity:client" }),
1502
1498
  middleware$1.headers({ "User-Agent": `${name} ${version}` }),