Node.js mysql.createConnection vs mysql.Client

I have run across both methods to create mysql connections with Node.js

What is the difference?