Skip to content

Version Packages - #1512

Merged
wcole1-godaddy merged 1 commit into
mainfrom
changeset-release/main
Oct 20, 2026
Merged

wcole1-godaddy merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@godaddy/gd-commerce-server@0.3.0

Minor Changes

  • b39d49d: Return 400 from the order-status route for invalid order IDs, including IDs the Orders API rejects as malformed, and 404 when the Orders API reports the order missing or it belongs to another store or channel, instead of 500. A 404 without the Orders API's NOT_FOUND code, such as from a misconfigured base URL, stays a logged 500. The 500 response no longer includes the internal error message; it is logged server-side instead. Export InvalidOrderIdError, OrderNotFoundError, and ORDER_STATUS_UNKNOWN for in-process getOrderStatus() callers; check error.name rather than instanceof so the check holds when a host has more than one copy of this package.

  • 9a172d8: Standardize route error handling. Every failure now responds with { error, code, requestId } and no longer includes internal error text in a message field.

    Status codes now reflect the cause:

    • 502 for Commerce failures, including rejected OAuth credentials (upstream_unauthorized); previously 500. This includes order-status upstream failures, which were 500. An OAuth 400 is upstream_unauthorized only for invalid_client, invalid_grant, unauthorized_client, or invalid_scope.
    • 503 for missing or unreadable configuration on every route; previously 500 everywhere except /config. Data and checkout routes also return 503 not_configured when the host reports a connection state other than ready; previously 500.
    • 404 for writes to an existing cart (/cart/:id/...) that is missing, expired, or completed; previously 500. Creating a cart and checkout are not classified this way and return 502.
    • 500 only for unexpected errors.

    Hosts can pass logger and getRequestId to the router factories to receive failure detail and reuse their own request ids; a throwing getRequestId falls back to a generated id. In-process helpers, including getOrderStatus() and createCheckoutSession(), throw exported CommerceError subclasses, also when a host configuration throws while being read. Check error.code rather than instanceof or error.name; it holds when a host has more than one copy of this package. validateCommerceCartScope was internal and is replaced by a throwing assertCommerceCartScope.

    Hosts that read message or check for status 500 should switch to code and server-side logs.

@godaddy/react@1.0.59

Patch Changes

  • c564b12: Select a free shipping rate by default when one is available, even if a paid rate was already applied automatically or is already on the draft order. A rate the shopper picks is kept until the page is reloaded or the shopper switches to local pickup.

@github-actions
github-actions Bot requested a review from a team as a code owner October 19, 2026 23:58
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from dac5275 to ecb45b8 Compare October 20, 2026 00:00
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from ecb45b8 to 7a040f3 Compare October 20, 2026 00:12
@wcole1-godaddy
wcole1-godaddy merged commit c85c2b5 into main Oct 20, 2026
@wcole1-godaddy
wcole1-godaddy deleted the changeset-release/main branch October 20, 2026 00:37
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