module-replacements 2.2.0 → 2.3.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.
- package/README.md +2 -2
- package/manifests/micro-utilities.json +2 -2
- package/manifests/native.json +2 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,8 +72,8 @@ This is a very opinionated list of modules with preferred replacements. Often
|
|
|
72
72
|
these replacements are much lighter or more modern than the modules they are
|
|
73
73
|
replacing.
|
|
74
74
|
|
|
75
|
-
Sometimes these may also be forks of older
|
|
76
|
-
|
|
75
|
+
Sometimes these may also be actively maintained forks of older, unmaintained
|
|
76
|
+
source packages.
|
|
77
77
|
|
|
78
78
|
# Contributing
|
|
79
79
|
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
{
|
|
58
58
|
"type": "simple",
|
|
59
59
|
"moduleName": "is-plain-object",
|
|
60
|
-
"replacement": "Use typeof v === \"object\" && v
|
|
60
|
+
"replacement": "Use v && typeof v === \"object\" && (Object.getPrototypeOf(v) === null || Object.getPrototypeOf(v) === Object.prototype)",
|
|
61
61
|
"category": "micro-utilities"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"type": "simple",
|
|
65
|
-
"moduleName": "is-
|
|
65
|
+
"moduleName": "is-primitive",
|
|
66
66
|
"replacement": "Use v === null || (typeof v !== \"function\" && typeof v !== \"object\")",
|
|
67
67
|
"category": "micro-utilities"
|
|
68
68
|
},
|
package/manifests/native.json
CHANGED
|
@@ -520,14 +520,6 @@
|
|
|
520
520
|
"mdnPath": "Global_Objects/Math/sign",
|
|
521
521
|
"category": "native"
|
|
522
522
|
},
|
|
523
|
-
{
|
|
524
|
-
"type": "native",
|
|
525
|
-
"moduleName": "math.sinh",
|
|
526
|
-
"nodeVersion": "0.10.0",
|
|
527
|
-
"replacement": "Math.sinh",
|
|
528
|
-
"mdnPath": "Global_Objects/Math/sinh",
|
|
529
|
-
"category": "native"
|
|
530
|
-
},
|
|
531
523
|
{
|
|
532
524
|
"type": "native",
|
|
533
525
|
"moduleName": "number.isfinite",
|
|
@@ -578,7 +570,7 @@
|
|
|
578
570
|
},
|
|
579
571
|
{
|
|
580
572
|
"type": "native",
|
|
581
|
-
"moduleName": "number.prototype.
|
|
573
|
+
"moduleName": "number.prototype.toexponential",
|
|
582
574
|
"nodeVersion": "0.10.0",
|
|
583
575
|
"replacement": "Number.prototype.toExponential",
|
|
584
576
|
"mdnPath": "Global_Objects/Number/toExponential",
|
|
@@ -842,7 +834,7 @@
|
|
|
842
834
|
},
|
|
843
835
|
{
|
|
844
836
|
"type": "native",
|
|
845
|
-
"moduleName": "string.prototype.
|
|
837
|
+
"moduleName": "string.prototype.trimstart",
|
|
846
838
|
"nodeVersion": "10.0.0",
|
|
847
839
|
"replacement": "String.prototype.trimStart",
|
|
848
840
|
"mdnPath": "Global_Objects/String/trimStart",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "module-replacements",
|
|
3
3
|
"description": "This package provides a set of manifests which each define a mapping of JS modules to their suggested replacements.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"main": "./dist/commonjs/main.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "npm run clean && npm run build:types",
|