Skip to content

Latest commit

 

History

History
181 lines (118 loc) · 10.3 KB

CHANGELOG.md

File metadata and controls

181 lines (118 loc) · 10.3 KB

Changelog for Weather

0.4.0

Breaking Changes

  • Weather.Opts.new/1 now returns a tuple {:ok, Weather.Opts.t()} | {:error, String.t()} (4b825a7)

Features

  • Added Weather.Opts.new!/1 which either returns a Weather.Opts struct or raises an ArgumentError when given invalid input (which was the previous behavior of Weather.Opts.new/1) (4b825a7)

0.3.8

Bug Fixes

  • Fix times showing up in UTC when the escript was installed via hex :| (f09eebb)

0.3.7

Bug Fixes

  • Un-break search by zip :| (62ff335)

0.3.6

Bug Fixes

  • Remove escript priv hack for Req. Now the executable works as expected after installing via mix escript.install hex weather :) (0b6b270 and 8f70e4a)

Features

  • Update README with simplified CLI installation instructions. CLI can now be installed via mix escript.install hex weather (7ddb58c and 061e5b5)

0.3.5

Bug Fixes

  • When you supply a bad API key and a ZIP code, the error message you get back now indicates the API key is bad (previously it stated the ZIP was bad) (3e63a92)

0.3.4

Features

  • Add a Livebook! And add "Run in Livebook" button to README (8270eee)
  • Improve --zip docs, making it clear non-US codes are accepted (7b104d7)
  • Add timezone database info to readme (db8ae9e)

0.3.3

No notable changes. Just a README typo fix.

0.3.2

Bug Fixes

  • Fix a bug where the hourly rain report would report rain for the current hour when no more rain was expected between and the end of the hour (752e374)

Features

0.3.1

Bug Fixes

  • Handle 0 for 'hours' and 'every' options (e5b4140)

Features

  • Add support for custom reports! See the Customization section in the README for more info (ba0fa30)

0.3.0

Breaking Changes

  • Rename latitude and longitude env vars. MY_HOME_LAT -> WEATHER_LATITUDE, MY_HOME_LONG -> WEATHER_LONGITUDE (fd0fd10)
  • Change rain icon ☔ -> 🌧️. Arguably not a breaking change but it could be if folks match on the icon (eee817f)

Features

  • Update the README, finally! (a33eda3)

0.2.8

Features

  • Add Weather.get! (bd7aadc)
  • Redact appid when inspecting %Weather.Opts{} (927f630)
  • Add default args to many methods for ease of use (38710fe)

0.2.7

Bug Fixes

  1. Don't blow up when there is no "minutely" data returned (91d3c59)
  2. Remove ambiguity of alert time spans by including day (1181af0)

0.2.6

Features

  1. Add --zip CLI switch (21e3b7c)
  2. Add --label CLI switch (874aa03)

Bug Fixes

  1. Fix docs for minutely/hourly rain (9285c5f)

Features

  1. spruce up "minutely" rain title (a08c91f)
  2. add 🌞 sunrise | 🌚 sunset (f7babe0)
  3. add hourly rain report (06f8bb1)

0.2.5

Features

  1. spruce up "minutely" rain title (a08c91f)
  2. add 🌞 sunrise | 🌚 sunset (f7babe0)
  3. add hourly rain report (06f8bb1)

0.2.4

Features

  1. add --alert-titles-only CLI switch (f4b7cf9)

0.2.3

Bug Fixes

  1. Fix a problem where test responses were not available when the library was being used as a dependency (39bce22)

0.2.2

Features

  1. add formatter check to github actions (3ec74db)

0.2.1

Bug Fixes

  1. Fix a problem where an error would be thrown if there were multiple descriptions for the current weather (39a3e6c)
  2. Fix formatting bugs (1e3d3cb):
    • add newline at end of unauthorized responses
    • add newline at end of unexpected responses
    • add newline at end of error reponses
    • remove unwanted trailing whitespace at end of temp and time lines for hourly report

Features

  1. Add formatting check to mix push (a643f53)
  2. Add 'rain' as option for --test switch (841f803)

0.2.0

Breaking Changes

  1. Weather.Colors.colorize now accepts a string and a color code. @spec colorize(number, Weather.Opts.t()) :: String.t() -> @spec colorize(String.t(), integer()) :: String.t() (3864018)

  2. Weather.DateUtils.time_by_hour now accepts an integer unix time as its first arg instead of a map. @spec time_by_hour(map(), String.t(), Weather.Opts.t()) :: String.t() -> @spec time_by_hour(integer(), String.t(), Weather.Opts.t()) :: String.t() (3864018)

  3. Weather.DateUtils.time_by_minute now accepts an integer unix time as its first arg instead of a map. @spec time_by_minute(map(), String.t(), Weather.Opts.t()) :: String.t() -> @spec time_by_minute(integer(), String.t(), Weather.Opts.t()) :: String.t() (3864018)

Bug Fixes

  1. Fix report spacing (5263b15)

Features

  1. Colorize alert titles and change time remaining in alert title to time span (3864018)

  2. Add --hide-alerts switch to allow hiding weather alerts, even when alerts are available. Default is false, which shows alerts if there are any available (0709825)

0.1.5

Features

  1. add --test option which lets you try things out without an API key, latitude, or longitude set (2c27364)

0.1.4

Features

  1. spruce up readme with buttons and a demo gif

0.1.3

Bug Fixes

  1. change order of versions in CHANGELOG.md, whoops (de71d0b)

Features

  1. improve pattern matching specificity for public functions (540a317)

0.1.2

Bug Fixes

  1. get env vars directly so this library can be used as a dependency (c491157)

0.1.1

Bug Fixes

  1. Move finch config to mix.exs so this library can be used as a dependency (7e6bea6)

0.1.0

  1. Initial Release