@hubspot/ui-extensions-dev-server 1.1.4 → 1.1.6

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.
@@ -599,7 +599,7 @@ describe('ast', () => {
599
599
  'firstname',
600
600
  'lastname',
601
601
  ]);
602
- expect(dep.properties.paginationOptions).toEqual({});
602
+ expect(dep.properties.paginationOptions).toBeUndefined();
603
603
  expect(dep.properties.options).toEqual({});
604
604
  }
605
605
  });
package/dist/lib/ast.js CHANGED
@@ -183,7 +183,8 @@ function _processAssociationsHook(node, output) {
183
183
  type: propertyType,
184
184
  toObjectTypeId,
185
185
  requestProperties: propertiesArray,
186
- paginationOptions,
186
+ // We need to only store paginationOptions if it's not an empty object. Otherwise it causes BE validation issues.
187
+ ...(Object.keys(paginationOptions).length > 0 && { paginationOptions }),
187
188
  options: otherOptions,
188
189
  },
189
190
  });
@@ -216,7 +216,7 @@ export type DataDependency = {
216
216
  type: 'CrmRecordAssociationProperties';
217
217
  toObjectTypeId: string;
218
218
  requestProperties: string[];
219
- paginationOptions: {
219
+ paginationOptions?: {
220
220
  [key: string]: any;
221
221
  };
222
222
  options: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/ui-extensions-dev-server",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "bin": {
@@ -42,7 +42,8 @@
42
42
  "express": "5.1.0",
43
43
  "inquirer": "12.9.6",
44
44
  "ora": "8.2.0",
45
- "vite": "6.3.6"
45
+ "vite": "6.3.6",
46
+ "ws": "^8.18.3"
46
47
  },
47
48
  "devDependencies": {
48
49
  "@changesets/cli": "^2.29.7",
@@ -63,8 +64,7 @@
63
64
  "lint-staged": "^10.5.4",
64
65
  "prettier": "^3.6.2",
65
66
  "typescript": "^5.9.2",
66
- "vitest": "^2.1.9",
67
- "ws": "^8.18.3"
67
+ "vitest": "^2.1.9"
68
68
  },
69
69
  "engines": {
70
70
  "node": ">=18"