Skip to content

Commit fc7df12

Browse files
authored
Merge pull request #213 from HubSpot/react-18
Add React 18 as peerDependency
2 parents fce77c1 + 06b2043 commit fc7df12

File tree

4 files changed

+23
-17
lines changed

4 files changed

+23
-17
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"license": "Apache-2.0",
3838
"peerDependencies": {
3939
"draft-js": ">=0.7.0",
40-
"react": "^15.0.2 || ^16.0.0-rc || ^16.0.0 || ^17.0.0",
41-
"react-dom": "^15.0.2 || ^16.0.0-rc || ^16.0.0 || ^17.0.0"
40+
"react": "^15.0.2 || ^16.0.0-rc || ^16.0.0 || ^17.0.0 || ^18.0.0",
41+
"react-dom": "^15.0.2 || ^16.0.0-rc || ^16.0.0 || ^17.0.0 || ^18.0.0"
4242
},
4343
"dependencies": {
4444
"@babel/runtime": "^7.5.5",
@@ -63,8 +63,8 @@
6363
"jasmine": "^2.2.0",
6464
"jest": "^24.8.0",
6565
"prettier": "^1.8.2",
66-
"react": "^15.4.2",
67-
"react-dom": "^15.4.2",
66+
"react": "^18.0.0",
67+
"react-dom": "^18.0.0",
6868
"rimraf": "2.5.4",
6969
"webpack": "^4.35.3",
7070
"webpack-nano": "^0.6.2"

test/spec/convertFromHTML-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ describe('convertFromHTML', () => {
181181
});
182182

183183
it('converts custom inline styles', () => {
184-
const html = '<p><span style="font-family:Test;">test font</span></p>';
184+
const html = '<p><span style="font-family:Test">test font</span></p>';
185185
const contentState = toContentState(html);
186186
const styles = contentState.getFirstBlock().getInlineStyleAt(0);
187187
expect(styles.size).toBe(1);

test/spec/convertToHTML-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ describe('convertToHTML', () => {
831831
},
832832
})(contentState);
833833

834-
expect(html).toBe('<p style="text-align:right;">test</p>');
834+
expect(html).toBe('<p style="text-align:right">test</p>');
835835
});
836836

837837
it('uses JSX for block HTML when passing a middleware function', () => {

yarn.lock

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2491,7 +2491,7 @@ fb-watchman@^2.0.0:
24912491
dependencies:
24922492
bser "^2.0.0"
24932493

2494-
fbjs@^0.8.1, fbjs@^0.8.3, fbjs@^0.8.4:
2494+
fbjs@^0.8.3:
24952495
version "0.8.9"
24962496
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.9.tgz#180247fbd347dcc9004517b904f865400a0c8f14"
24972497
dependencies:
@@ -4766,26 +4766,25 @@ rc@^1.2.7:
47664766
minimist "^1.2.0"
47674767
strip-json-comments "~2.0.1"
47684768

4769-
react-dom@^15.4.2:
4770-
version "15.4.2"
4771-
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.4.2.tgz#015363f05b0a1fd52ae9efdd3a0060d90695208f"
4769+
react-dom@^18.0.0:
4770+
version "18.2.0"
4771+
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d"
4772+
integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==
47724773
dependencies:
4773-
fbjs "^0.8.1"
47744774
loose-envify "^1.1.0"
4775-
object-assign "^4.1.0"
4775+
scheduler "^0.23.0"
47764776

47774777
react-is@^16.8.4:
47784778
version "16.8.6"
47794779
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16"
47804780
integrity sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==
47814781

4782-
react@^15.4.2:
4783-
version "15.4.2"
4784-
resolved "https://registry.yarnpkg.com/react/-/react-15.4.2.tgz#41f7991b26185392ba9bae96c8889e7e018397ef"
4782+
react@^18.0.0:
4783+
version "18.2.0"
4784+
resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5"
4785+
integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==
47854786
dependencies:
4786-
fbjs "^0.8.4"
47874787
loose-envify "^1.1.0"
4788-
object-assign "^4.1.0"
47894788

47904789
read-pkg-up@^4.0.0:
47914790
version "4.0.0"
@@ -5121,6 +5120,13 @@ sax@^1.2.4:
51215120
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
51225121
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==
51235122

5123+
scheduler@^0.23.0:
5124+
version "0.23.0"
5125+
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe"
5126+
integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==
5127+
dependencies:
5128+
loose-envify "^1.1.0"
5129+
51245130
schema-utils@^1.0.0:
51255131
version "1.0.0"
51265132
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-1.0.0.tgz#0b79a93204d7b600d4b2850d1f66c2a34951c770"

0 commit comments

Comments
 (0)