Skip to content

Commit

Permalink
Version Packages (#2152)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
CT Release Bot and github-actions[bot] authored Apr 22, 2021
1 parent d08aa57 commit 5cb4aae
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 5 deletions.
7 changes: 7 additions & 0 deletions application-templates/starter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# merchant-center-application-template-starter

## 18.0.3

### Patch Changes

- Updated dependencies [[`7ec6626f`](https://github.com/commercetools/merchant-center-application-kit/commit/7ec6626f7db35127b3611f546828b01151222d4c)]:
- @commercetools-frontend/application-shell@19.2.0

## 18.0.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions application-templates/starter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "merchant-center-application-template-starter",
"version": "18.0.2",
"version": "18.0.3",
"description": "A starter example for the bare minimum setup to develop a Merchant Center Application",
"private": true,
"scripts": {
Expand All @@ -19,7 +19,7 @@
"@apollo/client": "3.3.14",
"@commercetools-frontend/actions-global": "19.0.0",
"@commercetools-frontend/application-components": "19.1.0",
"@commercetools-frontend/application-shell": "19.1.0",
"@commercetools-frontend/application-shell": "19.2.0",
"@commercetools-frontend/assets": "18.5.4",
"@commercetools-frontend/i18n": "19.0.1",
"@commercetools-frontend/permissions": "19.0.1",
Expand Down
27 changes: 27 additions & 0 deletions packages/application-shell/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# @commercetools-frontend/application-shell

## 19.2.0

### Minor Changes

- [#2144](https://github.com/commercetools/merchant-center-application-kit/pull/2144) [`7ec6626f`](https://github.com/commercetools/merchant-center-application-kit/commit/7ec6626f7db35127b3611f546828b01151222d4c) Thanks [@pa3](https://github.com/pa3)! - Adds re-export of `@testing-library/react-hooks` from `test-utils` with `renderHook` functions wrapped with app-kit providers.

The `renderHook` function is wrapped similarily to the existing `renderAppWithRedux`:

- All `options` which can be passed to `renderAppWithRedux` can be passed to `renderHooks`
- All additional poperties returned as a result of an `renderAppWithRedux` call (like `store` or `history`) are returend from the wrapped `renderHook` too

All `@testing-library/react-hooks` functionality is exported under the namespace `hooks` from the package '@commercetools-frontend/application-shell/test-utils'.

**Usage example**

```jsx
import { hooks } from '@commercetools-frontend/application-shell/test-utils';

const { act, renderHook } = hooks;

it('should navigate to a route', () => {
const { result, history } = renderHook(useRoutes);
act(() => result.current.someRoute.go());
expect(history.location.pathname).toBe('/some-route');
});
```

## 19.1.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/application-shell/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@commercetools-frontend/application-shell",
"version": "19.1.0",
"version": "19.2.0",
"description": "React component to bootstrap the general MC application logic",
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions playground/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# playground

## 18.0.3

### Patch Changes

- Updated dependencies [[`7ec6626f`](https://github.com/commercetools/merchant-center-application-kit/commit/7ec6626f7db35127b3611f546828b01151222d4c)]:
- @commercetools-frontend/application-shell@19.2.0

## 18.0.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playground",
"version": "18.0.2",
"version": "18.0.3",
"description": "A playground application to get started developing Merchant Center Applications",
"private": true,
"scripts": {
Expand All @@ -17,7 +17,7 @@
"@commercetools-docs/ui-kit": "16.1.0",
"@commercetools-frontend/actions-global": "19.0.0",
"@commercetools-frontend/application-components": "19.1.0",
"@commercetools-frontend/application-shell": "19.1.0",
"@commercetools-frontend/application-shell": "19.2.0",
"@commercetools-frontend/application-shell-connectors": "19.0.1",
"@commercetools-frontend/assets": "18.5.4",
"@commercetools-frontend/constants": "18.6.0",
Expand Down

1 comment on commit 5cb4aae

@vercel
Copy link

@vercel vercel bot commented on 5cb4aae Apr 22, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.