Closed marcellussiegburg closed 4 years ago
I guess that would simply be a Bool
-typed function argument to existsInstance
and getInstances
?
Yes, I guess breaking the API (and increasing a major version) by introducing a new parameter is the right move here.
An alternative of course would be to keep the current existsInstance
and getInstances
functions, and introduce new versions existsInstanceWithConfig
/getInstancesWithConfig
that get this extra parameter, and later also potentially get further extra parameters (maybe in the form of a config record) like start seed or whatever.
Then the "default" versions existsIntance
and getInstances
could remain stable in the API for longer or maybe forever.