Skip to content

Commit

Permalink
Version Packages (#2154)
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 5cb4aae commit eef6e0e
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 28 deletions.
23 changes: 0 additions & 23 deletions .changeset/heavy-ligers-admire.md

This file was deleted.

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.4

### Patch Changes

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

## 18.0.3

### 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.3",
"version": "18.0.4",
"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.2.0",
"@commercetools-frontend/application-shell": "19.3.0",
"@commercetools-frontend/assets": "18.5.4",
"@commercetools-frontend/i18n": "19.0.1",
"@commercetools-frontend/permissions": "19.0.1",
Expand Down
24 changes: 24 additions & 0 deletions packages/application-shell/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @commercetools-frontend/application-shell

## 19.3.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)! - The `@commercetools-frontend/application-shell/test-utils` now exports a new utility function for testing hooks: `renderHook`. This function wraps the original `renderHook` function from `@testing-library/react-hooks` but it comes pre-configured with providers for testing Custom Applications.

The new `renderHook` function also accepts the same options as other test utils, such as `renderApp`, and returns some useful properties like `store`, `history`, etc.

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.2.0

### Minor 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.2.0",
"version": "19.3.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.4

### Patch Changes

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

## 18.0.3

### 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.3",
"version": "18.0.4",
"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.2.0",
"@commercetools-frontend/application-shell": "19.3.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 eef6e0e

@vercel
Copy link

@vercel vercel bot commented on eef6e0e 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.