Skip to content

Releases: vitaly-t/connection-string

2.4.5

07 Jul 17:38
Compare
Choose a tag to compare
  • Minor TypeScript update for method parseHost
  • Documentation updates: added reference to connection-string-demo

2.4.4

07 Jul 16:11
Compare
Choose a tag to compare

2.4.3

06 Jul 11:42
Compare
Choose a tag to compare

Documentation updates only.

2.4.2

05 Jul 18:45
Compare
Choose a tag to compare
  • Fixed issue #17
  • Improved port usage for defaults: ignore anything that's not a valid port number when setting defaults.

2.4.1

05 Jul 18:00
Compare
Choose a tag to compare
  • Improved invalid port detection
  • Added explicit Node.js v12 support
  • Updated DEV dependencies

2.4.0

26 Mar 05:15
db54dca
Compare
Choose a tag to compare

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

25 Mar 03:12
Compare
Choose a tag to compare

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

24 Mar 07:07
Compare
Choose a tag to compare

Adding support for Virtual Properties - hostname + port, for compatibility with old parsers that did not support multiple hosts.

2.1.0

19 Mar 02:05
Compare
Choose a tag to compare

Implemented #13:

  • Symbol + is now decoded as space for every part of the URL, not just for parameters.
  • Option plusForSpace now applies to every part of the URL, not just the parameters.

2.0.1

17 Mar 07:37
Compare
Choose a tag to compare

Minor code refactoring + documentation updates.