babel-preset-expo 9.0.0 → 9.1.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.md ADDED
@@ -0,0 +1,37 @@
1
+ # Changelog
2
+
3
+ ## Unpublished
4
+
5
+ ### 🛠 Breaking changes
6
+
7
+ ### 🎉 New features
8
+
9
+ ### 🐛 Bug fixes
10
+
11
+ ### 💡 Others
12
+
13
+ ## 9.1.0 — 2022-04-18
14
+
15
+ ### 📚 3rd party library updates
16
+
17
+ - Upgrade to react-native 0.66. ([#15914](https://github.com/expo/expo/pull/15914) by [@kudo](https://github.com/kudo))
18
+
19
+ ## 9.0.2 — 2021-12-15
20
+
21
+ ### 🐛 Bug fixes
22
+
23
+ - Fix support for node12. ([#15545](https://github.com/expo/expo/pull/15545) by [@lapz](https://github.com/lapz))
24
+
25
+ ## 9.0.1 — 2021-12-08
26
+
27
+ _This version does not introduce any user-facing changes._
28
+
29
+ ## 9.0.0 — 2021-12-03
30
+
31
+ ### 🛠 Breaking changes
32
+
33
+ - Changed default value of `jsxRuntime` to `automatic` ([#14995](https://github.com/expo/expo/pull/14995) by [@EvanBacon](https://github.com/EvanBacon))
34
+
35
+ ### 🎉 New features
36
+
37
+ - Added option `jsxImportSource` to allow passing in a custom importSource ([#15275](https://github.com/expo/expo/pull/15275) by [@kbrandwijk](https://github.com/kbrandwijk))
package/README.md CHANGED
@@ -71,7 +71,7 @@ This option allows specifying a custom import source for importing functions.
71
71
  'babel-preset-expo',
72
72
  {
73
73
  jsxRuntime: 'automatic',
74
- importSource: 'react',
74
+ jsxImportSource: 'react',
75
75
  },
76
76
  ];
77
77
  ```
package/index.js CHANGED
@@ -45,9 +45,10 @@ module.exports = function (api, options = {}) {
45
45
  {
46
46
  // Defaults to `automatic`, pass in `classic` to disable auto JSX transformations.
47
47
  runtime: (options && options.jsxRuntime) || 'automatic',
48
- ...(options?.jsxRuntime !== 'classic' && {
49
- importSource: (options && options.jsxImportSource) || 'react',
50
- }),
48
+ ...(options &&
49
+ options.jsxRuntime !== 'classic' && {
50
+ importSource: (options && options.jsxImportSource) || 'react',
51
+ }),
51
52
  },
52
53
  ]);
53
54
  // Purposefully not adding the deprecated packages:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-preset-expo",
3
- "version": "9.0.0",
3
+ "version": "9.1.0",
4
4
  "description": "The Babel preset for Expo projects",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -28,12 +28,12 @@
28
28
  "metro",
29
29
  "webpack"
30
30
  ],
31
- "author": "Expo <support@expo.io>",
31
+ "author": "Expo <support@expo.dev>",
32
32
  "license": "MIT",
33
33
  "bugs": {
34
34
  "url": "https://github.com/expo/expo/issues"
35
35
  },
36
- "homepage": "https://github.com/expo/expo/tree/master/packages/babel-preset-expo#readme",
36
+ "homepage": "https://github.com/expo/expo/tree/main/packages/babel-preset-expo#readme",
37
37
  "eslintConfig": {
38
38
  "extends": "universe/node"
39
39
  },
@@ -50,11 +50,11 @@
50
50
  "@babel/preset-env": "^7.12.9",
51
51
  "babel-plugin-module-resolver": "^4.1.0",
52
52
  "babel-plugin-react-native-web": "~0.17.1",
53
- "metro-react-native-babel-preset": "~0.64.0"
53
+ "metro-react-native-babel-preset": "~0.67.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@babel/core": "^7.12.9",
57
57
  "jest": "^26.6.3"
58
58
  },
59
- "gitHead": "2e5c6983b86d5ecfca028ba64002897d8adc2cc4"
59
+ "gitHead": "89a27c0ca0ca8becd7546697298e874a15e94faf"
60
60
  }