ehowey / gatsby-theme-catalyst

An opinionated set of integrated themes and starters as a boilerplate to accelerate development with GatsbyJS
MIT License
163 stars 15 forks source link

Bump use-shopping-cart from 2.4.3 to 3.0.3 #1369

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 3 years ago

Bumps use-shopping-cart from 2.4.3 to 3.0.3.

Release notes

Sourced from use-shopping-cart's releases.

v3.0.0-beta.3

React API has changed with this version

With the switch from just being a hooks library to a redux implementation, there have been some major changes to how you use the React version of this library.

  • the stripe value in the CartProvider /> needs to be your Public Stripe API key. Redux doesn't like non-serializable types being passed into it, to mitigate this we had to set up a middleware that handles initializing the Stripe object for you.
  • addItem() API has changed to using 2 params instead of 4. addItem(productObject, optionsObject = {count: 1, product_metadata: {...}, price_metadata: {...})

The second param is optional, but under the hood, it creates a default for the options object where count is 1

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
changeset-bot[bot] commented 3 years ago

⚠️ No Changeset found

Latest commit: 6777be238310be06e5c362e4e6cfb506bed719a4

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