Skip to content

Conversation

paprikaf
Copy link
Contributor

@paprikaf paprikaf commented Oct 2, 2025

Support Commerce Layer bundles alongside SKUs

dev release: @builder.io/plugin-commercelayer@0.1.2-0 or @builder.io/plugin-commercelayer@dev


Note

Adds Commerce Layer bundle support and refactors product logic to a generic resource-based API used across plugin and Connect Data.

  • Core:
    • Generalize product-specific logic to a generic resource API with CommerceLayerResourceType and RESOURCE_ENDPOINTS.
    • New helpers: getResource, searchResources, getResourceByHandle, transformResource.
  • Plugin (plugins/commercelayer/src/plugin.ts):
    • Replace product-only service with createResourceService and register both product and bundle.
    • Dynamic request URLs use RESOURCE_ENDPOINTS[type]; request options now include resourceType and resourceId.
  • Connect Data (plugins/commercelayer/src/data-plugin.ts):
    • Support multiple resource types, adding Bundle alongside Product.
    • Build URLs via mapped endpoints; queries work for products or bundles.
  • Docs (plugins/commercelayer/README.md):
    • Update to “Product & Bundle Fields” and note querying products or bundles.

Written by Cursor Bugbot for commit d1237e6. This will update automatically on new commits. Configure here.

Copy link

changeset-bot bot commented Oct 2, 2025

⚠️ No Changeset found

Latest commit: d1237e6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

nx-cloud bot commented Oct 2, 2025

🤖 Nx Cloud AI Fix Eligible

An automatically generated fix could have helped fix failing tasks for this run, but Self-healing CI is disabled for this workspace. Visit workspace settings to enable it and get automatic fixes in future runs.

To disable these notifications, a workspace admin can disable them in workspace settings.


View your CI Pipeline Execution ↗ for commit d1237e6

Command Status Duration Result
nx test @snippet/angular-17-ssr ❌ Failed 5m 15s View ↗
nx test @snippet/react ❌ Failed 3m 8s View ↗
nx test @snippet/svelte ❌ Failed 2m 40s View ↗
nx test @snippet/vue ❌ Failed 2m 45s View ↗
nx test @snippet/angular-17 ❌ Failed 1m 32s View ↗
nx test @e2e/qwik-city ✅ Succeeded 10m 32s View ↗
nx test @e2e/angular-17 ✅ Succeeded 8m 58s View ↗
nx test @e2e/nuxt ✅ Succeeded 8m 19s View ↗
Additional runs (37) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2025-10-07 16:12:30 UTC

cursor[bot]

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant