Skip to content

Commit

Permalink
fix(deps): update all dependencies (#2776)
Browse files Browse the repository at this point in the history
* fix(deps): update all dependencies

* chore: update deps

* refactor: migrate to redux toolkit, fix types

* fix: keep explicit redux-thunk dep

* fix: leftovers

* chore: update more deps

* fix: test data

* chore: refresh emotion deps

* docs: changeset

* chore: update more deps

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>
  • Loading branch information
renovate[bot] and emmenko authored Sep 14, 2022
1 parent b022a2f commit 00d9edc
Show file tree
Hide file tree
Showing 52 changed files with 3,903 additions and 3,251 deletions.
37 changes: 37 additions & 0 deletions .changeset/wicked-sheep-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
'@commercetools-applications/merchant-center-template-starter': patch
'@commercetools-applications/merchant-center-template-starter-typescript': patch
'@commercetools-backend/eslint-config-node': patch
'@commercetools-backend/express': patch
'@commercetools-backend/loggers': patch
'@commercetools-frontend/actions-global': patch
'@commercetools-frontend/application-components': patch
'@commercetools-frontend/application-config': patch
'@commercetools-frontend/application-shell': patch
'@commercetools-frontend/application-shell-connectors': patch
'@commercetools-frontend/babel-preset-mc-app': patch
'@commercetools-frontend/browser-history': patch
'@commercetools-frontend/codemod': patch
'@commercetools-frontend/constants': patch
'@commercetools-frontend/create-mc-app': patch
'@commercetools-frontend/cypress': patch
'@commercetools-frontend/eslint-config-mc-app': patch
'@commercetools-frontend/i18n': patch
'@commercetools-frontend/jest-stylelint-runner': patch
'@commercetools-frontend/l10n': patch
'@commercetools-frontend/mc-dev-authentication': patch
'@commercetools-frontend/mc-html-template': patch
'@commercetools-frontend/mc-scripts': patch
'@commercetools-frontend/notifications': patch
'@commercetools-frontend/permissions': patch
'@commercetools-frontend/react-notifications': patch
'@commercetools-frontend/sdk': patch
'@commercetools-frontend/sentry': patch
'@commercetools-frontend/url-utils': patch
'@commercetools-local/playground': patch
'@commercetools-local/visual-testing-app': patch
'@commercetools-website/custom-applications': patch
'@commercetools-website/components-playground': patch
---

Update dependencies
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.16
16.17
786 changes: 0 additions & 786 deletions .yarn/releases/yarn-3.2.1.cjs

This file was deleted.

783 changes: 783 additions & 0 deletions .yarn/releases/yarn-3.2.3.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ plugins:

postinstall: ./scripts/postinstall.sh

yarnPath: .yarn/releases/yarn-3.2.1.cjs
yarnPath: .yarn/releases/yarn-3.2.3.cjs
2 changes: 1 addition & 1 deletion application-templates/starter-typescript/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.16
16.17
50 changes: 25 additions & 25 deletions application-templates/starter-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,39 +34,39 @@
"@commercetools-frontend/mc-dev-authentication": "21.14.1",
"@commercetools-frontend/mc-scripts": "21.14.1",
"@commercetools-frontend/permissions": "21.14.1",
"@commercetools-test-data/channel": "3.1.2",
"@commercetools-test-data/commons": "3.1.2",
"@commercetools-test-data/core": "3.1.2",
"@commercetools-uikit/constraints": "^15.1.0",
"@commercetools-uikit/data-table": "^15.1.0",
"@commercetools-uikit/flat-button": "^15.1.0",
"@commercetools-uikit/grid": "^15.1.0",
"@commercetools-uikit/hooks": "^15.1.0",
"@commercetools-uikit/icons": "^15.1.0",
"@commercetools-uikit/link": "^15.1.0",
"@commercetools-uikit/loading-spinner": "^15.1.0",
"@commercetools-uikit/localized-text-field": "^15.1.0",
"@commercetools-uikit/localized-text-input": "^15.1.0",
"@commercetools-uikit/notifications": "^15.1.0",
"@commercetools-uikit/pagination": "^15.1.0",
"@commercetools-uikit/select-field": "^15.1.0",
"@commercetools-uikit/spacings": "^15.1.0",
"@commercetools-uikit/text": "^15.1.0",
"@commercetools-uikit/text-field": "^15.1.0",
"@commercetools-uikit/text-input": "^15.1.0",
"@commercetools/sync-actions": "^4.10.1",
"@commercetools-test-data/channel": "4.1.1",
"@commercetools-test-data/commons": "4.1.1",
"@commercetools-test-data/core": "4.1.1",
"@commercetools-uikit/constraints": "^15.2.2",
"@commercetools-uikit/data-table": "^15.2.2",
"@commercetools-uikit/flat-button": "^15.2.2",
"@commercetools-uikit/grid": "^15.2.2",
"@commercetools-uikit/hooks": "^15.2.2",
"@commercetools-uikit/icons": "^15.2.2",
"@commercetools-uikit/link": "^15.2.2",
"@commercetools-uikit/loading-spinner": "^15.2.2",
"@commercetools-uikit/localized-text-field": "^15.2.2",
"@commercetools-uikit/localized-text-input": "^15.2.2",
"@commercetools-uikit/notifications": "^15.2.2",
"@commercetools-uikit/pagination": "^15.2.2",
"@commercetools-uikit/select-field": "^15.2.2",
"@commercetools-uikit/spacings": "^15.2.2",
"@commercetools-uikit/text": "^15.2.2",
"@commercetools-uikit/text-field": "^15.2.2",
"@commercetools-uikit/text-input": "^15.2.2",
"@commercetools/sync-actions": "^5.1.0",
"@formatjs/cli": "4.8.4",
"@jest/types": "27.5.1",
"@manypkg/cli": "0.19.1",
"@testing-library/react": "12.1.5",
"@testing-library/react-hooks": "7.0.2",
"eslint": "8.22.0",
"eslint": "8.23.1",
"eslint-formatter-pretty": "4.1.0",
"eslint-plugin-graphql": "^4.0.0",
"jest": "27.5.1",
"jest-runner-eslint": "1.0.1",
"jest-runner-eslint": "1.1.0",
"jest-watch-typeahead": "1.1.0",
"msw": "0.44.2",
"msw": "0.47.2",
"omit-empty-es": "1.1.3",
"prettier": "2.7.1",
"react": "17.0.2",
Expand All @@ -75,7 +75,7 @@
"react-redux": "7.2.8",
"react-router-dom": "5.3.3",
"redux": "4.2.0",
"typescript": "4.7.4"
"typescript": "4.8.3"
},
"resolutions": {
"@types/eslint": "<9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { reportErrorToSentry } from '@commercetools-frontend/sentry';
import { buildGraphqlList } from '@commercetools-test-data/core';
import type { TChannel } from '@commercetools-test-data/channel';
import * as Channel from '@commercetools-test-data/channel';
import { LocalizedString } from '@commercetools-test-data/commons';
import { renderApplicationWithRoutesAndRedux } from '../../test-utils';
import { entryPointUriPath, PERMISSIONS } from '../../constants';

Expand Down Expand Up @@ -61,7 +62,10 @@ const fetchChannelDetailsQueryHandler = graphql.query(
(_req, res, ctx) => {
return res(
ctx.data({
channel: Channel.random().key(TEST_CHANNEL_KEY).buildGraphql(),
channel: Channel.random()
.name(LocalizedString.random())
.key(TEST_CHANNEL_KEY)
.buildGraphql(),
})
);
}
Expand Down Expand Up @@ -93,7 +97,10 @@ const updateChannelDetailsHandler = graphql.mutation(
(_req, res, ctx) => {
return res(
ctx.data({
updateChannel: Channel.random().key(TEST_CHANNEL_KEY).buildGraphql(),
updateChannel: Channel.random()
.name(LocalizedString.random())
.key(TEST_CHANNEL_KEY)
.buildGraphql(),
})
);
}
Expand Down Expand Up @@ -140,7 +147,9 @@ const useMockServerHandlers = (handlers: GraphQLHandler[]) => {
ctx.data({
channels: buildGraphqlList<TChannel>(
Array.from({ length: totalItems }).map((_, index) =>
Channel.random().key(`channel-key-${index}`)
Channel.random()
.name(LocalizedString.random())
.key(`channel-key-${index}`)
),
{
name: 'Channel',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
import { buildGraphqlList } from '@commercetools-test-data/core';
import type { TChannel } from '@commercetools-test-data/channel';
import * as Channel from '@commercetools-test-data/channel';
import { LocalizedString } from '@commercetools-test-data/commons';
import { renderApplicationWithRedux } from '../../test-utils';
import { entryPointUriPath, PERMISSIONS } from '../../constants';
import ApplicationRoutes from '../../routes';
Expand Down Expand Up @@ -52,9 +53,9 @@ it('should render channels and paginate to second page', async () => {
ctx.data({
channels: buildGraphqlList<TChannel>(
Array.from({ length: itemsPerPage }).map((_, index) =>
Channel.random().key(
`channel-key-${offset === 0 ? index : 20 + index}`
)
Channel.random()
.name(LocalizedString.random())
.key(`channel-key-${offset === 0 ? index : 20 + index}`)
),
{
name: 'Channel',
Expand Down
2 changes: 1 addition & 1 deletion application-templates/starter/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.16
16.17
48 changes: 24 additions & 24 deletions application-templates/starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,37 +32,37 @@
"@commercetools-frontend/mc-dev-authentication": "21.14.1",
"@commercetools-frontend/mc-scripts": "21.14.1",
"@commercetools-frontend/permissions": "21.14.1",
"@commercetools-test-data/channel": "3.1.2",
"@commercetools-test-data/commons": "3.1.2",
"@commercetools-test-data/core": "3.1.2",
"@commercetools-uikit/constraints": "^15.1.0",
"@commercetools-uikit/data-table": "^15.1.0",
"@commercetools-uikit/flat-button": "^15.1.0",
"@commercetools-uikit/grid": "^15.1.0",
"@commercetools-uikit/hooks": "^15.1.0",
"@commercetools-uikit/icons": "^15.1.0",
"@commercetools-uikit/link": "^15.1.0",
"@commercetools-uikit/loading-spinner": "^15.1.0",
"@commercetools-uikit/localized-text-field": "^15.1.0",
"@commercetools-uikit/localized-text-input": "^15.1.0",
"@commercetools-uikit/notifications": "^15.1.0",
"@commercetools-uikit/pagination": "^15.1.0",
"@commercetools-uikit/select-field": "^15.1.0",
"@commercetools-uikit/spacings": "^15.1.0",
"@commercetools-uikit/text": "^15.1.0",
"@commercetools-uikit/text-field": "^15.1.0",
"@commercetools-uikit/text-input": "^15.1.0",
"@commercetools/sync-actions": "^4.10.1",
"@commercetools-test-data/channel": "4.1.1",
"@commercetools-test-data/commons": "4.1.1",
"@commercetools-test-data/core": "4.1.1",
"@commercetools-uikit/constraints": "^15.2.2",
"@commercetools-uikit/data-table": "^15.2.2",
"@commercetools-uikit/flat-button": "^15.2.2",
"@commercetools-uikit/grid": "^15.2.2",
"@commercetools-uikit/hooks": "^15.2.2",
"@commercetools-uikit/icons": "^15.2.2",
"@commercetools-uikit/link": "^15.2.2",
"@commercetools-uikit/loading-spinner": "^15.2.2",
"@commercetools-uikit/localized-text-field": "^15.2.2",
"@commercetools-uikit/localized-text-input": "^15.2.2",
"@commercetools-uikit/notifications": "^15.2.2",
"@commercetools-uikit/pagination": "^15.2.2",
"@commercetools-uikit/select-field": "^15.2.2",
"@commercetools-uikit/spacings": "^15.2.2",
"@commercetools-uikit/text": "^15.2.2",
"@commercetools-uikit/text-field": "^15.2.2",
"@commercetools-uikit/text-input": "^15.2.2",
"@commercetools/sync-actions": "^5.1.0",
"@formatjs/cli": "4.8.4",
"@manypkg/cli": "0.19.1",
"@testing-library/react": "12.1.5",
"@testing-library/react-hooks": "7.0.2",
"eslint": "8.22.0",
"eslint": "8.23.1",
"eslint-formatter-pretty": "4.1.0",
"jest": "27.5.1",
"jest-runner-eslint": "1.0.1",
"jest-runner-eslint": "1.1.0",
"jest-watch-typeahead": "1.1.0",
"msw": "0.44.2",
"msw": "0.47.2",
"omit-empty-es": "1.1.3",
"prettier": "2.7.1",
"prop-types": "15.8.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import {
} from '@commercetools-frontend/application-shell/test-utils';
import { reportErrorToSentry } from '@commercetools-frontend/sentry';
import { buildGraphqlList } from '@commercetools-test-data/core';
import { renderApplicationWithRoutesAndRedux } from '../../test-utils';
import * as Channel from '@commercetools-test-data/channel';
import { LocalizedString } from '@commercetools-test-data/commons';
import { renderApplicationWithRoutesAndRedux } from '../../test-utils';
import { entryPointUriPath, PERMISSIONS } from '../../constants';

jest.mock('@commercetools-frontend/sentry');
Expand Down Expand Up @@ -55,7 +56,10 @@ const fetchChannelDetailsQueryHandler = graphql.query(
(_req, res, ctx) => {
return res(
ctx.data({
channel: Channel.random().key(key).buildGraphql(),
channel: Channel.random()
.name(LocalizedString.random())
.key(key)
.buildGraphql(),
})
);
}
Expand Down Expand Up @@ -87,7 +91,10 @@ const updateChannelDetailsHandler = graphql.mutation(
(_req, res, ctx) => {
return res(
ctx.data({
updateChannel: Channel.random().key(key).buildGraphql(),
updateChannel: Channel.random()
.name(LocalizedString.random())
.key(key)
.buildGraphql(),
})
);
}
Expand Down Expand Up @@ -138,7 +145,9 @@ const useMockServerHandlers = (
ctx.data({
channels: buildGraphqlList(
Array.from({ length: totalItems }).map((_, index) =>
Channel.random().key(`channel-key-${index}`)
Channel.random()
.name(LocalizedString.random())
.key(`channel-key-${index}`)
),
{
name: 'Channel',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import {
mapResourceAccessToAppliedPermissions,
} from '@commercetools-frontend/application-shell/test-utils';
import { buildGraphqlList } from '@commercetools-test-data/core';
import { renderApplicationWithRedux } from '../../test-utils';
import * as Channel from '@commercetools-test-data/channel';
import { LocalizedString } from '@commercetools-test-data/commons';
import { renderApplicationWithRedux } from '../../test-utils';
import { entryPointUriPath, PERMISSIONS } from '../../constants';
import ApplicationRoutes from '../../routes';

Expand Down Expand Up @@ -50,9 +51,9 @@ it('should render channels and paginate to second page', async () => {
ctx.data({
channels: buildGraphqlList(
Array.from({ length: itemsPerPage }).map((_, index) =>
Channel.random().key(
`channel-key-${offset === 0 ? index : 20 + index}`
)
Channel.random()
.name(LocalizedString.random())
.key(`channel-key-${offset === 0 ? index : 20 + index}`)
),
{
name: 'Channel',
Expand Down
Loading

1 comment on commit 00d9edc

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Deploy preview for merchant-center-application-kit ready!

✅ Preview
https://merchant-center-application-7rehzz324-commercetools.vercel.app

Built with commit 00d9edc.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.