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

23
6

0.26.0

Diff

Changelog

Source

[0.26.0]

  • Introduce the Iso module for isomorphic bijections.
    • Add Iso.String.Chars to wrap the process of iterating over chars.
    • Add Iso.String.Words to wrap the process of iterating over words.
    • Add Iso.NaturalNumber.Increment to wrap the process of incrementing a number.
    • Add Iso.NaturalNumber.Decrement to wrap the process of decrementing a number.
    • Add Iso.NaturalNumber.Digits to wrap the process of converting a natural number to a list of digits.
  • Add Object.DeepEntries to get all deep paths and values in an object.
  • Add Object.FromEntries to create an object from a list of key-value pairs.
  • Add Object.IsObject to check if a value is an object.
  • Reify NaturalNumber.DivideBy to a value-level function.
  • Reify NaturalNumber.Divide to a value-level function.
  • Reify NaturalNumber.IsEven to a value-level function.
  • Reify NaturalNumber.IsOdd to a value-level function.
  • Add NaturalNumber.Undigits to convert a list of digits to a natural number.
  • Reify String.First and String.Last to value-level functions.
  • Reify String.Init and String.Tail to value-level functions.
  • Add String.Unwords to join a list of strings with a space delimiter.
  • Add String.RepeatBy to repeat a string by a given number (argument swapped).
mpoteat
published 0.25.2 •

Changelog

Source

[0.25.2]

  • Fix List.Sort to work with 2-ary comparators.
mpoteat
published 0.25.1 •

Changelog

Source

[0.25.1]

  • Fix packaging issue.
mpoteat
published 0.25.0 •

Changelog

Source

[0.25.0]

  • Reify NaturalNumber.Modulo and NaturalNumber.ModuloBy to value-level functions.
  • Reify Number.Negate to a value-level function.
  • Reify List.Zip.
  • Add Integer.Negate.
  • Add List.Sort and List.SortBy.
  • Reify String.StartsWith and String.EndsWith to value-level functions.
  • Add Object.PickByValue.
  • Reify Type.Display to an identity function.
  • Improve pipe performance.
  • Reify List.Intersect.
  • Add List.Subtract and List.SubtractBy.
  • Add Kind.ApplyKind.
  • Reify List.Unshift, List.FlatMap, and List.Times.
  • Add String.Compare and String.CompareChar.
  • Add List.Compare for comparing lists.
  • Reify Number.Compare to a value-level function.
  • Add Type.TypeOf as a kind for emulating the typeof operator.
  • Add List.UniqueBy for getting unique values from a list and mapping.
  • Reify Number.IsInteger to a value-level function.
  • Add String.Repeat for repeating a string.
  • Add List.CartesianProduct for generating all possible combinations of elements.
  • Fix edge condition in String.Join involving empty values.
mpoteat
published 0.24.11 •

Changelog

Source

[0.24.11]

  • Reify String.ToList to a value-level function.
  • Add List.FindIndex to find the index of a value in a list that satisfies a predicate.
  • Add List.IndexOf to find the index of a value in a list.
  • Add List.StartsWith to check if a list starts with a sequence of values.
  • Add List.EndsWith to check if a list ends with a sequence of values.
  • Add List.IndexOfSequence to find the index of a sequence of values in a list.
  • Fix runtime list search utilities to search via deep equality.
  • Add List.Replace to replace all instances of a value in a list with another value.
  • Add List.Remove to remove all instances of a value from a list.
  • Add List.ReplaceSequence to replace all instances of a sequence of values in a list with another sequence.
  • Add List.RemoveSequence to remove all instances of a sequence of values from a list.
  • Fix NaturalNumber.decrement to return zero when decrementing zero during runtime.
  • Add Combinator.Fix to find a fixed point of a higher-order type.
  • Reify List.MinBy to a value-level function.
  • Add List.MaxIndexBy to find the index of the maximum element in a list according to a scoring function.
  • Add List.MinIndexBy to find the index of the minimum element in a list according to a scoring function.
  • Add List.RemoveIndex to remove an element at a specified index from a list.
  • Reify List.Reduce to a value-level function.
  • Reify List.Some to a value-level function.
  • Reify List.Find to a value-level function.
mpoteat
published 0.24.10 •

Changelog

Source

[0.24.10]

  • Add String.CamelCase to convert a string to camelCase.
  • Add String.PascalCase to convert a string to PascalCase.
  • Add String.SnakeCase to convert a string to snake_case.
  • Add String.KebabCase to convert a string to kebab-case.
  • Add String.ConstantCase to convert a string to CONSTANT_CASE.
  • Reify String.Capitalize to a value-level function.
  • Add String.Words to split a string into words.
  • Add String.IsUppercaseLetter to check if a string is uppercase.
  • Add String.IsLowercaseLetter to check if a string is lowercase.
  • Add String.IsDigit to check if a string is a digit.
mpoteat
published 0.24.9 •

Changelog

Source

[0.24.9]

  • Reify NaturalNumber.Add to a value-level function.
  • Add Kind.JuxtN to juxt kinds with an arity of greater than one.
  • Add NaturalNumber.FromHex to convert a hexadecimal string to a decimal number.
  • Add NaturalNumber.ToHex to convert a decimal number to a hexadecimal string.
  • Reify String.FromList to a value-level function.
  • Add List.PadStart to pad a list to a desired length with a padding value.
  • Add List.PadEnd to pad a list to a desired length with a padding value.
  • Add String.PadStart to pad a string to a desired length with a padding character.
  • Add String.PadEnd to pad a string to a desired length with a padding character.
  • Improve inference efficiency of List.Collate and Kind.LazyPipe.
mpoteat
published 0.24.8 •

Changelog

Source

[0.24.8]

  • Add List.Count to create a frequency map from a list.
  • Add List.Same to check if all elements in a list are equal.
  • Add Object.AtPathInObject to get the value at a path in an object.
  • Reify Object.AtPath to a value-level function.
  • Add Object.Defaults to initialize an object with default values.
  • Add Object.Omit to remove keys from an object.
  • Add Object.Pick to pick keys from an object.
  • Reify Object.Values to a value-level function.
  • Reify List.Slice and List.Splice to value-level functions.
  • Add arg-swapped List.SliceList and List.SpliceList utilities.
  • Add List.Entries to get the entries of a list as a list of 2-tuples.
  • Add String.Entries to get the entries of a string as a list of 2-tuples.
  • Add Kind.Collapse to convert an n-arity kind to a 1-arity kind.
mpoteat
published 0.24.7 •

Changelog

Source

[0.24.7]

  • Add NaturalNumber.Digits to get the digits of a natural number.
  • Add List.Of to create a list containing a single value.
  • Add List.SlidingWindow to slide a window of a certain length over a list.
  • Reify various natural number utilities.
  • Reify various string and list utilities.
  • Fix statefulness bug in reified List.collate.
mpoteat
published 0.24.6 •

Changelog

Source

[0.24.6]

  • Add String.FromCharCode to convert a character code to a string.
  • Add String.IsLetter to check if a string is a letter.
  • Add String.ToCharCode to convert a string to a character code.
  • Reify String.Split to a value-level function.
  • Reify String.ToLower to a value-level function.
  • Reify NaturalNumber.SubtractBy to a value-level function.
  • Reify NaturalNumber.Subtract to a value-level function.
  • Reify List.Filter to a value-level function.
23
6
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