Releases: vitaly-t/connection-string
2.0.0
Breaking Changes:
- Implemented #9, i.e.
isIPv6
flag was replaced withtype = 'domain' | 'socket' | 'IPv4' | 'IPv6'
- IPv6 addresses are no longer stripped of
[]
, to keep them consistent with Literal IPv6 Spec - The library now also exports type
HostType
, to keep it friendly with TypeScript.
1.1.0
v.1.0.1
v.1.0.0
v.0.9.1
v.0.9.0
Stop encoding $
by default
This release significantly improves on such delicate matter as $
symbols within the connection string.
Previous versions simply encoded $
as %24
by default, which is no longer the case. Symbol $
is no longer encoded by default, only when explicitly requested.
Method toString
now accepts encoding options parameter, in which we can pass in {encodeDollar: true}
, if we want all $
occurrences to be URL-encoded.
In addition, a host name now supports $
also.
It happens quite often that somebody uses $
in the user's password or in a URL parameter name, which gets encoded, and suddenly no longer works within the system. Although it is generally advised not to use $
for such purposes, it is best that at least by default that we do not encode it.