@office-iss/react-native-win32 0.69.0-preview.2 → 0.69.0-preview.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.
package/.eslintrc.js CHANGED
@@ -13,6 +13,7 @@ module.exports = {
13
13
  rules: {
14
14
  '@typescript-eslint/no-unnecessary-condition': 'off',
15
15
  'no-restricted-syntax': 'off',
16
+ '@typescript-eslint/no-unused-vars': 'off',
16
17
  },
17
18
  },
18
19
  ],
package/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 16 May 2022 15:08:41 GMT",
5
+ "date": "Mon, 06 Jun 2022 15:08:42 GMT",
6
+ "tag": "@office-iss/react-native-win32_v0.69.0-preview.3",
7
+ "version": "0.69.0-preview.3",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@office-iss/react-native-win32",
13
+ "comment": "Bump @react-native-windows/virtualized-list to v0.69.0-preview.2",
14
+ "commit": "55fc1addf2b30c941a64ca361f78549caac88230"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 16 May 2022 15:09:01 GMT",
6
21
  "tag": "@office-iss/react-native-win32_v0.69.0-preview.2",
7
22
  "version": "0.69.0-preview.2",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,17 +1,25 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Mon, 16 May 2022 15:08:41 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 06 Jun 2022 15:08:42 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.69.0-preview.2
7
+ ## 0.69.0-preview.3
8
8
 
9
- Mon, 16 May 2022 15:08:41 GMT
9
+ Mon, 06 Jun 2022 15:08:42 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - Upgrade to @react-native-community/cli@8.0.0-alpha.6 (jthysell@microsoft.com)
13
+ - Bump @react-native-windows/virtualized-list to v0.69.0-preview.2
14
14
 
15
+ ## 0.69.0-preview.2
16
+
17
+ Mon, 16 May 2022 15:09:01 GMT
18
+
19
+ ### Changes
20
+
21
+ - Upgrade to @react-native-community/cli@8.0.0-alpha.6 (jthysell@microsoft.com)
22
+
15
23
  ## 0.69.0-preview.1
16
24
 
17
25
  Wed, 04 May 2022 23:30:22 GMT
@@ -13,5 +13,5 @@ exports.version = {
13
13
  major: 0,
14
14
  minor: 69,
15
15
  patch: 0,
16
- prerelease: 'rc.0',
16
+ prerelease: 'rc.3',
17
17
  };
@@ -34,15 +34,14 @@ function codegenNativeComponent<Props>(
34
34
  componentName: string,
35
35
  options?: Options,
36
36
  ): NativeComponentType<Props> {
37
- const errorMessage =
38
- "Native Component '" +
39
- componentName +
40
- "' that calls codegenNativeComponent was not code generated at build time. Please check its definition.";
41
37
  if (global.RN$Bridgeless === true) {
38
+ const errorMessage =
39
+ "Native Component '" +
40
+ componentName +
41
+ "' that calls codegenNativeComponent was not code generated at build time. Please check its definition.";
42
42
  console.error(errorMessage);
43
- } else {
44
- console.warn(errorMessage);
45
43
  }
44
+
46
45
  let componentNameInUse =
47
46
  options && options.paperComponentName != null
48
47
  ? options.paperComponentName
@@ -8,24 +8,18 @@
8
8
  * @flow strict-local
9
9
  */
10
10
 
11
- import {useMemo} from 'react';
12
- import {useSubscription} from 'use-subscription';
11
+ 'use strict';
12
+
13
+ import {useSyncExternalStore} from 'use-sync-external-store/shim';
13
14
  import Appearance from './Appearance';
14
15
  import type {ColorSchemeName} from './NativeAppearance';
15
16
 
16
17
  export default function useColorScheme(): ?ColorSchemeName {
17
- const subscription = useMemo(
18
- () => ({
19
- getCurrentValue: () => Appearance.getColorScheme(),
20
- subscribe: callback => {
21
- const appearanceSubscription = Appearance.addChangeListener(callback);
22
- return () => {
23
- appearanceSubscription.remove();
24
- };
25
- },
26
- }),
27
- [],
18
+ return useSyncExternalStore(
19
+ callback => {
20
+ const appearanceSubscription = Appearance.addChangeListener(callback);
21
+ return () => appearanceSubscription.remove();
22
+ },
23
+ () => Appearance.getColorScheme(),
28
24
  );
29
-
30
- return useSubscription(subscription);
31
25
  }
@@ -11,9 +11,9 @@
11
11
 
12
12
  'use strict';
13
13
 
14
- declare module 'use-subscription' {
15
- declare export function useSubscription<Value>(subscription: {|
16
- getCurrentValue: () => Value,
14
+ declare module 'use-sync-external-store/shim' {
15
+ declare export function useSyncExternalStore<Value>(
17
16
  subscribe: (callback: Function) => () => void,
18
- |}): Value;
17
+ getCurrentValue: () => Value,
18
+ ): Value;
19
19
  }
package/overrides.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "**/__snapshots__/**",
8
8
  "src/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.69.0-rc.0",
10
+ "baseVersion": "0.69.0-rc.3",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.69.0-preview.2",
3
+ "version": "0.69.0-preview.3",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "license": "MIT",
6
6
  "main": "./index.win32.js",
@@ -22,10 +22,10 @@
22
22
  "dependencies": {
23
23
  "@babel/runtime": "^7.0.0",
24
24
  "@jest/create-cache-key-function": "^27.0.1",
25
- "@react-native-community/cli": "^8.0.0-alpha.6",
26
- "@react-native-community/cli-platform-android": "^8.0.0-alpha.3",
27
- "@react-native-community/cli-platform-ios": "^8.0.0-alpha.3",
28
- "@react-native-windows/virtualized-list": "0.69.0-preview.1",
25
+ "@react-native-community/cli": "^8.0.0",
26
+ "@react-native-community/cli-platform-android": "^8.0.0",
27
+ "@react-native-community/cli-platform-ios": "^8.0.0",
28
+ "@react-native-windows/virtualized-list": "0.69.0-preview.2",
29
29
  "@react-native/assets": "1.0.0",
30
30
  "@react-native/normalize-color": "2.0.0",
31
31
  "@react-native/polyfills": "2.0.0",
@@ -38,22 +38,24 @@
38
38
  "invariant": "^2.2.4",
39
39
  "jsc-android": "^250230.2.1",
40
40
  "memoize-one": "^5.0.0",
41
- "metro-react-native-babel-transformer": "0.70.1",
42
- "metro-runtime": "0.70.1",
43
- "metro-source-map": "0.70.1",
41
+ "metro-react-native-babel-transformer": "0.70.3",
42
+ "metro-runtime": "0.70.3",
43
+ "metro-source-map": "0.70.3",
44
+ "mkdirp": "^0.5.1",
44
45
  "nullthrows": "^1.1.1",
45
46
  "pretty-format": "^26.5.2",
46
47
  "promise": "^8.0.3",
47
48
  "react-clone-referenced-element": "^1.0.1",
48
49
  "react-devtools-core": "4.24.0",
49
- "react-native-codegen": "^0.0.15",
50
+ "react-native-codegen": "^0.69.1",
50
51
  "react-native-gradle-plugin": "^0.0.7",
51
52
  "react-refresh": "^0.4.0",
52
53
  "react-shallow-renderer": "16.14.1",
53
54
  "regenerator-runtime": "^0.13.2",
54
55
  "scheduler": "^0.21.0",
56
+ "shelljs": "^0.8.5",
55
57
  "stacktrace-parser": "^0.1.3",
56
- "use-subscription": ">=1.0.0 <1.6.0",
58
+ "use-sync-external-store": "^1.0.0",
57
59
  "whatwg-fetch": "^3.0.0",
58
60
  "ws": "^6.1.4"
59
61
  },
@@ -73,14 +75,14 @@
73
75
  "just-scripts": "^1.3.3",
74
76
  "prettier": "^2.4.1",
75
77
  "react": "18.0.0",
76
- "react-native": "0.69.0-rc.0",
78
+ "react-native": "0.69.0-rc.3",
77
79
  "react-native-platform-override": "^1.6.11",
78
80
  "react-shallow-renderer": "16.14.1",
79
81
  "typescript": "^4.4.4"
80
82
  },
81
83
  "peerDependencies": {
82
84
  "react": "18.0.0",
83
- "react-native": "0.69.0-rc.0"
85
+ "react-native": "0.69.0-rc.3"
84
86
  },
85
87
  "beachball": {
86
88
  "defaultNpmTag": "preview",