Releases: vitaly-t/connection-string
Releases · vitaly-t/connection-string
2.4.5
- Minor TypeScript update for method
parseHost
- Documentation updates: added reference to connection-string-demo
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
Secure Passwords
Method toString now supports option passwordHash
, to generate a connection string with the password hashed, for secure logging. The option also accepts a string, to use a symbol other than the default #
.
const cs = new ConnectionString(':pass123@');
//=> {password: 'pass123'}
cs.toString({passwordHash: true});
//=> ':######@'
// cannot be parsed again, because # is not a valid symbol in the password
cs.toString({passwordHash: '*'});
//=> ':******@'
// can be parsed again, because * is allowed in the password directly
2.3.0
Adding support for sub-protocols.
I've seen some unique cases of people using sub-protocols, with :
as the separator:
one:two:three://
To whatever end, this library now allows such protocol names, and constructs them back in the same way, without encoding symbol :
And if you need to parse those, you can do protocol.split(':')
to get the list of protocols specified.
2.2.0
Adding support for Virtual Properties - hostname
+ port
, for compatibility with old parsers that did not support multiple hosts.