Skip to content

Commit

Permalink
ci(changesets): version packages (rc) (#2454)
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 Jan 24, 2022
1 parent fbe8871 commit d74df68
Show file tree
Hide file tree
Showing 64 changed files with 1,107 additions and 200 deletions.
9 changes: 8 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,12 @@
"@commercetools-website/custom-applications": "18.3.9",
"@commercetools-website/components-playground": "17.1.14"
},
"changesets": []
"changesets": [
"dull-mails-poke",
"fresh-crabs-join",
"hungry-bobcats-relax",
"large-knives-turn",
"many-tables-appear",
"tall-dolls-study"
]
}
194 changes: 194 additions & 0 deletions application-templates/starter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,199 @@
# merchant-center-application-template-starter

## 19.0.0-rc.0

### Major Changes

- [#2430](https://github.com/commercetools/merchant-center-application-kit/pull/2430) [`b8fb4cbb`](https://github.com/commercetools/merchant-center-application-kit/commit/b8fb4cbbb8b78ff18af7edf8100703f7f9712187) Thanks [@emmenko](https://github.com/emmenko)! - Following breaking changes were introduced:

- New required fields in the Custom Application config.
- Menu links structure in Custom Application config changed a bit.
- The `ENABLE_OIDC_FOR_DEVELOPMENT` is now the default behavior.
- The deprecated `menu.json` file and the `DEV_ONLY_` props have been removed.

Note that if you were testing your Custom Application with Cypress, you need to use the `@commercetools-frontend/cypress` package to be able to use the `cy.loginByOidc` command.

For more information see [Release notes v21](https://docs.commercetools.com/custom-applications/releases/2022-01-31-custom-applications-v21).

* [#2430](https://github.com/commercetools/merchant-center-application-kit/pull/2430) [`1c363fad`](https://github.com/commercetools/merchant-center-application-kit/commit/1c363fad7ab770a739ac8080358e41ae4af42074) Thanks [@emmenko](https://github.com/emmenko)! - Drop Node.js `v12`. Recommended min Node.js version is `v14` or `v16`.

- [#2430](https://github.com/commercetools/merchant-center-application-kit/pull/2430) [`e079fdcb`](https://github.com/commercetools/merchant-center-application-kit/commit/e079fdcb21ae7dddf14e554be1bd6e36f7346417) Thanks [@emmenko](https://github.com/emmenko)! - Following breaking changes were introduced:

- The starter template has been updated to use the new Org-level Custom Application features.
- The Custom Application config of the starter template has been converted from `.json` to `.mjs`, to allow importing and referencing constants.
- When installing the starter template using the `create-mc-app` CLI, the Custom Application config is updated with some of the user inputs, like `entryPointUriPath`.
- If no `entryPointUriPath` is provided, a random one is assigned.

For more information see [Release notes v21](https://docs.commercetools.com/custom-applications/releases/2022-01-31-custom-applications-v21).

* [#2430](https://github.com/commercetools/merchant-center-application-kit/pull/2430) [`07f5b00f`](https://github.com/commercetools/merchant-center-application-kit/commit/07f5b00f3045a3e30462a1150e6ba85fcecc9098) Thanks [@emmenko](https://github.com/emmenko)! - Following breaking changes were introduced:

- In `mc-scripts`, the `build` command additionally compiles the `index.html` by default.
- Running the `compile-html` command by default should not be necessary anymore. However, you can pass `--build-only` to the `build` command to opt-out of the compilation step, in case you want to run it separately, for example to use the `--transformer`.
- Running the `compile-html` command by default does not print to `stdout` the JSON string with the security headers. You can opt into the old behavior by passing the `--print-security-headers` option.
- The `--inline-csp` of `compile-html` has been dropped, as it's now the built-in behavior.
- The `dist` folder created by the `build` command has been removed. Instead, the `build` command writes the production bundles directly into the `public` folder.

For more information see [Release notes v21](https://docs.commercetools.com/custom-applications/releases/2022-01-31-custom-applications-v21).

- [#2430](https://github.com/commercetools/merchant-center-application-kit/pull/2430) [`6d0e71d7`](https://github.com/commercetools/merchant-center-application-kit/commit/6d0e71d7e08222f5b6462b7c60fca80e8992cfa7) Thanks [@emmenko](https://github.com/emmenko)! - Following breaking changes were introduced in `test-utils`:

- The deprecated `project.allAppliedMenuVisibilities` option has been removed.
- The `disableApolloMocks` option has been renamed to `enableApolloMocks`. The behavior is now inverted. By default, the Apollo mocks are disabled. This is to encourage mocking via [MSW](https://mswjs.io/).
- The `disableAutomaticEntryPointRoutes` option now defaults to `false`. This means that when rendering the `<ApplicationShell>`, you should not use the `render` function but pass the application component using `children`. See [changelog](https://github.com/commercetools/merchant-center-application-kit/blob/main/packages/application-shell/CHANGELOG.md#1790) for more information.
- The deprecated `permissions` option has been removed. Use `project.allAppliedPermissions` instead.

```js
// Before
{
permissions: {
canManageProducts: true;
}
}

// After
{
project: {
allAppliedPermissions: [{ name: 'canManageProducts', value: true }];
}
}
```

You can also use the helper function `mapResourceAccessToAppliedPermissions` (recommended)

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

{
project: {
allAppliedPermissions: mapResourceAccessToAppliedPermissions([
PERMISSIONS.View
])
},
}
```

or the `denormalizePermissions` function.

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

{
project: {
allAppliedPermissions: denormalizePermissions({
canManageProducts: true,
});
}
}
```

- The deprecated `actionRights` option has been removed. Use `project.allAppliedActionRights` instead.

```js
// Before
{
actionRights: {
products: {
canEditPrices: true,
canPublishProducts: false,
}
}
}
// After
{
project: {
allAppliedActionRights: [
{ group: 'products', name: 'canEditPrices', value: true },
{ group: 'products', name: 'canPublishProducts', value: false }
]
}
}
```

You can also use the helper function `denormalizeActionRights`.

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

{
project: {
allAppliedActionRights: denormalizeActionRights({
products: {
canEditPrices: true,
canPublishProducts: false,
},
});
}
}
```

- The deprecated `dataFences` option has been removed. Use `project.allAppliedDataFences` instead.

```js
// Before
{
dataFences: {
store: {
orders: {
canViewOrders: {
values: ['store-1'],
}
}
}
}
}
// After
{
project: {
allAppliedDataFences: [
{ type: 'store', group: 'orders', name: 'canViewOrders', value: 'store-1' }
]
}
}
```

You can also use the helper function `denormalizeDataFences`.

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

{
project: {
allAppliedDataFences: denormalizeDataFences({
store: {
orders: {
canViewOrders: {
values: ['store-1'],
},
},
},
});
}
}
```

For more information see [Release notes v21](https://docs.commercetools.com/custom-applications/releases/2022-01-31-custom-applications-v21).

### Patch Changes

- [#2450](https://github.com/commercetools/merchant-center-application-kit/pull/2450) [`eb8f5b2c`](https://github.com/commercetools/merchant-center-application-kit/commit/eb8f5b2c885a4c3ffc7857a61e50508b429bf964) Thanks [@emmenko](https://github.com/emmenko)! - Update dependencies

- Updated dependencies [[`eb8f5b2c`](https://github.com/commercetools/merchant-center-application-kit/commit/eb8f5b2c885a4c3ffc7857a61e50508b429bf964), [`b8fb4cbb`](https://github.com/commercetools/merchant-center-application-kit/commit/b8fb4cbbb8b78ff18af7edf8100703f7f9712187), [`1c363fad`](https://github.com/commercetools/merchant-center-application-kit/commit/1c363fad7ab770a739ac8080358e41ae4af42074), [`07f5b00f`](https://github.com/commercetools/merchant-center-application-kit/commit/07f5b00f3045a3e30462a1150e6ba85fcecc9098), [`6d0e71d7`](https://github.com/commercetools/merchant-center-application-kit/commit/6d0e71d7e08222f5b6462b7c60fca80e8992cfa7)]:
- @commercetools-frontend/actions-global@21.0.0-rc.0
- @commercetools-frontend/application-components@21.0.0-rc.0
- @commercetools-frontend/application-shell@21.0.0-rc.0
- @commercetools-frontend/application-shell-connectors@21.0.0-rc.0
- @commercetools-frontend/constants@21.0.0-rc.0
- @commercetools-frontend/eslint-config-mc-app@21.0.0-rc.0
- @commercetools-frontend/i18n@21.0.0-rc.0
- @commercetools-frontend/jest-preset-mc-app@21.0.0-rc.0
- @commercetools-frontend/mc-scripts@21.0.0-rc.0
- @commercetools-frontend/permissions@21.0.0-rc.0
- @commercetools-frontend/sdk@21.0.0-rc.0
- @commercetools-frontend/mc-dev-authentication@21.0.0-rc.0

## 18.3.14

### Patch Changes
Expand Down
26 changes: 13 additions & 13 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.3.14",
"version": "19.0.0-rc.0",
"description": "A starter example for the bare minimum setup to develop a Merchant Center Application",
"private": true,
"scripts": {
Expand All @@ -20,19 +20,19 @@
},
"dependencies": {
"@apollo/client": "3.5.7",
"@commercetools-frontend/actions-global": "20.12.3",
"@commercetools-frontend/application-components": "20.13.0",
"@commercetools-frontend/application-shell": "20.13.0",
"@commercetools-frontend/application-shell-connectors": "20.12.3",
"@commercetools-frontend/actions-global": "21.0.0-rc.0",
"@commercetools-frontend/application-components": "21.0.0-rc.0",
"@commercetools-frontend/application-shell": "21.0.0-rc.0",
"@commercetools-frontend/application-shell-connectors": "21.0.0-rc.0",
"@commercetools-frontend/assets": "20.12.3",
"@commercetools-frontend/constants": "20.12.3",
"@commercetools-frontend/eslint-config-mc-app": "20.12.3",
"@commercetools-frontend/i18n": "20.13.0",
"@commercetools-frontend/jest-preset-mc-app": "20.12.3",
"@commercetools-frontend/mc-dev-authentication": "20.10.6",
"@commercetools-frontend/mc-scripts": "20.13.0",
"@commercetools-frontend/permissions": "20.12.3",
"@commercetools-frontend/sdk": "20.12.3",
"@commercetools-frontend/constants": "21.0.0-rc.0",
"@commercetools-frontend/eslint-config-mc-app": "21.0.0-rc.0",
"@commercetools-frontend/i18n": "21.0.0-rc.0",
"@commercetools-frontend/jest-preset-mc-app": "21.0.0-rc.0",
"@commercetools-frontend/mc-dev-authentication": "21.0.0-rc.0",
"@commercetools-frontend/mc-scripts": "21.0.0-rc.0",
"@commercetools-frontend/permissions": "21.0.0-rc.0",
"@commercetools-frontend/sdk": "21.0.0-rc.0",
"@commercetools-test-data/commons": "2.4.1",
"@commercetools-test-data/core": "2.4.1",
"@commercetools-uikit/constraints": "^12.2.9",
Expand Down
6 changes: 6 additions & 0 deletions packages-backend/express/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @commercetools-backend/express

## 21.0.0-rc.0

### Patch Changes

- [#2450](https://github.com/commercetools/merchant-center-application-kit/pull/2450) [`eb8f5b2c`](https://github.com/commercetools/merchant-center-application-kit/commit/eb8f5b2c885a4c3ffc7857a61e50508b429bf964) Thanks [@emmenko](https://github.com/emmenko)! - Update dependencies

## 20.12.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages-backend/express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@commercetools-backend/express",
"version": "20.12.3",
"version": "21.0.0-rc.0",
"description": "Zero-config HTTP server as Express.js to facilitate development",
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
"repository": {
Expand Down
6 changes: 6 additions & 0 deletions packages-backend/loggers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @commercetools-backend/loggers

## 21.0.0-rc.0

### Patch Changes

- [#2450](https://github.com/commercetools/merchant-center-application-kit/pull/2450) [`eb8f5b2c`](https://github.com/commercetools/merchant-center-application-kit/commit/eb8f5b2c885a4c3ffc7857a61e50508b429bf964) Thanks [@emmenko](https://github.com/emmenko)! - Update dependencies

## 20.12.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages-backend/loggers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@commercetools-backend/loggers",
"version": "20.12.3",
"version": "21.0.0-rc.0",
"description": "Opinionated JSON loggers for HTTP server applications",
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
"repository": {
Expand Down
12 changes: 12 additions & 0 deletions packages/actions-global/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @commercetools-frontend/actions-global

## 21.0.0-rc.0

### Patch Changes

- [#2450](https://github.com/commercetools/merchant-center-application-kit/pull/2450) [`eb8f5b2c`](https://github.com/commercetools/merchant-center-application-kit/commit/eb8f5b2c885a4c3ffc7857a61e50508b429bf964) Thanks [@emmenko](https://github.com/emmenko)! - Update dependencies

- Updated dependencies [[`eb8f5b2c`](https://github.com/commercetools/merchant-center-application-kit/commit/eb8f5b2c885a4c3ffc7857a61e50508b429bf964)]:
- @commercetools-frontend/browser-history@21.0.0-rc.0
- @commercetools-frontend/constants@21.0.0-rc.0
- @commercetools-frontend/notifications@21.0.0-rc.0
- @commercetools-frontend/sentry@21.0.0-rc.0

## 20.12.3

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/actions-global/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@commercetools-frontend/actions-global",
"version": "20.12.3",
"version": "21.0.0-rc.0",
"description": "Global redux actions for a MC application",
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
"repository": {
Expand All @@ -20,10 +20,10 @@
"dependencies": {
"@babel/runtime": "7.16.7",
"@babel/runtime-corejs3": "7.16.8",
"@commercetools-frontend/browser-history": "20.12.3",
"@commercetools-frontend/constants": "20.12.3",
"@commercetools-frontend/notifications": "20.12.3",
"@commercetools-frontend/sentry": "20.12.3",
"@commercetools-frontend/browser-history": "21.0.0-rc.0",
"@commercetools-frontend/constants": "21.0.0-rc.0",
"@commercetools-frontend/notifications": "21.0.0-rc.0",
"@commercetools-frontend/sentry": "21.0.0-rc.0",
"@types/lodash": "^4.14.178",
"@types/react": "^17.0.38",
"@types/react-redux": "^7.1.22",
Expand Down
12 changes: 12 additions & 0 deletions packages/application-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @commercetools-frontend/application-components

## 21.0.0-rc.0

### Patch Changes

- [#2450](https://github.com/commercetools/merchant-center-application-kit/pull/2450) [`eb8f5b2c`](https://github.com/commercetools/merchant-center-application-kit/commit/eb8f5b2c885a4c3ffc7857a61e50508b429bf964) Thanks [@emmenko](https://github.com/emmenko)! - Update dependencies

- Updated dependencies [[`eb8f5b2c`](https://github.com/commercetools/merchant-center-application-kit/commit/eb8f5b2c885a4c3ffc7857a61e50508b429bf964), [`1c363fad`](https://github.com/commercetools/merchant-center-application-kit/commit/1c363fad7ab770a739ac8080358e41ae4af42074)]:
- @commercetools-frontend/application-shell-connectors@21.0.0-rc.0
- @commercetools-frontend/constants@21.0.0-rc.0
- @commercetools-frontend/i18n@21.0.0-rc.0
- @commercetools-frontend/l10n@21.0.0-rc.0

## 20.13.0

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/application-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@commercetools-frontend/application-components",
"version": "20.13.0",
"version": "21.0.0-rc.0",
"description": "Generic components for building Merchant Center applications",
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
"repository": {
Expand Down Expand Up @@ -29,11 +29,11 @@
"dependencies": {
"@babel/runtime": "7.16.7",
"@babel/runtime-corejs3": "7.16.8",
"@commercetools-frontend/application-shell-connectors": "20.12.3",
"@commercetools-frontend/application-shell-connectors": "21.0.0-rc.0",
"@commercetools-frontend/assets": "20.12.3",
"@commercetools-frontend/constants": "20.12.3",
"@commercetools-frontend/i18n": "20.13.0",
"@commercetools-frontend/l10n": "20.12.3",
"@commercetools-frontend/constants": "21.0.0-rc.0",
"@commercetools-frontend/i18n": "21.0.0-rc.0",
"@commercetools-frontend/l10n": "21.0.0-rc.0",
"@commercetools-uikit/card": "^12.2.9",
"@commercetools-uikit/constraints": "^12.2.9",
"@commercetools-uikit/design-system": "^12.2.9",
Expand Down
Loading

0 comments on commit d74df68

Please sign in to comment.