New behaviour of compactMap in Xcode 12.5 beta?

In Xcode 12.4, the following line of code produces a [String], but in Xcode 12.5 it produces a [String?]:

Code Block
let foo = "foo"
let bar = "bar"
let empty = ""
let items = [foo, bar, empty].compactMap { $0.isEmpty ? nil : $0 }


Both 12.4 and 12.5 are using SWIFT_VERSION = 5.0;.

Is this expected?
New behaviour of compactMap in Xcode 12.5 beta?
 
 
Q