expo-dev-launcher 58.0.20 → 58.0.21

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
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 58.0.21
4
+
5
+ ### Patch Changes
6
+
7
+ - Stop using the deprecated `profilePhoto` and `Update.runtimeVersion` GraphQL fields. ([#53410](https://github.com/expo/expo/pull/53410) by [@tchayen](https://github.com/tchayen))
8
+ - [iOS] Connect to the development server's `/message` socket and network inspector on port 443 when the bundle URL is `https` with no port, such as an `expo start --tunnel` URL. ([#53466](https://github.com/expo/expo/pull/53466) by [@vonovak](https://github.com/vonovak))
9
+
3
10
  ## 58.0.20
4
11
 
5
12
  ### Patch Changes
@@ -24,13 +24,13 @@ expoModule {
24
24
  }
25
25
 
26
26
  group = "host.exp.exponent"
27
- version = "58.0.20"
27
+ version = "58.0.21"
28
28
 
29
29
  android {
30
30
  namespace "expo.modules.devlauncher"
31
31
  defaultConfig {
32
32
  versionCode 9
33
- versionName "58.0.20"
33
+ versionName "58.0.21"
34
34
  }
35
35
 
36
36
  buildTypes {
@@ -53,7 +53,7 @@ class ProfileViewModel : ViewModel() {
53
53
  Account(
54
54
  id = account.id,
55
55
  name = account.name,
56
- avatar = account.ownerUserActor?.profilePhoto,
56
+ avatar = account.ownerUserActor?.primaryAccountProfileImageUrl,
57
57
  isSelected = account.id == newUserState.selectedAccount?.id
58
58
  )
59
59
  } ?: emptyList()
@@ -100,7 +100,7 @@ fun AppHeader(
100
100
  modifier = Modifier.size(44.dp),
101
101
  contentAlignment = Alignment.Center
102
102
  ) {
103
- val profilePhoto = currentAccount?.ownerUserActor?.profilePhoto
103
+ val profilePhoto = currentAccount?.ownerUserActor?.primaryAccountProfileImageUrl
104
104
 
105
105
  if (profilePhoto != null) {
106
106
  AsyncImage(
@@ -16,7 +16,6 @@ query Me {
16
16
  meUserActor {
17
17
  id
18
18
  appCount
19
- profilePhoto
20
19
  username
21
20
  isExpoAdmin
22
21
  accounts {
@@ -25,7 +24,7 @@ query Me {
25
24
  ownerUserActor {
26
25
  username
27
26
  fullName
28
- profilePhoto
27
+ primaryAccountProfileImageUrl
29
28
  }
30
29
  }
31
30
  }
@@ -53,7 +52,9 @@ query getBranchesWithCompatibleUpdate(
53
52
  ) {
54
53
  id
55
54
  message
56
- runtimeVersion
55
+ runtime {
56
+ version
57
+ }
57
58
  createdAt
58
59
  manifestPermalink
59
60
  }
@@ -95,7 +96,9 @@ query getUpdatesWithFilters(
95
96
  updates(offset: ${'$'}offset, limit: ${'$'}limit, filter: { platform: ${'$'}platform }) {
96
97
  id
97
98
  message
98
- runtimeVersion
99
+ runtime {
100
+ version
101
+ }
99
102
  createdAt
100
103
  manifestPermalink
101
104
  }
@@ -132,7 +135,7 @@ data class UserAccount(
132
135
  val ownerUserActor: OwnerUserActor? = null
133
136
  )
134
137
 
135
- data class OwnerUserActor(val profilePhoto: String? = null)
138
+ data class OwnerUserActor(val primaryAccountProfileImageUrl: String? = null)
136
139
 
137
140
  // branches (covers both getBranches and getBranchesWithCompatibleUpdate)
138
141
  data class BranchesData(val app: BranchesApp? = null) {
@@ -162,10 +165,15 @@ data class UpdateBranchByName(val updates: List<UpdateInfo> = emptyList())
162
165
  data class UpdateInfo(
163
166
  val id: String,
164
167
  val message: String? = null,
165
- val runtimeVersion: String? = null,
168
+ val runtime: UpdateRuntime? = null,
166
169
  val createdAt: String? = null,
167
170
  val manifestPermalink: String
168
- )
171
+ ) {
172
+ val runtimeVersion: String?
173
+ get() = runtime?.version
174
+ }
175
+
176
+ data class UpdateRuntime(val version: String)
169
177
 
170
178
  class GraphQLService(
171
179
  private val httpClientService: HttpClientService
@@ -40,7 +40,7 @@ public final class DevLauncherNetworkInterceptor: NSObject, ExpoRequestCdpInterc
40
40
 
41
41
  private static func createNetworkInspectorUrl(bundleUrl: URL) -> URL {
42
42
  let host = bundleUrl.host ?? "localhost"
43
- let port = bundleUrl.port ?? 8081
43
+ let port = bundleUrl.port ?? (bundleUrl.scheme == "https" ? 443 : 8081)
44
44
  let scheme = bundleUrl.scheme == "https" ? "wss" : "ws"
45
45
  let urlString = "\(scheme)://\(host):\(port)/inspector/network"
46
46
  guard let url = URL(string: urlString) else {
@@ -204,7 +204,7 @@ struct AccountSheet: View {
204
204
  @ViewBuilder
205
205
  private func createAvatar(account: UserAccount) -> some View {
206
206
  let isOrganization = account.ownerUserActor == nil
207
- let profilePhoto = account.ownerUserActor?.profilePhoto
207
+ let profilePhoto = account.ownerUserActor?.primaryAccountProfileImageUrl
208
208
  let name = account.ownerUserActor?.fullName ?? account.name
209
209
 
210
210
  if isOrganization {
@@ -6,7 +6,6 @@ struct User: Codable {
6
6
  let id: String
7
7
  let appCount: Int?
8
8
  let username: String
9
- let profilePhoto: String?
10
9
  let accounts: [UserAccount]
11
10
  let isExpoAdmin: Bool
12
11
  }
@@ -20,7 +19,7 @@ struct UserAccount: Codable {
20
19
  struct OwnerUserActor: Codable {
21
20
  let username: String
22
21
  let fullName: String?
23
- let profilePhoto: String?
22
+ let primaryAccountProfileImageUrl: String?
24
23
  }
25
24
 
26
25
  struct MeUserActorResponse: Codable {
@@ -90,9 +89,17 @@ struct UpdateBranch: Codable {
90
89
  struct Update: Codable {
91
90
  let id: String
92
91
  let message: String
93
- let runtimeVersion: String
92
+ let runtime: UpdateRuntime
94
93
  let createdAt: String
95
94
  let manifestPermalink: String
95
+
96
+ var runtimeVersion: String {
97
+ runtime.version
98
+ }
99
+ }
100
+
101
+ struct UpdateRuntime: Codable {
102
+ let version: String
96
103
  }
97
104
 
98
105
  struct UpdatesResponse: Codable {
@@ -9,7 +9,6 @@ class Queries {
9
9
  meUserActor {
10
10
  id
11
11
  appCount
12
- profilePhoto
13
12
  username
14
13
  isExpoAdmin
15
14
  accounts {
@@ -18,7 +17,7 @@ class Queries {
18
17
  ownerUserActor {
19
18
  username
20
19
  fullName
21
- profilePhoto
20
+ primaryAccountProfileImageUrl
22
21
  }
23
22
  }
24
23
  }
@@ -117,7 +116,9 @@ class Queries {
117
116
  updates(offset: $offset, limit: $limit, filter: { platform: $platform }) {
118
117
  id
119
118
  message
120
- runtimeVersion
119
+ runtime {
120
+ version
121
+ }
121
122
  createdAt
122
123
  manifestPermalink
123
124
  }
@@ -64,7 +64,7 @@ private struct AccountAvatar: View {
64
64
 
65
65
  var body: some View {
66
66
  let isOrganization = account.ownerUserActor == nil
67
- let profilePhoto = account.ownerUserActor?.profilePhoto
67
+ let profilePhoto = account.ownerUserActor?.primaryAccountProfileImageUrl
68
68
  let name = account.ownerUserActor?.fullName ?? account.name
69
69
 
70
70
  if isOrganization {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-dev-launcher",
3
3
  "title": "Expo Development Launcher",
4
- "version": "58.0.20",
4
+ "version": "58.0.21",
5
5
  "description": "Pre-release version of the Expo development launcher package for testing.",
6
6
  "repository": {
7
7
  "type": "git",