@sanity/client 6.27.1 → 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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Sanity.io
3
+ Copyright (c) 2025 Sanity.io
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1044,14 +1044,14 @@ function _listen(query, params, opts = {}) {
1044
1044
  )
1045
1045
  );
1046
1046
  }
1047
- const requiredApiVersion = "2021-03-26";
1047
+ const requiredApiVersion = "2021-03-25";
1048
1048
  class LiveClient {
1049
1049
  #client;
1050
1050
  constructor(client) {
1051
1051
  this.#client = client;
1052
1052
  }
1053
1053
  /**
1054
- * Requires `apiVersion` to be `2021-03-26` or later.
1054
+ * Requires `apiVersion` to be `2021-03-25` or later.
1055
1055
  */
1056
1056
  events({
1057
1057
  includeDrafts = !1,
@@ -1072,10 +1072,6 @@ class LiveClient {
1072
1072
  throw new Error(
1073
1073
  "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."
1074
1074
  );
1075
- if (includeDrafts && apiVersion !== "X")
1076
- throw new Error(
1077
- "The live events API requires API version X when 'includeDrafts: true'. This API is experimental and may change or even be removed."
1078
- );
1079
1075
  const path = _getDataUrl(this.#client, "live/events"), url = new URL(this.#client.getUrl(path, !1)), tag = _tag && requestTagPrefix ? [requestTagPrefix, _tag].join(".") : _tag;
1080
1076
  tag && url.searchParams.set("tag", tag), includeDrafts && url.searchParams.set("includeDrafts", "true");
1081
1077
  const esOptions = {};