I left DarkSky API support intact, and opted to just transform the data from the OpenWeatherMap API to work with this component.
Two questions for you:
Was there a technical reason you chose to use jsonp for the Dark Sky API call? CORS? Would it be better to do the same for OWM?
I added a boolean prop to determine which API to use and set the default to true. I guess I'd make the argument that since the Dark Sky API will eventually be shut down, OWM probably should be the default, on the other hand it is the only real breaking change here, I'm curious to hear your opinion on that. Maybe it's better to use useDarkSkyApi prop with default of false? Still a breaking change, but maybe that's more indicative of what is happening with the APIs?
17
I left DarkSky API support intact, and opted to just transform the data from the OpenWeatherMap API to work with this component.
Two questions for you:
true
. I guess I'd make the argument that since the Dark Sky API will eventually be shut down, OWM probably should be the default, on the other hand it is the only real breaking change here, I'm curious to hear your opinion on that. Maybe it's better to useuseDarkSkyApi
prop with default offalse
? Still a breaking change, but maybe that's more indicative of what is happening with the APIs?(screenshots are in imperial units)
Dark Sky:
OWM