Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions manifests/micro-utilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@
"description": "You can use `instanceof Date`, or if cross-realm, use `Object.prototype.toString.call(v) === \"[object Date]\"`",
"example": "const isDate = v instanceof Date;\n// for cross-realm\nconst isDateCrossRealm = Object.prototype.toString.call(v) === \"[object Date]\""
},
"snippet::is-equal": {
"id": "snippet::is-equal",
"type": "simple",
"description": "You can determine if two values are equal using regular equality checks.",
"example": "a === b"
},
"snippet::is-even": {
"id": "snippet::is-even",
"type": "simple",
Expand Down Expand Up @@ -663,6 +669,16 @@
"moduleName": "last-char",
"replacements": ["snippet::char-last"]
},
"lodash.castarray": {
"type": "module",
"moduleName": "lodash.castarray",
"replacements": ["snippet::array-coerce"]
},
"lodash.eq": {
"type": "module",
"moduleName": "lodash.eq",
"replacements": ["snippet::is-equal"]
},
"lodash.isboolean": {
"type": "module",
"moduleName": "lodash.isboolean",
Expand Down
129 changes: 129 additions & 0 deletions manifests/native.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,18 @@
"compatKey": "javascript.builtins.Array.every"
}
},
"Array.prototype.fill": {
"id": "Array.prototype.fill",
"type": "native",
"url": {
"type": "mdn",
"id": "Web/JavaScript/Reference/Global_Objects/Array/fill"
},
"webFeatureId": {
"featureId": "array-fill",
"compatKey": "javascript.builtins.Array.fill"
}
},
"Array.prototype.filter": {
"id": "Array.prototype.filter",
"type": "native",
Expand Down Expand Up @@ -861,6 +873,18 @@
"compatKey": "javascript.builtins.Math.sign"
}
},
"Math.trunc": {
"id": "Math.trunc",
"type": "native",
"url": {
"type": "mdn",
"id": "Web/JavaScript/Reference/Global_Objects/Math/trunc"
},
"webFeatureId": {
"featureId": "number",
"compatKey": "javascript.builtins.Math.trunc"
}
},
"Number.isFinite": {
"id": "Number.isFinite",
"type": "native",
Expand Down Expand Up @@ -1342,6 +1366,30 @@
"compatKey": "javascript.builtins.String.substr"
}
},
"String.prototype.toLowerCase": {
"id": "String.prototype.toLowerCase",
"type": "native",
"url": {
"type": "mdn",
"id": "Web/JavaScript/Reference/Global_Objects/String/toLowerCase"
},
"webFeatureId": {
"featureId": "strings",
"compatKey": "javascript.builtins.String.toLowerCase"
}
},
"String.prototype.toUpperCase": {
"id": "String.prototype.toUpperCase",
"type": "native",
"url": {
"type": "mdn",
"id": "Web/JavaScript/Reference/Global_Objects/String/toUpperCase"
},
"webFeatureId": {
"featureId": "strings",
"compatKey": "javascript.builtins.String.toUpperCase"
}
},
"String.prototype.trim": {
"id": "String.prototype.trim",
"type": "native",
Expand Down Expand Up @@ -1627,6 +1675,18 @@
"id": "Web/JavaScript/Reference/Global_Objects/TypedArray"
}
},
"optional_chaining": {
"id": "optional_chaining",
"type": "native",
"url": {
"type": "mdn",
"id": "Web/JavaScript/Reference/Operators/Optional_chaining"
},
"webFeatureId": {
"featureId": "object-object",
"compatKey": "javascript.operators.optional_chaining"
}
},
"parseInt": {
"id": "parseInt",
"type": "native",
Expand Down Expand Up @@ -1681,6 +1741,15 @@
"description": "All modern versions of Node have `Buffer.from` for safely creating buffers from arbitrary types.",
"url": {"type": "node", "id": "api/buffer.html"}
},
"structuredClone": {
"id": "structuredClone",
"type": "native",
"url": {"type": "mdn", "id": "Web/API/Window/structuredClone"},
"webFeatureId": {
"featureId": "structured-clone",
"compatKey": "api.structuredClone"
}
},
"util.promisify": {
"id": "util.promisify",
"type": "native",
Expand Down Expand Up @@ -2309,6 +2378,31 @@
"moduleName": "left-pad",
"replacements": ["String.prototype.padStart"]
},
"lodash.at": {
"type": "module",
"moduleName": "lodash.at",
"replacements": ["Array.prototype.at"]
},
"lodash.clone": {
"type": "module",
"moduleName": "lodash.clone",
"replacements": ["structuredClone"]
},
"lodash.escaperegexp": {
"type": "module",
"moduleName": "lodash.escaperegexp",
"replacements": ["RegExp.escape"]
},
"lodash.fill": {
"type": "module",
"moduleName": "lodash.fill",
"replacements": ["Array.prototype.fill"]
},
"lodash.get": {
"type": "module",
"moduleName": "lodash.get",
"replacements": ["optional_chaining"]
},
"lodash.isarray": {
"type": "module",
"moduleName": "lodash.isarray",
Expand Down Expand Up @@ -2349,6 +2443,41 @@
"moduleName": "lodash.lastindexof",
"replacements": ["Array.prototype.lastIndexOf"]
},
"lodash.toarray": {
"type": "module",
"moduleName": "lodash.toarray",
"replacements": ["Array.from"]
},
"lodash.tointeger": {
"type": "module",
"moduleName": "lodash.tointeger",
"replacements": ["Math.trunc"]
},
"lodash.tolower": {
"type": "module",
"moduleName": "lodash.tolower",
"replacements": ["String.prototype.toLowerCase"]
},
"lodash.toupper": {
"type": "module",
"moduleName": "lodash.toupper",
"replacements": ["String.prototype.toUpperCase"]
},
"lodash.trim": {
"type": "module",
"moduleName": "lodash.trim",
"replacements": ["String.prototype.trim"]
},
"lodash.trimend": {
"type": "module",
"moduleName": "lodash.trimend",
"replacements": ["String.prototype.trimEnd"]
},
"lodash.trimstart": {
"type": "module",
"moduleName": "lodash.trimstart",
"replacements": ["String.prototype.trimStart"]
},
"long": {
"type": "module",
"moduleName": "long",
Expand Down
100 changes: 2 additions & 98 deletions manifests/preferred.json
Original file line number Diff line number Diff line change
Expand Up @@ -588,12 +588,6 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.at": {
"type": "module",
"moduleName": "lodash.at",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.attempt": {
"type": "module",
"moduleName": "lodash.attempt",
Expand Down Expand Up @@ -642,12 +636,6 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.castarray": {
"type": "module",
"moduleName": "lodash.castarray",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.ceil": {
"type": "module",
"moduleName": "lodash.ceil",
Expand All @@ -666,12 +654,6 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.clone": {
"type": "module",
"moduleName": "lodash.clone",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.clonedeep": {
"type": "module",
"moduleName": "lodash.clonedeep",
Expand Down Expand Up @@ -864,36 +846,18 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.eq": {
"type": "module",
"moduleName": "lodash.eq",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.escape": {
"type": "module",
"moduleName": "lodash.escape",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.escaperegexp": {
"type": "module",
"moduleName": "lodash.escaperegexp",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.every": {
"type": "module",
"moduleName": "lodash.every",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.fill": {
"type": "module",
"moduleName": "lodash.fill",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.filter": {
"type": "module",
"moduleName": "lodash.filter",
Expand Down Expand Up @@ -1062,12 +1026,6 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.get": {
"type": "module",
"moduleName": "lodash.get",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.groupby": {
"type": "module",
"moduleName": "lodash.groupby",
Expand Down Expand Up @@ -1227,8 +1185,8 @@
"lodash.isequal": {
"type": "module",
"moduleName": "lodash.isequal",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
"replacements": ["util.isDeepStrictEqual", "dequal", "Bun.deepEquals"],
"url": {"type": "e18e", "id": "deep-equal"}
},
"lodash.isequalwith": {
"type": "module",
Expand Down Expand Up @@ -2028,36 +1986,18 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.toarray": {
"type": "module",
"moduleName": "lodash.toarray",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.tofinite": {
"type": "module",
"moduleName": "lodash.tofinite",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.tointeger": {
"type": "module",
"moduleName": "lodash.tointeger",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.tolength": {
"type": "module",
"moduleName": "lodash.tolength",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.tolower": {
"type": "module",
"moduleName": "lodash.tolower",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.tonumber": {
"type": "module",
"moduleName": "lodash.tonumber",
Expand Down Expand Up @@ -2100,48 +2040,12 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.toupper": {
"type": "module",
"moduleName": "lodash.toupper",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.transform": {
"type": "module",
"moduleName": "lodash.transform",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.trim": {
"type": "module",
"moduleName": "lodash.trim",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.trimend": {
"type": "module",
"moduleName": "lodash.trimend",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.trimleft": {
"type": "module",
"moduleName": "lodash.trimleft",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.trimright": {
"type": "module",
"moduleName": "lodash.trimright",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.trimstart": {
"type": "module",
"moduleName": "lodash.trimstart",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.trunc": {
"type": "module",
"moduleName": "lodash.trunc",
Expand Down
Loading