@objectstack/rest 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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @objectstack/rest@3.2.1 build /home/runner/work/spec/spec/packages/rest
2
+ > @objectstack/rest@3.2.2 build /home/runner/work/spec/spec/packages/rest
3
3
  > tsup --config ../../tsup.config.ts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -12,11 +12,11 @@
12
12
  CJS Build start
13
13
  ESM dist/index.js 21.00 KB
14
14
  ESM dist/index.js.map 50.78 KB
15
- ESM ⚡️ Build success in 61ms
15
+ ESM ⚡️ Build success in 74ms
16
16
  CJS dist/index.cjs 22.13 KB
17
17
  CJS dist/index.cjs.map 51.29 KB
18
- CJS ⚡️ Build success in 70ms
18
+ CJS ⚡️ Build success in 83ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 17086ms
20
+ DTS ⚡️ Build success in 17614ms
21
21
  DTS dist/index.d.ts 6.42 KB
22
22
  DTS dist/index.d.cts 6.42 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @objectstack/rest
2
2
 
3
+ ## 3.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [46defbb]
8
+ - @objectstack/spec@3.2.2
9
+ - @objectstack/core@3.2.2
10
+
3
11
  ## 3.2.1
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectstack/rest",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "ObjectStack REST API Server - automatic REST endpoint generation from protocol",
6
6
  "type": "module",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "zod": "^4.3.6",
18
- "@objectstack/core": "3.2.1",
19
- "@objectstack/spec": "3.2.1"
18
+ "@objectstack/core": "3.2.2",
19
+ "@objectstack/spec": "3.2.2"
20
20
  },
21
21
  "devDependencies": {
22
22
  "typescript": "^5.0.0",
package/src/rest.test.ts CHANGED
@@ -445,7 +445,7 @@ describe('RestServer', () => {
445
445
  protocol.getData.mockResolvedValue({
446
446
  object: 'order_item',
447
447
  id: 'oi_123',
448
- record: { _id: 'oi_123', name: 'Item 1' },
448
+ record: { id: 'oi_123', name: 'Item 1' },
449
449
  });
450
450
 
451
451
  await getByIdRoute!.handler(mockReq, mockRes);
@@ -478,7 +478,7 @@ describe('RestServer', () => {
478
478
  protocol.getData.mockResolvedValue({
479
479
  object: 'contact',
480
480
  id: 'c_1',
481
- record: { _id: 'c_1' },
481
+ record: { id: 'c_1' },
482
482
  });
483
483
 
484
484
  await getByIdRoute!.handler(mockReq, mockRes);