expo-notifications 0.29.15-canary-20250404-87e2506 → 0.30.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 CHANGED
@@ -8,10 +8,17 @@
8
8
 
9
9
  ### 🐛 Bug fixes
10
10
 
11
- - event emitter should not influence notification presentation ([#35858](https://github.com/expo/expo/pull/35858) by [@vonovak](https://github.com/vonovak))
11
+ ### 💡 Others
12
+
13
+ ## 0.30.0 — 2025-04-04
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [post-swift-conversion] UNTextInputNotificationAction wasn't provided with options ([#35903](https://github.com/expo/expo/pull/35903) by [@vonovak](https://github.com/vonovak))
18
+ - [post-swift-conversion] event emitter should not influence notification presentation ([#35858](https://github.com/expo/expo/pull/35858) by [@vonovak](https://github.com/vonovak))
12
19
  - correctly serialize `null` trigger on iOS ([#35672](https://github.com/expo/expo/pull/35672) by [@vonovak](https://github.com/vonovak))
13
20
  - restore `useLastNotificationResponse` return value behavior ([#35504](https://github.com/expo/expo/pull/35504) by [@vonovak](https://github.com/vonovak))
14
- - fix ios textInput action missing title ([#34866](https://github.com/expo/expo/pull/34866) by [@vonovak](https://github.com/vonovak))
21
+ - [post-swift-conversion] fix ios textInput action missing title ([#34866](https://github.com/expo/expo/pull/34866) by [@vonovak](https://github.com/vonovak))
15
22
  - [ios] Fixed incorrect `EXNotifications-Swift.h` import. ([#34987](https://github.com/expo/expo/pull/34987) by [@lukmccall](https://github.com/lukmccall))
16
23
  - [iOS] fix notification response listener emitting duplicate response events ([#34849](https://github.com/expo/expo/pull/34849) by [@xc2](https://github.com/xc2))
17
24
 
@@ -5,13 +5,13 @@ plugins {
5
5
  }
6
6
 
7
7
  group = 'host.exp.exponent'
8
- version = '0.29.8'
8
+ version = '0.30.0'
9
9
 
10
10
  android {
11
11
  namespace "expo.modules.notifications"
12
12
  defaultConfig {
13
13
  versionCode 21
14
- versionName '0.29.8'
14
+ versionName '0.30.0'
15
15
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16
16
  }
17
17
 
@@ -212,10 +212,11 @@ struct CategoryTextInputActionRecord: Record {
212
212
  self.submitButtonTitle = textInputAction.textInputButtonTitle
213
213
  }
214
214
 
215
- func toUNTextInputNotificationAction(identifier: String, title: String) -> UNTextInputNotificationAction {
215
+ func toUNTextInputNotificationAction(identifier: String, title: String, options: UNNotificationActionOptions) -> UNTextInputNotificationAction {
216
216
  return UNTextInputNotificationAction(
217
217
  identifier: identifier,
218
218
  title: title,
219
+ options: options,
219
220
  textInputButtonTitle: submitButtonTitle ?? "",
220
221
  textInputPlaceholder: placeholder ?? ""
221
222
  )
@@ -265,9 +266,7 @@ public struct CategoryActionRecord: Record {
265
266
  let buttonTitle = buttonTitle else {
266
267
  return nil
267
268
  }
268
- if let textInput = textInput {
269
- return textInput.toUNTextInputNotificationAction(identifier: identifier, title: buttonTitle)
270
- }
269
+
271
270
  var notificationOptions: UNNotificationActionOptions = []
272
271
  if let optionsParams = options {
273
272
  if optionsParams.opensAppToForeground == true {
@@ -280,6 +279,9 @@ public struct CategoryActionRecord: Record {
280
279
  notificationOptions.insert(.authenticationRequired)
281
280
  }
282
281
  }
282
+ if let textInput = textInput {
283
+ return textInput.toUNTextInputNotificationAction(identifier: identifier, title: buttonTitle, options: notificationOptions)
284
+ }
283
285
  return UNNotificationAction(identifier: identifier, title: buttonTitle, options: notificationOptions)
284
286
  }
285
287
  }
@@ -368,9 +370,9 @@ public struct CategoryRecord: Record {
368
370
  }
369
371
 
370
372
  func toUNNotificationCategory() -> UNNotificationCategory {
371
- let intentIdentifiers: [String] = options?.intentIdentifiers as? [String] ?? []
372
- let previewPlaceholder: String? = options?.previewPlaceholder as? String
373
- let categorySummaryFormat: String? = options?.categorySummaryFormat as? String
373
+ let intentIdentifiers: [String] = options?.intentIdentifiers ?? []
374
+ let previewPlaceholder: String? = options?.previewPlaceholder
375
+ let categorySummaryFormat: String? = options?.categorySummaryFormat
374
376
  let actionsArray = actions?.compactMap { action in
375
377
  return action.toUNNotificationAction()
376
378
  } ?? []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-notifications",
3
- "version": "0.29.15-canary-20250404-87e2506",
3
+ "version": "0.30.0",
4
4
  "description": "Provides an API to fetch push notification tokens and to present, schedule, receive, and respond to notifications.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -42,21 +42,22 @@
42
42
  ]
43
43
  },
44
44
  "dependencies": {
45
- "@expo/image-utils": "0.6.6-canary-20250404-87e2506",
45
+ "@expo/image-utils": "^0.7.0",
46
46
  "@ide/backoff": "^1.0.0",
47
47
  "abort-controller": "^3.0.0",
48
48
  "assert": "^2.0.0",
49
49
  "badgin": "^1.1.5",
50
- "expo-application": "6.0.3-canary-20250404-87e2506",
51
- "expo-constants": "18.0.0-canary-20250404-87e2506"
50
+ "expo-application": "~6.1.0",
51
+ "expo-constants": "~17.1.0"
52
52
  },
53
53
  "devDependencies": {
54
- "expo-module-scripts": "4.0.6-canary-20250404-87e2506",
54
+ "expo-module-scripts": "^4.1.0",
55
55
  "memfs": "^3.2.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "expo": "53.0.0-canary-20250404-87e2506",
58
+ "expo": "*",
59
59
  "react": "*",
60
60
  "react-native": "*"
61
- }
61
+ },
62
+ "gitHead": "68b8233002dc678934ba40cbade7fbc80e71aeff"
62
63
  }