Skip to content

Releases: neefrehman/make-matrix

v4.0.3

13 Sep 14:41

Choose a tag to compare

4.0.3 (2025-09-13)

Bug Fixes

  • types: fix matrix types (7a7bd39)

v4.0.2

22 May 21:02

Choose a tag to compare

4.0.2 (2025-05-22)

Bug Fixes

  • docs: fix TSDoc comment (3ab6a03)

v4.0.1

15 Sep 16:15

Choose a tag to compare

4.0.1 (2024-09-15)

Bug Fixes

  • exports: fix types field positioning in package exports (460b13d)

v4.0.0

19 Nov 13:42

Choose a tag to compare

4.0.0 (2023-11-19)

BREAKING CHANGES

  • types: change any[] to unknown[], if creating a matrix of dynamic size (#21)

    const createDynamicMatrix = (dimensions: number[]) => makeMatrix(dimensions, 0); // now returns unknown[]

    This is a breaking change to how the library handles cases where a primitive, instead of a literal type, is used for the number of dimensions. Previously, the resulting Matrix would resolve to any[], as the complier is unable to infer how it should be typed (other than that it must be an array). This allowed to compiler to avoid throwing a type instantiation is excessively deep error, but also introduced an implicit any into the user's codebase, which is less than ideal.

    Now, the library will return a type of unknown[] in these cases. This achieves the same basic amount of type safety, but also means that users will not be able to use the resulting matrix in as many places as any[] would have allowed. The resulting matrix must now be typed by the caller. If you are able to provide more information than the compiler can infer. If not, then an explicit typing of any[] will provide the most 'relaxed' experience.

v3.0.2

10 Feb 14:43

Choose a tag to compare

3.0.2 (2023-02-10)

Improvements

  • developer experience: publish library source and sourcemaps, to improve debugging experience (44ee31b)

v3.0.1

10 Feb 13:52

Choose a tag to compare

3.0.1 (2023-02-10)

Improvements

  • bundlesize: minify with terser (66c61fb)
  • assets: release both minified and regular builds (66c61fb)

v3.0.0

03 Jan 22:23

Choose a tag to compare

3.0.0 (2023-01-03)

Code Cleanup & Bundle Size Improvements

  • drop support for number as a dimensions argument (99218f9)
  • remove default export (60811dd)

BREAKING CHANGES

  • passing a number as the dimensions parameter—to create a matrix with a desired number of dimensions but a non-specific size—is no longer supported. This feature was rarely used, if ever, and was less performant.
  • makeMatrix is no longer a default export of this package, please used a named import from this version on.

v2.3.3

16 Dec 17:23

Choose a tag to compare

2.3.3 (2022-12-16)

Performance Improvements

  • bundlesize: reduce bundle size by treeshaking with rollup (3a97351)

v2.3.2

23 Dec 21:57

Choose a tag to compare

Bug Fixes

  • Fix npm publish step

v2.3.1

23 Dec 21:56

Choose a tag to compare

Bug Fixes

  • build: set default module type to esm (1eda758)