Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit 40d697c

Browse files
authored
chore: update dependencies (#1041)
1 parent 8080707 commit 40d697c

File tree

19 files changed

+1521
-1058
lines changed

19 files changed

+1521
-1058
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ cypress/screenshots
66
cypress/downloads
77
.env
88
.temp
9+
.nx

cypress/e2e/editorial_workflow_test_backend.spec.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
import format from 'date-fns/format';
22

3+
import { WorkflowStatus } from '@staticcms/core/constants/publishModes';
4+
import { editorStatus, notifications, publishTypes } from '../utils/constants';
35
import {
4-
login,
6+
assertEntryDeleted,
7+
assertFieldValidationError,
8+
assertNotification,
9+
assertOnCollectionsPage,
10+
assertPublishedEntry,
11+
assertWorkflowStatus,
12+
assertWorkflowStatusInEditor,
513
createPost,
614
createPostAndExit,
7-
exitEditor,
8-
goToWorkflow,
9-
updateWorkflowStatus,
10-
publishWorkflowEntry,
11-
assertWorkflowStatusInEditor,
12-
assertPublishedEntry,
1315
deleteEntryInEditor,
14-
assertOnCollectionsPage,
15-
assertEntryDeleted,
16-
assertWorkflowStatus,
17-
updateWorkflowStatusInEditor,
18-
unpublishEntry,
19-
publishEntryInEditor,
2016
duplicateEntry,
17+
exitEditor,
2118
goToEntry,
19+
goToWorkflow,
20+
login,
2221
populateEntry,
2322
publishAndCreateNewEntryInEditor,
2423
publishAndDuplicateEntryInEditor,
25-
assertNotification,
26-
assertFieldValidationError,
24+
publishEntryInEditor,
25+
publishWorkflowEntry,
26+
unpublishEntry,
27+
updateWorkflowStatus,
28+
updateWorkflowStatusInEditor,
2729
} from '../utils/steps';
28-
import { editorStatus, publishTypes, notifications } from '../utils/constants';
2930
import {
3031
entry1,
3132
entry10,
@@ -43,7 +44,6 @@ import {
4344
entry8,
4445
entry9,
4546
} from './common/entries';
46-
import { WorkflowStatus } from '@staticcms/core/constants/publishModes';
4747

4848
describe('Test Backend Editorial Workflow', () => {
4949
after(() => {

cypress/run.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import execa from 'execa';
1+
import { execa } from 'execa';
22
import { globby } from 'globby';
33

44
async function runCypress() {

cypress/utils/steps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import format from 'date-fns/format';
21
import 'cypress-real-events';
2+
import format from 'date-fns/format';
33

44
import { editorStatus, notifications, publishTypes, workflowStatus } from './constants';
55

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
"all-contributors-cli": "6.26.1",
3434
"cypress-plugin-tab": "1.0.5",
3535
"cypress-real-events": "1.11.0",
36-
"cypress": "13.4.0",
37-
"execa": "5.1.1",
36+
"cypress": "13.6.2",
37+
"execa": "8.0.1",
3838
"husky": "8.0.3",
39-
"lerna": "7.4.2",
40-
"lint-staged": "14.0.1",
39+
"lerna": "8.0.1",
40+
"lint-staged": "15.2.0",
4141
"react-dom": "18.2.0",
4242
"react": "18.2.0",
4343
"rehype": "13.0.1",
44-
"unist-util-visit": "4.1.2"
44+
"unist-util-visit": "5.0.0"
4545
},
4646
"workspaces": [
4747
"packages/*"

packages/app/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"react": "18.2.0",
4545
"react-dom": "18.2.0",
4646
"stream-browserify": "3.0.0",
47-
"ts-loader": "9.4.2"
47+
"ts-loader": "9.5.1"
4848
},
4949
"devDependencies": {
5050
"@babel/cli": "7.23.4",
@@ -59,11 +59,11 @@
5959
"@babel/preset-env": "7.23.7",
6060
"@babel/preset-react": "7.23.3",
6161
"@babel/preset-typescript": "7.23.3",
62-
"@types/node": "18.17.19",
63-
"@types/react": "18.2.25",
64-
"@types/react-dom": "18.2.10",
65-
"@typescript-eslint/eslint-plugin": "6.7.4",
66-
"@typescript-eslint/parser": "6.7.4",
62+
"@types/node": "18.19.4",
63+
"@types/react": "18.2.46",
64+
"@types/react-dom": "18.2.18",
65+
"@typescript-eslint/eslint-plugin": "6.17.0",
66+
"@typescript-eslint/parser": "6.17.0",
6767
"autoprefixer": "10.4.16",
6868
"babel-core": "7.0.0-bridge.0",
6969
"babel-loader": "9.1.3",
@@ -77,26 +77,26 @@
7777
"cross-env": "7.0.3",
7878
"css-loader": "6.8.1",
7979
"dotenv": "16.3.1",
80-
"eslint": "8.50.0",
80+
"eslint": "8.56.0",
8181
"eslint-import-resolver-typescript": "3.6.1",
8282
"eslint-plugin-cypress": "2.15.1",
83-
"eslint-plugin-import": "2.28.1",
84-
"eslint-plugin-prettier": "5.0.0",
83+
"eslint-plugin-import": "2.29.1",
84+
"eslint-plugin-prettier": "5.1.2",
8585
"eslint-plugin-react-hooks": "4.6.0",
86-
"eslint-plugin-unicorn": "48.0.1",
86+
"eslint-plugin-unicorn": "50.0.1",
8787
"mini-css-extract-plugin": "2.7.6",
8888
"npm-run-all": "4.1.5",
8989
"postcss": "8.4.32",
90-
"postcss-loader": "7.3.3",
90+
"postcss-loader": "7.3.4",
9191
"postcss-scss": "4.0.9",
92-
"prettier": "3.0.3",
93-
"source-map-loader": "4.0.1",
92+
"prettier": "3.1.1",
93+
"source-map-loader": "4.0.2",
9494
"style-loader": "3.3.3",
95-
"tailwindcss": "3.3.3",
95+
"tailwindcss": "3.4.0",
9696
"to-string-loader": "1.2.0",
9797
"tsconfig-paths-webpack-plugin": "4.0.1",
98-
"typescript": "5.2.2",
99-
"webpack": "5.88.2",
98+
"typescript": "5.3.3",
99+
"webpack": "5.89.0",
100100
"webpack-cli": "5.1.4"
101101
},
102102
"publishConfig": {

packages/core/package.json

Lines changed: 43 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@
6060
"@codemirror/state": "6.2.1",
6161
"@codemirror/theme-one-dark": "6.1.2",
6262
"@codemirror/view": "6.21.2",
63-
"@dnd-kit/core": "6.0.8",
64-
"@dnd-kit/sortable": "7.0.2",
65-
"@dnd-kit/utilities": "3.2.1",
66-
"@emotion/react": "11.11.1",
63+
"@dnd-kit/core": "6.1.0",
64+
"@dnd-kit/sortable": "8.0.0",
65+
"@dnd-kit/utilities": "3.2.2",
66+
"@emotion/react": "11.11.3",
6767
"@emotion/styled": "11.11.0",
6868
"@lezer/common": "1.1.0",
6969
"@mdx-js/mdx": "3.0.0",
@@ -81,7 +81,7 @@
8181
"@styled-icons/material-outlined": "10.47.0",
8282
"@styled-icons/material-rounded": "10.47.0",
8383
"@styled-icons/simple-icons": "10.46.0",
84-
"@tanstack/react-virtual": "3.0.0-beta.61",
84+
"@tanstack/react-virtual": "3.0.1",
8585
"@udecode/plate": "23.7.4",
8686
"@udecode/plate-cursor": "23.7.4",
8787
"@udecode/plate-juice": "23.7.4",
@@ -95,28 +95,28 @@
9595
"clean-stack": "5.2.0",
9696
"codemirror": "6.0.1",
9797
"common-tags": "1.8.2",
98-
"copy-text-to-clipboard": "3.1.0",
98+
"copy-text-to-clipboard": "3.2.0",
9999
"create-react-class": "15.7.0",
100100
"date-fns": "2.30.0",
101101
"deepmerge": "4.3.1",
102102
"diacritics": "1.3.0",
103103
"escape-html": "1.0.3",
104-
"eslint-config-prettier": "9.0.0",
104+
"eslint-config-prettier": "9.1.0",
105105
"eslint-plugin-babel": "5.3.1",
106106
"fuzzy": "0.1.3",
107-
"globby": "13.1.4",
107+
"globby": "14.0.0",
108108
"gotrue-js": "0.9.29",
109109
"graphql": "16.8.1",
110110
"graphql-tag": "2.12.6",
111111
"gray-matter": "4.0.3",
112112
"history": "5.3.0",
113-
"immer": "10.0.1",
114-
"immutable": "4.3.4",
115-
"ini": "4.1.0",
113+
"immer": "10.0.3",
114+
"immutable": "5.0.0-beta.4",
115+
"ini": "4.1.1",
116116
"is-hotkey": "0.2.0",
117117
"js-base64": "3.7.5",
118-
"js-sha256": "0.9.0",
119-
"jwt-decode": "3.1.2",
118+
"js-sha256": "0.10.1",
119+
"jwt-decode": "4.0.0",
120120
"localforage": "1.10.0",
121121
"lodash": "4.17.21",
122122
"mdast-util-gfm-footnote": "2.0.0",
@@ -128,7 +128,7 @@
128128
"micromark-extension-gfm-table": "2.0.0",
129129
"micromark-extension-gfm-task-list-item": "2.0.1",
130130
"micromark-util-combine-extensions": "2.0.0",
131-
"minimatch": "9.0.0",
131+
"minimatch": "9.0.3",
132132
"node-polyglot": "2.5.0",
133133
"ol": "7.3.0",
134134
"path-browserify": "1.0.1",
@@ -144,12 +144,12 @@
144144
"react-polyglot": "0.7.2",
145145
"react-redux": "8.1.3",
146146
"react-resizable-panels": "0.0.55",
147-
"react-router-dom": "6.16.0",
148-
"react-scroll-sync": "0.11.0",
147+
"react-router-dom": "6.21.1",
148+
"react-scroll-sync": "0.11.2",
149149
"react-topbar-progress-indicator": "4.1.1",
150150
"react-virtualized-auto-sizer": "1.0.20",
151151
"react-waypoint": "10.3.0",
152-
"react-window": "1.8.9",
152+
"react-window": "1.8.10",
153153
"remark-gfm": "4.0.0",
154154
"remark-html": "16.0.1",
155155
"remark-mdx": "3.0.0",
@@ -166,15 +166,15 @@
166166
"symbol-observable": "4.0.0",
167167
"unified": "11.0.4",
168168
"unist-util-visit": "5.0.0",
169-
"url": "0.11.0",
169+
"url": "0.11.3",
170170
"url-join": "5.0.0",
171171
"uuid": "9.0.1",
172172
"validate-color": "2.2.4",
173173
"vfile": "6.0.1",
174174
"vfile-message": "4.0.2",
175175
"vfile-statistics": "3.0.0",
176176
"what-the-diff": "0.6.0",
177-
"yaml": "2.3.2"
177+
"yaml": "2.3.4"
178178
},
179179
"devDependencies": {
180180
"@babel/cli": "7.23.4",
@@ -193,29 +193,28 @@
193193
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
194194
"@simbathesailor/use-what-changed": "2.0.0",
195195
"@testing-library/dom": "9.3.3",
196-
"@testing-library/jest-dom": "6.1.3",
197-
"@testing-library/react": "14.0.0",
196+
"@testing-library/jest-dom": "6.2.0",
197+
"@testing-library/react": "14.1.2",
198198
"@testing-library/user-event": "14.5.2",
199199
"@types/common-tags": "1.8.4",
200200
"@types/create-react-class": "15.6.6",
201-
"@types/fs-extra": "11.0.1",
201+
"@types/fs-extra": "11.0.4",
202202
"@types/is-hotkey": "0.1.10",
203-
"@types/jest": "29.5.5",
203+
"@types/jest": "29.5.11",
204204
"@types/js-yaml": "4.0.9",
205-
"@types/jwt-decode": "2.2.1",
206205
"@types/lodash": "4.14.202",
207206
"@types/minimatch": "5.1.2",
208-
"@types/node": "18.17.19",
209-
"@types/react": "18.2.25",
207+
"@types/node": "18.19.4",
208+
"@types/react": "18.2.46",
210209
"@types/react-color": "3.0.11",
211-
"@types/react-dom": "18.2.10",
210+
"@types/react-dom": "18.2.18",
212211
"@types/react-virtualized-auto-sizer": "1.0.4",
213-
"@types/react-window": "1.8.6",
212+
"@types/react-window": "1.8.8",
214213
"@types/unist": "3.0.2",
215214
"@types/url-join": "4.0.3",
216-
"@types/uuid": "9.0.4",
217-
"@typescript-eslint/eslint-plugin": "6.7.4",
218-
"@typescript-eslint/parser": "6.7.4",
215+
"@types/uuid": "9.0.7",
216+
"@typescript-eslint/eslint-plugin": "6.17.0",
217+
"@typescript-eslint/parser": "6.17.0",
219218
"autoprefixer": "10.4.16",
220219
"babel-core": "7.0.0-bridge.0",
221220
"babel-loader": "9.1.3",
@@ -231,16 +230,16 @@
231230
"cross-env": "7.0.3",
232231
"css-loader": "6.8.1",
233232
"dotenv": "16.3.1",
234-
"eslint": "8.50.0",
233+
"eslint": "8.56.0",
235234
"eslint-import-resolver-typescript": "3.6.1",
236235
"eslint-plugin-cypress": "2.15.1",
237-
"eslint-plugin-import": "2.28.1",
238-
"eslint-plugin-prettier": "5.0.0",
236+
"eslint-plugin-import": "2.29.1",
237+
"eslint-plugin-prettier": "5.1.2",
239238
"eslint-plugin-react": "7.33.2",
240239
"eslint-plugin-react-hooks": "4.6.0",
241-
"eslint-plugin-unicorn": "48.0.1",
242-
"execa": "7.1.1",
243-
"fs-extra": "11.1.1",
240+
"eslint-plugin-unicorn": "50.0.1",
241+
"execa": "8.0.1",
242+
"fs-extra": "11.2.0",
244243
"gitlab": "14.2.2",
245244
"jest": "29.7.0",
246245
"jest-environment-jsdom": "29.7.0",
@@ -249,22 +248,22 @@
249248
"ncp": "2.0.0",
250249
"npm-run-all": "4.1.5",
251250
"postcss": "8.4.32",
252-
"postcss-loader": "7.3.3",
253-
"prettier": "3.0.3",
251+
"postcss-loader": "7.3.4",
252+
"prettier": "3.1.1",
254253
"process": "0.11.10",
255254
"react-refresh": "0.14.0",
256255
"react-svg-loader": "3.0.3",
257256
"rimraf": "5.0.5",
258257
"simple-git": "3.22.0",
259-
"source-map-loader": "4.0.1",
258+
"source-map-loader": "4.0.2",
260259
"style-loader": "3.3.3",
261-
"tailwindcss": "3.3.3",
260+
"tailwindcss": "3.4.0",
262261
"to-string-loader": "1.2.0",
263262
"ts-jest": "29.1.1",
264-
"ts-node": "10.9.1",
263+
"ts-node": "10.9.2",
265264
"tsconfig-paths-webpack-plugin": "4.1.0",
266-
"typescript": "5.2.2",
267-
"webpack": "5.88.2",
265+
"typescript": "5.3.3",
266+
"webpack": "5.89.0",
268267
"webpack-cli": "5.1.4",
269268
"webpack-dev-server": "4.15.1"
270269
},

packages/core/src/backends/git-gateway/implementation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ini from 'ini';
2-
import jwtDecode from 'jwt-decode';
2+
import { jwtDecode } from 'jwt-decode';
33
import get from 'lodash/get';
44
import intersection from 'lodash/intersection';
55
import pick from 'lodash/pick';

packages/core/src/components/collections/entries/EntryCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { getPreviewCard } from '@staticcms/core/lib/registry';
88
import { getEntryBackupKey } from '@staticcms/core/lib/util/backup.util';
99
import classNames from '@staticcms/core/lib/util/classNames.util';
1010
import {
11-
selectEntryCollectionTitle,
1211
getFields,
12+
selectEntryCollectionTitle,
1313
selectTemplateName,
1414
} from '@staticcms/core/lib/util/collection.util';
1515
import localForage from '@staticcms/core/lib/util/localForage';

packages/core/src/components/entry-editor/EditorWorkflowToolbarButtons.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ const EditorWorkflowToolbarButtons: FC<EditorWorkflowToolbarButtonsProps> = ({
9494
isUpdatingStatus
9595
? t('editor.editorToolbar.updating')
9696
: isLoading
97-
? t('app.app.loading')
98-
: t('editor.editorToolbar.status', { status: statusToTranslation[currentStatus] })
97+
? t('app.app.loading')
98+
: t('editor.editorToolbar.status', { status: statusToTranslation[currentStatus] })
9999
}
100100
color="secondary"
101101
disabled={disabled}

0 commit comments

Comments
 (0)