g-andrade / locus

MMDB reader for geolocation and ASN lookup of IP addresses
https://hexdocs.pm/locus/
MIT License
109 stars 14 forks source link

Adapt to the future #26

Closed g-andrade closed 3 years ago

g-andrade commented 3 years ago

Import latest tls_certificate_check and drop stacktrace_compat - these changes alone push us into the OTP 21.2+ realm. Following said bump, lots of (now-)dead code and hacks were dropped.

Additionally, tls_certificate_check is now imported as a transitive dependency to allow for our consumers to seamlessly upgrade to the latest CAs without us interfering - since I maintain tls_certificate_check myself, I rest assured there will be no breakage under any upcoming 1.x version.

Finally, due to tls_certificate_check now being faced as a transitive dependency, the hack that allowed rebar 2 to keep working (as requested in #13, some time ago) is no longer feasible; therefore it's dropped for good (it was "unmaintained", in any case - this was bound to happen one day.)

This PR is best viewed on a per-commit basis.

cc: @paulo-ferraz-oliveira