@objectstack/core 3.2.1 → 3.2.3

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,5 +1,5 @@
1
1
 
2
- > @objectstack/core@3.2.1 build /home/runner/work/spec/spec/packages/core
2
+ > @objectstack/core@3.2.3 build /home/runner/work/spec/spec/packages/core
3
3
  > tsup --config ../../tsup.config.ts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,13 +10,13 @@
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
- CJS dist/index.cjs 151.01 KB
14
- CJS dist/index.cjs.map 314.27 KB
15
- CJS ⚡️ Build success in 114ms
16
- ESM dist/index.js 147.97 KB
17
- ESM dist/index.js.map 312.63 KB
18
- ESM ⚡️ Build success in 114ms
13
+ ESM dist/index.js 147.91 KB
14
+ ESM dist/index.js.map 312.55 KB
15
+ ESM ⚡️ Build success in 119ms
16
+ CJS dist/index.cjs 150.95 KB
17
+ CJS dist/index.cjs.map 314.18 KB
18
+ CJS ⚡️ Build success in 124ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 3677ms
20
+ DTS ⚡️ Build success in 3712ms
21
21
  DTS dist/index.d.ts 61.79 KB
22
22
  DTS dist/index.d.cts 61.79 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @objectstack/core
2
2
 
3
+ ## 3.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - @objectstack/spec@3.2.3
8
+
9
+ ## 3.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [46defbb]
14
+ - @objectstack/spec@3.2.2
15
+
3
16
  ## 3.2.1
4
17
 
5
18
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -2379,8 +2379,8 @@ var HttpTestAdapter = class {
2379
2379
  return this.handleResponse(response);
2380
2380
  }
2381
2381
  async updateRecord(objectName, data, headers) {
2382
- const id = data._id || data.id;
2383
- if (!id) throw new Error("Update record requires _id or id in payload");
2382
+ const id = data.id;
2383
+ if (!id) throw new Error("Update record requires id in payload");
2384
2384
  const response = await fetch(`${this.baseUrl}/api/data/${objectName}/${id}`, {
2385
2385
  method: "PUT",
2386
2386
  headers,
@@ -2389,8 +2389,8 @@ var HttpTestAdapter = class {
2389
2389
  return this.handleResponse(response);
2390
2390
  }
2391
2391
  async deleteRecord(objectName, data, headers) {
2392
- const id = data._id || data.id;
2393
- if (!id) throw new Error("Delete record requires _id or id in payload");
2392
+ const id = data.id;
2393
+ if (!id) throw new Error("Delete record requires id in payload");
2394
2394
  const response = await fetch(`${this.baseUrl}/api/data/${objectName}/${id}`, {
2395
2395
  method: "DELETE",
2396
2396
  headers
@@ -2398,8 +2398,8 @@ var HttpTestAdapter = class {
2398
2398
  return this.handleResponse(response);
2399
2399
  }
2400
2400
  async readRecord(objectName, data, headers) {
2401
- const id = data._id || data.id;
2402
- if (!id) throw new Error("Read record requires _id or id in payload");
2401
+ const id = data.id;
2402
+ if (!id) throw new Error("Read record requires id in payload");
2403
2403
  const response = await fetch(`${this.baseUrl}/api/data/${objectName}/${id}`, {
2404
2404
  method: "GET",
2405
2405
  headers