@office-iss/react-native-win32 0.67.0-preview.3 → 0.67.0

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/CHANGELOG.json CHANGED
@@ -1,6 +1,42 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
+ {
5
+ "date": "Mon, 24 Jan 2022 16:12:31 GMT",
6
+ "tag": "@office-iss/react-native-win32_v0.67.0",
7
+ "version": "0.67.0",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "ngerlem@microsoft.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "56818ebc599aa084aa9ffc949691f1be71da169a",
14
+ "comment": "Promote 0.67 to latest"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@office-iss/react-native-win32",
19
+ "comment": "Bump @react-native-windows/virtualized-list to v0.67.0",
20
+ "commit": "56818ebc599aa084aa9ffc949691f1be71da169a"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Mon, 17 Jan 2022 16:12:54 GMT",
27
+ "tag": "@office-iss/react-native-win32_v0.67.0-preview.3",
28
+ "version": "0.67.0-preview.3",
29
+ "comments": {
30
+ "prerelease": [
31
+ {
32
+ "author": "saadnajmi2@gmail.com",
33
+ "package": "@office-iss/react-native-win32",
34
+ "commit": "not available",
35
+ "comment": "Port windows pressable with extra desktop support to win32"
36
+ }
37
+ ]
38
+ }
39
+ },
4
40
  {
5
41
  "date": "Mon, 17 Jan 2022 16:12:12 GMT",
6
42
  "tag": "@office-iss/react-native-win32_v0.67.0-preview.3",
package/CHANGELOG.md CHANGED
@@ -1,17 +1,34 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Mon, 17 Jan 2022 16:12:12 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 24 Jan 2022 16:12:31 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.67.0-preview.3
7
+ ## 0.67.0
8
8
 
9
- Mon, 17 Jan 2022 16:12:12 GMT
9
+ Mon, 24 Jan 2022 16:12:31 GMT
10
10
 
11
- ### Changes
11
+ ### Patches
12
12
 
13
- - Port windows pressable with extra desktop support to win32 (saadnajmi2@gmail.com)
13
+ - Promote 0.67 to latest (ngerlem@microsoft.com)
14
+ - Bump @react-native-windows/virtualized-list to v0.67.0
14
15
 
16
+ ## 0.67.0-preview.3
17
+
18
+ Mon, 17 Jan 2022 16:12:54 GMT
19
+
20
+ ### Changes
21
+
22
+ - Port windows pressable with extra desktop support to win32 (saadnajmi2@gmail.com)
23
+
24
+ ## 0.67.0-preview.3
25
+
26
+ Mon, 17 Jan 2022 16:12:12 GMT
27
+
28
+ ### Changes
29
+
30
+ - Port windows pressable with extra desktop support to win32 (saadnajmi2@gmail.com)
31
+
15
32
  ## 0.67.0-preview.2
16
33
 
17
34
  Mon, 15 Nov 2021 16:10:10 GMT
@@ -141,9 +141,9 @@ class Keyboard {
141
141
  }
142
142
 
143
143
  /**
144
- * @deprecated Use `remove` on the EventSubscription from `addEventListener`.
144
+ * @deprecated Use `remove` on the EventSubscription from `addListener`.
145
145
  */
146
- removeEventListener<K: $Keys<KeyboardEventDefinitions>>(
146
+ removeListener<K: $Keys<KeyboardEventDefinitions>>(
147
147
  eventType: K,
148
148
  listener: (...$ElementType<KeyboardEventDefinitions, K>) => mixed,
149
149
  ): void {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated by scripts/bump-oss-version.js
2
+ * @generated by scripts/set-rn-version.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 67,
15
- patch: 0,
16
- prerelease: 'rc.1',
15
+ patch: 1,
16
+ prerelease: null,
17
17
  };
@@ -13,42 +13,10 @@
13
13
  'use strict';
14
14
 
15
15
  const babelRegisterOnly = require('metro-babel-register');
16
- const nullthrows = require('nullthrows');
17
16
  const createCacheKeyFunction = require('@jest/create-cache-key-function')
18
17
  .default;
19
- const t = require('@babel/types');
20
- const {statements} = require('@babel/template').default;
21
18
 
22
- const importDefault = '__importDefault__';
23
- const importAll = '__importAll__';
24
-
25
- // prelude
26
- const importPrelude = statements(`
27
- function ${importDefault}(moduleId) {
28
- const exports = require(moduleId);
29
-
30
- if (exports && exports.__esModule) {
31
- return exports.default;
32
- }
33
-
34
- return exports;
35
- };
36
-
37
- function ${importAll}(moduleId) {
38
- const exports = require(moduleId);
39
-
40
- if (exports && exports.__esModule) {
41
- return exports;
42
- }
43
-
44
- return Object.assign({}, exports, {default: exports});
45
- };
46
- `);
47
-
48
- const {
49
- transformSync: babelTransformSync,
50
- transformFromAstSync: babelTransformFromAstSync,
51
- } = require('@babel/core');
19
+ const {transformSync: babelTransformSync} = require('@babel/core');
52
20
  const generate = require('@babel/generator').default;
53
21
 
54
22
  const nodeFiles = new RegExp(
@@ -73,13 +41,13 @@ module.exports = {
73
41
  }).code;
74
42
  }
75
43
 
76
- let {ast} = transformer.transform({
44
+ const {ast} = transformer.transform({
77
45
  filename: file,
78
46
  options: {
79
47
  ast: true, // needed for open source (?) https://github.com/facebook/react-native/commit/f8d6b97140cffe8d18b2558f94570c8d1b410d5c#r28647044
80
48
  dev: true,
81
49
  enableBabelRuntime: false,
82
- experimentalImportSupport: true,
50
+ experimentalImportSupport: false,
83
51
  globalPrefix: '',
84
52
  hot: false,
85
53
  inlineRequires: true,
@@ -111,6 +79,10 @@ module.exports = {
111
79
  [require('@babel/plugin-transform-regenerator')],
112
80
  [require('@babel/plugin-transform-sticky-regex')],
113
81
  [require('@babel/plugin-transform-unicode-regex')],
82
+ [
83
+ require('@babel/plugin-transform-modules-commonjs'),
84
+ {strict: false, allowTopLevelThis: true},
85
+ ],
114
86
  [require('@babel/plugin-transform-classes')],
115
87
  [require('@babel/plugin-transform-arrow-functions')],
116
88
  [require('@babel/plugin-transform-spread')],
@@ -127,46 +99,6 @@ module.exports = {
127
99
  ],
128
100
  });
129
101
 
130
- // We're not using @babel/plugin-transform-modules-commonjs so
131
- // we need to add 'use strict' manually
132
- const directives = ast.program.directives;
133
-
134
- if (
135
- ast.program.sourceType === 'module' &&
136
- (directives == null ||
137
- directives.findIndex(d => d.value.value === 'use strict') === -1)
138
- ) {
139
- ast.program.directives = [
140
- ...(directives || []),
141
- t.directive(t.directiveLiteral('use strict')),
142
- ];
143
- }
144
-
145
- // Postprocess the transformed module to handle ESM and inline requires.
146
- // We need to do this in a separate pass to avoid issues tracking references.
147
- const babelTransformResult = babelTransformFromAstSync(ast, src, {
148
- ast: true,
149
- retainLines: true,
150
- plugins: [
151
- [
152
- require('metro-transform-plugins').importExportPlugin,
153
- {importDefault, importAll},
154
- ],
155
- [
156
- require('babel-preset-fbjs/plugins/inline-requires.js'),
157
- {inlineableCalls: [importDefault, importAll]},
158
- ],
159
- ],
160
- sourceType: 'module',
161
- });
162
-
163
- ast = nullthrows(babelTransformResult.ast);
164
-
165
- // Inject import helpers *after* running the inline-requires transform,
166
- // because otherwise it will assume they are user code and bail out of
167
- // inlining calls to them.
168
- ast.program.body.unshift(...importPrelude());
169
-
170
102
  return generate(
171
103
  ast,
172
104
  // $FlowFixMe[prop-missing] Error found when improving flow typing for libs
package/overrides.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "**/__snapshots__/**",
8
8
  "src/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.67.0-rc.1",
10
+ "baseVersion": "0.67.1",
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.67.0-preview.3",
3
+ "version": "0.67.0",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "license": "MIT",
6
6
  "main": "./index.win32.js",
@@ -25,7 +25,7 @@
25
25
  "@react-native-community/cli": "^6.0.0",
26
26
  "@react-native-community/cli-platform-android": "^6.0.0",
27
27
  "@react-native-community/cli-platform-ios": "^6.0.0",
28
- "@react-native-windows/virtualized-list": "0.67.0-preview.1",
28
+ "@react-native-windows/virtualized-list": "0.67.0",
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",
@@ -70,21 +70,21 @@
70
70
  "just-scripts": "^1.3.3",
71
71
  "prettier": "1.19.1",
72
72
  "react": "17.0.2",
73
- "react-native": "0.67.0-rc.1",
73
+ "react-native": "0.67.1",
74
74
  "react-native-platform-override": "^1.5.1",
75
75
  "react-shallow-renderer": "16.14.1",
76
76
  "typescript": "^4.4.4"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": "17.0.2",
80
- "react-native": "0.67.0-rc.1"
80
+ "react-native": "^0.67.0"
81
81
  },
82
82
  "beachball": {
83
- "defaultNpmTag": "preview",
83
+ "defaultNpmTag": "latest",
84
84
  "disallowedChangeTypes": [
85
85
  "major",
86
86
  "minor",
87
- "patch"
87
+ "prerelease"
88
88
  ]
89
89
  },
90
90
  "promoteRelease": true,