New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hkt-toolbelt

Package Overview
Dependencies
Maintainers
0
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hkt-toolbelt - npm Package Versions

13
6

0.24.5

Diff

Changelog

Source

[0.24.5]

  • Add NaturalNumber.Square to compute the square of a natural number.
  • Add Object.AtKey to get the value at a key in an object. (swapped argument order of Object.At)
  • Modify Conditional.equals to perform deep equality.
  • Add various value-level implementations.
mpoteat
published 0.24.4 •

Changelog

Source

[0.24.4]

  • Add various value-level implementations across List, NaturalNumber, String, and Type.
  • Add Type.Never to represent the never type.
mpoteat
published 0.24.3 •

Changelog

Source

[0.24.3]

  • Add List.IsEmpty to check if a list is empty.
  • Add List.Take to take the first N elements of a list.
  • Add List.TransformAt to transform the element at a given index in a list.
  • Add List.UnshiftValue to unshift a value onto a list.
  • Add Kind.LazyPipe to apply a list of kinds lazily, i.e. allow intermediate currying.
  • Add Boolean.ToNumber to convert a boolean to a number, i.e. 1 or 0.
  • Modify List.At to return the union of all elements in a list if given number as an index.
mpoteat
published 0.24.2 •

Changelog

Source

[0.24.2]

  • Fix List.CountBy to gracefully handle variadics.
mpoteat
published 0.24.1 •

Changelog

Source

[0.24.1]

  • Add List.CountBy to count the number of elements in a list that satisfy a predicate.
  • Add Object.Entries to get the entries of an object.
  • Add Object.Assign to assign a value to a key in an object.
  • Add List.MaxBy and List.MinBy to find the maximum or minimum element in a list that satisfies a predicate.
  • Add various value-level implementations.
mpoteat
published 0.24.0 •

Changelog

Source

[0.24.0]

  • Add various Kind utilities:
    • Add Kind.Juxt for performing multiple calculations on a single input.
    • Add Kind.PipeWeak for a more flexible pipe operation with less checks.
  • Add various List utilities:
    • Add List.Chunk for chunking lists into specified sizes of sublists.
    • Add List.Duplicates to identify duplicate values in a list.
    • Add List.FlatMap that maps over a kind and flattens the result one level.
    • Add List.IncludesValue as an argument swap of List.Includes.
    • Add List.Intersect to get common elements between two lists.
    • Add List.PushValue as an argument swap of List.Push.
    • Add List.Remove to filter out every instance of a value from a list.
    • Add List.Unique to return a list with all duplicate elements removed.
  • Add new Loop module with an initial Loop.Until utility.
  • Add new Matrix module for dealing with two-dimensional arrays:
    • Add Matrix.Chunk to chunk a matrix into a list of matrices.
    • Add Matrix.Columns to get the columns of a matrix.
    • Add Matrix.Combine to combine to merge a matrix of matrices into a single matrix.
    • Add Matrix.Rows to get the rows of a matrix.
    • Add Matrix.Slice to slice a matrix to get a submatrix using four indices.
  • Add new Type utilities for intersection and union types:
    • Add Type.Intersect to get the intersection of two types.
    • Add Type.Union to get the union of two types.
    • Add Type.IntersectAll to get the intersection of all types in a tuple.
    • Add Type.UnionAll to get the union of all types in a tuple.
  • Add various Object utilities for object manipulation.
  • [Breaking] Swap argument order of List.Repeat to match documentation.
  • [Breaking] Change List.Includes to take in direct value (since List.Some already exists).
mpoteat
published 0.23.1 •

Changelog

Source

[0.23.1]

  • Add Type.Assert utility for strict type assertions.
mpoteat
published 0.23.0 •

Changelog

Source

[0.23.0]

  • Add support for TypeScript v5.4.2.
  • Improve performance for division-based operations.
  • Add DigitList._$signedAdd, for efficient signed addition using digit lists.
  • [Breaking] Improve List.Range edge case semantics.
mpoteat
published 0.22.2 •

Changelog

Source

[0.22.2]

  • Add additional JSDoc annotations for some modules. (Union, Type, Kind)
mpoteat
published 0.22.1 •

Changelog

Source

[0.22.1]

  • Add String.Capitalize utility for capitalizing the first letter of a string.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc