GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merged master (with events -> legacy-events package rename) · react/react@44e4109

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .circleci
    • config.yml
  • .eslintrc.js
  • fixtures/ssr/src/components
    • Chrome.js
  • package.json
  • packages
    • eslint-plugin-react-hooks
      • __tests__
        • ESLintRuleExhaustiveDeps-test.js
        • ESLintRulesOfHooks-test.js
      • src
        • ExhaustiveDeps.js
    • legacy-events
      • EventBatching.js
      • EventPluginHub.js
      • EventPluginRegistry.js
      • EventPluginUtils.js
      • EventPropagators.js
      • EventSystemFlags.js
      • PluginModuleType.js
      • ReactControlledComponent.js
      • ReactGenericBatching.js
      • ReactSyntheticEventType.js
      • ResponderEventPlugin.js
      • ResponderSyntheticEvent.js
      • ResponderTopLevelEventTypes.js
      • ResponderTouchHistoryStore.js
      • SyntheticEvent.js
      • TopLevelEventTypes.js
      • __tests__
        • EventPluginRegistry-test.internal.js
        • ResponderEventPlugin-test.internal.js
        • accumulate-test.internal.js
        • accumulateInto-test.internal.js
      • accumulate.js
      • accumulateInto.js
      • forEachAccumulated.js
      • forks
        • ResponderTopLevelEventTypes.dom.js
      • package.json
    • react-dom/src
      • __tests__
        • ReactBrowserEventEmitter-test.internal.js
        • ReactDOMComponent-test.js
        • ReactDOMServerIntegrationElements-test.js
        • ReactDOMServerPartialHydration-test.internal.js
        • ReactDeprecationWarnings-test.internal.js
        • ReactServerRendering-test.js
        • findDOMNode-test.js
      • client
        • ReactDOM.js
        • ReactDOMClientInjection.js
        • ReactDOMComponent.js
      • events
        • BeforeInputEventPlugin.js
        • ChangeEventPlugin.js
        • DOMEventResponderSystem.js
        • DOMTopLevelEventTypes.js
        • EnterLeaveEventPlugin.js
        • ReactBrowserEventEmitter.js
        • ReactDOMEventListener.js
        • SelectEventPlugin.js
        • SimpleEventPlugin.js
        • SyntheticAnimationEvent.js
        • SyntheticClipboardEvent.js
        • SyntheticCompositionEvent.js
        • SyntheticInputEvent.js
        • SyntheticTransitionEvent.js
        • SyntheticUIEvent.js
        • __tests__
          • ChangeEventPlugin-test.internal.js
        • getEventModifierState.js
      • server
        • ReactPartialRenderer.js
      • shared
        • ReactDOMUnknownPropertyHook.js
      • test-utils
        • ReactTestUtils.js
      • unstable-native-dependencies
        • ReactDOMUnstableNativeDependencies.js
    • react-native-renderer/src
      • ReactFabric.js
      • ReactFabricEventEmitter.js
      • ReactFabricEventResponderSystem.js
      • ReactFabricInjection.js
      • ReactNativeBridgeEventPlugin.js
      • ReactNativeEventEmitter.js
      • ReactNativeInjection.js
      • ReactNativeInjectionShared.js
      • ReactNativeRenderer.js
      • __tests__
        • ReactFabric-test.internal.js
        • ReactNativeEvents-test.internal.js
        • ReactNativeMount-test.internal.js
    • react-reconciler/src
      • ReactChildFiber.js
      • ReactFiber.js
      • ReactFiberBeginWork.js
      • ReactFiberHydrationContext.js
      • ReactFiberLazyComponent.js
      • ReactFiberReconciler.js
      • ReactFiberSuspenseComponent.js
      • ReactFiberWorkLoop.js
      • ReactStrictModeWarnings.js
      • __tests__
        • ReactIncremental-test.internal.js
        • ReactIncrementalErrorHandling-test.internal.js
        • ReactIncrementalPerf-test.internal.js
        • ReactNewContext-test.internal.js
        • __snapshots__
          • ReactIncrementalPerf-test.internal.js.snap
    • react-refresh/src
      • ReactFreshBabelPlugin.js
      • __tests__
        • ReactFreshBabelPluginProd-test.js
    • react/src/__tests__
      • ReactCoffeeScriptClass-test.coffee
      • ReactStrictMode-test.internal.js
    • scheduler
      • npm/umd
        • scheduler.development.js
        • scheduler.production.min.js
        • scheduler.profiling.min.js
      • src
        • Scheduler.js
        • SchedulerFeatureFlags.js
        • SchedulerPriorities.js
        • SchedulerProfiling.js
        • __tests__
          • SchedulerDOM-test.js
          • SchedulerProfiling-test.js
        • forks
          • SchedulerFeatureFlags.www.js
          • SchedulerHostConfig.default.js
    • shared
      • ReactLazyComponent.js
  • scripts
    • flow
      • react-native-host-hooks.js
    • jest
      • config.base.js
      • config.build.js
      • config.source-persistent.js
      • preprocessor.js
      • setupEnvironment.js
    • rollup
      • bundles.js
      • forks.js
      • validate
        • eslintrc.cjs.js
        • eslintrc.fb.js
        • eslintrc.rn.js
        • eslintrc.umd.js
    • shared
      • pathsByLanguageVersion.js
  • yarn.lock

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.circleci/config.yml‎

Copy file name to clipboardExpand all lines: .circleci/config.yml
-13Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ jobs:
9494
- *run_yarn
9595
- run: yarn test-prod --maxWorkers=2
9696

97-
test_coverage:
98-
docker: *docker
99-
environment: *environment
100-
101-
steps:
102-
- checkout
103-
- *restore_yarn_cache
104-
- *run_yarn
105-
- run: ./scripts/circleci/test_coverage.sh
106-
10797
build:
10898
docker: *docker
10999
environment: *environment
@@ -257,6 +247,3 @@ workflows:
257247
- test_fuzz:
258248
requires:
259249
- setup
260-
- test_coverage:
261-
requires:
262-
- setup
Collapse file

‎.eslintrc.js‎

Copy file name to clipboardExpand all lines: .eslintrc.js
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ module.exports = {
129129
rules: {
130130
// https://github.com/jest-community/eslint-plugin-jest
131131
'jest/no-focused-tests': ERROR,
132+
'jest/valid-expect': ERROR,
133+
'jest/valid-expect-in-promise': ERROR,
132134
},
133135
},
134136
{
@@ -140,6 +142,8 @@ module.exports = {
140142
],
141143

142144
globals: {
145+
SharedArrayBuffer: true,
146+
143147
spyOnDev: true,
144148
spyOnDevAndProd: true,
145149
spyOnProd: true,
Collapse file

‎fixtures/ssr/src/components/Chrome.js‎

Copy file name to clipboardExpand all lines: fixtures/ssr/src/components/Chrome.js
+10-1Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,16 @@ export default class Chrome extends Component {
2626
<Theme.Provider value={this.state.theme}>
2727
{this.props.children}
2828
<div>
29-
<ThemeToggleButton onChange={theme => this.setState({theme})} />
29+
<ThemeToggleButton
30+
onChange={theme => {
31+
React.unstable_withSuspenseConfig(
32+
() => {
33+
this.setState({theme});
34+
},
35+
{timeoutMs: 6000}
36+
);
37+
}}
38+
/>
3039
</div>
3140
</Theme.Provider>
3241
<script
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"eslint": "^6.1.0",
4949
"eslint-config-fbjs": "^1.1.1",
5050
"eslint-plugin-flowtype": "^2.25.0",
51-
"eslint-plugin-jest": "^21.6.1",
51+
"eslint-plugin-jest": "^22.15.0",
5252
"eslint-plugin-no-for-of-loops": "^1.0.0",
5353
"eslint-plugin-babel": "^5.3.0",
5454
"eslint-plugin-react": "^6.7.1",
Collapse file

‎packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js‎

Copy file name to clipboardExpand all lines: packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js
+22-1Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,6 @@ const tests = {
521521
// Valid because the ref is captured.
522522
code: `
523523
function useMyThing(myRef) {
524-
const myRef = useRef();
525524
useEffect(() => {
526525
const handleMove = () => {};
527526
const node = myRef.current;
@@ -1024,6 +1023,28 @@ const tests = {
10241023
}
10251024
`,
10261025
},
1026+
// Ignore arguments keyword for arrow functions.
1027+
{
1028+
code: `
1029+
function Example() {
1030+
useEffect(() => {
1031+
arguments
1032+
}, [])
1033+
}
1034+
`,
1035+
},
1036+
{
1037+
code: `
1038+
function Example() {
1039+
useEffect(() => {
1040+
const bar = () => {
1041+
arguments;
1042+
};
1043+
bar();
1044+
}, [])
1045+
}
1046+
`,
1047+
},
10271048
],
10281049
invalid: [
10291050
{
Collapse file

‎packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js‎

Copy file name to clipboardExpand all lines: packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ eslintTester.run('react-hooks', ReactHooksESLintRule, {
9595
useHook2 = () => { useState(); };
9696
({useHook: () => { useState(); }});
9797
({useHook() { useState(); }});
98-
const {useHook = () => { useState(); }} = {};
98+
const {useHook3 = () => { useState(); }} = {};
9999
({useHook = () => { useState(); }} = {});
100100
`,
101101
`
Collapse file

‎packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js‎

Copy file name to clipboardExpand all lines: packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js
+7-6Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -397,13 +397,14 @@ export default {
397397
});
398398
}
399399

400-
// Ignore references to the function itself as it's not defined yet.
401400
const def = reference.resolved.defs[0];
402-
if (
403-
def != null &&
404-
def.node != null &&
405-
def.node.init === node.parent
406-
) {
401+
402+
if (def == null) {
403+
continue;
404+
}
405+
406+
// Ignore references to the function itself as it's not defined yet.
407+
if (def.node != null && def.node.init === node.parent) {
407408
continue;
408409
}
409410

Collapse file

‎packages/events/EventBatching.js‎ ‎packages/legacy-events/EventBatching.js‎packages/events/EventBatching.js renamed to packages/legacy-events/EventBatching.js

Copy file name to clipboard
File renamed without changes.
Collapse file

‎packages/events/EventPluginHub.js‎ ‎packages/legacy-events/EventPluginHub.js‎packages/events/EventPluginHub.js renamed to packages/legacy-events/EventPluginHub.js

Copy file name to clipboard
File renamed without changes.
Collapse file

‎packages/events/EventPluginRegistry.js‎ ‎…ges/legacy-events/EventPluginRegistry.js‎packages/events/EventPluginRegistry.js renamed to packages/legacy-events/EventPluginRegistry.js packages/events/EventPluginRegistry.js renamed to packages/legacy-events/EventPluginRegistry.js

Copy file name to clipboard
File renamed without changes.

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.