@carto/api-client 0.5.24 → 0.5.25-alpha.d96c26c.111

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
@@ -2,7 +2,11 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- ## 0.5
5
+ - chore(ci): add prerelease support to release workflow (#274)
6
+
7
+ ### 0.5.25
8
+
9
+ - fix(fetchMap): ordinal color scale overflow categories render as "Others" instead of cycling palette (#269)
6
10
 
7
11
  ### 0.5.24
8
12
 
@@ -6664,7 +6664,7 @@ var WidgetRemoteSource = class extends WidgetSource {
6664
6664
  spatialFiltersMode,
6665
6665
  ...params
6666
6666
  } = options;
6667
- const { columns, dataType, featureIds, z, limit, tileResolution } = params;
6667
+ const { columns, dataType, featureIds, z, limit, tileResolution, offset } = params;
6668
6668
  return executeModel({
6669
6669
  model: "pick",
6670
6670
  source: {
@@ -6677,12 +6677,13 @@ var WidgetRemoteSource = class extends WidgetSource {
6677
6677
  dataType,
6678
6678
  featureIds,
6679
6679
  z,
6680
+ offset,
6680
6681
  limit: limit || 1e3,
6681
6682
  tileResolution: tileResolution || DEFAULT_TILE_RESOLUTION
6682
6683
  },
6683
6684
  opts: { signal, headers: this.props.headers }
6684
6685
  // Avoid `normalizeObjectKeys()`, which changes column names.
6685
- }).then(({ rows }) => ({ rows }));
6686
+ }).then(({ rows, metadata }) => ({ rows, metadata }));
6686
6687
  }
6687
6688
  async getFormula(options) {
6688
6689
  const {
@@ -9860,7 +9861,7 @@ function domainFromAttribute(attribute, scaleType, scaleLength) {
9860
9861
  if (!attribute.categories) {
9861
9862
  return [0, 1];
9862
9863
  }
9863
- return attribute.categories.map((c) => c.category).filter((c) => c !== void 0 && c !== null);
9864
+ return attribute.categories.map((c) => c.category).filter((c) => c !== void 0 && c !== null).slice(0, scaleLength);
9864
9865
  }
9865
9866
  if (scaleType === "quantile" && attribute.quantiles) {
9866
9867
  const quantiles = "global" in attribute.quantiles ? attribute.quantiles.global : attribute.quantiles;