[CDX-262] Node SDK - Add support for item groups v2 endpoints#245
[CDX-262] Node SDK - Add support for item groups v2 endpoints#245
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Pull request overview
Updates the Node SDK catalog item groups support to use the v2 API while keeping v1 methods available but deprecated, aligning with the async task-based behavior of the v2 endpoints.
Changes:
- Mark v1 item group methods as deprecated and emit runtime deprecation warnings.
- Add v2 item group methods: retrieve (single/list), create-or-replace, update, and delete (task-based responses).
- Introduce a new v2-focused test suite and relabel existing item group tests as “V1”.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
src/modules/catalog.js |
Adds v2 item groups methods and deprecates v1 item group methods with warnings. |
spec/src/modules/catalog/catalog-groups.js |
Renames existing groups tests to explicitly cover v1 behavior. |
spec/src/modules/catalog/catalog-groups-v2.js |
Adds tests for v2 item group endpoints and task-based responses. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Code Review Results✅ StrengthsThe deprecation strategy is well-executed — each V1 method gets both a JSDoc 🚨 Critical Issues
|
Adds support for our item groups V2 endpoints and deprecates V1 methods.
PR Notes:
afterhook