We are using the connection.clientId property to pass a user ID to the database. With version 1.13.1 this is working as expected. However with 2.1.1 the CLIENT_IDENTIFIER stays null.
I can reproduce the behavior with the endtoend.js example.
See the following. With 2.1.1 I get

With 1.13.1

What is your Node.js version? Is it 64-bit or 32-bit?
v8.9.3 64bit
What is your node-oracledb version?
2.1.1 (not working)
1.13.1 (working as expected)
What is your Oracle client (e.g. Instant Client) version? Is it 64-bit or 32-bit? How was it installed? Where is it installed?
instantclient-
C:\dev\programs\instantclient_64
What is your Oracle Database version?
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
What is your OS and version?
Windows 7 64bit
I have confirmed the issue and already have a solution which corrects it. @cjbj can comment on when that will become part of an official release.
@ronnn an interesting little buglet. Thanks for reporting it. It's fixed in 2.1.2, which I just pushed to npm.
@cjbj @anthony-tuininga Thank you very much for the quick fix! I can confirm, that it's working as expected. :+1:
Most helpful comment
@cjbj @anthony-tuininga Thank you very much for the quick fix! I can confirm, that it's working as expected. :+1: