diff --git a/.github/workflow-scripts/generateChangelog.js b/.github/workflow-scripts/generateChangelog.js index fc7a9c1794de2a..2b01a5f8ccb8f0 100644 --- a/.github/workflow-scripts/generateChangelog.js +++ b/.github/workflow-scripts/generateChangelog.js @@ -45,8 +45,8 @@ function _generateChangelog(previousVersion, version, token) { run('git checkout main'); run('git fetch'); run('git pull origin main'); - const generateChangelogComand = `npx @rnx-kit/rn-changelog-generator --base v${previousVersion} --compare v${version} --repo . --changelog ./CHANGELOG.md --token ${token}`; - run(generateChangelogComand); + const generateChangelogCommand = `npx @rnx-kit/rn-changelog-generator --base v${previousVersion} --compare v${version} --repo . --changelog ./CHANGELOG.md --token ${token}`; + run(generateChangelogCommand); } function _pushCommit(version) { diff --git a/CHANGELOG-0.6x.md b/CHANGELOG-0.6x.md index 8e4e433af8e309..9cf3b2b4018fee 100644 --- a/CHANGELOG-0.6x.md +++ b/CHANGELOG-0.6x.md @@ -606,7 +606,7 @@ This file contains all changelogs for releases in the 0.60-0.69 range. Please ch - Fix crash on ReactEditText with AppCompat 1.4.0 ([e21f8ec349](https://github.com/facebook/react-native/commit/e21f8ec34984551f87a306672160cc88e67e4793) by [@cortinico](https://github.com/cortinico)) - Do not .lowerCase the library name when codegenerating TurboModule Specs ([28aeb7b865](https://github.com/facebook/react-native/commit/28aeb7b8659b38ee3a27fae213c4d0800f4d7e31) by [@cortinico](https://github.com/cortinico)) - Enable hitSlop to be set using a single number. ([a96bdb7154](https://github.com/facebook/react-native/commit/a96bdb7154b0d8c7f43977d8a583e8d2cbdcb795) by [@javache](https://github.com/javache)) -- Updated TextInput prop types to accomodate for new autoComplete values ([9eb0881c8f](https://github.com/facebook/react-native/commit/9eb0881c8fecd0e974b1cb9f479bad3075854340) by [@TheWirv](https://github.com/TheWirv)) +- Updated TextInput prop types to accommodate for new autoComplete values ([9eb0881c8f](https://github.com/facebook/react-native/commit/9eb0881c8fecd0e974b1cb9f479bad3075854340) by [@TheWirv](https://github.com/TheWirv)) - Don't reconstruct app components https://github.com/facebook/react-native/issues/25040 ([fc962c9b6c](https://github.com/facebook/react-native/commit/fc962c9b6c4bf9f88decbe014ab9a9d5c1cf51bc) by [@Somena1](https://github.com/Somena1)) - Do NOT skip the first child view in the scroll view group when measuring the lower and upper bounds for snapping. ([61e1b6f86c](https://github.com/facebook/react-native/commit/61e1b6f86cf98d8a74eeb9353143fe0c624fe6e6) by [@ryancat](https://github.com/ryancat)) - Fix crash when a Switch is initialised with both backgroundColor and thumbColor. ([456cf3db14](https://github.com/facebook/react-native/commit/456cf3db14c443c483d63aa97c88b45ffd25799b) by [@smarki](https://github.com/smarki)) diff --git a/packages/debugger-shell/__tests__/__snapshots__/dotslash-test.js.snap b/packages/debugger-shell/__tests__/__snapshots__/dotslash-test.js.snap index cda139425067b9..d8d8f165e0a62d 100644 --- a/packages/debugger-shell/__tests__/__snapshots__/dotslash-test.js.snap +++ b/packages/debugger-shell/__tests__/__snapshots__/dotslash-test.js.snap @@ -3,7 +3,7 @@ exports[`prepareDebuggerShellFromDotSlashFile fails with the expected error message for a missing dotslash file 1`] = ` Object { "code": "unexpected_error", - "humanReadableMessage": "An unexpected error occured while installing the latest version of React Native DevTools. Using a fallback version instead.", + "humanReadableMessage": "An unexpected error occurred while installing the latest version of React Native DevTools. Using a fallback version instead.", "verboseInfo": Any, } `; diff --git a/packages/debugger-shell/src/node/private/LaunchUtils.js b/packages/debugger-shell/src/node/private/LaunchUtils.js index a0692f64ee09ae..5972f2841b6d4e 100644 --- a/packages/debugger-shell/src/node/private/LaunchUtils.js +++ b/packages/debugger-shell/src/node/private/LaunchUtils.js @@ -89,7 +89,7 @@ async function prepareDebuggerShellFromDotSlashFile( return { code: 'unexpected_error', humanReadableMessage: - 'An unexpected error occured while installing the latest version of React Native DevTools. ' + + 'An unexpected error occurred while installing the latest version of React Native DevTools. ' + 'Using a fallback version instead.', verboseInfo: stderr, }; diff --git a/packages/react-native/Libraries/Animated/__tests__/Animated-itest.js b/packages/react-native/Libraries/Animated/__tests__/Animated-itest.js index 7886bd8ca06f59..6a4c856dcda146 100644 --- a/packages/react-native/Libraries/Animated/__tests__/Animated-itest.js +++ b/packages/react-native/Libraries/Animated/__tests__/Animated-itest.js @@ -74,7 +74,7 @@ test('moving box by 100 points', () => { Fantom.unstable_produceFramesForDuration(500); // Animation is completed now. C++ Animated will commit the final position to the shadow tree. - // TODO(T232605345): this shouldn't be neccessary once we fix Android's race condition. + // TODO(T232605345): this shouldn't be necessary once we fix Android's race condition. Fantom.runWorkLoop(); expect(viewElement.getBoundingClientRect().x).toBe(100); }); @@ -251,7 +251,7 @@ test('animated opacity', () => { 0, ); - // TODO: this shouldn't be neccessary since animation should be stopped after duration + // TODO: this shouldn't be necessary since animation should be stopped after duration Fantom.runTask(() => { _opacityAnimation?.stop(); }); @@ -559,7 +559,7 @@ test('animate layout props', () => { Fantom.unstable_produceFramesForDuration(10); - // TODO: this shouldn't be neccessary since animation should be stopped after duration + // TODO: this shouldn't be necessary since animation should be stopped after duration Fantom.runTask(() => { _heightAnimation?.stop(); }); diff --git a/packages/react-native/Libraries/Animated/__tests__/Animated-test.js b/packages/react-native/Libraries/Animated/__tests__/Animated-test.js index 3e3f3f4cdcb89c..6ef62d4af32336 100644 --- a/packages/react-native/Libraries/Animated/__tests__/Animated-test.js +++ b/packages/react-native/Libraries/Animated/__tests__/Animated-test.js @@ -701,7 +701,7 @@ describe('Animated', () => { expect(cb).toBeCalledWith({finished: true}); }); - it('parellelizes well', () => { + it('parallelizes well', () => { const anim1 = {start: jest.fn()}; const anim2 = {start: jest.fn()}; const cb = jest.fn(); diff --git a/packages/react-native/Libraries/Animated/__tests__/AnimatedBackend-itest.js b/packages/react-native/Libraries/Animated/__tests__/AnimatedBackend-itest.js index e36beafdfe382f..36c29ace08b5fb 100644 --- a/packages/react-native/Libraries/Animated/__tests__/AnimatedBackend-itest.js +++ b/packages/react-native/Libraries/Animated/__tests__/AnimatedBackend-itest.js @@ -65,7 +65,7 @@ test('animated opacity', () => { 0, ); - // TODO: this shouldn't be neccessary since animation should be stopped after duration + // TODO: this shouldn't be necessary since animation should be stopped after duration Fantom.runTask(() => { _opacityAnimation?.stop(); }); @@ -132,7 +132,7 @@ test('animate layout props', () => { Fantom.unstable_produceFramesForDuration(100); - // TODO: this shouldn't be neccessary since animation should be stopped after duration + // TODO: this shouldn't be necessary since animation should be stopped after duration Fantom.runTask(() => { _heightAnimation?.stop(); }); @@ -199,7 +199,7 @@ test('animate layout props and rerender', () => { Fantom.unstable_produceFramesForDuration(500); - // TODO: this shouldn't be neccessary since animation should be stopped after duration + // TODO: this shouldn't be necessary since animation should be stopped after duration Fantom.runTask(() => { _heightAnimation?.stop(); }); @@ -290,7 +290,7 @@ test('animate non-layout props and rerender', () => { Fantom.unstable_produceFramesForDuration(500); - // TODO: this shouldn't be neccessary since animation should be stopped after duration + // TODO: this shouldn't be necessary since animation should be stopped after duration Fantom.runTask(() => { _opacityAnimation?.stop(); }); @@ -394,7 +394,7 @@ test('animate layout props and rerender in many components', () => { _setWidth(200); }); - // TODO: this shouldn't be neccessary since animation should be stopped after duration + // TODO: this shouldn't be necessary since animation should be stopped after duration Fantom.runTask(() => { _heightAnimation?.stop(); }); @@ -469,7 +469,7 @@ test('animate width, height and opacity at once', () => { Fantom.unstable_produceFramesForDuration(100); - // TODO: this shouldn't be neccessary since animation should be stopped after duration + // TODO: this shouldn't be necessary since animation should be stopped after duration Fantom.runTask(() => { _parallelAnimation?.stop(); }); diff --git a/packages/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js b/packages/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js index 800f2aa14e8520..62b3f4a3b63aa4 100644 --- a/packages/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +++ b/packages/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js @@ -7,9 +7,10 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<22737380b5e4280ce3563ac009164f56>> + * @generated SignedSource<> * - * This file was sync'd from the facebook/react repository. + * This file is no longer sync'd from the facebook/react repository. + * The version compatibility check is removed. Use at your own risk. */ "use strict"; diff --git a/packages/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js b/packages/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js index f63c8160c86d46..c16743495c2069 100644 --- a/packages/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +++ b/packages/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js @@ -7,9 +7,10 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<232209f5a157745637191195f25907c7>> + * @generated SignedSource<<7e40a1e09e8b18f5fde8d400a830ed9a>> * - * This file was sync'd from the facebook/react repository. + * This file is no longer sync'd from the facebook/react repository. + * The version compatibility check is removed. Use at your own risk. */ "use strict"; diff --git a/packages/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js b/packages/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js index ad2b39569a6296..1c6dbcb8cb4e7e 100644 --- a/packages/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +++ b/packages/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js @@ -7,9 +7,10 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<9b111e8265a6b1d86607277dbe91d200>> + * @generated SignedSource<<3db8390cde71bdefbc682552931ec739>> * - * This file was sync'd from the facebook/react repository. + * This file is no longer sync'd from the facebook/react repository. + * The version compatibility check is removed. Use at your own risk. */ "use strict"; diff --git a/packages/react-native/Libraries/Renderer/shims/ReactNative.js b/packages/react-native/Libraries/Renderer/shims/ReactNative.js index 797bdebcaf7ec0..8a1e9e722f11d9 100644 --- a/packages/react-native/Libraries/Renderer/shims/ReactNative.js +++ b/packages/react-native/Libraries/Renderer/shims/ReactNative.js @@ -7,9 +7,10 @@ * @noformat * @nolint * @flow - * @generated SignedSource<> + * @generated SignedSource<<7a063365bcf9d96b1cd8714d309e5b92>> * - * This file was sync'd from the facebook/react repository. + * This file is no longer sync'd from the facebook/react repository. + * The version compatibility check is removed. Use at your own risk. */ 'use strict'; diff --git a/packages/react-native/ReactCommon/react/renderer/components/view/tests/LayoutTest.cpp b/packages/react-native/ReactCommon/react/renderer/components/view/tests/LayoutTest.cpp index 22cf5d7c602c23..a5a24224d084e2 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/view/tests/LayoutTest.cpp +++ b/packages/react-native/ReactCommon/react/renderer/components/view/tests/LayoutTest.cpp @@ -356,7 +356,7 @@ TEST_F(LayoutTest, overflowInsetTransformScaleTest) { auto layoutMetricsABC = viewShadowNodeABC_->getLayoutMetrics(); // The frame of box ABC won't actually scale up. The transform matrix is - // purely cosmatic and should apply later in mounting phase. + // purely cosmetic and should apply later in mounting phase. EXPECT_EQ(layoutMetricsABC.frame.size.width, 110); EXPECT_EQ(layoutMetricsABC.frame.size.height, 20); diff --git a/packages/react-native/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp b/packages/react-native/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp index 3cbb84532e6ae3..f04ad51bffc600 100644 --- a/packages/react-native/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +++ b/packages/react-native/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp @@ -728,7 +728,7 @@ TEST_P(RuntimeSchedulerTest, normalTaskYieldsToSynchronousAccessAndResumes) { // the test would be flaky in a multithreaded environment. stubQueue_->waitForTasks(2); - // Normal priority task immediatelly yield in favour of the sync task. + // Normal priority task immediately yield in favour of the sync task. stubQueue_->tick(); EXPECT_EQ(stubQueue_->size(), 1); diff --git a/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventPointerCancelTouch.js b/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventPointerCancelTouch.js index a195230bf773b0..4d97b81e871dcf 100644 --- a/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventPointerCancelTouch.js +++ b/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventPointerCancelTouch.js @@ -23,7 +23,7 @@ function PointerEventPointerCancelTouchTestCase( ) { const {harness} = props; - const testPointerEvent = harness.useAsyncTest('pointercancel event recieved'); + const testPointerEvent = harness.useAsyncTest('pointercancel event received'); const pointerDownEventRef = useRef(null); const pointerCancelEventRef = useRef(null); @@ -40,7 +40,7 @@ function PointerEventPointerCancelTouchTestCase( testPointerEvent.step(({assert_equals, assert_not_equals}) => { const pointerDownEvent = pointerDownEventRef.current; - assert_not_equals(pointerDownEvent, null, 'pointerdown was recieved: '); + assert_not_equals(pointerDownEvent, null, 'pointerdown was received: '); if (pointerDownEvent != null) { assert_equals( event.nativeEvent.pointerId, @@ -87,7 +87,7 @@ function PointerEventPointerCancelTouchTestCase( assert_not_equals( pointerCancelEvent, null, - 'pointercancel was recieved: ', + 'pointercancel was received: ', ); if (pointerCancelEvent != null) { assert_equals( @@ -118,7 +118,7 @@ function PointerEventPointerCancelTouchTestCase( assert_not_equals( pointerCancelEvent, null, - 'pointercancel was recieved: ', + 'pointercancel was received: ', ); if (pointerCancelEvent != null) { assert_equals( diff --git a/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventPointerOverOut.js b/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventPointerOverOut.js index 77152706d7ac40..07cde4b5992ac3 100644 --- a/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventPointerOverOut.js +++ b/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventPointerOverOut.js @@ -78,7 +78,7 @@ function PointerEventPointerOverOutTestCase( assert_equals( innerOverRef.current, innerOutRef.current, - 'pointerover is recieved before pointerout', + 'pointerover is received before pointerout', ); switch (innerOverRef.current) { case 0: { @@ -144,7 +144,7 @@ function PointerEventPointerOverOutTestCase( assert_equals( outerOwnOverRef.current, outerOwnOutRef.current, - 'outer: pointerover is recieved before pointerout', + 'outer: pointerover is received before pointerout', ); outerOwnOverRef.current++; } else { @@ -167,7 +167,7 @@ function PointerEventPointerOverOutTestCase( assert_equals( outerOwnOverRef.current, outerOwnOutRef.current + 1, - 'outer: pointerout is recieved after pointerover', + 'outer: pointerout is received after pointerover', ); if (outerOwnOutRef.current === 1) { assert_equals(innerOutRef.current, 2, 'inner should be done now'); @@ -178,7 +178,7 @@ function PointerEventPointerOverOutTestCase( assert_equals( outerOutRef.current - outerOwnOutRef.current, innerOutRef.current - 1, - 'pointerout: should only recieve this via bubbling', + 'pointerout: should only receive this via bubbling', ); } }); diff --git a/packages/rn-tester/js/examples/Image/ImageExample.js b/packages/rn-tester/js/examples/Image/ImageExample.js index 357e714ef8b42f..d598c4ae3f0b3d 100644 --- a/packages/rn-tester/js/examples/Image/ImageExample.js +++ b/packages/rn-tester/js/examples/Image/ImageExample.js @@ -936,7 +936,7 @@ exports.examples = [ { title: 'Multiple Image Source using the `srcSet` prop.', description: - ('A list of comma seperated uris along with scale are provided in `srcSet`.' + + ('A list of comma separated uris along with scale are provided in `srcSet`.' + 'An appropriate value will be used based on the scale of the device.': string), render: function (): React.Node { return (