@cubejs-client/core 1.8.7 → 1.8.9

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.
@@ -1,6 +1,6 @@
1
1
  import { DeeplyReadonly, Filter, PivotConfig, Query, QueryOrder, TDefaultHeuristicsOptions, TDefaultHeuristicsResponse, TDefaultHeuristicsState, TFlatFilter, TOrderMember, TQueryOrderArray, TQueryOrderObject, TSourceAxis } from './types.js';
2
2
  export declare function removeEmptyQueryFields(_query: DeeplyReadonly<Query>): {
3
- [index: string]: string | number | boolean | readonly string[] | readonly DeeplyReadonly<import("./types.js").TimeDimension>[] | readonly DeeplyReadonly<Filter>[] | DeeplyReadonly<TQueryOrderObject> | readonly (readonly [string, DeeplyReadonly<QueryOrder>])[] | null | undefined;
3
+ [x: string]: string | number | boolean | readonly string[] | readonly DeeplyReadonly<Filter>[] | readonly DeeplyReadonly<import("./types.js").TimeDimension>[] | readonly (readonly [string, DeeplyReadonly<QueryOrder>])[] | DeeplyReadonly<TQueryOrderObject> | null;
4
4
  };
5
5
  export declare function validateQuery(_query: DeeplyReadonly<Query> | null | undefined): Query;
6
6
  export declare function areQueriesEqual(query1: DeeplyReadonly<Query> | null, query2: DeeplyReadonly<Query> | null): boolean;
package/dist/src/utils.js CHANGED
@@ -1,8 +1,8 @@
1
- import { clone, equals, fromPairs, indexBy, prop, toPairs } from 'ramda';
1
+ import { clone, equals, fromPairs, indexBy, prop } from 'ramda';
2
2
  import { DEFAULT_GRANULARITY } from './time.js';
3
3
  export function removeEmptyQueryFields(_query) {
4
4
  const query = _query || {};
5
- return fromPairs(toPairs(query).flatMap(([key, value]) => {
5
+ return fromPairs(Object.entries(query).flatMap(([key, value]) => {
6
6
  if (['measures', 'dimensions', 'segments', 'timeDimensions', 'filters'].includes(key)) {
7
7
  if (Array.isArray(value) && value.length === 0) {
8
8
  return [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubejs-client/core",
3
- "version": "1.8.7",
3
+ "version": "1.8.9",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },
@@ -39,7 +39,7 @@
39
39
  "d3-format": "^3.1.0",
40
40
  "d3-time-format": "^4.1.0",
41
41
  "dayjs": "^1.10.4",
42
- "ramda": "^0.27.2",
42
+ "ramda": "^0.32.0",
43
43
  "url-search-params-polyfill": "^7.0.0",
44
44
  "uuid": "^11.1.1"
45
45
  },
@@ -57,14 +57,14 @@
57
57
  ],
58
58
  "license": "MIT",
59
59
  "devDependencies": {
60
- "@cubejs-backend/linter": "1.8.7",
60
+ "@cubejs-backend/linter": "1.8.9",
61
61
  "@types/d3-format": "^3",
62
62
  "@types/d3-time-format": "^4",
63
63
  "@types/moment-range": "^4.0.0",
64
- "@types/ramda": "^0.27.40",
64
+ "@types/ramda": "^0.32.0",
65
65
  "@vitest/coverage-v8": "^4",
66
66
  "typescript": "~6.0.3",
67
67
  "vitest": "^4"
68
68
  },
69
- "gitHead": "71f9cb79ea3881e4d8249c8dfc6ef36c9db8f504"
69
+ "gitHead": "b4b2591791653a91eaf7b3a61a2eb8125bc2ae41"
70
70
  }