Skip to content

Commit 9c05ab6

Browse files
committed
release v4.0.0
Signed-off-by: Erik Kieckhafer <ek@ato.la>
1 parent 633d2a7 commit 9c05ab6

File tree

3 files changed

+40
-13
lines changed

3 files changed

+40
-13
lines changed

CHANGELOG.md

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,53 @@
1-
# v3.2.0
1+
# v4.0.0
22

3-
## Refactors
3+
Example Storefront v4.0.0 adds major features and performance enhancements, and does contain breaking changes since v3.1.0
4+
5+
_This is a reminder that starting with v3.x, all Reaction projects have begun tracking their versions independently, and this release **will** work with the latest releases of all other Reaction projects, even though the major version number may be different._
46

5-
- refactor: Configure `react-testing-library` and remove unnecessary testing dependencies [#686](https://github.com/reactioncommerce/example-storefront/pull/686)
7+
## BREAKING CHANGES
68

7-
This is a major update that introduces the following refactors in PR [#667](https://github.com/reactioncommerce/example-storefront/pull/667)
9+
- React hooks are introduced, and replace many HOC's, which have been removed: `withAddressBook`, `withAddressValidation`, `withAvailablePaymentMethods`, `withCart`, `withCatalogItemProduct`, `withOrder`, `withOrders`, `withShop`, `withTag`, `withViewer`.
810
- Use React hooks for various parts of the application including orders, cart, shop, translations and more. This refactor remove various HOC that added unnecessary complexity to the app.
9-
- React context is now used and all previous uses of MobX have been removed. Using React context greatly simplifies local states management.
10-
- Simple translation helpers have been added to support multi-lingual shops. See the `useTranslation` React hook for more details.
11-
- Next.js has been update to use version 9.4.1, which includes support for [SSG](https://nextjs.org/blog/next-9-3#next-gen-static-site-generation-ssg-support)(Static Site Generation). By default product pages are re-regenerated every two minutes. Further, various other features, such as dynamic routes and API routes are now used, either a dynamic route or API
12-
as appropriate.
13-
- Various components form the Reaction component library have been removed in favor of using the new Reaction Catalyst design system. This is a stepping stone towards consolidating styling solutions use use only one.
11+
- MobX has been removed, and React context is now used in its place.
12+
- Next.js has been update to use version 9.4.1, which includes support for [SSG](https://nextjs.org/blog/next-9-3#next-gen-static-site-generation-ssg-support)(Static Site Generation). By default product pages are re-regenerated every two minutes. Further, various other features, such as dynamic routes and API routes are now used, either a dynamic route or API.
13+
- Various components from the Reaction component library have been removed in favor of using the new Reaction Catalyst design system. This is a stepping stone towards consolidating styling solutions use use only one.
14+
15+
## Refactors
16+
17+
- refactor: Storefront v2 ([#667](https://github.com/reactioncommerce/example-storefront/pull/667))
18+
- refactor: Revalidate index page, require instant revalidation if no shop is present during build ([#698](https://github.com/reactioncommerce/example-storefront/pull/698))
19+
- refactor: Return Not found if either product or shop are missing ([#696](https://github.com/reactioncommerce/example-storefront/pull/696))
20+
- refactor: Use CANONICAL_URL for sitemap route ([#690](https://github.com/reactioncommerce/example-storefront/pull/690))
21+
22+
## Fixes
23+
24+
- fix: Fix for 2 vulnerabilities ([#727](https://github.com/reactioncommerce/example-storefront/pull/727))
25+
- fix: don't execute unnecessary requests for anonymous cart on initial load ([#705](https://github.com/reactioncommerce/example-storefront/pull/705))
26+
- fix: Set _isMounted to true after component mounted ([#700](https://github.com/reactioncommerce/example-storefront/pull/700))
27+
- fix: docker production build ([#693](https://github.com/reactioncommerce/example-storefront/pull/693))
28+
- fix: fix broken unit test ([#682](https://github.com/reactioncommerce/example-storefront/pull/682))
29+
- fix: runtime build issues ([#685](https://github.com/reactioncommerce/example-storefront/pull/685))
30+
31+
## Chores
32+
33+
- chore(deps): Bump elliptic from 6.5.2 to 6.5.3 ([#717](https://github.com/reactioncommerce/example-storefront/pull/717))
34+
- chore: Bump lodash from 4.17.15 to 4.17.19 ([#706](https://github.com/reactioncommerce/example-storefront/pull/706))
35+
- chore: update README and CHANGELOG to reflect recent updates ([#687](https://github.com/reactioncommerce/example-storefront/pull/687))
36+
- chore: Setup react-testing-library and some clean up ([#686](https://github.com/reactioncommerce/example-storefront/pull/686))
37+
- chore: fix various eslint errors and warnings ([#684](https://github.com/reactioncommerce/example-storefront/pull/684))
38+
39+
## Contributors
1440

41+
Thanks to @janus-reith for contributing to this release! 🎉
1542

1643
# v3.1.0
1744

1845
This release of `example-storefront` is designed to work with v3.x of the Reaction API.
1946

2047
### Chores
2148

22-
- chore: bump https-proxy-agent from 2.2.2 to 2.2.4 ([#669](http://github.com/reactioncommerce/reaction-admin/pull/669))
23-
- chore: switch to 3.0.0 Docker tag ([#659](http://github.com/reactioncommerce/reaction-admin/pull/659))
49+
- chore: bump https-proxy-agent from 2.2.2 to 2.2.4 ([#669](http://github.com/reactioncommerce/example-storefront/pull/669))
50+
- chore: switch to 3.0.0 Docker tag ([#659](http://github.com/reactioncommerce/example-storefront/pull/659))
2451

2552
# v3.0.0
2653

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ networks:
1313

1414
services:
1515
web:
16-
image: reactioncommerce/example-storefront:3.1.0
16+
image: reactioncommerce/example-storefront:4.0.0
1717
env_file:
1818
- ./.env
1919
networks:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example-storefront",
3-
"version": "3.1.0",
3+
"version": "4.0.0",
44
"description": "The Example Storefront serves as a reference for implementing a web based storefront using the Reaction Commerce GraphQL API.",
55
"keywords": [],
66
"author": {

0 commit comments

Comments
 (0)