Skip to content

Commit accfe05

Browse files
committed
revert to base version
1 parent faf6c4d commit accfe05

File tree

955 files changed

+54839
-62429
lines changed

Some content is hidden

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

955 files changed

+54839
-62429
lines changed

ReactVersions.js

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,58 +7,52 @@
77
//
88
// The @latest channel uses the version as-is, e.g.:
99
//
10-
// 19.1.0
10+
// 18.3.0
1111
//
1212
// The @canary channel appends additional information, with the scheme
1313
// <version>-<label>-<commit_sha>, e.g.:
1414
//
15-
// 19.1.0-canary-a1c2d3e4
15+
// 18.3.0-canary-a1c2d3e4
1616
//
1717
// The @experimental channel doesn't include a version, only a date and a sha, e.g.:
1818
//
1919
// 0.0.0-experimental-241c4467e-20200129
2020

21-
const ReactVersion = '19.1.0';
21+
const ReactVersion = '18.3.0';
2222

2323
// The label used by the @canary channel. Represents the upcoming release's
2424
// stability. Most of the time, this will be "canary", but we may temporarily
2525
// choose to change it to "alpha", "beta", "rc", etc.
2626
//
2727
// It only affects the label used in the version string. To customize the
28-
// npm dist tags used during publish, refer to .github/workflows/runtime_prereleases_*.yml.
28+
// npm dist tags used during publish, refer to .circleci/config.yml.
2929
const canaryChannelLabel = 'canary';
3030

31-
// If the canaryChannelLabel is "rc", the build pipeline will use this to build
32-
// an RC version of the packages.
33-
const rcNumber = 0;
34-
3531
const stablePackages = {
36-
'eslint-plugin-react-hooks': '5.2.0',
37-
'jest-react': '0.17.0',
32+
'eslint-plugin-react-hooks': '5.0.0',
33+
'jest-react': '0.15.0',
3834
react: ReactVersion,
3935
'react-art': ReactVersion,
4036
'react-dom': ReactVersion,
4137
'react-server-dom-webpack': ReactVersion,
4238
'react-server-dom-turbopack': ReactVersion,
43-
'react-server-dom-parcel': ReactVersion,
4439
'react-is': ReactVersion,
45-
'react-reconciler': '0.32.0',
46-
'react-refresh': '0.17.0',
40+
'react-reconciler': '0.30.0',
41+
'react-refresh': '0.15.0',
4742
'react-test-renderer': ReactVersion,
48-
'use-subscription': '1.11.0',
49-
'use-sync-external-store': '1.5.0',
50-
scheduler: '0.26.0',
43+
'use-subscription': '1.9.0',
44+
'use-sync-external-store': '1.3.0',
45+
scheduler: '0.24.0',
5146
};
5247

5348
// These packages do not exist in the @canary or @latest channel, only
5449
// @experimental. We don't use semver, just the commit sha, so this is just a
5550
// list of package names instead of a map.
56-
const experimentalPackages = ['react-markup'];
51+
const experimentalPackages = [];
5752

5853
module.exports = {
5954
ReactVersion,
6055
canaryChannelLabel,
61-
rcNumber,
6256
stablePackages,
6357
experimentalPackages,
6458
};

packages/dom-event-testing-library/__tests__/index-test.internal.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('createEventTarget', () => {
4545
resetActivePointers();
4646
});
4747

48-
it('returns expected API', () => {
48+
test('returns expected API', () => {
4949
const target = createEventTarget(node);
5050
expect(target.node).toEqual(node);
5151
expect(Object.keys(target)).toMatchInlineSnapshot(`
@@ -77,15 +77,15 @@ describe('createEventTarget', () => {
7777
*/
7878

7979
describe('.blur()', () => {
80-
it('default', () => {
80+
test('default', () => {
8181
const target = createEventTarget(node);
8282
node.addEventListener('blur', e => {
8383
expect(e.relatedTarget).toMatchInlineSnapshot(`null`);
8484
});
8585
target.blur();
8686
});
8787

88-
it('custom payload', () => {
88+
test('custom payload', () => {
8989
const target = createEventTarget(node);
9090
node.addEventListener('blur', e => {
9191
expect(e.relatedTarget).toMatchInlineSnapshot(`null`);
@@ -95,7 +95,7 @@ describe('createEventTarget', () => {
9595
});
9696

9797
describe('.click()', () => {
98-
it('default', () => {
98+
test('default', () => {
9999
const target = createEventTarget(node);
100100
node.addEventListener('click', e => {
101101
expect(e.altKey).toEqual(false);
@@ -122,7 +122,7 @@ describe('createEventTarget', () => {
122122
target.click();
123123
});
124124

125-
it('custom payload', () => {
125+
test('custom payload', () => {
126126
const target = createEventTarget(node);
127127
node.addEventListener('click', e => {
128128
expect(e.altKey).toEqual(true);
@@ -162,15 +162,15 @@ describe('createEventTarget', () => {
162162
});
163163

164164
describe('.focus()', () => {
165-
it('default', () => {
165+
test('default', () => {
166166
const target = createEventTarget(node);
167167
node.addEventListener('focus', e => {
168168
expect(e.relatedTarget).toMatchInlineSnapshot(`null`);
169169
});
170170
target.blur();
171171
});
172172

173-
it('custom payload', () => {
173+
test('custom payload', () => {
174174
const target = createEventTarget(node);
175175
node.addEventListener('focus', e => {
176176
expect(e.relatedTarget).toMatchInlineSnapshot(`null`);
@@ -180,7 +180,7 @@ describe('createEventTarget', () => {
180180
});
181181

182182
describe('.keydown()', () => {
183-
it('default', () => {
183+
test('default', () => {
184184
const target = createEventTarget(node);
185185
node.addEventListener('keydown', e => {
186186
expect(e.altKey).toEqual(false);
@@ -195,7 +195,7 @@ describe('createEventTarget', () => {
195195
target.keydown();
196196
});
197197

198-
it('custom payload', () => {
198+
test('custom payload', () => {
199199
const target = createEventTarget(node);
200200
node.addEventListener('keydown', e => {
201201
expect(e.altKey).toEqual(true);
@@ -217,7 +217,7 @@ describe('createEventTarget', () => {
217217
});
218218

219219
describe('.keyup()', () => {
220-
it('default', () => {
220+
test('default', () => {
221221
const target = createEventTarget(node);
222222
node.addEventListener('keyup', e => {
223223
expect(e.altKey).toEqual(false);
@@ -232,7 +232,7 @@ describe('createEventTarget', () => {
232232
target.keydown();
233233
});
234234

235-
it('custom payload', () => {
235+
test('custom payload', () => {
236236
const target = createEventTarget(node);
237237
node.addEventListener('keyup', e => {
238238
expect(e.altKey).toEqual(true);
@@ -254,7 +254,7 @@ describe('createEventTarget', () => {
254254
});
255255

256256
describe('.scroll()', () => {
257-
it('default', () => {
257+
test('default', () => {
258258
const target = createEventTarget(node);
259259
node.addEventListener('scroll', e => {
260260
expect(e.type).toEqual('scroll');
@@ -264,7 +264,7 @@ describe('createEventTarget', () => {
264264
});
265265

266266
describe('.virtualclick()', () => {
267-
it('default', () => {
267+
test('default', () => {
268268
const target = createEventTarget(node);
269269
node.addEventListener('click', e => {
270270
expect(e.altKey).toEqual(false);
@@ -291,7 +291,7 @@ describe('createEventTarget', () => {
291291
target.virtualclick();
292292
});
293293

294-
it('custom payload', () => {
294+
test('custom payload', () => {
295295
const target = createEventTarget(node);
296296
node.addEventListener('click', e => {
297297
// expect most of the custom payload to be ignored
@@ -334,7 +334,7 @@ describe('createEventTarget', () => {
334334
* Other APIs
335335
*/
336336

337-
it('.setBoundingClientRect()', () => {
337+
test('.setBoundingClientRect()', () => {
338338
const target = createEventTarget(node);
339339
expect(node.getBoundingClientRect()).toMatchInlineSnapshot(`
340340
{

packages/eslint-plugin-react-hooks/CHANGELOG.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
1-
## 5.0.0
1+
## 5.0.0 (next release)
22

33
* **New Violations:** Component names now need to start with an uppercase letter instead of a non-lowercase letter. This means `_Button` or `_component` are no longer valid. ([@kassens](https://github.com/kassens)) in [#25162](https://github.com/facebook/react/pull/25162)
44

5-
- Consider dispatch from `useActionState` stable. ([@eps1lon](https://github.com/eps1lon) in [#29665](https://github.com/facebook/react/pull/29665))
6-
- Add support for ESLint v9. ([@eps1lon](https://github.com/eps1lon) in [#28773](https://github.com/facebook/react/pull/28773))
7-
- Accept `as` expression in callback. ([@StyleShit](https://github.com/StyleShit) in [#28202](https://github.com/facebook/react/pull/28202))
8-
- Accept `as` expressions in deps array. ([@StyleShit](https://github.com/StyleShit) in [#28189](https://github.com/facebook/react/pull/28189))
9-
- Treat `React.use()` the same as `use()`. ([@kassens](https://github.com/kassens) in [#27769](https://github.com/facebook/react/pull/27769))
10-
- Move `use()` lint to non-experimental. ([@kassens](https://github.com/kassens) in [#27768](https://github.com/facebook/react/pull/27768))
11-
- Support Flow `as` expressions. ([@cpojer](https://github.com/cpojer) in [#27590](https://github.com/facebook/react/pull/27590))
12-
- Allow `useEffect(fn, undefined)`. ([@kassens](https://github.com/kassens) in [#27525](https://github.com/facebook/react/pull/27525))
13-
- Disallow hooks in async functions. ([@acdlite](https://github.com/acdlite) in [#27045](https://github.com/facebook/react/pull/27045))
14-
- Rename experimental `useEvent` to `useEffectEvent`. ([@sebmarkbage](https://github.com/sebmarkbage) in [#25881](https://github.com/facebook/react/pull/25881))
15-
- Lint for presence of `useEvent` functions in dependency lists. ([@poteto](https://github.com/poteto) in [#25512](https://github.com/facebook/react/pull/25512))
16-
- Check `useEvent` references instead. ([@poteto](https://github.com/poteto) in [#25319](https://github.com/facebook/react/pull/25319))
17-
- Update `RulesOfHooks` with `useEvent` rules. ([@poteto](https://github.com/poteto) in [#25285](https://github.com/facebook/react/pull/25285))
18-
195
## 4.6.0
206

217
## 4.5.0

packages/eslint-plugin-react-hooks/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# `eslint-plugin-react-hooks`
22

3-
This ESLint plugin enforces the [Rules of Hooks](https://react.dev/reference/rules/rules-of-hooks).
3+
This ESLint plugin enforces the [Rules of Hooks](https://reactjs.org/docs/hooks-rules.html).
44

5-
It is a part of the [Hooks API](https://react.dev/reference/react/hooks) for React.
5+
It is a part of the [Hooks API](https://reactjs.org/docs/hooks-intro.html) for React.
66

77
## Installation
88

@@ -68,7 +68,7 @@ We suggest to use this option **very sparingly, if at all**. Generally saying, w
6868

6969
## Valid and Invalid Examples
7070

71-
Please refer to the [Rules of Hooks](https://react.dev/reference/rules/rules-of-hooks) documentation to learn more about this rule.
71+
Please refer to the [Rules of Hooks](https://reactjs.org/docs/hooks-rules.html) documentation and the [Hooks FAQ](https://reactjs.org/docs/hooks-faq.html#what-exactly-do-the-lint-rules-enforce) to learn more about this rule.
7272

7373
## License
7474

0 commit comments

Comments
 (0)