From 690cb003539b1d854cd1171bfcea4e07cf8f7d81 Mon Sep 17 00:00:00 2001 From: Marco Wang Date: Sat, 19 Jul 2025 11:08:41 -0700 Subject: [PATCH] Deploy 0.276.0 to xplat (#52720) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52720 Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D78605229 fbshipit-source-id: 59ae4a2f316cee8415f6ef2984ca74f906ae0377 --- .flowconfig | 2 +- package.json | 2 +- .../react-native/Libraries/Core/Timers/queueMicrotask.js | 1 + yarn.lock | 8 ++++---- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.flowconfig b/.flowconfig index 1faa6debeb1..ef32dd1bf9e 100644 --- a/.flowconfig +++ b/.flowconfig @@ -104,4 +104,4 @@ untyped-import untyped-type-import [version] -^0.275.0 +^0.276.0 diff --git a/package.json b/package.json index 43852e6b301..f295639b20b 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "eslint-plugin-redundant-undefined": "^0.4.0", "eslint-plugin-relay": "^1.8.3", "flow-api-translator": "0.29.1", - "flow-bin": "^0.275.0", + "flow-bin": "^0.276.0", "glob": "^7.1.1", "hermes-eslint": "0.29.1", "hermes-transform": "0.29.1", diff --git a/packages/react-native/Libraries/Core/Timers/queueMicrotask.js b/packages/react-native/Libraries/Core/Timers/queueMicrotask.js index 83621536ecf..34741aa1f83 100644 --- a/packages/react-native/Libraries/Core/Timers/queueMicrotask.js +++ b/packages/react-native/Libraries/Core/Timers/queueMicrotask.js @@ -30,6 +30,7 @@ export default function queueMicrotask(callback: Function) { } // Try to reuse a lazily allocated resolved promise from closure. + // $FlowFixMe[constant-condition] (resolvedPromise || (resolvedPromise = Promise.resolve())) .then(callback) .catch(error => diff --git a/yarn.lock b/yarn.lock index 77b4343fdc5..9204f9675e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4880,10 +4880,10 @@ flow-api-translator@0.29.1: hermes-transform "0.29.1" typescript "5.3.2" -flow-bin@^0.275.0: - version "0.275.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.275.0.tgz#3da676f7c3d3ef8fc0c63a6cab8c4915206ec225" - integrity sha512-pKMBgZ4hZ3y45UWhJc2isG9lgFY8ARE7SuHlfUjcbpGRFQxryxJlXI9y4YZnIWgbhrVAzmUb931P0VJT4yrWjw== +flow-bin@^0.276.0: + version "0.276.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.276.0.tgz#0c4f4de9d3eed254e5f6d86b0c02df58a4354588" + integrity sha512-qcxqq2ZtUS7KqwRiGa3w/N/YppQuWj5vaKMH9KgLDv0QaxrUskv6iCNoTfpFg/crT0YjQk5hJ8ALdk8YVqnO0g== flow-enums-runtime@^0.0.6: version "0.0.6"