@objectstack/client 0.2.0 → 0.3.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
@@ -1,5 +1,12 @@
1
1
  # @objectstack/client
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @objectstack/spec@1.0.0
9
+
3
10
  ## 0.2.0
4
11
 
5
12
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { QueryAST, FilterNode, SortNode, AggregationNode } from '@objectstack/spec';
1
+ import { QueryAST, FilterNode, SortNode, AggregationNode } from '@objectstack/spec/data';
2
2
  export interface ClientConfig {
3
3
  baseUrl: string;
4
4
  token?: string;
package/dist/index.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ObjectStackClient = void 0;
4
- class ObjectStackClient {
1
+ export class ObjectStackClient {
5
2
  constructor(config) {
6
3
  /**
7
4
  * Metadata Operations
@@ -198,4 +195,3 @@ class ObjectStackClient {
198
195
  return this.routes[key] || `/api/v1/${key}`;
199
196
  }
200
197
  }
201
- exports.ObjectStackClient = ObjectStackClient;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@objectstack/client",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Official Client SDK for ObjectStack Protocol",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "dependencies": {
8
- "@objectstack/spec": "0.2.0"
8
+ "@objectstack/spec": "0.3.0"
9
9
  },
10
10
  "devDependencies": {
11
11
  "typescript": "^5.0.0"
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { QueryAST, FilterNode, SortNode, AggregationNode, WindowFunctionNode } from '@objectstack/spec';
1
+ import { QueryAST, FilterNode, SortNode, AggregationNode, WindowFunctionNode } from '@objectstack/spec/data';
2
2
 
3
3
  export interface ClientConfig {
4
4
  baseUrl: string;
package/tsconfig.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "ES2020",
4
- "module": "commonjs",
4
+ "module": "ES2020",
5
+ "moduleResolution": "bundler",
5
6
  "declaration": true,
6
7
  "outDir": "./dist",
7
8
  "strict": true,