Skip to content

Commit

Permalink
feat(polyfill): adds support for the proposed new Set methods: Set.pr…
Browse files Browse the repository at this point in the history
…ototype.isDisjointWith, Set.prototype.isSubsetOf, and Set.prototype.isSupersetOf
  • Loading branch information
wessberg committed Jan 15, 2019
1 parent d909668 commit 90e98d2
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ And, if you request `performance.now`, `date.now` will also be included since th
- es.set.some
- es.set.symmetric-difference
- es.set.union
- es.set.is-disjoint-with
- es.set.is-subset-of
- es.set.is-superset-of
- es.weak-set
- es.weak-set.from
- es.weak-set.of
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"intl-relative-time-format": "^1.0.4",
"memory-fs": "^0.4.1",
"mime": "^2.4.0",
"mutationobserver-shim": "^0.3.2",
"mutationobserver-shim": "^0.3.3",
"node.parentelement": "^1.0.2",
"nodemon": "^1.18.9",
"object-fit-images": "^3.2.4",
Expand Down
29 changes: 28 additions & 1 deletion src/constant/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1711,6 +1711,30 @@ export const constant: IConstant = {
version: environment.NPM_PACKAGE_DEPENDENCIES_CORE_JS,
dependencies: ["es.set"]
},
"es.set.is-disjoint-with": {
library: "core-js",
relativePaths: ["modules/esnext.set.is-disjoint-with.js"],
// TODO: Update when MDN or Caniuse Compatibility is added
features: [],
version: environment.NPM_PACKAGE_DEPENDENCIES_CORE_JS,
dependencies: ["es.set"]
},
"es.set.is-subset-of": {
library: "core-js",
relativePaths: ["modules/esnext.set.is-subset-of.js"],
// TODO: Update when MDN or Caniuse Compatibility is added
features: [],
version: environment.NPM_PACKAGE_DEPENDENCIES_CORE_JS,
dependencies: ["es.set"]
},
"es.set.is-superset-of": {
library: "core-js",
relativePaths: ["modules/esnext.set.is-superset-of.js"],
// TODO: Update when MDN or Caniuse Compatibility is added
features: [],
version: environment.NPM_PACKAGE_DEPENDENCIES_CORE_JS,
dependencies: ["es.set"]
},
"es.weak-set": {
library: "core-js",
relativePaths: ["modules/es.weak-set.js"],
Expand Down Expand Up @@ -2263,7 +2287,10 @@ export const constant: IConstant = {
"es.set.reduce",
"es.set.some",
"es.set.symmetric-difference",
"es.set.union"
"es.set.union",
"es.set.is-disjoint-with",
"es.set.is-subset-of",
"es.set.is-superset-of"
]
},
"esnext.weak-set": {
Expand Down
3 changes: 3 additions & 0 deletions src/polyfill/polyfill-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ export declare type PolyfillDealiasedName =
|"es.set.some"
|"es.set.symmetric-difference"
|"es.set.union"
|"es.set.is-disjoint-with"
|"es.set.is-subset-of"
|"es.set.is-superset-of"
|"es.weak-set"
|"es.weak-set.from"
|"es.weak-set.of"
Expand Down

0 comments on commit 90e98d2

Please sign in to comment.