expo-widgets 55.0.2 → 55.0.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/CHANGELOG.md +7 -0
- package/package.json +2 -2
- package/plugin/build/index.d.ts +1 -1
- package/plugin/build/index.js +5 -5
- package/plugin/src/index.ts +6 -6
- package/scripts/build-bundle.mjs +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,13 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 55.0.3 — 2026-03-05
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- [plugin] Fix reading undefined when config is not provided. ([#43568](https://github.com/expo/expo/pull/43568) by [@jakex7](https://github.com/jakex7))
|
|
18
|
+
- Skip server bundling in `export:embed` call for `expo-widgets` bundle ([#43602](https://github.com/expo/expo/pull/43602) by [@kitten](https://github.com/kitten))
|
|
19
|
+
|
|
13
20
|
## 55.0.2 — 2026-02-26
|
|
14
21
|
|
|
15
22
|
### 🎉 New features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-widgets",
|
|
3
|
-
"version": "55.0.
|
|
3
|
+
"version": "55.0.3",
|
|
4
4
|
"description": "Widgets.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"expo": "*",
|
|
43
43
|
"react": "*"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "756404b0eb18d441b54c7136b4142349193f554b"
|
|
46
46
|
}
|
package/plugin/build/index.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ type ExpoWidgetsConfigPluginProps = {
|
|
|
7
7
|
frequentUpdates?: boolean;
|
|
8
8
|
widgets?: WidgetConfig[];
|
|
9
9
|
};
|
|
10
|
-
declare const _default: ConfigPlugin<ExpoWidgetsConfigPluginProps>;
|
|
10
|
+
declare const _default: ConfigPlugin<ExpoWidgetsConfigPluginProps | undefined>;
|
|
11
11
|
export default _default;
|
package/plugin/build/index.js
CHANGED
|
@@ -17,7 +17,7 @@ const withWidgets = (config, props) => {
|
|
|
17
17
|
let plugins = [];
|
|
18
18
|
const deploymentTarget = '16.2';
|
|
19
19
|
const targetName = 'ExpoWidgetsTarget';
|
|
20
|
-
let bundleIdentifier = props
|
|
20
|
+
let bundleIdentifier = props?.bundleIdentifier;
|
|
21
21
|
if (!bundleIdentifier) {
|
|
22
22
|
bundleIdentifier = `${config.ios?.bundleIdentifier}.${targetName}`;
|
|
23
23
|
plugins.push([
|
|
@@ -28,7 +28,7 @@ const withWidgets = (config, props) => {
|
|
|
28
28
|
},
|
|
29
29
|
]);
|
|
30
30
|
}
|
|
31
|
-
let groupIdentifier = props
|
|
31
|
+
let groupIdentifier = props?.groupIdentifier;
|
|
32
32
|
if (!groupIdentifier) {
|
|
33
33
|
if (!config.ios?.bundleIdentifier) {
|
|
34
34
|
throw new Error('iOS bundle identifier is required. Please set `ios.bundleIdentifier` in `app.json` or `app.config.js`');
|
|
@@ -42,9 +42,9 @@ const withWidgets = (config, props) => {
|
|
|
42
42
|
},
|
|
43
43
|
]);
|
|
44
44
|
}
|
|
45
|
-
const widgets = props
|
|
46
|
-
const enablePushNotifications = props
|
|
47
|
-
const frequentUpdates = props
|
|
45
|
+
const widgets = props?.widgets ?? [];
|
|
46
|
+
const enablePushNotifications = props?.enablePushNotifications ?? false;
|
|
47
|
+
const frequentUpdates = props?.frequentUpdates ?? false;
|
|
48
48
|
let sharedFiles = [];
|
|
49
49
|
const setFiles = (files) => {
|
|
50
50
|
sharedFiles = [...sharedFiles, ...files];
|
package/plugin/src/index.ts
CHANGED
|
@@ -24,12 +24,12 @@ type ExpoWidgetsConfigPluginProps = {
|
|
|
24
24
|
widgets?: WidgetConfig[];
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
const withWidgets: ConfigPlugin<ExpoWidgetsConfigPluginProps> = (config, props) => {
|
|
27
|
+
const withWidgets: ConfigPlugin<ExpoWidgetsConfigPluginProps | undefined> = (config, props) => {
|
|
28
28
|
let plugins: (StaticPlugin | ConfigPlugin | string)[] = [];
|
|
29
29
|
const deploymentTarget = '16.2';
|
|
30
30
|
const targetName = 'ExpoWidgetsTarget';
|
|
31
31
|
|
|
32
|
-
let bundleIdentifier = props
|
|
32
|
+
let bundleIdentifier = props?.bundleIdentifier;
|
|
33
33
|
if (!bundleIdentifier) {
|
|
34
34
|
bundleIdentifier = `${config.ios?.bundleIdentifier}.${targetName}`;
|
|
35
35
|
plugins.push([
|
|
@@ -41,7 +41,7 @@ const withWidgets: ConfigPlugin<ExpoWidgetsConfigPluginProps> = (config, props)
|
|
|
41
41
|
]);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
let groupIdentifier = props
|
|
44
|
+
let groupIdentifier = props?.groupIdentifier;
|
|
45
45
|
if (!groupIdentifier) {
|
|
46
46
|
if (!config.ios?.bundleIdentifier) {
|
|
47
47
|
throw new Error(
|
|
@@ -58,9 +58,9 @@ const withWidgets: ConfigPlugin<ExpoWidgetsConfigPluginProps> = (config, props)
|
|
|
58
58
|
]);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
const widgets = props
|
|
62
|
-
const enablePushNotifications = props
|
|
63
|
-
const frequentUpdates = props
|
|
61
|
+
const widgets = props?.widgets ?? [];
|
|
62
|
+
const enablePushNotifications = props?.enablePushNotifications ?? false;
|
|
63
|
+
const frequentUpdates = props?.frequentUpdates ?? false;
|
|
64
64
|
|
|
65
65
|
let sharedFiles: string[] = [];
|
|
66
66
|
const setFiles = (files: string[]) => {
|