@carto/api-client 0.2.2-alpha.0 → 0.2.2

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,3 +1,5 @@
1
+ /** Current version of @carto/api-client. */
2
+ export declare const API_CLIENT_VERSION: string;
1
3
  /**
2
4
  * Defines a comparator used when matching a column's values against given filter values.
3
5
  *
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "repository": "github:CartoDB/carto-api-client",
5
5
  "author": "Don McCurdy <donmccurdy@carto.com>",
6
6
  "packageManager": "yarn@4.3.1",
7
- "version": "0.2.2-alpha.0",
7
+ "version": "0.2.2",
8
8
  "license": "MIT",
9
9
  "publishConfig": {
10
10
  "access": "public",
@@ -29,8 +29,8 @@
29
29
  "node >= 18"
30
30
  ],
31
31
  "scripts": {
32
- "build": "microbundle --format cjs,modern --no-compress --define VERSION=$npm_package_version",
33
- "build:watch": "microbundle watch --format cjs,modern --no-compress --define VERSION=$npm_package_version",
32
+ "build": "microbundle --format cjs,modern --no-compress --define __CARTO_API_CLIENT_VERSION=$npm_package_version",
33
+ "build:watch": "microbundle watch --format cjs,modern --no-compress --define __CARTO_API_CLIENT_VERSION=$npm_package_version",
34
34
  "dev": "concurrently \"yarn build:watch\" \"vite --config examples/vite.config.ts --open\"",
35
35
  "test": "vitest run --typecheck",
36
36
  "test:watch": "vitest watch --typecheck",
@@ -98,6 +98,5 @@
98
98
  "@turf/invariant": "^7.1.0",
99
99
  "@turf/union": "^7.1.0",
100
100
  "@types/geojson": "^7946.0.14"
101
- },
102
- "stableVersion": "0.2.1"
101
+ }
103
102
  }
package/src/constants.ts CHANGED
@@ -1,3 +1,6 @@
1
+ /** Current version of @carto/api-client. */
2
+ export const API_CLIENT_VERSION = __CARTO_API_CLIENT_VERSION;
3
+
1
4
  /**
2
5
  * Defines a comparator used when matching a column's values against given filter values.
3
6
  *
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Injected by microbundle. The `@deck.gl/core` checkVersion()
3
+ * function will detect globally-defined 'VERSION' variables, and is inlined
4
+ * in the client bundle, so the 'VERSION' name should be avoided.
5
+ */
6
+ declare const __CARTO_API_CLIENT_VERSION: string;
@@ -1,4 +1,3 @@
1
- import {getClient} from '../client.js';
2
1
  import {
3
2
  ApiVersion,
4
3
  DEFAULT_GEO_COLUMN,