Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing-14.1.0-PR #4326

Closed
wants to merge 7 commits into from
Closed
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
77 changes: 50 additions & 27 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
# PWA Studio Release 14.0.1
# PWA Studio Release 14.1.0

**NOTE:**
_This changelog only contains release notes for PWA Studio and Venia 14.0.1_
_This changelog only contains release notes for PWA Studio and Venia 14.1.0_
_For older release notes, see_ [PWA Studio releases][].

## Highlights

The 14.0.1 release of PWA Studio provides compatibility with PREX extension and Upgradation from node 14 to 18.
The 14.1.0 release of PWA Studio provides compatibility with PREX extension and Upgradation from node 14 to 18.


## Additional fixes

- Story: [4283][] — OOTB Commerce PWA Venia and PREX compatibility.
- Story: [4279][] — upgrading node support >= 18 . Node 14 and 16 are stale, no more supported for security fixes.
- Bug: [4269][] — Storefront needs to automatically update the newly added/changes translations
- Story: [4319][] — Get Minimum Password Length from configuration.
- Story: [4314][] — Header location should set to correct endpoint in case of 301|302.
- Bug: [4316][] — DevContainer > Node 14 to 18 LTS is updated in dev container
- Bug: [4303][] — Props error on Checkout page
- Bug: [4260][] — Change user time to logout
- Bug: [4277][] — PDP breadcrumbs only show one level of product category
- Bug: [4280][] — Login issue with PWA 14.0
- Bug: [4273][] — PWA Store View Not Functioning for Taiwan Store View with Language Locale 'zh_Hant_TW'
- Bug: [59][] — GraphQL with PWA Non-default Sortable attribute fails
- Bug: [4300][] — Update magento-compatibility.js to indicate all dependencies and just not magento
- Bug: [4309][] — Extending Peregrine Talons for Custom Applications
- Bug: [4305][] — PWA Studio URL redirect not working
- Bug: [4117][] — Update README.md with PWA Studio XD Kit
- Bug: [4301][] — Language translating giving errors


## 14.0.1 Lighthouse scores
## 14.1.0 Lighthouse scores

With each new release of PWA Studio, we perform Lighthouse audits of four Venia page types, each representing a different level of complexity. Shown below are the Lighthouse scores for the 14.0.1 release of these pages on desktop and mobile devices.
With each new release of PWA Studio, we perform Lighthouse audits of four Venia page types, each representing a different level of complexity. Shown below are the Lighthouse scores for the 14.1.0 release of these pages on desktop and mobile devices.

### Desktop scores

Expand Down Expand Up @@ -49,7 +60,7 @@ When a user logs out, that user's local storage session persists. As a result, t

## Upgrading from a previous version

Use the steps outlined in this section to update your [scaffolded project][] from 14.0.0 to 14.0.1.
Use the steps outlined in this section to update your [scaffolded project][] from 14.0.1 to 14.1.0
See [Upgrading versions][] for more information about upgrading between PWA Studio versions.

[scaffolded project]: https://developer.adobe.com/commerce/pwa-studio/tutorials/
Expand All @@ -67,31 +78,43 @@ Your project may not depend on some packages listed in this table.

| Package | Latest version |
|----------------------------------------|----------------|
| `babel-preset-peregrine` | **1.3.3*** |
| `babel-preset-peregrine` | 1.3.3 |
| `create-pwa` | 2.4.6 |
| `experience-platform-connector` | **1.0.7*** |
| `upward-security-headers` | **1.0.16*** |
| `venia-sample-backends` | **0.0.11*** |
| `venia-sample-eventing` | **0.0.8*** |
| `venia-sample-language-packs` | **0.0.16*** |
| `venia-sample-payments-checkmo` | **0.0.14*** |
| `pagebuilder` | **9.3.1*** |
| `peregrine` | **14.3.1*** |
| `pwa-buildpack` | **11.5.3*** |
| `experience-platform-connector` | **1.0.8*** |
| `upward-security-headers` | **1.0.17*** |
| `venia-sample-backends` | 0.0.11 |
| `venia-sample-eventing` | **0.0.9*** |
| `venia-sample-language-packs` | **0.0.17*** |
| `venia-sample-payments-checkmo` | **0.0.15*** |
| `pagebuilder` | **9.3.2*** |
| `peregrine` | **14.4.1*** |
| `pwa-buildpack` | 11.5.3 |
| `pwa-theme-venia` | 2.4.0 |
| `upward-js` | **5.4.2*** |
| `upward-spec` | **5.3.1*** |
| `venia-concept` | **14.0.1*** |
| `venia-ui` | **11.4.0*** |
| `magento2-pwa` | 0.7.2 |
| `upward-js` | 5.4.2 |
| `upward-spec` | 5.3.1 |
| `venia-concept` | **14.1.0*** |
| `venia-ui` | **11.5.0*** |
| `magento2-pwa` | **0.8.2*** |
| `magento2-pwa-commerce` | 0.0.4 |
| `magento-venia-sample-data-modules` | 0.0.5 |
| `magento-venia-sample-data-modules-ee` | 0.0.4 |
| `magento2-upward-connector` | 2.0.4 |
| `upward-php` | 2.0.3 |

[4283]: https://github.com/magento/pwa-studio/pull/4283
[4279]: https://github.com/magento/pwa-studio/pull/4279
[4269]: https://github.com/magento/pwa-studio/pull/4269
[4319]: https://github.com/magento/pwa-studio/pull/4319
[4314]: https://github.com/magento/pwa-studio/pull/4314
[4316]: https://github.com/magento/pwa-studio/pull/4316
[4303]: https://github.com/magento/pwa-studio/pull/4303
[4260]: https://github.com/magento/pwa-studio/pull/4260
[57]: https://github.com/magento-commerce/magento2-pwa/pull/57
[4277]: https://github.com/magento/pwa-studio/pull/4277
[4280]: https://github.com/magento/pwa-studio/pull/4280
[4273]: https://github.com/magento/pwa-studio/pull/4273
[59]: https://github.com/magento-commerce/magento2-pwa/pull/59
[4300]: https://github.com/magento/pwa-studio/pull/4300
[4309]: https://github.com/magento/pwa-studio/pull/4309
[4305]: https://github.com/magento/pwa-studio/pull/4305
[4117]: https://github.com/magento/pwa-studio/pull/4117
[4301]: https://github.com/magento/pwa-studio/pull/4301

[PWA Studio releases]: https://github.com/magento/pwa-studio/releases
1 change: 1 addition & 0 deletions magento-compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

// PWA Studio version -> Magento version.
module.exports = {
'14.1.0': '2.4.7-p2',
'14.0.1': '2.4.7-beta3',
'14.0.0': '2.4.7-beta3',
'13.3.0': '2.4.7-beta2',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magento/pwa-studio",
"version": "14.0.1",
"version": "14.1.0-beta.1",
"private": true,
"workspaces": [
"packages/babel-preset-peregrine",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"homepage": "https://github.com/magento/pwa-studio/tree/main/packages/create-pwa#readme",
"dependencies": {
"@magento/pwa-buildpack": "~11.5.3",
"@magento/venia-concept": "~14.0.1",
"@magento/venia-concept": "14.1.0-beta.1",
"chalk": "^2.4.2",
"change-case": "^3.1.0",
"compression": "~1.7.4",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magento/experience-platform-connector",
"version": "1.0.7",
"version": "1.0.8-beta.1",
"publishConfig": {
"access": "public"
},
Expand All @@ -18,7 +18,7 @@
"devDependencies": {},
"peerDependencies": {
"@apollo/client": "~3.5.0",
"@magento/peregrine": "~14.3.1",
"@magento/peregrine": "14.4.1-beta.1",
"@magento/pwa-buildpack": "~11.5.3",
"react": "~17.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/extensions/upward-security-headers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magento/upward-security-headers",
"version": "1.0.16",
"version": "1.0.17-beta.1",
"publishConfig": {
"access": "public"
},
Expand All @@ -14,7 +14,7 @@
"license": "(OSL-3.0 OR AFL-3.0)",
"peerDependencies": {
"@magento/pwa-buildpack": "~11.5.3",
"@magento/venia-ui": "~11.4.0",
"@magento/venia-ui": "11.5.0-beta.1",
"webpack": "~4.46.0"
},
"pwa-studio": {
Expand Down
4 changes: 2 additions & 2 deletions packages/extensions/venia-sample-eventing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magento/venia-sample-eventing",
"version": "0.0.8",
"version": "0.0.9-beta.1",
"publishConfig": {
"access": "public"
},
Expand All @@ -12,7 +12,7 @@
"repository": "github:magento/pwa-studio",
"license": "(OSL-3.0 OR AFL-3.0)",
"peerDependencies": {
"@magento/peregrine": "~14.3.1",
"@magento/peregrine": "14.4.1-beta.1",
"@magento/pwa-buildpack": "~11.5.3",
"react": "~17.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/extensions/venia-sample-language-packs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magento/venia-sample-language-packs",
"version": "0.0.16",
"version": "0.0.17-beta.1",
"publishConfig": {
"access": "public"
},
Expand All @@ -13,7 +13,7 @@
"license": "(OSL-3.0 OR AFL-3.0)",
"peerDependencies": {
"@magento/pwa-buildpack": "~11.5.3",
"@magento/venia-ui": "~11.4.0"
"@magento/venia-ui": "11.5.0-beta.1"
},
"pwa-studio": {
"targets": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magento/venia-sample-payments-checkmo",
"version": "0.0.14",
"version": "0.0.15-beta.1",
"publishConfig": {
"access": "public"
},
Expand All @@ -12,9 +12,9 @@
"repository": "github:magento/pwa-studio",
"license": "(OSL-3.0 OR AFL-3.0)",
"peerDependencies": {
"@magento/peregrine": "~14.3.1",
"@magento/peregrine": "14.4.1-beta.1",
"@magento/pwa-buildpack": "~11.5.3",
"@magento/venia-ui": "~11.4.0",
"@magento/venia-ui": "11.5.0-beta.1",
"react": "~17.0.1",
"react-intl": "~5.20.0",
"react-router-dom": "~5.2.0"
Expand Down
10 changes: 5 additions & 5 deletions packages/pagebuilder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magento/pagebuilder",
"version": "9.3.1",
"version": "9.3.2-beta.1",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -34,9 +34,9 @@
"homepage": "https://github.com/magento/pwa-studio/tree/main/packages/pagebuilder#readme",
"dependencies": {},
"devDependencies": {
"@magento/peregrine": "~14.3.1",
"@magento/peregrine": "14.4.1-beta.1",
"@magento/pwa-buildpack": "~11.5.3",
"@magento/venia-ui": "~11.4.0",
"@magento/venia-ui": "11.5.0-beta.1",
"@storybook/react": "~6.3.7",
"jarallax": "~1.11.1",
"load-google-maps-api": "~2.0.1",
Expand All @@ -50,9 +50,9 @@
"peerDependencies": {
"@apollo/client": "~3.5.0",
"@magento/babel-preset-peregrine": "~1.3.3",
"@magento/peregrine": "~14.3.1",
"@magento/peregrine": "14.4.1-beta.1",
"@magento/pwa-buildpack": "~11.5.3",
"@magento/venia-ui": "~11.4.0",
"@magento/venia-ui": "11.5.0-beta.1",
"jarallax": "~1.11.1",
"load-google-maps-api": "~2.0.1",
"lodash.escape": "~4.0.1",
Expand Down
8 changes: 6 additions & 2 deletions packages/peregrine/lib/store/actions/user/asyncActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,17 @@ export const resetPassword = ({ email }) =>
dispatch(actions.resetPassword.receive());
};

export const setToken = (token, customer_token_lifetime = 3600) =>
export const setToken = (token, customerAccessTokenLifetime = 1) =>
async function thunk(...args) {
const [dispatch] = args;

// Store token in local storage.
// TODO: Get correct token expire time from API
storage.setItem('signin_token', token, customer_token_lifetime);
storage.setItem(
'signin_token',
token,
customerAccessTokenLifetime * 3600
);

// Persist in store
dispatch(actions.setToken(token));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`handle submit event creates an account, dispatches event, signs in, and generates a new cart 1`] = `
exports[`handle submit event should dispatch create account event 1`] = `
Object {
"payload": Object {
"email": "[email protected]",
Expand All @@ -12,42 +12,24 @@ Object {
}
`;

exports[`returns the correct shape 1`] = `
exports[`should return properly 1`] = `
Object {
"errors": Map {
"createAccountQuery" => undefined,
"signInMutation" => undefined,
"createAccountQuery" => null,
"signInMutation" => null,
},
"handleEnterKeyPress": [Function],
"handleSubmit": [Function],
"initialValues": Object {
"customer": Object {
"email": "[email protected]",
"firstname": "Philip",
"lastname": "Fry",
},
},
"isDisabled": false,
"recaptchaWidgetProps": Object {},
}
`;

exports[`returns the correct shape with no initial values 1`] = `
Object {
"errors": Map {
"createAccountQuery" => undefined,
"signInMutation" => undefined,
},
"handleEnterKeyPress": [Function],
"handleSubmit": [Function],
"initialValues": Object {
"customer": Object {
"email": undefined,
"firstname": undefined,
"lastname": undefined,
"email": "[email protected]",
"firstname": "Gooseton",
"lastname": "Jr",
},
"userName": "gooseton",
},
"isDisabled": false,
"minimumPasswordLength": 8,
"recaptchaWidgetProps": Object {},
}
`;
Loading
Loading