drop support for versions before OTP-17 and bump to 3.0.0

This commit is contained in:
Tristan Sloughter 2020-06-07 12:40:11 -06:00
parent 1bbe8986c7
commit fab436e1d5
No known key found for this signature in database
GPG key ID: AAB97DDECCEB8150
14 changed files with 64 additions and 286 deletions

View file

@ -35,18 +35,6 @@
-type config() :: list().
-export_type([config/0]).
-ifndef(maps_support).
-type json_value() :: list(json_value())
| list({binary() | atom(), json_value()})
| true
| false
| null
| integer()
| float()
| binary().
-endif.
-ifdef(maps_support).
-type json_value() :: list(json_value())
| map()
| true
@ -55,15 +43,8 @@
| integer()
| float()
| binary().
-endif.
-ifdef(maps_always).
opts(Opts) -> [return_maps, multi_term] ++ Opts.
-endif.
-ifndef(maps_always).
opts(Opts) -> [multi_term] ++ Opts.
-endif.
-spec consult(File::file:name_all(), Config::config()) -> [json_value()].