Thanks to the database-js and PlanetScale teams, we have updated the default behavior and instances of database-js.
As suggested by the database-js core team, you should use the Client instance instead of connect():
Warning: In this version, there are no breaking changes, but starting from version 0.30.0, you will encounter an error if you attempt to use anything other than a Client instance.
We suggest starting to change connections to PlanetScale now to prevent any runtime errors in the future.
Previously our docs stated to use connect() and only this function was can be passed to drizzle. In this realase we are adding support for new Client() and deprecating connect(), by suggesting from database-js team. In this release you will see a warning when trying to pass connect() function result: