Skip to content

Commit fe4125e

Browse files
Merge branch 'next' into fixGetTabbableType
2 parents cd77c9f + 0e035ea commit fe4125e

File tree

3,725 files changed

+116618
-60514
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,725 files changed

+116618
-60514
lines changed

.browserslistrc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ node 14
99
# `npx browserslist --mobile-to-desktop "> 0.5%, last 2 versions, Firefox ESR, not dead, safari >= 15.4, iOS >= 15.4"` when the last major is released.
1010
# Explicit safari versions are here based on the agreed terms in: https://github.com/mui/material-ui/issues/40958#issuecomment-1953215043
1111
#
12-
# After you update the version, you might need to run `npx update-browserslist-db@latest` to update caniuse-lite to gather latest browser versions.
12+
# After you update the version, you might need to run `npx update-browserslist-db@latest` to update caniuse-lite to gather latest browser versions.
1313
# Otherwise, running `pnpm build` might fail due to unknown browser versions.
1414
#
1515
# On update, sync references where "#stable-snapshot" is mentioned in the codebase.
@@ -75,20 +75,20 @@ samsung 22
7575
# snapshot of `npx browserslist "maintained node versions"`
7676
# On update check all #stable-snapshot markers
7777
[node]
78-
node 12.0
78+
node 14.0
7979

8080
# same as `node`
8181
[coverage]
82-
node 12.0
82+
node 14.0
8383

8484
# same as `node`
8585
[development]
86-
node 12.0
86+
node 14.0
8787

8888
# same as `node`
8989
[test]
90-
node 12.0
90+
node 14.0
9191

9292
# same as `node`
9393
[benchmark]
94-
node 12.0
94+
node 14.0

.circleci/config.yml

Lines changed: 98 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2.1
22
orbs:
3-
aws-cli: circleci/aws-cli@4.1.3
3+
aws-cli: circleci/aws-cli@4.2.3
44
aws-s3: circleci/aws-s3@4.0
55

66
parameters:
@@ -69,12 +69,6 @@ commands:
6969
description: 'Set to true if you intend to any browser (for example with playwright).'
7070

7171
steps:
72-
- run:
73-
name: Resolve React version
74-
command: |
75-
node scripts/useReactVersion.mjs
76-
# log a patch for maintainers who want to check out this change
77-
git --no-pager diff HEAD
7872
- when:
7973
condition: << parameters.browsers >>
8074
steps:
@@ -93,11 +87,26 @@ commands:
9387
name: Restore playwright cache
9488
keys:
9589
- v6-playwright-{{ arch }}-{{ checksum "/tmp/playwright_info.json" }}
90+
- when:
91+
condition:
92+
not: << parameters.browsers >>
93+
steps:
94+
# See https://stackoverflow.com/a/73411601
95+
- run: corepack enable --install-directory ~/bin
96+
9697
- run:
9798
name: View install environment
9899
command: |
99100
node --version
100101
pnpm --version
102+
103+
- run:
104+
name: Resolve React version
105+
command: |
106+
pnpm use-react-version
107+
# log a patch for maintainers who want to check out this change
108+
git --no-pager diff HEAD
109+
101110
- run:
102111
name: Install js dependencies
103112
command: pnpm install
@@ -130,7 +139,7 @@ jobs:
130139
name: Should not have any git not staged
131140
command: git add -A && git diff --exit-code --staged
132141
- run:
133-
name: Check for duplicated packages
142+
name: '`pnpm dedupe` was run?'
134143
command: |
135144
# #default-branch-switch
136145
if [[ $(git diff --name-status next | grep -E 'pnpm-workspace\.yaml|pnpm-lock.yaml|package\.json') == "" ]];
@@ -290,6 +299,12 @@ jobs:
290299
command: |
291300
pnpm docs:link-check
292301
git add -A && git diff --exit-code --staged
302+
- run:
303+
name: Update the templates shared themes
304+
command: pnpm template:update-theme
305+
- run:
306+
name: '`pnpm template:update-theme` changes committed?'
307+
command: git add -A && git diff --exit-code --staged
293308
test_types:
294309
<<: *default-job
295310
resource_class: 'medium+'
@@ -313,6 +328,7 @@ jobs:
313328
pnpm --filter @mui/material typescript:module-augmentation
314329
pnpm --filter @mui/base typescript:module-augmentation
315330
pnpm --filter @mui/joy typescript:module-augmentation
331+
pnpm --filter @mui/system typescript:module-augmentation
316332
- run:
317333
name: Diff declaration files
318334
command: |
@@ -337,13 +353,13 @@ jobs:
337353
resource_class: 'medium+'
338354
steps:
339355
- checkout
356+
- install_js
340357
- run:
341358
name: Resolve typescript version
342359
command: |
343-
pnpm add typescript@next -d -w
360+
pnpm update -r typescript@next
344361
# log a patch for maintainers who want to check out this change
345362
git --no-pager diff HEAD
346-
- install_js
347363
- run:
348364
name: Tests TypeScript definitions
349365
command: |
@@ -383,7 +399,7 @@ jobs:
383399
<<: *default-job
384400
resource_class: 'medium+'
385401
docker:
386-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
402+
- image: mcr.microsoft.com/playwright:v1.46.1-focal
387403
environment:
388404
NODE_ENV: development # Needed if playwright is in `devDependencies`
389405
steps:
@@ -413,7 +429,7 @@ jobs:
413429
test_e2e:
414430
<<: *default-job
415431
docker:
416-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
432+
- image: mcr.microsoft.com/playwright:v1.46.1-focal
417433
environment:
418434
NODE_ENV: development # Needed if playwright is in `devDependencies`
419435
steps:
@@ -423,17 +439,11 @@ jobs:
423439
- run:
424440
name: pnpm test:e2e
425441
command: pnpm test:e2e
426-
- run:
427-
name: Can we generate the @mui/material umd build?
428-
command: pnpm --filter @mui/material build:umd
429-
- run:
430-
name: Test umd release
431-
command: pnpm test:umd
432442
test_e2e_website:
433443
# NOTE: This workflow runs after successful docs deploy. See /test/e2e-website/README.md#ci
434444
<<: *default-job
435445
docker:
436-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
446+
- image: mcr.microsoft.com/playwright:v1.46.1-focal
437447
environment:
438448
NODE_ENV: development # Needed if playwright is in `devDependencies`
439449
steps:
@@ -448,7 +458,7 @@ jobs:
448458
test_profile:
449459
<<: *default-job
450460
docker:
451-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
461+
- image: mcr.microsoft.com/playwright:v1.46.1-focal
452462
environment:
453463
NODE_ENV: development # Needed if playwright is in `devDependencies`
454464
steps:
@@ -475,7 +485,7 @@ jobs:
475485
test_regressions:
476486
<<: *default-job
477487
docker:
478-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
488+
- image: mcr.microsoft.com/playwright:v1.46.1-focal
479489
environment:
480490
NODE_ENV: development # Needed if playwright is in `devDependencies`
481491
steps:
@@ -529,7 +539,7 @@ jobs:
529539
<<: *default-job
530540
working_directory: /tmp/material-ui/test/bundling/fixtures/next-webpack4/
531541
docker:
532-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
542+
- image: mcr.microsoft.com/playwright:v1.46.1-focal
533543
environment:
534544
NODE_ENV: development # Needed if playwright is in `devDependencies`
535545
steps:
@@ -553,7 +563,7 @@ jobs:
553563
<<: *default-job
554564
working_directory: /tmp/material-ui/test/bundling/fixtures/next-webpack5/
555565
docker:
556-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
566+
- image: mcr.microsoft.com/playwright:v1.46.1-focal
557567
environment:
558568
NODE_ENV: development # Needed if playwright is in `devDependencies`
559569
steps:
@@ -577,7 +587,7 @@ jobs:
577587
<<: *default-job
578588
working_directory: /tmp/material-ui/test/bundling/fixtures/create-react-app/
579589
docker:
580-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
590+
- image: mcr.microsoft.com/playwright:v1.46.1-focal
581591
environment:
582592
NODE_ENV: development # Needed if playwright is in `devDependencies`
583593
steps:
@@ -601,7 +611,7 @@ jobs:
601611
<<: *default-job
602612
working_directory: /tmp/material-ui/test/bundling/fixtures/snowpack/
603613
docker:
604-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
614+
- image: mcr.microsoft.com/playwright:v1.46.1-focal
605615
environment:
606616
NODE_ENV: development # Needed if playwright is in `devDependencies`
607617
steps:
@@ -625,7 +635,7 @@ jobs:
625635
<<: *default-job
626636
working_directory: /tmp/material-ui/test/bundling/fixtures/vite/
627637
docker:
628-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
638+
- image: mcr.microsoft.com/playwright:v1.46.1-focal
629639
environment:
630640
NODE_ENV: development # Needed if playwright is in `devDependencies`
631641
steps:
@@ -649,7 +659,7 @@ jobs:
649659
<<: *default-job
650660
working_directory: /tmp/material-ui/test/bundling/fixtures/esbuild/
651661
docker:
652-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
662+
- image: mcr.microsoft.com/playwright:v1.46.1-focal
653663
environment:
654664
NODE_ENV: development # Needed if playwright is in `devDependencies`
655665
steps:
@@ -677,7 +687,7 @@ jobs:
677687
<<: *default-job
678688
working_directory: /tmp/material-ui/test/bundling/fixtures/gatsby/
679689
docker:
680-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
690+
- image: mcr.microsoft.com/playwright:v1.46.1-focal
681691
environment:
682692
NODE_ENV: development # Needed if playwright is in `devDependencies`
683693
steps:
@@ -778,7 +788,7 @@ jobs:
778788
test_benchmark:
779789
<<: *default-job
780790
docker:
781-
- image: mcr.microsoft.com/playwright:v1.44.0-focal
791+
- image: mcr.microsoft.com/playwright:v1.46.1-focal
782792
environment:
783793
NODE_ENV: development # Needed if playwright is in `devDependencies`
784794
steps:
@@ -885,48 +895,106 @@ workflows:
885895
jobs:
886896
- test_profile:
887897
<<: *default-context
898+
899+
# This workflow can be triggered manually on the PR
888900
react-17:
901+
when:
902+
equal: [react-17, << pipeline.parameters.workflow >>]
903+
jobs:
904+
- test_unit:
905+
<<: *default-context
906+
react-version: ^17.0.0
907+
name: test_unit-react@17
908+
- test_browser:
909+
<<: *default-context
910+
react-version: ^17.0.0
911+
name: test_browser-react@17
912+
- test_regressions:
913+
<<: *default-context
914+
react-version: ^17.0.0
915+
name: test_regressions-react@17
916+
- test_e2e:
917+
<<: *default-context
918+
react-version: ^17.0.0
919+
name: test_e2e-react@17
920+
921+
# This workflow is identical to react-17, but scheduled
922+
react-17-cron:
889923
triggers:
890924
- schedule:
891925
cron: '0 0 * * *'
892926
filters:
893927
branches:
894928
only:
895929
- master
930+
- next
896931
jobs:
897932
- test_unit:
898933
<<: *default-context
899934
react-version: ^17.0.0
935+
name: test_unit-react@17
900936
- test_browser:
901937
<<: *default-context
902938
react-version: ^17.0.0
939+
name: test_browser-react@17
903940
- test_regressions:
904941
<<: *default-context
905942
react-version: ^17.0.0
943+
name: test_regressions-react@17
906944
- test_e2e:
907945
<<: *default-context
908946
react-version: ^17.0.0
947+
name: test_e2e-react@17
948+
949+
# This workflow can be triggered manually on the PR
909950
react-next:
951+
when:
952+
equal: [react-next, << pipeline.parameters.workflow >>]
953+
jobs:
954+
- test_unit:
955+
<<: *default-context
956+
react-version: next
957+
name: test_unit-react@next
958+
- test_browser:
959+
<<: *default-context
960+
react-version: next
961+
name: test_browser-react@next
962+
- test_regressions:
963+
<<: *default-context
964+
react-version: next
965+
name: test_regressions-react@next
966+
- test_e2e:
967+
<<: *default-context
968+
react-version: next
969+
name: test_e2e-react@next
970+
# This workflow is identical to react-next, but scheduled
971+
react-next-cron:
910972
triggers:
911973
- schedule:
912974
cron: '0 0 * * *'
913975
filters:
914976
branches:
915977
only:
916978
- master
979+
- next
917980
jobs:
918981
- test_unit:
919982
<<: *default-context
920983
react-version: next
984+
name: test_unit-react@next
921985
- test_browser:
922986
<<: *default-context
923987
react-version: next
988+
name: test_browser-react@next
924989
- test_regressions:
925990
<<: *default-context
926991
react-version: next
992+
name: test_regressions-react@next
927993
- test_e2e:
928994
<<: *default-context
929995
react-version: next
996+
name: test_e2e-react@next
997+
930998
typescript-next:
931999
triggers:
9321000
- schedule:
@@ -935,6 +1003,7 @@ workflows:
9351003
branches:
9361004
only:
9371005
- master
1006+
- next
9381007
jobs:
9391008
- test_types_next:
9401009
<<: *default-context

0 commit comments

Comments
 (0)