Apple has updated iMovie for macOS to version 10.1.11. The free app is available at the Mac App Store and requires macOS 10.13.6 or later.
According to Apple’s release notes, the upgrade:
Detects media files that may be incompatible with future versions of macOS after Mojave and converts them to a compatible format;
Improves reliability when sharing video to YouTube.