Skip to content

Commit 5d472d4

Browse files
authored
chore: change peer dep for S2 to be React 19 only (#9211)
* chore: change peer dep for S2 to be 19 only * forgot to change lock * fix lint * update the icon builder as well
1 parent f8d513f commit 5d472d4

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

packages/@react-spectrum/s2/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@
174174
"react-stately": "^3.42.0"
175175
},
176176
"peerDependencies": {
177-
"react": "^18.0.0 || ^19.0.0-rc.1",
178-
"react-dom": "^18.0.0 || ^19.0.0-rc.1"
177+
"react": "^19.0.0-rc.1",
178+
"react-dom": "^19.0.0-rc.1"
179179
},
180180
"publishConfig": {
181181
"access": "public"

packages/dev/s2-icon-builder/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
},
3030
"peerDependencies": {
3131
"@react-spectrum/s2": ">=0.8.0",
32-
"react": "^18.0.0 || ^19.0.0-rc.1",
33-
"react-dom": "^18.0.0 || ^19.0.0-rc.1"
32+
"react": "^19.0.0-rc.1",
33+
"react-dom": "^19.0.0-rc.1"
3434
},
3535
"files": [
3636
"index.js",

scripts/verdaccio-build-icon-builder.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ cat > icon-library-test/package.json << EOF
6767
},
6868
"peerDependencies": {
6969
"@react-spectrum/s2": ">=0.8.0",
70-
"react": "^18.0.0 || ^19.0.0-rc.1",
71-
"react-dom": "^18.0.0 || ^19.0.0-rc.1"
70+
"react": "^19.0.0-rc.1",
71+
"react-dom": "^19.0.0-rc.1"
7272
},
7373
"devDependencies": {
7474
"@react-spectrum/s2-icon-builder": "latest",

yarn.config.cjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ function enforceConsistentDependenciesAcrossTheProject({Yarn}) {
2323
}
2424
if (dependency.workspace.ident === 'storybook-builder-parcel') {
2525
dependency.update('*');
26-
} else if (dependency.workspace.ident === '@react-spectrum/s2' || dependency.workspace.ident === '@react-spectrum/codemods' || dependency.workspace.ident === '@react-spectrum/s2-icon-builder') {
26+
} else if (dependency.workspace.ident === '@react-spectrum/s2' || dependency.workspace.ident === '@react-spectrum/s2-icon-builder') {
27+
dependency.update('^19.0.0-rc.1');
28+
} else if (dependency.workspace.ident === '@react-spectrum/codemods') {
2729
dependency.update('^18.0.0 || ^19.0.0-rc.1');
2830
} else {
2931
dependency.update('^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1');

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7525,8 +7525,8 @@ __metadata:
75257525
glob: "npm:^11.0.3"
75267526
peerDependencies:
75277527
"@react-spectrum/s2": ">=0.8.0"
7528-
react: ^18.0.0 || ^19.0.0-rc.1
7529-
react-dom: ^18.0.0 || ^19.0.0-rc.1
7528+
react: ^19.0.0-rc.1
7529+
react-dom: ^19.0.0-rc.1
75307530
bin:
75317531
transform-icons: index.js
75327532
languageName: unknown
@@ -7567,8 +7567,8 @@ __metadata:
75677567
react-aria-components: "npm:^1.13.0"
75687568
react-stately: "npm:^3.42.0"
75697569
peerDependencies:
7570-
react: ^18.0.0 || ^19.0.0-rc.1
7571-
react-dom: ^18.0.0 || ^19.0.0-rc.1
7570+
react: ^19.0.0-rc.1
7571+
react-dom: ^19.0.0-rc.1
75727572
languageName: unknown
75737573
linkType: soft
75747574

0 commit comments

Comments
 (0)