When I install postgrator@6.0.0 and run my migration script, I am getting the following deprecation warning in the console:
(node:40498) [DEP0151] DeprecationWarning: Package /Users/bajtos/src/zebra/backend/node_modules/postgrator/ has a "main" field set to "postgrator", excluding the full filename and extension to the resolved file at "postgrator.js", imported from /Users/bajtos/src/zebra/backend/data/migrate.js.
Automatic extension resolution of the "main" field is deprecated for ES modules.
When I install
postgrator@6.0.0
and run my migration script, I am getting the following deprecation warning in the console:Reproduction
index.js
package.json
Command to run:
Additional info
My Node.js version: v16.13.1
I think this issue was introduced by https://github.com/rickbergfalk/postgrator/pull/143