ramda-adjunct 2.30.0 → 2.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/.nvmrc +1 -0
  2. package/CHANGELOG.md +44 -0
  3. package/README.md +6 -6
  4. package/dist/RA.node.js +7544 -7169
  5. package/dist/RA.node.min.js +1 -1
  6. package/dist/RA.web.js +7544 -7169
  7. package/dist/RA.web.min.js +1 -1
  8. package/dist/RA.web.standalone.js +20077 -18989
  9. package/dist/RA.web.standalone.min.js +1 -1
  10. package/es/catchP.js +24 -0
  11. package/es/dispatch.js +1 -1
  12. package/es/fantasy-land/Identity.js +61 -74
  13. package/es/fantasy-land/mapping.js +20 -23
  14. package/es/fantasy-land/traits.js +1 -1
  15. package/es/filterIndexed.js +27 -0
  16. package/es/findOr.js +28 -0
  17. package/es/flattenDepth.js +1 -1
  18. package/es/index.js +14 -3
  19. package/es/internal/ap.js +1 -1
  20. package/es/internal/ponyfills/Array.from.js +1 -1
  21. package/es/internal/ponyfills/Promise.allSettled.js +1 -1
  22. package/es/internal/ponyfills/Promise.any.js +2 -2
  23. package/es/invoke.js +20 -0
  24. package/es/isInteger32.js +28 -0
  25. package/es/isNotPrimitive.js +22 -0
  26. package/es/isPrimitive.js +31 -0
  27. package/es/isPrototypeOf.js +34 -0
  28. package/es/isSentinelValue.js +26 -0
  29. package/es/lastP.js +1 -1
  30. package/es/pathOrLazy.js +1 -1
  31. package/es/reduceP.js +1 -1
  32. package/es/reduceRightP.js +1 -1
  33. package/es/sortByProps.js +1 -1
  34. package/lib/anyP.js +2 -2
  35. package/lib/catchP.js +30 -0
  36. package/lib/dispatch.js +1 -1
  37. package/lib/fantasy-land/Identity.js +65 -75
  38. package/lib/fantasy-land/mapping.js +41 -25
  39. package/lib/fantasy-land/traits.js +18 -12
  40. package/lib/filterIndexed.js +33 -0
  41. package/lib/findOr.js +34 -0
  42. package/lib/flattenDepth.js +1 -1
  43. package/lib/index.js +40 -3
  44. package/lib/internal/ap.js +9 -3
  45. package/lib/internal/ponyfills/Array.from.js +1 -1
  46. package/lib/internal/ponyfills/Promise.allSettled.js +1 -1
  47. package/lib/internal/ponyfills/Promise.any.js +2 -2
  48. package/lib/invoke.js +29 -0
  49. package/lib/isInteger32.js +37 -0
  50. package/lib/isNotPrimitive.js +31 -0
  51. package/lib/isPrimitive.js +47 -0
  52. package/lib/isPrototypeOf.js +43 -0
  53. package/lib/isSentinelValue.js +35 -0
  54. package/lib/lastP.js +1 -1
  55. package/lib/pathOrLazy.js +1 -1
  56. package/lib/reduceP.js +1 -1
  57. package/lib/reduceRightP.js +1 -1
  58. package/lib/sortByProps.js +1 -1
  59. package/package.json +34 -32
  60. package/src/catchP.js +25 -0
  61. package/src/fantasy-land/Identity.js +24 -27
  62. package/src/fantasy-land/mapping.js +20 -24
  63. package/src/fantasy-land/traits.js +1 -1
  64. package/src/filterIndexed.js +28 -0
  65. package/src/findOr.js +30 -0
  66. package/src/fnull.js +4 -4
  67. package/src/index.js +10 -0
  68. package/src/internal/ap.js +1 -1
  69. package/src/internal/makeFlat.js +2 -3
  70. package/src/internal/ponyfills/Promise.allSettled.js +4 -3
  71. package/src/invoke.js +22 -0
  72. package/src/isInteger32.js +28 -0
  73. package/src/isNotPrimitive.js +25 -0
  74. package/src/isPrimitive.js +45 -0
  75. package/src/isPrototypeOf.js +36 -0
  76. package/src/isSentinelValue.js +26 -0
  77. package/src/isSymbol.js +4 -4
  78. package/src/pathOrLazy.js +4 -4
  79. package/src/replaceAll.js +0 -1
  80. package/types/index.d.ts +85 -1
  81. package/.mocharc.js +0 -9
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 16
package/CHANGELOG.md CHANGED
@@ -1,3 +1,47 @@
1
+ # [2.33.0](https://github.com/char0n/ramda-adjunct/compare/v2.32.0...v2.33.0) (2021-05-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * **function:** add catchP ([#1616](https://github.com/char0n/ramda-adjunct/issues/1616)) ([d6d1e78](https://github.com/char0n/ramda-adjunct/commit/d6d1e7825d16130ba916448355f06bad1f2bf0d9)), closes [#1232](https://github.com/char0n/ramda-adjunct/issues/1232)
7
+ * **type:** add isSentinelValue ([#1848](https://github.com/char0n/ramda-adjunct/issues/1848)) ([c48ce9e](https://github.com/char0n/ramda-adjunct/commit/c48ce9e2ab752006c25d385e830f3317bde5110c)), closes [#793](https://github.com/char0n/ramda-adjunct/issues/793)
8
+
9
+
10
+
11
+ # [2.32.0](https://github.com/char0n/ramda-adjunct/compare/v2.31.1...v2.32.0) (2021-04-10)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **isNotNil:** utilize type narrowing ([#1672](https://github.com/char0n/ramda-adjunct/issues/1672)) ([353a6db](https://github.com/char0n/ramda-adjunct/commit/353a6dbb5039d8a1f72b97c4c20471e2a4bb3cd8))
17
+
18
+
19
+ ### Features
20
+
21
+ * **list:** add findOr ([#1479](https://github.com/char0n/ramda-adjunct/issues/1479)) ([e9d321a](https://github.com/char0n/ramda-adjunct/commit/e9d321aef8bf1200d9b5e3bccd59f787eb8f31f5)), closes [#372](https://github.com/char0n/ramda-adjunct/issues/372)
22
+ * **type:** add isInteger32 ([#1826](https://github.com/char0n/ramda-adjunct/issues/1826)) ([fe8331e](https://github.com/char0n/ramda-adjunct/commit/fe8331ea6d63aa8db8302f6730f11fa7d840df00)), closes [#1282](https://github.com/char0n/ramda-adjunct/issues/1282)
23
+ * **type:** add isPrimitive/isNotPrimitive ([#1722](https://github.com/char0n/ramda-adjunct/issues/1722)) ([901006a](https://github.com/char0n/ramda-adjunct/commit/901006a36c39a378b544e63c14a7c86d80bfba6f)), closes [#786](https://github.com/char0n/ramda-adjunct/issues/786)
24
+
25
+
26
+
27
+ # [2.31.1](https://github.com/char0n/ramda-adjunct/compare/v2.31.0...v2.31.1) (2021-02-21)
28
+
29
+ ### Bug Fixes
30
+
31
+ * **deps**: remove postinstall husky script ([61f3fde](https://github.com/char0n/ramda-adjunct/commit/61f3fde46e3c65df0f67b217621fa9532141a2fa)), closes [#1773](https://github.com/char0n/ramda-adjunct/issues/1773)
32
+
33
+
34
+ # [2.31.0](https://github.com/char0n/ramda-adjunct/compare/v2.30.0...v2.31.0) (2021-02-21)
35
+
36
+
37
+ ### Features
38
+
39
+ * **list:** add filterIndexed ([#1713](https://github.com/char0n/ramda-adjunct/issues/1713)) ([d3cfc63](https://github.com/char0n/ramda-adjunct/commit/d3cfc6325e13324ca6e54c10de016a522362511e)), closes [#1346](https://github.com/char0n/ramda-adjunct/issues/1346)
40
+ * **object:** add isPrototypeOf ([#1456](https://github.com/char0n/ramda-adjunct/issues/1456)) ([314be55](https://github.com/char0n/ramda-adjunct/commit/314be550cebf30719d418c68e8687108122d9af8)), closes [#787](https://github.com/char0n/ramda-adjunct/issues/787)
41
+ * **object:** add invoke ([#1554](https://github.com/char0n/ramda-adjunct/issues/1554)) ([e90ce3c](https://github.com/char0n/ramda-adjunct/commit/e90ce3cc714052d0e24dc2b592d43c77a8348eb9)), closes [#81](https://github.com/char0n/ramda-adjunct/issues/81)
42
+
43
+
44
+
1
45
  # [2.30.0](https://github.com/char0n/ramda-adjunct/compare/v2.29.0...v2.30.0) (2020-12-27)
2
46
 
3
47
 
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![CircleCI](https://circleci.com/gh/char0n/ramda-adjunct.svg?style=svg)](https://circleci.com/gh/char0n/ramda-adjunct)
1
+ ![Node.js workflow](https://github.com/char0n/ramda-adjunct/actions/workflows/nodejs.yaml/badge.svg)
2
2
  [![codecov](https://codecov.io/gh/char0n/ramda-adjunct/branch/master/graph/badge.svg)](https://codecov.io/gh/char0n/ramda-adjunct)
3
3
  [![jsdoc](https://img.shields.io/badge/docs-100%25-green.svg)](https://char0n.github.io/ramda-adjunct/)
4
4
  [![npmversion](https://badge.fury.io/js/ramda-adjunct.svg)](https://www.npmjs.com/package/ramda-adjunct)
@@ -125,21 +125,21 @@ _Do you want to find out more about why this library exists ? Read this [**artic
125
125
 
126
126
  ## Requirements
127
127
 
128
- - ramda >= 0.19.0 <= 0.26.1
128
+ - ramda >= 0.19.0
129
129
  - node >= 0.10.48
130
130
 
131
- Ramda Adjunct is being automatically tested against node version >=8 <=11.
131
+ Ramda Adjunct is being automatically tested against all LTS and Current Node.js versions.
132
132
 
133
133
  ### Legacy builds
134
134
 
135
135
  We are building our npm distributions using Webpack/Babel to support legacy versions of node starting from 0.10.48.
136
- Although all tests are run against node version >=8 <=11, we rely on Webpack/Babel to transpile ramda-adjunct into legacy ES5.
136
+ Although all tests are run against all LTS and Current Node.js versions, we rely on Webpack/Babel to transpile ramda-adjunct into legacy ES5.
137
137
  It is also possible that our ES5 distributions run on node versions older than 0.10.48 as long as they support ES5.
138
138
 
139
139
  ## API Documentation
140
140
 
141
141
  [LATEST](https://char0n.github.io/ramda-adjunct),
142
- [PREVIOUS](https://char0n.github.io/ramda-adjunct/2.29.0),
142
+ [PREVIOUS](https://char0n.github.io/ramda-adjunct/2.32.0),
143
143
  [ALL VERSIONS](./VERSIONS.md)
144
144
 
145
145
  ## Wrote about us
@@ -231,7 +231,7 @@ The command will create three types of bundles.
231
231
 
232
232
  `dist/RA.web.standalone.js` - ES5 compliant bundle, running in browsers. It has `ramda.js` pre-bundled.
233
233
 
234
- You can always find fresh build files in circle-ci [artifacts](https://circleci.com/gh/char0n/ramda-adjunct).
234
+ You can always find fresh build files in exposed as artifacts of GitHub Actions.
235
235
 
236
236
 
237
237
  ## Tree shaking support