diff --git a/CHANGELOG.md b/CHANGELOG.md index f3d1839389..46207c6e8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,45 +1,203 @@ -# Release 9.0.1 +# Release 10.0.0 **NOTE:** -_This changelog only contains release notes for PWA Studio and Venia 9.0.1._ +_This changelog only contains release notes for PWA Studio and Venia 10.0.0._ _For older release notes, see [PWA Studio releases][]._ ## Table of contents -- [What's new in 9.0.1](#whats-new-in-901) +- [What's new in 10.0.0](#whats-new-in-1000) - [Pull requests merged in this release](#pull-requests-merged-in-this-release) - [Known issues](#known-issues) - [Upgrading from a previous version](#upgrading-from-a-previous-version) -## What's new in 9.0.1 +## What's new in 10.0.0 -PWA Studio 9.0.1 contains the same features, refactors, and various improvements in the previous [9.0.0 release][] plus a hotfix for the `create-pwa` CLI tool. +PWA Studio 10.0.0 contains new features, refactors, bug fixes, and various improvements. +This version is compatible with **Magento 2.4.2**. -[9.0.0 release]: https://github.com/magento/pwa-studio/releases/tag/v9.0.0 +### Build report tool -### Hotfix for `create-pwa` +The build report tool is a Buildpack CLI command that returns information about a storefront setup and development environment. +This feature makes it easier to provide information when reporting issues or for general debugging purposes. -This release fixes a bug that crashes the scaffolding tool whenever you run `yarn create @magento/pwa` or `npx @magento/create-pwa`. +The following command is now available for newly scaffolded projects: + +```sh +yarn build:report +``` + +[![Image from Gyazo](https://i.gyazo.com/960b390007953778d67d298bd27b4886.png)](https://gyazo.com/960b390007953778d67d298bd27b4886) + +### Check or Money Order payments + +A PWA Studio extension that allows check or money order payments is now available thanks to the contribution of community member [Lars Roettig][]. +If the Magento backend has the **Check or Money Order** option enabled, this extension lets storefront customers use this payment option. + +Storefront developers can install this extension to add the new payment feature instead of writing custom frontend code to support this feature. +Extension developers can view the extension's [source code][] to learn how to implement their own payment methods extension. + +**NOTE:** +_Currently, the data for `Make Check Payable to` and `Send Check to` is static because data from the Admin is not available from the GraphQL endpoint in Magento 2.4.2._ + +![Check or Money Order payment](https://user-images.githubusercontent.com/40405790/110977749-22296200-8328-11eb-89e2-4a0116a55647.png) + +[Lars Roettig]: https://github.com/larsroettig +[source code]: https://github.com/magento/pwa-studio/tree/develop/packages/extensions/venia-sample-payments-checkmo + +### Custom scaffolding template + +The Buildpack scaffolding tool for creating new projects now lets you specify a custom template and version. +This feature lets you create a storefront project based on a non-Venia template or use a pre-release version of the Venia template. + +![Custom scaffolding template](https://user-images.githubusercontent.com/4692281/112341120-25f5a680-8c8f-11eb-9174-122dcc1eb5c4.png) + +### MegaMenu component + +A MegaMenu component is now available in the Venia UI library thanks to the contribution of community member [Marcin Kwiatkowski][]. +This component displays product categories and subcategories defined in the Magento backend. + +![MegaMenu component](https://user-images.githubusercontent.com/11998249/104089828-473f1d00-5272-11eb-900f-b7e11d9a532b.png) + +[Marcin Kwiatkowski]: https://github.com/Frodigo + +### Store switcher + +The Venia UI library now provides components that support multiple store views. +These components let customers switch between the different store views defined in the Magento backend. + +These components also support grouped store views if available from Magento. + +![](https://i.gyazo.com/8ed1bfeb749823013695e4eb930d2e81.png) + +### Improved performance + +This release improves the performance of the Venia storefront and its underlying components. +These improvements include: + +- Enabling text compression for the UPWARD-JS server +- Removing unused JavaScript in Venia +- Investigating and improving render blocking and response in Venia + +### Increased test coverage + +Our continued commitment to stability and quality has seen an increase in overall unit test code coverage. + +Coverage as reported by [coveralls.io][]: + +Current coverage (10.0.0): **85.685%** + +Previous coverage (9.0.1): **84.19%** + +[coveralls.io]: ## Pull requests merged in this release +### Venia (storefront and visual component library) + +| Description | Change type | PR | +| ------------------------------------------------------------------------------------------------- | ----------- | --------- | +| Added MegeMenu feature and components | **Feature** | [#2932][] | +| Added ability to lazy Load/trim unused bytes in main routes | **Feature** | [#2988][] | +| Implemented Check or Money Order payment feature | **Feature** | [#2969][] | +| Added support for Configurable Product Image setting in the backend | **Feature** | [#2958][] | +| Created Store Switcher Groups components | **Feature** | [#2956][] | +| Added ability to remove saved payment methods | **Feature** | [#2943][] | +| Created ErrorView components | **Feature** | [#2936][] | +| Created Debugging Reporter feature | **Feature** | [#2910][] | +| Added link click handler inside of GalleryItem | **Feature** | [#3053][] | +| Excluded `venia-ui/lib/components/Checkout` from Coverage Report | **Update** | [#3023][] | +| Increased test coverage for `venia-ui/lib/components/CreateAccountPage` | **Update** | [#3021][] | +| Increased test coverage in `venia-ui/lib/components/CheckoutPage` | **Update** | [#3018][] | +| Created Venia UI App related tests | **Update** | [#3015][] | +| Removed "Home Page" from Title | **Update** | [#3012][] | +| Increased test coverage in `venia-ui/lib/components/MagentoRoute` | **Update** | [#3006][] | +| Increased test coverage in `venia-ui/lib/components/Main` | **Update** | [#3004][] | +| Removed data from all persisted Apollo caches | **Update** | [#2992][] | +| Investigated and improved render/blocking in Venia | **Update** | [#2952][] | +| Fixed mini cart not updating when logged in user has the same simple product already added | **Bugfix** | [#2996][] | +| Fixed CMS header line height | **Bugfix** | [#3032][] | +| Fixed bug where default Toasts do not fall back to using the DEFAULT_TIMEOUT | **Bugfix** | [#2982][] | +| Fixed a bug where dialog component would not reset fields on close after submitting | **Bugfix** | [#2960][] | +| Set a fixed minimum height on the main page | **Bugfix** | [#2942][] | +| Added a page level error and disabled checkout button when there are no available payment methods | **Bugfix** | [#2873][] | + +### Peregrine library + +| Description | Change type | PR | +| ----------------------------------------------------------------------------------------- | ------------ | --------- | +| Added middleware to schedule sign-out | **Feature** | [#2904][] | +| Added support for Product URL and Category URL Settings | **Feature** | [#2895][] | +| Increased test coverage for `packages/peregrine/lib/talons/CheckoutPage` | **Update** | [#3024][] | +| Increase test coverage in `peregrine/lib/talons/SignIn` | **Update** | [#2998][] | +| Updated Media Url generation logic to use store code header with a default fallback value | **Update** | [#2941][] | +| Moved Price Summary GraphQL fragment into Peregrine | **Refactor** | [#3007][] | +| Refactor comment on cmsPage talon to reflect why we compare against default string | **Refactor** | [#3062][] | +| Cleaned up an invalid function reference in billing address | **Refactor** | [#3065][] | + ### Build tools -| Description | Change type | PR | -| ------------------------------------------------- | ----------- | --------- | -| Removed lodash from create-pwa | **Bugfix** | [#3003][] | -| Added venia-concept as a dependency of create-pwa | **Bugfix** | [#3008][] | +| Description | Change type | PR | +| ---------------------------------------------------------------------- | ----------- | --------- | +| Added ability to use custom template for scaffolding | **Feature** | [#3025][] | +| Added option to use custom https certificates with buildpack | **Feature** | [#2946][] | +| Updated compile time logic to fetch store name from the GraphQL server | **Update** | [#3019][] | +| Fixed command escaping in the `create-pwa` shell command | **Bugfix** | [#3022][] | + +### UPWARD + +| Description | Change type | PR | +| --------------------------------------------------------------- | ----------- | --------- | +| Added support for express server compression middleware. | **Feature** | [#2980][] | +| Added ability to allow `blob` types for UPWARD security headers | **Feature** | [#2985][] | +| Added the xfwd option to the proxyMiddleware | **Feature** | [#2986][] | + +### Extensions + +| Description | Change type | PR | +| ----------------------------------------------------- | ----------- | --------- | +| Added a null check for element styling in PageBuilder | **Update** | [#3016][] | + +### Documentation + +| Description | Change type | PR | +| ----------------------------------------------- | ----------------- | --------- | +| Published a new tag list extension tutorial | **Documentation** | [#3044][] | +| Published new topic about extension development | **Documentation** | [#2995][] | +| Published new topic about Targetables | **Documentation** | [#2966][] | +| Updated code sample in documentation | **Update** | [#2938][] | +| Updated getting started section in docs | **Update** | [#2926][] | +| Updated "Modify talon results" tutorial | **Bugfix** | [#3039][] | +| Fixed broken link in doc topic | **Bugfix** | [#3002][] | + +### Misc + +| Description | Change type | PR | +| -------------------------------------------- | ----------- | --------- | +| Removed auto-assign logic for new docs issue | **Update** | [#3040][] | +| Upgraded workbox to v6 | **Update** | [#2983][] | +| Added coveralls badge back to the README | **Update** | [#2978][] | +| Upgraded React to v17 | **Update** | [#2962][] | +| Enabled singleton style tag | **Update** | [#2906][] | +| Updated prettier config | **Update** | [#2900][] | +| Removed cyclic dependencies | **Bugfix** | [#2967][] | ## Known issues - If you are using Multi-Source Inventory(MSI), a GraphQL issue prevents users from adding a configurable product to the shopping cart on non-default store views. + This issue is fixed in Magento's `2.4-develop` branch, and should be available in the next Magento release. - Prerender feature is unable to cache HTML on Fastly enabled environments. - The `yarn watch` process may run out of memory if left running for an extended amount of time. If an error occurs because of this, restart the watcher. +- Navigating to the Venia storefront produces `TypeError: Failed to fetch` in the console. + This is a [Workbox issue][] caused by the service worker when it requests the `index.html` route. + This has no impact on Venia functionality but will be fixed in the next release when the Workbox dependency is updated. + + [workbox issue]: https://github.com/GoogleChrome/workbox/pull/2777 ## Upgrading from a previous version -The method for updating to 9.0.1 from a previous version depends on how PWA Studio is incorporated into your project. +The method for updating to 10.0.0 from a previous version depends on how PWA Studio is incorporated into your project. The following are common use cases we have identified and how to update the project code. ### Scaffolded project @@ -101,7 +259,7 @@ This is the easiest way to work with the released versions of PWA Studio. #### Upgrade method: Update `package.json` -To upgrade to the latest version (currently 9.0.1), simply call `yarn add` on each of the `@magento` packages. This will both update `package.json` in your project, as well as install the latest versions. +To upgrade to the latest version (currently 10.0.0), simply call `yarn add` on each of the `@magento` packages. This will both update `package.json` in your project, as well as install the latest versions. Sample command: @@ -111,5 +269,58 @@ yarn add @magento/eslint-config @magento/pagebuilder @magento/peregrine @magento [pwa studio releases]: https://github.com/magento/pwa-studio/releases -[#3003]: https://github.com/magento/pwa-studio/pull/3003 -[#3008]: https://github.com/magento/pwa-studio/pull/3008 +[#3044]: https://github.com/magento/pwa-studio/pull/3044 +[#3040]: https://github.com/magento/pwa-studio/pull/3040 +[#3039]: https://github.com/magento/pwa-studio/pull/3039 +[#3032]: https://github.com/magento/pwa-studio/pull/3032 +[#3025]: https://github.com/magento/pwa-studio/pull/3025 +[#3024]: https://github.com/magento/pwa-studio/pull/3024 +[#3023]: https://github.com/magento/pwa-studio/pull/3023 +[#3022]: https://github.com/magento/pwa-studio/pull/3022 +[#3021]: https://github.com/magento/pwa-studio/pull/3021 +[#3019]: https://github.com/magento/pwa-studio/pull/3019 +[#3018]: https://github.com/magento/pwa-studio/pull/3018 +[#3016]: https://github.com/magento/pwa-studio/pull/3016 +[#3015]: https://github.com/magento/pwa-studio/pull/3015 +[#3012]: https://github.com/magento/pwa-studio/pull/3012 +[#3011]: https://github.com/magento/pwa-studio/pull/3011 +[#3007]: https://github.com/magento/pwa-studio/pull/3007 +[#3006]: https://github.com/magento/pwa-studio/pull/3006 +[#3004]: https://github.com/magento/pwa-studio/pull/3004 +[#3002]: https://github.com/magento/pwa-studio/pull/3002 +[#2998]: https://github.com/magento/pwa-studio/pull/2998 +[#2996]: https://github.com/magento/pwa-studio/pull/2996 +[#2995]: https://github.com/magento/pwa-studio/pull/2995 +[#2992]: https://github.com/magento/pwa-studio/pull/2992 +[#2988]: https://github.com/magento/pwa-studio/pull/2988 +[#2985]: https://github.com/magento/pwa-studio/pull/2985 +[#2983]: https://github.com/magento/pwa-studio/pull/2983 +[#2982]: https://github.com/magento/pwa-studio/pull/2982 +[#2980]: https://github.com/magento/pwa-studio/pull/2980 +[#2978]: https://github.com/magento/pwa-studio/pull/2978 +[#2969]: https://github.com/magento/pwa-studio/pull/2969 +[#2967]: https://github.com/magento/pwa-studio/pull/2967 +[#2966]: https://github.com/magento/pwa-studio/pull/2966 +[#2962]: https://github.com/magento/pwa-studio/pull/2962 +[#2960]: https://github.com/magento/pwa-studio/pull/2960 +[#2958]: https://github.com/magento/pwa-studio/pull/2958 +[#2956]: https://github.com/magento/pwa-studio/pull/2956 +[#2952]: https://github.com/magento/pwa-studio/pull/2952 +[#2946]: https://github.com/magento/pwa-studio/pull/2946 +[#2943]: https://github.com/magento/pwa-studio/pull/2943 +[#2942]: https://github.com/magento/pwa-studio/pull/2942 +[#2941]: https://github.com/magento/pwa-studio/pull/2941 +[#2938]: https://github.com/magento/pwa-studio/pull/2938 +[#2936]: https://github.com/magento/pwa-studio/pull/2936 +[#2926]: https://github.com/magento/pwa-studio/pull/2926 +[#2910]: https://github.com/magento/pwa-studio/pull/2910 +[#2906]: https://github.com/magento/pwa-studio/pull/2906 +[#2904]: https://github.com/magento/pwa-studio/pull/2904 +[#2900]: https://github.com/magento/pwa-studio/pull/2900 +[#2895]: https://github.com/magento/pwa-studio/pull/2895 +[#2873]: https://github.com/magento/pwa-studio/pull/2873 +[#2986]: https://github.com/magento/pwa-studio/pull/2986 +[#3062]: https://github.com/magento/pwa-studio/pull/3062 +[#2932]: https://github.com/magento/pwa-studio/pull/2932 +[#3053]: https://github.com/magento/pwa-studio/pull/3053 +[#3065]: https://github.com/magento/pwa-studio/pull/3065 diff --git a/magento-compatibility.js b/magento-compatibility.js index 395920df2e..a632bed1a8 100644 --- a/magento-compatibility.js +++ b/magento-compatibility.js @@ -4,6 +4,7 @@ // PWA Studio version -> Magento version. module.exports = { + '10.0.0': '2.4.2', '9.0.1': '2.4.2', '9.0.0': '2.4.2', '8.0.0': '2.4.0 - 2.4.1', diff --git a/package.json b/package.json index 5bc0a6e3b7..770d327c43 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@magento/pwa-studio", - "version": "9.0.1", + "version": "10.0.0", "private": true, "workspaces": [ "packages/babel-preset-peregrine", diff --git a/packages/create-pwa/package.json b/packages/create-pwa/package.json index fbf1820e53..a12f002378 100644 --- a/packages/create-pwa/package.json +++ b/packages/create-pwa/package.json @@ -1,6 +1,6 @@ { "name": "@magento/create-pwa", - "version": "1.2.1", + "version": "1.3.0", "publishConfig": { "access": "public" }, @@ -29,10 +29,11 @@ }, "homepage": "https://github.com/magento/pwa-studio/tree/master/packages/create-pwa#readme", "dependencies": { - "@magento/pwa-buildpack": "~8.0.1", - "@magento/venia-concept": "~9.0.1", + "@magento/pwa-buildpack": "~9.0.0", + "@magento/venia-concept": "~10.0.0", "chalk": "^2.4.2", "change-case": "^3.1.0", + "compression": "~1.7.4", "execa": "^1.0.0", "git-user-info": "^1.0.1", "inquirer": "^6.3.1", diff --git a/packages/extensions/upward-security-headers/package.json b/packages/extensions/upward-security-headers/package.json index f7cb953668..e45e2104a5 100644 --- a/packages/extensions/upward-security-headers/package.json +++ b/packages/extensions/upward-security-headers/package.json @@ -1,6 +1,6 @@ { "name": "@magento/upward-security-headers", - "version": "1.0.2", + "version": "1.0.3", "publishConfig": { "access": "public" }, @@ -13,8 +13,8 @@ "author": "Magento Commerce", "license": "(OSL-3.0 OR AFL-3.0)", "peerDependencies": { - "@magento/pwa-buildpack": "~8.0.1", - "@magento/venia-ui": "~6.0.1", + "@magento/pwa-buildpack": "~9.0.0", + "@magento/venia-ui": "~7.0.0", "webpack": "~4.46.0" }, "pwa-studio": { diff --git a/packages/extensions/venia-adobe-data-layer/package.json b/packages/extensions/venia-adobe-data-layer/package.json index 89a4350bf1..a963c84ffd 100644 --- a/packages/extensions/venia-adobe-data-layer/package.json +++ b/packages/extensions/venia-adobe-data-layer/package.json @@ -1,6 +1,6 @@ { "name": "@magento/venia-adobe-data-layer", - "version": "0.0.1", + "version": "1.0.0", "publishConfig": { "access": "public" }, @@ -15,7 +15,7 @@ "@adobe/adobe-client-data-layer": "~1.1.3" }, "peerDependencies": { - "@magento/peregrine": "~9.0.0", + "@magento/peregrine": "~10.0.0", "react": "~17.0.1" }, "pwa-studio": { diff --git a/packages/extensions/venia-sample-backends/package.json b/packages/extensions/venia-sample-backends/package.json index 3dac0cd429..15ca2db251 100644 --- a/packages/extensions/venia-sample-backends/package.json +++ b/packages/extensions/venia-sample-backends/package.json @@ -1,6 +1,6 @@ { "name": "@magento/venia-sample-backends", - "version": "0.0.2", + "version": "0.0.3", "publishConfig": { "access": "public" }, @@ -13,7 +13,7 @@ "repository": "github:magento/pwa-studio", "license": "(OSL-3.0 OR AFL-3.0)", "peerDependencies": { - "@magento/pwa-buildpack": "~8.0.1", + "@magento/pwa-buildpack": "~9.0.0", "node-fetch": "~2.3.0" }, "pwa-studio": { diff --git a/packages/extensions/venia-sample-language-packs/package.json b/packages/extensions/venia-sample-language-packs/package.json index ab1c738736..a084cd223b 100644 --- a/packages/extensions/venia-sample-language-packs/package.json +++ b/packages/extensions/venia-sample-language-packs/package.json @@ -1,6 +1,6 @@ { "name": "@magento/venia-sample-language-packs", - "version": "0.0.2", + "version": "0.0.3", "publishConfig": { "access": "public" }, @@ -12,8 +12,8 @@ "repository": "github:magento/pwa-studio", "license": "(OSL-3.0 OR AFL-3.0)", "peerDependencies": { - "@magento/pwa-buildpack": "~8.0.1", - "@magento/venia-ui": "~6.0.1" + "@magento/pwa-buildpack": "~9.0.0", + "@magento/venia-ui": "~7.0.0" }, "pwa-studio": { "targets": { diff --git a/packages/extensions/venia-sample-payments-checkmo/package.json b/packages/extensions/venia-sample-payments-checkmo/package.json index 33af5ee07a..46849b6056 100644 --- a/packages/extensions/venia-sample-payments-checkmo/package.json +++ b/packages/extensions/venia-sample-payments-checkmo/package.json @@ -12,9 +12,9 @@ "repository": "github:magento/pwa-studio", "license": "(OSL-3.0 OR AFL-3.0)", "peerDependencies": { - "@magento/peregrine": "~9.0.0", - "@magento/pwa-buildpack": "~8.0.1", - "@magento/venia-ui": "~6.0.1", + "@magento/peregrine": "~10.0.0", + "@magento/pwa-buildpack": "~9.0.0", + "@magento/venia-ui": "~7.0.0", "react": "~17.0.1", "react-intl": "~5.7.0", "react-router-dom": "~5.1.0" diff --git a/packages/graphql-cli-validate-magento-pwa-queries/package.json b/packages/graphql-cli-validate-magento-pwa-queries/package.json index 5c84c8119d..f7b0006638 100644 --- a/packages/graphql-cli-validate-magento-pwa-queries/package.json +++ b/packages/graphql-cli-validate-magento-pwa-queries/package.json @@ -1,6 +1,6 @@ { "name": "graphql-cli-validate-magento-pwa-queries", - "version": "1.3.1", + "version": "1.4.0", "publishConfig": { "access": "public" }, diff --git a/packages/pagebuilder/package.json b/packages/pagebuilder/package.json index 3ac746e316..1fc13730ad 100644 --- a/packages/pagebuilder/package.json +++ b/packages/pagebuilder/package.json @@ -1,6 +1,6 @@ { "name": "@magento/pagebuilder", - "version": "4.0.1", + "version": "5.0.0", "publishConfig": { "access": "public" }, @@ -34,9 +34,9 @@ "homepage": "https://github.com/magento/pwa-studio/tree/master/packages/pagebuilder#readme", "dependencies": {}, "devDependencies": { - "@magento/peregrine": "~9.0.0", - "@magento/pwa-buildpack": "~8.0.1", - "@magento/venia-ui": "~6.0.1", + "@magento/peregrine": "~10.0.0", + "@magento/pwa-buildpack": "~9.0.0", + "@magento/venia-ui": "~7.0.0", "@storybook/react": "~6.1.14", "jarallax": "~1.11.1", "load-google-maps-api": "~2.0.1", @@ -50,9 +50,9 @@ "peerDependencies": { "@apollo/client": "~3.1.2", "@magento/babel-preset-peregrine": "~1.1.0", - "@magento/peregrine": "~9.0.0", - "@magento/pwa-buildpack": "~8.0.1", - "@magento/venia-ui": "~6.0.1", + "@magento/peregrine": "~10.0.0", + "@magento/pwa-buildpack": "~9.0.0", + "@magento/venia-ui": "~7.0.0", "jarallax": "~1.11.1", "load-google-maps-api": "~2.0.1", "lodash.escape": "~4.0.1", diff --git a/packages/peregrine/lib/talons/AccountMenu/useAccountMenuItems.js b/packages/peregrine/lib/talons/AccountMenu/useAccountMenuItems.js index 66700af02f..4d387771d0 100644 --- a/packages/peregrine/lib/talons/AccountMenu/useAccountMenuItems.js +++ b/packages/peregrine/lib/talons/AccountMenu/useAccountMenuItems.js @@ -20,11 +20,12 @@ export const useAccountMenuItems = props => { id: 'accountMenu.orderHistoryLink', url: '/order-history' }, - { - name: 'Store Credit & Gift Cards', - id: 'accountMenu.storeCreditLink', - url: '' - }, + // Hide links until features are completed + // { + // name: 'Store Credit & Gift Cards', + // id: 'accountMenu.storeCreditLink', + // url: '' + // }, { name: 'Favorites Lists', id: 'accountMenu.favoritesListsLink', diff --git a/packages/peregrine/lib/talons/CheckoutPage/BillingAddress/useBillingAddress.js b/packages/peregrine/lib/talons/CheckoutPage/BillingAddress/useBillingAddress.js index f8392b44ba..03f4e8338b 100644 --- a/packages/peregrine/lib/talons/CheckoutPage/BillingAddress/useBillingAddress.js +++ b/packages/peregrine/lib/talons/CheckoutPage/BillingAddress/useBillingAddress.js @@ -270,12 +270,13 @@ export const useBillingAddress = props => { } setIsBillingAddressSameInCache(); } else { - setErrors(formState.errors); throw new Error('Errors in the billing address form'); } } } catch (err) { - console.error(err); + if (process.env.NODE_ENV !== 'production') { + console.error(err); + } onBillingAddressChangedError(); } }, [ @@ -316,7 +317,9 @@ export const useBillingAddress = props => { throw new Error('Billing address mutation failed'); } } catch (err) { - console.error(err); + if (process.env.NODE_ENV !== 'production') { + console.error(err); + } onBillingAddressChangedError(); } }, [ diff --git a/packages/peregrine/lib/talons/CheckoutPage/PaymentInformation/useCreditCard.js b/packages/peregrine/lib/talons/CheckoutPage/PaymentInformation/useCreditCard.js index e510a7b4bc..827dda53e0 100644 --- a/packages/peregrine/lib/talons/CheckoutPage/PaymentInformation/useCreditCard.js +++ b/packages/peregrine/lib/talons/CheckoutPage/PaymentInformation/useCreditCard.js @@ -407,7 +407,9 @@ export const useCreditCard = props => { } } } catch (err) { - console.error(err); + if (process.env.NODE_ENV !== 'production') { + console.error(err); + } setStepNumber(0); resetShouldSubmit(); setShouldRequestPaymentNonce(false); @@ -456,7 +458,9 @@ export const useCreditCard = props => { throw new Error('Billing address mutation failed'); } } catch (err) { - console.error(err); + if (process.env.NODE_ENV !== 'production') { + console.error(err); + } setStepNumber(0); resetShouldSubmit(); setShouldRequestPaymentNonce(false); @@ -499,7 +503,9 @@ export const useCreditCard = props => { throw new Error('Credit card nonce save mutation failed.'); } } catch (err) { - console.error(err); + if (process.env.NODE_ENV !== 'production') { + console.error(err); + } setStepNumber(0); resetShouldSubmit(); setShouldRequestPaymentNonce(false); diff --git a/packages/peregrine/package.json b/packages/peregrine/package.json index 50a46a7191..48d9fd847d 100644 --- a/packages/peregrine/package.json +++ b/packages/peregrine/package.json @@ -1,6 +1,6 @@ { "name": "@magento/peregrine", - "version": "9.0.0", + "version": "10.0.0", "publishConfig": { "access": "public" }, diff --git a/packages/pwa-buildpack/package.json b/packages/pwa-buildpack/package.json index 0fe6236d4f..179507af2e 100644 --- a/packages/pwa-buildpack/package.json +++ b/packages/pwa-buildpack/package.json @@ -1,6 +1,6 @@ { "name": "@magento/pwa-buildpack", - "version": "8.0.1", + "version": "9.0.0", "publishConfig": { "access": "public" }, @@ -27,7 +27,7 @@ "homepage": "https://github.com/magento/pwa-studio/tree/master/packages/pwa-buildpack#readme", "dependencies": { "@magento/directive-parser": "~0.1.7", - "@magento/upward-js": "~5.0.1", + "@magento/upward-js": "~5.1.0", "@pmmmwh/react-refresh-webpack-plugin": "~0.4.1", "@yarnpkg/lockfile": "~1.1.0", "apicache": "~1.4.0", diff --git a/packages/upward-js/package.json b/packages/upward-js/package.json index 3914482ce0..4fd63ecfbd 100644 --- a/packages/upward-js/package.json +++ b/packages/upward-js/package.json @@ -1,6 +1,6 @@ { "name": "@magento/upward-js", - "version": "5.0.1", + "version": "5.1.0", "publishConfig": { "access": "public" }, diff --git a/packages/venia-concept/package.json b/packages/venia-concept/package.json index 5df04019cb..8544b4b1a0 100644 --- a/packages/venia-concept/package.json +++ b/packages/venia-concept/package.json @@ -1,6 +1,6 @@ { "name": "@magento/venia-concept", - "version": "9.0.1", + "version": "10.0.0", "publishConfig": { "access": "public" }, @@ -37,7 +37,7 @@ }, "homepage": "https://github.com/magento/pwa-studio/tree/master/packages/venia-concept#readme", "dependencies": { - "@magento/pwa-buildpack": "~8.0.1" + "@magento/pwa-buildpack": "~9.0.0" }, "devDependencies": { "@adobe/apollo-link-mutation-queue": "~1.0.2", @@ -53,11 +53,11 @@ "@babel/runtime": "~7.4.2", "@magento/babel-preset-peregrine": "~1.1.0", "@magento/eslint-config": "~1.5.0", - "@magento/pagebuilder": "~4.0.1", - "@magento/peregrine": "~9.0.0", - "@magento/upward-security-headers": "~1.0.2", - "@magento/venia-adobe-data-layer": "~0.0.1", - "@magento/venia-ui": "~6.0.1", + "@magento/pagebuilder": "~5.0.0", + "@magento/peregrine": "~10.0.0", + "@magento/upward-security-headers": "~1.0.3", + "@magento/venia-adobe-data-layer": "~1.0.0", + "@magento/venia-ui": "~7.0.0", "@pmmmwh/react-refresh-webpack-plugin": "0.4.1", "@storybook/react": "~6.1.14", "@wojtekmaj/enzyme-adapter-react-17": "~0.4.1", @@ -86,7 +86,7 @@ "file-loader": "~4.0.0", "graphql": "~15.3.0", "graphql-cli": "~3.0.11", - "graphql-cli-validate-magento-pwa-queries": "~1.3.1", + "graphql-cli-validate-magento-pwa-queries": "~1.4.0", "html-webpack-plugin": "~3.2.0", "informed": "~3.27.0", "jarallax": "~1.11.1", diff --git a/packages/venia-ui/package.json b/packages/venia-ui/package.json index bd089ec40a..a7a470942d 100644 --- a/packages/venia-ui/package.json +++ b/packages/venia-ui/package.json @@ -1,6 +1,6 @@ { "name": "@magento/venia-ui", - "version": "6.0.1", + "version": "7.0.0", "publishConfig": { "access": "public" }, @@ -76,8 +76,8 @@ "peerDependencies": { "@apollo/client": "~3.1.2", "@magento/babel-preset-peregrine": "~1.1.0", - "@magento/peregrine": "~9.0.0", - "@magento/pwa-buildpack": "~8.0.1", + "@magento/peregrine": "~10.0.0", + "@magento/pwa-buildpack": "~9.0.0", "apollo-cache-persist": "~0.1.1", "braintree-web-drop-in": "~1.16.0", "graphql": "~15.3.0", diff --git a/pwa-devdocs/package.json b/pwa-devdocs/package.json index 674a27b4fa..05d8c67d20 100644 --- a/pwa-devdocs/package.json +++ b/pwa-devdocs/package.json @@ -1,7 +1,7 @@ { "name": "pwa-devdocs", "private": true, - "version": "9.0.1", + "version": "10.0.0", "description": "A documentation site for Magento PWA", "main": "gulpfile.js", "dependencies": {