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
1 change: 1 addition & 0 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
npm:
name: Changeset release
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && !contains(github.event.pull_request.title, '[DOCS]')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

permissions:
contents: write # to be able to publish a GitHub release
pull-requests: write # to be able to comment on released pull requests
Expand Down
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,36 @@
>
> **Critical Deadline: July 1st, 2025.** You must implement one of these changes by this date, or customers will not be able to complete purchases. Please choose the option that best suits your needs and timelines.

### v3.0.7 (June 24, 2025)
* Fix bug where discount codes that were previously added (but not applicable) would be removed
* Now, all discount codes (applicable or not) are preserved when adding other discount codes
* Fix bug where a shipping discount could appear as a line item discount

### v3.0.6 (June 17, 2025)
* Update `checkout.webUrl` to use the same domain as JS Buy SDK v2
* Without this change, if the shop's Online Store primary domain isn't configured correctly and pointing to Shopify, some buyers are unable to checkout successfully.

### Internal fix for behaviour of all `webUrl`s returned by JS Buy SDK (June 17, 2025)
* Buyers will no longer be blocked from checkout and redirected to the shop's password page when clicking on the checkout's `webUrl` with JS Buy SDK v3, even if the shop's Online Store is password protected (to match behaviour of v2)

### v3.0.5 (June 17, 2025)
* Gracefully abort discount mapping if errors occur
* An error has been reported in a scenario where a discount was applied at checkout via a script, but the user navigated back to the store (without completing checkout) and JS Buy SDK v3 was erroring when attempting to map the new cart payload.
* We are going to continue investigating to fix the root cause, but aborting discount mapping in this scenario as a temporary fix is a better user experience in the meantime
* Fix bug where discount code acceptance was case sensitive; now is case-insensitive

### v3.0.4 (April 14, 2025)
* Checkout resource now supports [ComponentizableCartLine type](https://shopify.dev/docs/api/storefront/2024-07/objects/ComponentizableCartLine) (to match behaviour of v2)

### v3.0.3 (April 1, 2025)
* Updated `checkout.addDiscount` to support adding multiple discount codes (to match behaviour of v2)

### v3.0.2 (March 25, 2025)
* Fix bug where the checkout resource would only return the first 10 line items; now returns the first 250 line items

### v3.0.1 (March 20, 2025)
* Same as v3.0.0 but published on npm with provenance

### v3.0.0 (March 12, 2025)
* Bumps the SDK to use Storefront API version `2025-01`.
* Removes the dependency on Checkout APIs and replaces them with Cart APIs.
Expand Down
10 changes: 6 additions & 4 deletions DEPLOYING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,25 @@
npx changeset add
```

### 3. Commit your changes (manually) using git.
### 3. Also add an equivalent message to `CHANGELOG.md` to reflect the changes you are making

### 4. Commit your changes (manually) using git.

**Do NOT bump the version manually in `package.json`.**

### 4. Push your changes
### 5. Push your changes
```
git push
```

### 5. Create a PR and merge it into `main`
### 6. Create a PR and merge it into `main`

This will automatically:
- Bump the version in `package.json`
- Create the tag in GitHub for the new version
- Publish the new version to npm

### 6. Deploy via [Shipit](https://shipit.shopify.io/shopify/js-buy-sdk/production)
### 7. Deploy via [Shipit](https://shipit.shopify.io/shopify/js-buy-sdk/upload)

Merging the PR will automatically publish the new version to npm, but the Shipit deploy is necessary to publish the new version to Shopify's CDN.

Expand Down
Loading