Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/bounded-config-polling.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/commerce-storefront/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @godaddy/gd-commerce-storefront

## 0.8.0

### Minor Changes

- 408ad4a: Configuration polling while the server reports `unbound` or `connecting` now ends. After the page loads, the provider polls `/api/commerce/config` every five seconds for five minutes, then every minute, and stops at thirty minutes, whether or not requests fail. Before, it polled every five seconds for as long as the page stayed visible. Reloading the page or a change in the reported state (for example, a focus refresh finding `unbound` became `connecting`) starts polling again, and focus and `retryConnection()` still refresh configuration. A page still `connecting` when polling stops shows the connection error with "Retry connection" instead of waiting indefinitely. Retrying shows connecting again and starts a new polling period; a failed retry shows connecting for at least a second before the error returns, so the click always has visible feedback. Retrying without an error refreshes without changing the connection state, so carts are kept.

## 0.7.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/commerce-storefront/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@godaddy/gd-commerce-storefront",
"version": "0.7.0",
"version": "0.8.0",
"description": "Opinionated React storefront templates for GoDaddy Commerce",
"type": "module",
"license": "MIT",
Expand Down