The following changes will be done in Ranch 2.0. In most cases an alternative is already available in the most recent Ranch version.
ranch:start_listener/6 has been deprecated in favor of ranch:start_listener/5. The number of acceptors was removed and will be taken from the transport options.
ranch:child_spec/6 has also been deprecated, in favor of ranch:child_spec/5.
ranch:accept_ack/1 has been deprecated in favor of ranch:handshake/1,2.
ranch:info/1,2 will return a map containing each listener's information rather than a list of key/values. The num_acceptors key will be removed.
ranch:handshake/1,2 only.
ranch:opts() map or socket options as-is. The ranch:opts() map must be used in case socket options also use a map.
socket option will be removed. A more viable solution is to define a custom transport module that returns a fresh socket when Transport:listen/1 is called.
Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:
Recurring payment options are also available via GitHub Sponsors. These funds are used to cover the recurring expenses like food, dedicated servers or domain names.