Hello,
In Meteor 2.16 I receive a lot of deprecation warnings
W20240625-14:05:48.430(2)? (STDERR) Calling method users.findOne from old API on server.
W20240625-14:05:48.430(2)? (STDERR) This method will be removed, from the server, in version 3.
W20240625-14:05:48.430(2)? (STDERR) Trace is below:
W20240625-14:05:48.430(2)? (STDERR) [object Object]
W20240625-14:05:48.431(2)? (STDERR) at warnUsingOldApi (packages/mongo/collection.js:21:13)
W20240625-14:05:48.431(2)? (STDERR) at Collection.findOne (packages/mongo/collection.js:448:5)
W20240625-14:05:48.431(2)? (STDERR) at MethodInvocation.defaultResumeLoginHandler (packages/accounts-base/accounts_server.js:1563:29)
W20240625-14:05:48.431(2)? (STDERR) at MethodInvocation.<anonymous> (packages/accounts-base/accounts_server.js:1547:38)
W20240625-14:05:48.431(2)? (STDERR) at MethodInvocation.<anonymous> (packages/meteor.js:365:18)
W20240625-14:05:48.431(2)? (STDERR) at packages/accounts-base/accounts_server.js:589:31
W20240625-14:05:48.431(2)? (STDERR) at /Users/dokithonon/.meteor/packages/promise/.0.12.2.undgfo.m3w8++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40
W20240625-14:05:48.436(2)? (STDERR)
W20240625-14:05:48.436(2)? (STDERR)
W20240625-14:05:48.436(2)? (STDERR) Calling method users.findOne from old API on server.
W20240625-14:05:48.436(2)? (STDERR) This method will be removed, from the server, in version 3.
W20240625-14:05:48.436(2)? (STDERR) Trace is below:
W20240625-14:05:48.437(2)? (STDERR) [object Object]
W20240625-14:05:48.437(2)? (STDERR) at warnUsingOldApi (packages/mongo/collection.js:21:13)
W20240625-14:05:48.437(2)? (STDERR) at Collection.findOne (packages/mongo/collection.js:448:5)
W20240625-14:05:48.437(2)? (STDERR) at packages/accounts-base/accounts_server.js:455:25
W20240625-14:05:48.437(2)? (STDERR) at /Users/dokithonon/.meteor/packages/promise/.0.12.2.undgfo.m3w8++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40
This is due to the use of findOne instead of findOneAsync on the server here :
Is this something you consider improving for v 2.17 ?
Thanks