but typically we switch formulae dependencies to a versioned formula if:
1. The formula is broken when used with the latest version; and,
2. The breakage can be demonstrated in the test block which should do something that will error when used with the latest version of the relevant dependency but won't with an older one
Currently, mongosh is broken with Node.js 18/19, but we should find a way to integrate better with the homebrew policy here to allow usage of modern Node.js versions (e.g. by starting to test latest Node.js in CI, at least for macOS).