Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

[xdl] facebookReactNativeVersionToExpoVersionAsync: only map to released versions #3305

Merged

Conversation

fson
Copy link
Contributor

@fson fson commented Mar 19, 2021

Why

facebookReactNativeVersionToExpoVersionAsync was mapping react-native versions to SDK versions that were added to the versions endpoint, but not yet released. This PR makes it only map to released versions.

Fixes #3288.

How

Used releasedSdkVersionsAsync to get applicable versions.

Test Plan

Tested briefly in the node console, following statements both printed '40.0.0' after the fix was done:

require('xdl').Versions.facebookReactNativeVersionToExpoVersionAsync('0.63.2').then(console.log)
require('xdl').Versions.facebookReactNativeVersionToExpoVersionAsync('0.63.4').then(console.log)

@fson fson requested a review from brentvatne March 19, 2021 16:32
@linear
Copy link

linear bot commented Mar 19, 2021

@brentvatne brentvatne merged commit f986e5e into master Mar 19, 2021
@brentvatne brentvatne deleted the ville/eng-646-incorrect-mapping-of-a-react-native branch March 19, 2021 17:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect mapping of a React Native version to an Expo SDK version
2 participants