sanctuary

Refuge from unsafe JavaScript

MIT License

Downloads
119.6K
Stars
3K
Committers
34

Bot releases are visible (Hide)

sanctuary - Version 3.1.0 Latest Release

Published by davidchambers about 4 years ago

Changes:

  • S.env now includes $.Buffer (#689)
  • sanctuary-def dependency upgraded from 0.21.1 to 0.22.0 (#689)

Additions:

sanctuary - Version 3.0.0

Published by davidchambers over 4 years ago

Changes:

  • sanctuary-def dependency upgraded from 0.20.1 to 0.21.1 (#666, #677)
  • sanctuary-either dependency upgraded from 1.2.0 to 2.1.0 (#666, #670)
  • sanctuary-maybe dependency upgraded from 1.2.0 to 2.1.0 (#666, #671)
  • sanctuary-pair dependency upgraded from 1.2.0 to 2.1.0 (#666, #672)
  • sanctuary-show dependency upgraded from 1.0.0 to 2.0.0 (#665)
  • sanctuary-type-classes dependency upgraded from 11.0.0 to 12.1.0 (#666, #667)
  • sanctuary-type-identifiers dependency upgraded from 2.0.1 to 3.0.0 (#666)

Generalizations:

  • S.encase is no longer specialized to Error (#662)

Additions:

sanctuary - Version 2.0.2

Published by davidchambers almost 5 years ago

Changes:

  • ⚠️ bower.json has been removed (#658)
  • repository now includes dist/bundle.js (#641)
  • heading identifiers in the readme are now prefixed with section: to avoid collisions (#663)
sanctuary - Version 2.0.1

Published by davidchambers almost 5 years ago

Changes:

  • S.size now has a more accurate type signature (#650)
  • sanctuary-def dependency upgraded from 0.20.0 to 0.20.1 (#652)
sanctuary - Version 2.0.0

Published by davidchambers over 5 years ago

Changes:

  • ⚠️ S.encase now returns a value of type Either Error b (#620)
  • ⚠️ S.alt now takes the “default” argument first (#625)
  • sanctuary-def dependency upgraded from 0.19.0 to 0.20.0 (#626)
  • sanctuary-either dependency upgraded from 1.1.0 to 1.2.0 (#638)
  • sanctuary-maybe dependency upgraded from 1.1.0 to 1.2.0 (#639)
  • sanctuary-pair dependency upgraded from 1.1.0 to 1.2.0 (#637)
  • sanctuary-type-classes dependency upgraded from 10.0.0 to 11.0.0 (#621)

Specializations:

Generalizations:

Removals:

  • S.encase2, S.encase3, S.encaseEither2, and S.encaseEither3 (#618)
  • S.encaseEither (#620)
  • S.at (#623)
  • S.slice (#624)
  • S.MaybeType, S.EitherType, and S.PairType (#626)
  • S.toMaybe and S.toEither (#632)
  • S.allPass and S.anyPass (#633)
sanctuary - Version 1.1.0

Published by davidchambers over 5 years ago

Generalizations:

Additions:

sanctuary - Version 1.0.0

Published by davidchambers over 5 years ago

Changes:

  • S.parseDate inconsistencies are now documented (#600)
  • sanctuary-def dependency upgraded from 0.18.1 to 0.19.0 (#594)
  • sanctuary-either dependency upgraded from 1.0.0 to 1.1.0 (#597)
  • sanctuary-maybe dependency upgraded from 1.0.0 to 1.1.0 (#598)
  • sanctuary-pair dependency upgraded from 1.0.0 to 1.1.0 (#599)
  • sanctuary-type-classes dependency upgraded from 9.0.0 to 10.0.0 (#594)

Additions:

sanctuary - Version 0.15.1

Published by davidchambers over 5 years ago

Changes:

  • documentation additions and improvements (#571, #578, #579, #590)
sanctuary - Version 0.15.0

Published by davidchambers over 5 years ago

Changes:

  • ⚠️ S.filter now requires Filterable rather than Applicative, Foldable, and Monoid (#475)
  • ⚠️ S.takeWhile and S.dropWhile now require Filterable rather than Foldable and Alternative (#475)
  • ⚠️ S.is now takes a sanctuary-def Type value (#513)
  • ⚠️ S.slice, S.at, S.head, S.last, S.tail, S.init, S.take, S.takeLast, S.drop, and S.dropLast can no longer operate on strings (#516)
  • ⚠️ S.unfoldr, S.pairs, and S.fromPairs now work with Pair a b values rather than Array2 a b values (#557)
  • ‼️ Sanctuary functions must now be applied to arguments one at a time, as in S.add (2) (2) (#520)
  • S.env is now a reference to the environment of S (#524)
  • type checking is now disabled for the default Sanctuary module when process.env.NODE_ENV is 'production' (#512)
  • sanctuary-either, sanctuary-maybe, sanctuary-pair, and sanctuary-show are now dependencies
  • sanctuary-def dependency upgraded from 0.14.0 to 0.18.1
  • sanctuary-type-classes dependency upgraded from 7.1.1 to 9.0.0

Generalizations:

  • S.pipe is no longer specialized to Array (#473)
  • S.justs, S.lefts, and S.rights are no longer specialized to Array (#490)
  • S.mapMaybe is no longer specialized to Array (#491)
  • S.flip is no longer specialized to Function (#534)

Removals:

  • S.pluck (#484)
  • S.filterM (#475)
  • S.__ (#499)
  • S.A (#500)
  • S.lt_, S.lte_, S.gt_, S.gte_, S.sub_, S.div_, and S.pow_ (#501)
  • S.toString (#543)

Additions:

sanctuary - Version 0.14.1

Published by davidchambers almost 7 years ago

Changes:

  • fixed webpack compatibility (#470)
sanctuary - Version 0.14.0

Published by davidchambers almost 7 years ago

Changes:

  • ⚠️ S.reverse can no longer reverse strings (#413)
  • ⚠️ S.slice and related functions no longer treat -0 specially (#415)
  • ⚠️ S.div now takes the divisor before the dividend (#432)
  • S.parseDate now has a more accurate type signature (#410)
  • S.get, S.gets, and S.parseJson can now operate on values which are not well typed (#424)
  • S.get, S.gets, S.prop, S.props, and S.pluck no longer require an “accessible” value (#425)
  • S.sequence and S.traverse now behave correctly when applied to string maps (#463)
  • type checking of unary types is now far more efficient: O(tn) rather than O(tⁿ) (#466)
  • sanctuary-def dependency upgraded from 0.12.1 to 0.14.0
  • sanctuary-type-classes dependency upgraded from 6.0.0 to 7.1.1

Generalizations:

Removals:

  • S.indexOf and S.lastIndexOf (#411)
  • S.encase2_ and S.encase3_ (#418)
  • S.encaseEither2_ and S.encaseEither3_ (#418)
  • S.flip_ (#418)
  • S.groupBy_ (#418)
  • S.on_ (#418)
  • S.reduce_ (#418)

Additions:

sanctuary - Version 0.13.2

Published by davidchambers over 7 years ago

Changes:

  • sanctuary-def dependency upgraded from 0.12.0 to 0.12.1
sanctuary - Version 0.13.1

Published by davidchambers over 7 years ago

Changes:

sanctuary - Version 0.13.0

Published by davidchambers over 7 years ago

Changes:

  • ⚠️ S.sub is now a unary function: S.sub(1) is equivalent to (- 1) in Haskell (#391)
  • ⚠️ S.type now returns a record with namespace, name, and version fields (#399)
  • ⚠️ S.equals now considers 0 and -0 to be equal (#388)
  • ⚠️ S.filterM now requires Alternative rather than Monoid (#370)
  • ⚠️ S.compose is now binary rather than ternary (#396)
  • Maybe and Either values now satisfy Z.Setoid.test only if the inner value satisfies it (#388)
  • Maybe and Either values now satisfy Z.Semigroup.test only if the inner value satisfies it (#359)
  • sanctuary-def dependency upgraded from 0.9.0 to 0.12.0
  • sanctuary-type-classes dependency upgraded from 3.0.1 to 6.0.0
  • sanctuary-type-identifiers dependency upgraded from 1.0.0 to 2.0.1

Generalizations:

  • S.append and S.prepend are no longer specialized to Array (#345)
  • S.pluck is no longer specialized to Array (#382)
  • S.find is no longer specialized to Array (#389)
  • S.compose is no longer specialized to Function (#396)

Removals:

  • S.dec and S.inc (#391)

Additions:

sanctuary - Version 0.12.2

Published by davidchambers over 7 years ago

#332

sanctuary - Version 0.12.1

Published by davidchambers over 7 years ago

#332

sanctuary - Version 0.12.0

Published by davidchambers over 7 years ago

#332

sanctuary - Version 0.11.1

Published by davidchambers over 7 years ago

#227

sanctuary - Version 0.11.0

Published by davidchambers over 7 years ago

#227

sanctuary - Version 0.10.0

Published by davidchambers over 7 years ago