react-native-windows 0.78.2 → 0.78.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,8 +20,8 @@
20
20
  <EnableSourceLink Condition="'$(EnableSourceLink)' == '' AND '$(BuildingInRnwRepo)' == 'true'">true</EnableSourceLink>
21
21
  <EnableSourceLink Condition="'$(EnableSourceLink)' == ''">false</EnableSourceLink>
22
22
  <!-- When bumping the Folly version, be sure to bump the git hash of that version's commit and build Folly.vcxproj (to update its cgmanifest.json) too. -->
23
- <FollyVersion>2023.11.06.00</FollyVersion>
24
- <FollyCommitHash>d62707bf4dc8c58bcc317260611b8cbe25c7f444</FollyCommitHash>
23
+ <FollyVersion>2024.01.01.00</FollyVersion>
24
+ <FollyCommitHash>234d39a36a43106747d10cc19efada72fd810dd3</FollyCommitHash>
25
25
  <!-- When bumping the fmt version, be sure to bump the git hash of that version's commit and build fmt.vcxproj (to update its cgmanifest.json) too. -->
26
26
  <FmtVersion>10.1.0</FmtVersion>
27
27
  <FmtCommitHash>ca2e3685b160617d3d95fcd9e789c4e06ca88</FmtCommitHash>
@@ -849,6 +849,10 @@ void escapeStringImpl(
849
849
  }
850
850
  auto prefix = firstEscapableInWord<EnableExtraAsciiEscapes>(word, opts);
851
851
  DCHECK_LE(prefix, avail);
852
+ // [Windows Sometimes prefix is completely wrong (corrupt?), only in Release, causing a later AV (see issue #14394).
853
+ // Prefix should always be <= avail, capping it here as a workaround, hoping the assert above eventually catches this in Debug.
854
+ prefix = std::min(prefix, (size_t)avail);
855
+ // Windows]
852
856
  firstEsc += prefix;
853
857
  if (prefix < 8) {
854
858
  break;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -38,7 +38,6 @@ struct to_ascii_array {
38
38
  return data.data[index];
39
39
  }
40
40
  };
41
-
42
41
  template <uint64_t Base, typename Alphabet>
43
42
  alignas(kIsMobile ? sizeof(size_t) : hardware_constructive_interference_size)
44
43
  typename to_ascii_array<Base, Alphabet>::data_type_ const
@@ -94,13 +93,13 @@ extern template to_ascii_table<10, to_ascii_alphabet_upper>::data_type_ const
94
93
  extern template to_ascii_table<16, to_ascii_alphabet_upper>::data_type_ const
95
94
  to_ascii_table<16, to_ascii_alphabet_upper>::data;
96
95
 
97
- template <uint64_t Base, typename I>
96
+ template <uint64_t Base, typename Int>
98
97
  struct to_ascii_powers {
99
- static constexpr size_t size_(I v) {
98
+ static constexpr size_t size_(Int v) {
100
99
  return 1 + (v < Base ? 0 : size_(v / Base));
101
100
  }
102
- static constexpr size_t const size = size_(~I(0));
103
- using data_type_ = c_array<I, size>;
101
+ static constexpr size_t const size = size_(~Int(0));
102
+ using data_type_ = c_array<Int, size>;
104
103
  static constexpr data_type_ data_() {
105
104
  data_type_ result{};
106
105
  for (size_t i = 0; i < size; ++i) {
@@ -111,12 +110,14 @@ struct to_ascii_powers {
111
110
  // @lint-ignore CLANGTIDY
112
111
  static data_type_ const data;
113
112
  };
114
- template <uint64_t Base, typename I>
115
- constexpr size_t const to_ascii_powers<Base, I>::size;
116
- template <uint64_t Base, typename I>
113
+ #if FOLLY_CPLUSPLUS < 201703L
114
+ template <uint64_t Base, typename Int>
115
+ constexpr size_t const to_ascii_powers<Base, Int>::size;
116
+ #endif
117
+ template <uint64_t Base, typename Int>
117
118
  alignas(hardware_constructive_interference_size)
118
- typename to_ascii_powers<Base, I>::data_type_ const
119
- to_ascii_powers<Base, I>::data = to_ascii_powers<Base, I>::data_();
119
+ typename to_ascii_powers<Base, Int>::data_type_ const
120
+ to_ascii_powers<Base, Int>::data = to_ascii_powers<Base, Int>::data_();
120
121
 
121
122
  extern template to_ascii_powers<8, uint64_t>::data_type_ const
122
123
  to_ascii_powers<8, uint64_t>::data;
@@ -151,7 +152,7 @@ template <uint64_t Base>
151
152
  FOLLY_ALWAYS_INLINE size_t to_ascii_size_array(uint64_t v) {
152
153
  using powers = to_ascii_powers<Base, uint64_t>;
153
154
  for (size_t i = 0u; i < powers::size; ++i) {
154
- if (FOLLY_LIKELY(v < powers::data.data[i])) {
155
+ if (FOLLY_UNLIKELY(v < powers::data.data[i])) {
155
156
  return i + size_t(i == 0);
156
157
  }
157
158
  }
@@ -272,6 +273,15 @@ FOLLY_ALWAYS_INLINE size_t to_ascii_with_table(char* out, uint64_t v) {
272
273
  return size;
273
274
  }
274
275
 
276
+ // Assumes that size >= number of digits in v. If >, the result is left-padded
277
+ // with 0s.
278
+ template <uint64_t Base, typename Alphabet>
279
+ FOLLY_ALWAYS_INLINE void to_ascii_with_route(
280
+ char* outb, size_t size, uint64_t v) {
281
+ kIsMobile //
282
+ ? to_ascii_with_array<Base, Alphabet>(outb, size, v)
283
+ : to_ascii_with_table<Base, Alphabet>(outb, size, v);
284
+ }
275
285
  template <uint64_t Base, typename Alphabet>
276
286
  FOLLY_ALWAYS_INLINE size_t
277
287
  to_ascii_with_route(char* outb, char const* oute, uint64_t v) {
@@ -279,9 +289,7 @@ to_ascii_with_route(char* outb, char const* oute, uint64_t v) {
279
289
  if (FOLLY_UNLIKELY(oute < outb || size_t(oute - outb) < size)) {
280
290
  return 0;
281
291
  }
282
- kIsMobile //
283
- ? to_ascii_with_array<Base, Alphabet>(outb, size, v)
284
- : to_ascii_with_table<Base, Alphabet>(outb, size, v);
292
+ to_ascii_with_route<Base, Alphabet>(outb, size, v);
285
293
  return size;
286
294
  }
287
295
  template <uint64_t Base, typename Alphabet, size_t N>
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -61,14 +61,14 @@ using to_ascii_alphabet_upper = to_ascii_alphabet<true>;
61
61
  // In base 10, u64 requires at most 20 bytes, u32 at most 10, u16 at most 5,
62
62
  // and u8 at most 3.
63
63
  /*
64
- template <uint64_t Base, typename I>
64
+ template <uint64_t Base, typename Int>
65
65
  FOLLY_INLINE_VARIABLE constexpr size_t to_ascii_size_max =
66
- detail::to_ascii_powers<Base, I>::size;
66
+ detail::to_ascii_powers<Base, Int>::size;
67
67
  */
68
68
  // to_ascii_size_max_decimal
69
69
  //
70
70
  // An alias to to_ascii_size_max<10>.
71
- template <typename I>
71
+ template <typename Int>
72
72
  FOLLY_INLINE_VARIABLE constexpr size_t to_ascii_size_max_decimal;
73
73
 
74
74
  template <>
@@ -170,7 +170,7 @@ size_t to_ascii_upper(char (&out)[N], uint64_t v) {
170
170
  //
171
171
  // An alias to to_ascii<10, false>.
172
172
  //
173
- // async-signals-afe
173
+ // async-signal-safe
174
174
  inline size_t to_ascii_decimal(char* outb, char const* oute, uint64_t v) {
175
175
  return to_ascii_lower<10>(outb, oute, v);
176
176
  }
@@ -6,7 +6,7 @@
6
6
  "Type": "git",
7
7
  "Git": {
8
8
  "RepositoryUrl": "https://github.com/facebook/folly",
9
- "CommitHash": "d62707bf4dc8c58bcc317260611b8cbe25c7f444"
9
+ "CommitHash": "234d39a36a43106747d10cc19efada72fd810dd3"
10
10
  }
11
11
  },
12
12
  "DevelopmentDependency": false
@@ -10,11 +10,11 @@
10
10
  -->
11
11
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
12
  <PropertyGroup>
13
- <ReactNativeWindowsVersion>0.78.2</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.78.3</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>78</ReactNativeWindowsMinor>
16
- <ReactNativeWindowsPatch>2</ReactNativeWindowsPatch>
16
+ <ReactNativeWindowsPatch>3</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
18
- <ReactNativeWindowsCommitId>51c4b89d281e2b4a79b89eb949e03ad0f6b82f41</ReactNativeWindowsCommitId>
18
+ <ReactNativeWindowsCommitId>04930ad6dce2cbc6d2e5d79760b13b77443912e4</ReactNativeWindowsCommitId>
19
19
  </PropertyGroup>
20
20
  </Project>
@@ -2,6 +2,7 @@
2
2
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
3
  <PropertyGroup Label="WebView2 versioning">
4
4
  <!-- WinAppSDK 1.6+ has a dependency on Microsoft.Web.WebView2, there are a few places we need to pull in this package explicitly. -->
5
- <WebView2PackageVersion>1.0.2792.45</WebView2PackageVersion>
5
+ <!-- This minimum fallback version should be greater than or equal to what's needed by both the default and experimental versions of WinAppSDK in WinUI.props. -->
6
+ <WebView2PackageVersion Condition="'$(WebView2PackageVersion)'=='' Or $([MSBuild]::VersionLessThan('$(WebView2PackageVersion)', '1.0.2792.45'))">1.0.2792.45</WebView2PackageVersion>
6
7
  </PropertyGroup>
7
8
  </Project>
@@ -3,13 +3,16 @@
3
3
  <PropertyGroup Label="WinUI3 versioning">
4
4
 
5
5
  <!--
6
- Internal versions are located at: https://microsoft.visualstudio.com/DefaultCollection/ProjectReunion/_artifacts/feed/Project.Reunion.nuget.internal/NuGet/Microsoft.WindowsAppSDK/versions
7
- For local testing of internal versions, modify WinUI3ExperimentalVersion, and comment out the addition nuget source in NuGet.Config
6
+ Internal versions are typically only located at: https://microsoft.visualstudio.com/DefaultCollection/ProjectReunion/_artifacts/feed/Project.Reunion.nuget.internal/NuGet/Microsoft.WindowsAppSDK/versions
7
+ For local testing of internal versions, modify WinUI3ExperimentalVersion, and comment out the additional nuget source in NuGet.Config
8
+ When this version is updated, be sure to update the default for the enableInternalFeed parameter of /.ado/templates/enable-experimental-winui3.yml and the minimum version of WebView in WebView2.props
8
9
  -->
9
10
  <WinUI3ExperimentalVersion Condition="'$(WinUI3ExperimentalVersion)'==''">1.7.250109001-experimental2</WinUI3ExperimentalVersion>
10
11
  <!-- This value is also used by the CLI, see /packages/@react-native-windows/cli/.../autolinkWindows.ts -->
11
12
  <WinUI3Version Condition="'$(WinUI3Version)'=='' AND '$(UseExperimentalWinUI3)'=='true'">$(WinUI3ExperimentalVersion)</WinUI3Version>
12
13
  <WinUI3Version Condition="'$(WinUI3Version)'==''">1.6.240923002</WinUI3Version>
14
+ <!-- This is needed to prevent build errors with WinAppSDK >= 1.7 trying to double build WindowsAppRuntimeAutoInitializer.cpp -->
15
+ <WindowsAppSdkAutoInitialize Condition="'$(WindowsAppSdkAutoInitialize)'=='' And $([MSBuild]::VersionGreaterThan('$(WinUI3Version)', '1.7.0'))">false</WindowsAppSdkAutoInitialize>
13
16
  </PropertyGroup>
14
17
 
15
18
  <PropertyGroup Label="WinUI2x versioning">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.78.2",
3
+ "version": "0.78.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,10 +23,10 @@
23
23
  "dependencies": {
24
24
  "@babel/runtime": "^7.0.0",
25
25
  "@jest/create-cache-key-function": "^29.6.3",
26
- "@react-native-community/cli": "15.0.0-alpha.2",
27
- "@react-native-community/cli-platform-android": "15.0.0-alpha.2",
28
- "@react-native-community/cli-platform-ios": "15.0.0-alpha.2",
29
- "@react-native-windows/cli": "0.78.0",
26
+ "@react-native-community/cli": "^15.0.0",
27
+ "@react-native-community/cli-platform-android": "^15.0.0",
28
+ "@react-native-community/cli-platform-ios": "^15.0.0",
29
+ "@react-native-windows/cli": "0.78.1",
30
30
  "@react-native/assets": "1.0.0",
31
31
  "@react-native/assets-registry": "0.78.0",
32
32
  "@react-native/codegen": "0.78.0",