Socket
Socket
Sign inDemoInstall

kyanite

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kyanite - npm Package Versions

1
6

0.13.0

Diff

Changelog

Source

v0.13.0

BREAKING CHANGES

  • find has gone back to returning undefined instead of null for not found values

New

  • Added fold function which runs a reduce without an initial accumulator
  • Added the propOr Function which returns the value of a property from an object or the provided default value
  • CircleCI will now handle publishing the documentation to the gh-pages branch

Fixed

  • Documentation for functions showing up deprecated when they were actually not
  • Documentation for join moved it to the Array Category, and fixed a typo in it's example
  • Documentation for apply showed incorrect curry examples

Improved

  • min is now using the fold function
  • Finally improved the documentation process so now documentation changes won't flood the PRs!
killparadise
published 0.12.2 •

Changelog

Source

v0.12.2

New

  • Added propEq function which takes a object property value and compares it against a given value to see if it's equal
  • Added notEq function which checks if the provided values are not equal to each other

Fixed

  • The documentation for and should now reflect correctly on the return and params
killparadise
published 0.12.1 •

Changelog

Source

v0.12.1

Fixed

  • pathOr and path breaking on null value
killparadise
published 0.12.0 •

Changelog

Source

v0.12.0

BREAKING CHANGES

  • ascend and descend are no longer curried since they're meant to be sort based functionality and will always be called with their 2 params
    • The reasoning behind this is primarily performance, when using the function as intended there is a significant drop in performance
    • Note: ascendBy and descendBy have kept their curried status

New

  • Added a median function which gets the median of an array of numbers
  • Added a mod function which behaves like a modulo would in actual mathematics
  • Added somePass function which takes an array of functions and passes a value through them until one passes or the end is reached
  • Added everyPass function which takes an array of functions and passes a value through until one fails or the end is reached
  • Added chunk function which chunks an array of data into smaller arrays

Improved

  • pipe & pipeP are now using the Kyanite reduce giving them a small performance boost

Fixed

  • Fixed a lot of signature displays through out the docs
  • Documentation Fixes:
    • addIndex description tweaks
    • memoizeWith added RamdaJs credit since it's based mostly off their version
    • lt, lte, gt, and gte all had invalid examples in their documentation. This is addressed now
    • find and deepEq examples were incorrect
killparadise
published 0.11.3 •

Changelog

Source

v0.11.3

New

  • Added sum function which takes an array of numbers and adds them together
    • TS type added
  • Added product function which takes an array of numbers and multiplies them together
    • TS type added
  • Switched over to Circleci and Codecov

Fixed

  • TS types
    • Added addIndex type
    • Added memoizeWith type
  • addIndex Documentation
  • slice Documentation
killparadise
published 0.11.2 •

Changelog

Source

v0.11.2

New

  • Added a addIndex function which can be used on map, filter, or reduce like functions to have them return the index and full list back to your callback function
  • Re added the amend function (for now?)
  • Added memoizeWith function
killparadise
published 0.11.1 •

Changelog

Source

v0.11.0 (0.11.1)

Breaking Changes

  • factors output has changed to be inclusive, it also works with negative numbers now
    • Example: factors(-36) // => [1, 2, 3, 4, 6, 9, 12, 18, 36]
    • You can easily get negative factors with negate and map
      • e.g: map(negate, factors(-36)) // => [-1, -2, -3, -4, -6, -9, -12, -18, -36]
  • empty (and isEmpty until its removed) will now throw a type error for unsupported types
    • empty supports the same types as count as well as null and undefined
    • e.g: empty(1) // => TypeError: Unsupported type: Number
  • juxt functionality changes. It's now a 2 param curried function that takes arrays for data
    • e.g: juxt([Math.min, Math.max], [3, 4, 9, -3]) // => [-3, 9]
    • Also moved it to be in the array category
  • ap re written to be a proper S combinator function
    • e.g: ap(x => y => x + y, z => z * 2, 2) // => 6
  • Removed amend function since it's really just a limited Object.assign no real use for it

New

  • reduce now supports iterable types like Map and Set
  • Added inc Function which increases a number by 1
  • Added dec Function which decreases a number by 1
  • Added isZero Function which checks if the number passed in is equal to the number zero
  • Added size Function which takes a map or set data type and returns its size
    • Note: It is currently categorized under Function which may change in the future as I add more Map|Set friendly functions
  • Added count Function which takes any collection based data and counts the values within
  • Added reduced Function which should be used with reduce or reduceRight as a short circuit for the function (see improved)
  • has is now generic for Array, String, Object, Map, and Set data types
  • Added within Function which acts like between but is exclusive of the numbers provided

Improved

  • isEmpty now supports Maps and Sets
  • Slight increase in partition performance
  • Slight increase in omit performance
  • Added import example onto each function, so it's visible within the examples
  • factors had some typos in its docs
  • Cleaned up always documentation
  • Cleaned up identity documentation examples
  • Cleaned up type to be more lightweight
  • Completely re wrote reduce and reduceRight
    • No breaking changes
    • Both functions now support reduced which will short circuit out of the iteration and return the value
    • This is a good strategy for performance boosts
  • reduce, reduceRight, and reduced are all using the @@transducer protocol
  • Moved every, some, reject, filter, and find to use this new flow giving them decent performance improvements
  • Tweaked height function for a tiny performance boost
killparadise
published 0.11.0-beta.6 •

killparadise
published 0.11.0-beta.5 •

killparadise
published 0.11.0-beta.4 •

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