Does not work with node 14.0.1
Summary
Promise never resolves when attempting to connect to database in node 14.0.1
Example
const massive = require("massive");
const { CONNECTION_STRING } = process.env
massive({
connectionString: CONNECTION_STRING,
ssl: { rejectUnauthorized: false },
})
.then((db) => {
app.set("db", db);
console.log("Db connected");
})
.catch((err) => {
console.log('Error connecting to db');
console.log(err);
});
Expected behavior
Expected to get either the error printed to the console, or the success indicator printed to the console.
Actual behavior
Nothing is printed to the console.
Additional context
Massive works just fine in node 12.16.3. I was also able to connect to the database using both pg-promise and pg while using node 14.0.1