Did queryReferenced() change recently?

I have the following lines of code, which were working fine until recently.

let interestsQuery = await wixData.queryReferenced("VolunteerDatabase", volunteer, "interest");
let referencedInterests = interestsQuery.result.items;

But now suddenly, it’s complaining that queryReferenced requires 4 arguments, forcing me to include an “options” argument, which was previously optional. It also complains that “result” does not exist on type “WixDataQueryReferencedResult”. Looking at the API reference now, I see that is true. But I swear this was working a couple of weeks ago.

It was an easy fix, but still, am I crazy? What happened?

It might be that the parser didn’t enforce that that the options field is required. Seems to me that the options field should be optional, and default to some sort order. Alas, apparently it’s not that way.

AFAIK the object returned in the results was not changed. The proper code should be:

let referencedInterests = interestsQuery.items;