UNPKG

stick-js

Version:

Fast toolkit for functional programming in JS. Provides idioms for referentially transparent expressions, clear separation of mutable and immutable operations, object factories, function calls based on English grammar, and pipe & compose operators.

62 lines (38 loc) 1.62 kB
## v0.0.65 - Beginning of changelog. ## v0.1.0 *2020-05-16* - `contains` is now called `containsV`. - `contains` has been added, which takes a predicate in first position instead of a value. - Added new functions `findIndex` and `findWithIndex`. ## v0.2.0 *2020-05-16* - `ifPredicateResults` and `whenPredicateResults` are now called `ifPredicateWithResults` and `whenPredicateWithResults`. - Added `ifPredicateResults` and `whenPredicateResults`, where the condition functions take only one argument, the result of the predicate. - Added `spreadTo` as a synonym for `passToN`. ## v0.2.1 *2020-07-05* - The first argument to `factoryProps` can now be a function as well as an object. ## v0.3.0 *2020-07-12* - We now provide conditional dual packaging for esm/common-js style imports. If you use `import { ... } from 'stick-js'` you'll get esm-style modules, and if use `const { ... } = require ('stick-js')` you'll get common-js. Import them straight from 'stick-js' as it's no longer necessary to use a suffix (e.g. 'stick-js/es'). This is a potentially breaking change because if you use import statements then your runtime must be able to handle esm modules. You can use `node -r esm` or `webpack -r esm` if it can't. Node 14+ handles them natively (but it's still considered experimental). ## v0.3.4 *2020-07-13* - Added “main” field to package.json to support legacy common-js imports. Use like: `const { ... } = require ('stick-js')` or for specific modules: `const { ... } = require ('stick-js/cjs/manual.js')` ## v0.4.0 *2020-07-13* - Updated readme.