@objectstack/core 3.2.1 → 3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectstack/core",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Microkernel Core for ObjectStack",
6
6
  "type": "module",
@@ -16,13 +16,13 @@
16
16
  "devDependencies": {
17
17
  "typescript": "^5.0.0",
18
18
  "vitest": "^4.0.18",
19
- "@types/node": "^25.3.3"
19
+ "@types/node": "^25.3.5"
20
20
  },
21
21
  "dependencies": {
22
22
  "pino": "^10.3.1",
23
23
  "pino-pretty": "^13.1.3",
24
24
  "zod": "^4.3.6",
25
- "@objectstack/spec": "3.2.1"
25
+ "@objectstack/spec": "3.2.2"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "pino": "^8.0.0"
@@ -49,8 +49,8 @@ export class HttpTestAdapter implements TestExecutionAdapter {
49
49
  }
50
50
 
51
51
  private async updateRecord(objectName: string, data: Record<string, unknown>, headers: Record<string, string>) {
52
- const id = data._id || data.id;
53
- if (!id) throw new Error('Update record requires _id or id in payload');
52
+ const id = data.id;
53
+ if (!id) throw new Error('Update record requires id in payload');
54
54
  const response = await fetch(`${this.baseUrl}/api/data/${objectName}/${id}`, {
55
55
  method: 'PUT',
56
56
  headers,
@@ -60,8 +60,8 @@ export class HttpTestAdapter implements TestExecutionAdapter {
60
60
  }
61
61
 
62
62
  private async deleteRecord(objectName: string, data: Record<string, unknown>, headers: Record<string, string>) {
63
- const id = data._id || data.id;
64
- if (!id) throw new Error('Delete record requires _id or id in payload');
63
+ const id = data.id;
64
+ if (!id) throw new Error('Delete record requires id in payload');
65
65
  const response = await fetch(`${this.baseUrl}/api/data/${objectName}/${id}`, {
66
66
  method: 'DELETE',
67
67
  headers
@@ -70,8 +70,8 @@ export class HttpTestAdapter implements TestExecutionAdapter {
70
70
  }
71
71
 
72
72
  private async readRecord(objectName: string, data: Record<string, unknown>, headers: Record<string, string>) {
73
- const id = data._id || data.id;
74
- if (!id) throw new Error('Read record requires _id or id in payload');
73
+ const id = data.id;
74
+ if (!id) throw new Error('Read record requires id in payload');
75
75
  const response = await fetch(`${this.baseUrl}/api/data/${objectName}/${id}`, {
76
76
  method: 'GET',
77
77
  headers