Resolve accidental breaking change with type inference on array types
The combine*
family of functions (both sync and async) broke any codebase that called these functions on arrays of varying lengths when the previous release was shipped:
https://github.com/supermacro/neverthrow/releases/tag/v5.1.0
The following fix was implemented to address this issue and ensure that arrays (not just tuples) work with the combine*
family of functions.
Why is this shipped as a MAJOR version change?
Because we are now explicitly depending on TypeScript's variadic tuple types feature, which came out in v4 of TypeScript:
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-0.html#variadic-tuple-types
Acknowledgements
Thank you to @ghost91- for implementing the fix 🙏