@carto/api-client 0.5.4-alpha.1 → 0.5.5-alpha.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/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## 0.5
4
4
 
5
+ ### 0.5.4
6
+
7
+ - fix(widgets): Fix support for 'storeGeometry' on tileset widgets (#181)
8
+ - fix(widgets): Fix inference of 'spatialDataType' for dynamic point aggregation sources (#178)
9
+
10
+ ### 0.5.3
11
+
12
+ - chore(deps): Unpin h3-js dependency (#176)
13
+ - chore(types): Export missing types used in public API (#159)
14
+
5
15
  ### 0.5.2
6
16
 
7
17
  - feat(filters): Export getApplicableFilters (#162)
@@ -137,6 +137,7 @@ __export(src_exports, {
137
137
  buildStatsUrl: () => buildStatsUrl,
138
138
  calculateClusterRadius: () => calculateClusterRadius,
139
139
  calculateClusterTextFontSize: () => calculateClusterTextFontSize,
140
+ clearDefaultRequestCache: () => clearDefaultRequestCache,
140
141
  clearFilters: () => clearFilters,
141
142
  configureSource: () => configureSource,
142
143
  createPolygonSpatialFilter: () => createPolygonSpatialFilter,
@@ -6117,6 +6118,9 @@ function excludeURLParameters(baseUrlString, parameters) {
6117
6118
  }
6118
6119
  return baseUrl.toString();
6119
6120
  }
6121
+ function clearDefaultRequestCache() {
6122
+ DEFAULT_REQUEST_CACHE.clear();
6123
+ }
6120
6124
 
6121
6125
  // src/sources/base-source.ts
6122
6126
  var SOURCE_DEFAULTS = {
@@ -6364,6 +6368,7 @@ function executeModel(props) {
6364
6368
  filters,
6365
6369
  filtersLogicalOperator = "and",
6366
6370
  spatialDataType = "geo",
6371
+ spatialDataColumn = DEFAULT_GEO_COLUMN,
6367
6372
  spatialFiltersMode = "intersects"
6368
6373
  } = source;
6369
6374
  const queryParams = {
@@ -6375,18 +6380,13 @@ function executeModel(props) {
6375
6380
  filters,
6376
6381
  filtersLogicalOperator
6377
6382
  };
6378
- const spatialDataColumn = source.spatialDataColumn || DEFAULT_GEO_COLUMN;
6379
- if (model === "pick") {
6380
- queryParams.spatialDataColumn = spatialDataColumn;
6381
- }
6382
- const spatialFilters = source.spatialFilter ? { [spatialDataColumn]: source.spatialFilter } : void 0;
6383
- if (spatialFilters) {
6384
- queryParams.spatialFilters = spatialFilters;
6385
- queryParams.spatialDataColumn = spatialDataColumn;
6386
- queryParams.spatialDataType = spatialDataType;
6387
- }
6388
- if (spatialDataType !== "geo") {
6389
- queryParams.spatialFiltersMode = spatialFiltersMode;
6383
+ queryParams.spatialDataType = spatialDataType;
6384
+ queryParams.spatialDataColumn = spatialDataColumn;
6385
+ if (source.spatialFilter) {
6386
+ queryParams.spatialFilters = { [spatialDataColumn]: source.spatialFilter };
6387
+ if (spatialDataType !== "geo") {
6388
+ queryParams.spatialFiltersMode = spatialFiltersMode;
6389
+ }
6390
6390
  }
6391
6391
  const urlWithSearchParams = url + "?" + objectToURLSearchParams(queryParams).toString();
6392
6392
  const isGet = urlWithSearchParams.length <= REQUEST_GET_MAX_URL_LENGTH;
@@ -10478,6 +10478,7 @@ function _getHexagonResolution(viewport, tileSize) {
10478
10478
  buildStatsUrl,
10479
10479
  calculateClusterRadius,
10480
10480
  calculateClusterTextFontSize,
10481
+ clearDefaultRequestCache,
10481
10482
  clearFilters,
10482
10483
  configureSource,
10483
10484
  createPolygonSpatialFilter,