Skip to content

Commit

Permalink
v0.2.3 (#51)
Browse files Browse the repository at this point in the history
* v0.2.3

* yarn.lock
  • Loading branch information
romainmenke authored Feb 27, 2020
1 parent ddbb266 commit b21f5cf
Show file tree
Hide file tree
Showing 906 changed files with 1,539 additions and 3,617 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"packages": [
"packages/*"
],
"version": "0.2.2",
"version": "0.2.3",
"useWorkspaces": true
}
4 changes: 2 additions & 2 deletions packages/babel-plugin-core-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mrhenry/babel-plugin-core-web",
"version": "0.2.2",
"version": "0.2.3",
"description": "browser feature polyfills as a babel plugin",
"main": "lib/index.js",
"author": "Simon Menke <[email protected]>",
Expand Down Expand Up @@ -28,7 +28,7 @@
"@babel/parser": "^7.3.1",
"@babel/traverse": "^7.2.3",
"@babel/types": "^7.3.0",
"@mrhenry/core-web": "^0.2.2",
"@mrhenry/core-web": "^0.2.3",
"fast-deep-equal": "^3.1.1"
},
"bugs": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core-web-example/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "core-web-example",
"version": "0.2.2",
"version": "0.2.3",
"private": true,
"scripts": {
"build": "babel src -d lib"
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.8.6",
"@mrhenry/babel-plugin-core-web": "^0.2.2"
"@mrhenry/babel-plugin-core-web": "^0.2.3"
}
}
2 changes: 1 addition & 1 deletion packages/core-web-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mrhenry/core-web-generator",
"version": "0.2.2",
"version": "0.2.3",
"private": true,
"scripts": {
"build": "node ./generate.js"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import GetPrototypeFromConstructor from "../helpers/_ESAbstract.GetPrototypeFrom
import ToBoolean from "../helpers/_ESAbstract.ToBoolean";
import CreateDataPropertyOrThrow from "../helpers/_ESAbstract.CreateDataPropertyOrThrow";
import CreateDataProperty from "../helpers/_ESAbstract.CreateDataProperty";
import SameValueZero from "../helpers/_ESAbstract.SameValueZero";
import SameValueNonNumber from "../helpers/_ESAbstract.SameValueNonNumber";
import IteratorStep from "../helpers/_ESAbstract.IteratorStep";
import IteratorNext from "../helpers/_ESAbstract.IteratorNext";
import IteratorComplete from "../helpers/_ESAbstract.IteratorComplete";
Expand Down
2 changes: 2 additions & 0 deletions packages/core-web/helpers/_ESAbstract.GetIterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import GetPrototypeFromConstructor from "../helpers/_ESAbstract.GetPrototypeFrom
import ToBoolean from "../helpers/_ESAbstract.ToBoolean";
import CreateDataPropertyOrThrow from "../helpers/_ESAbstract.CreateDataPropertyOrThrow";
import CreateDataProperty from "../helpers/_ESAbstract.CreateDataProperty";
import SameValueZero from "../helpers/_ESAbstract.SameValueZero";
import SameValueNonNumber from "../helpers/_ESAbstract.SameValueNonNumber";

// _ESAbstract.GetIterator
/* global GetMethod, Symbol, Call, Type, GetV */
Expand Down
56 changes: 45 additions & 11 deletions packages/core-web/helpers/__mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ module.exports = [
"_ESAbstract.GetV",
"_ESAbstract.OrdinaryToPrimitive",
"_ESAbstract.Type",
"_ESAbstract.SameValueZero",
"_ESAbstract.SameValueNonNumber",
"_ESAbstract.ArraySpeciesCreate",
"_ESAbstract.IsArray",
"_ESAbstract.ArrayCreate",
Expand All @@ -34,8 +36,6 @@ module.exports = [
"Window",
"document",
"Element",
"_ESAbstract.SameValueZero",
"_ESAbstract.SameValueNonNumber",
"_ESAbstract.CreateIterResultObject",
"_ESAbstract.GetIterator",
"_ESAbstract.IteratorClose",
Expand Down Expand Up @@ -472,13 +472,13 @@ module.exports = [
"_ESAbstract.GetPrototypeFromConstructor",
"_ESAbstract.ToBoolean",
"_ESAbstract.CreateDataPropertyOrThrow",
"_ESAbstract.SameValueZero",
"_ESAbstract.SameValueNonNumber",
"_ESAbstract.IteratorClose",
"_ESAbstract.IteratorComplete",
"_ESAbstract.IteratorNext",
"_ESAbstract.IteratorStep",
"_ESAbstract.IteratorValue",
"_ESAbstract.SameValueZero",
"_ESAbstract.SameValueNonNumber",
"MutationObserver",
"Node.prototype.contains",
"_ESAbstract.SameValue"
Expand Down Expand Up @@ -522,6 +522,23 @@ module.exports = [
"ios_saf": "* - 7"
}
},
{
"name": "Element.prototype.nextElementSibling",
"deps": [
"Element",
"document"
],
"browsers": {
"chrome": "<4",
"edge": "<12",
"firefox": "<3.5",
"ie": "<9",
"opera": "<10",
"op_mob": "<10.1",
"safari": "<4",
"firefox_mob": "<4"
}
},
{
"name": "Element.prototype.placeholder",
"deps": [
Expand Down Expand Up @@ -558,6 +575,23 @@ module.exports = [
"samsung_mob": "<6"
}
},
{
"name": "Element.prototype.previousElementSibling",
"deps": [
"Element",
"document"
],
"browsers": {
"chrome": "<4",
"edge": "<12",
"firefox": "<3.5",
"ie": "<9",
"opera": "<10",
"op_mob": "<10.1",
"safari": "<4",
"firefox_mob": "<4"
}
},
{
"name": "Element.prototype.remove",
"deps": [
Expand Down Expand Up @@ -21970,7 +22004,7 @@ module.exports = [
"name": "document.currentScript",
"deps": [],
"browsers": {
"ie": "8 - 10"
"ie": "*"
}
},
{
Expand Down Expand Up @@ -22054,6 +22088,8 @@ module.exports = [
"_ESAbstract.GetV",
"_ESAbstract.OrdinaryToPrimitive",
"_ESAbstract.Type",
"_ESAbstract.SameValueZero",
"_ESAbstract.SameValueNonNumber",
"_ESAbstract.ArraySpeciesCreate",
"_ESAbstract.IsArray",
"_ESAbstract.ArrayCreate",
Expand All @@ -22070,9 +22106,7 @@ module.exports = [
"Event",
"Window",
"document",
"Element",
"_ESAbstract.SameValueZero",
"_ESAbstract.SameValueNonNumber"
"Element"
],
"browsers": {
"android": "<67",
Expand Down Expand Up @@ -22306,12 +22340,12 @@ module.exports = [
"_ESAbstract.ToBoolean",
"_ESAbstract.CreateDataPropertyOrThrow",
"_ESAbstract.CreateDataProperty",
"_ESAbstract.SameValueZero",
"_ESAbstract.SameValueNonNumber",
"Event",
"Window",
"document",
"Element",
"_ESAbstract.SameValueZero",
"_ESAbstract.SameValueNonNumber"
"Element"
],
"browsers": {
"chrome": "<71",
Expand Down
4 changes: 2 additions & 2 deletions packages/core-web/modules/AbortController.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/core-web/modules/Element.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ if (!("Element"in self&&"HTMLElement"in self
// Element
(function () {

if ('Element' in self && 'HTMLElement' in self) {
return;
}
// IE8
if (window.Element && !window.HTMLElement) {
window.HTMLElement = window.Element;
Expand Down
4 changes: 2 additions & 2 deletions packages/core-web/modules/Element.prototype.inert.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import OrdinaryCreateFromConstructor from "../helpers/_ESAbstract.OrdinaryCreate
import GetPrototypeFromConstructor from "../helpers/_ESAbstract.GetPrototypeFromConstructor";
import ToBoolean from "../helpers/_ESAbstract.ToBoolean";
import CreateDataPropertyOrThrow from "../helpers/_ESAbstract.CreateDataPropertyOrThrow";
import SameValueZero from "../helpers/_ESAbstract.SameValueZero";
import SameValueNonNumber from "../helpers/_ESAbstract.SameValueNonNumber";
import IteratorClose from "../helpers/_ESAbstract.IteratorClose";
import IteratorComplete from "../helpers/_ESAbstract.IteratorComplete";
import IteratorNext from "../helpers/_ESAbstract.IteratorNext";
import IteratorStep from "../helpers/_ESAbstract.IteratorStep";
import IteratorValue from "../helpers/_ESAbstract.IteratorValue";
import SameValueZero from "../helpers/_ESAbstract.SameValueZero";
import SameValueNonNumber from "../helpers/_ESAbstract.SameValueNonNumber";
import SameValue from "../helpers/_ESAbstract.SameValue";
(function(undefined) {
if (!("Element"in self&&"inert"in Element.prototype
Expand Down
12 changes: 12 additions & 0 deletions packages/core-web/modules/Element.prototype.nextElementSibling.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(function(undefined) {
if (!("document"in self&&"nextElementSibling"in document.documentElement
)) {
// Element.prototype.nextElementSibling
Object.defineProperty(Element.prototype, "nextElementSibling", {
get: function(){
var el = this.nextSibling;
while (el && el.nodeType !== 1) { el = el.nextSibling; }
return el;
}
});
}}).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(function(undefined) {
if (!("document"in self&&"previousElementSibling"in document.documentElement
)) {
// Element.prototype.previousElementSibling
Object.defineProperty(Element.prototype, 'previousElementSibling', {
get: function(){
var el = this.previousSibling;
while (el && el.nodeType !== 1) { el = el.previousSibling; }
return el;
}
});
}}).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.af.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("af").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("af").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.af
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.ak.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("ak").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("ak").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.ak
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.am.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("am").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("am").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.am
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.ar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("ar").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("ar").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.ar
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.as.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("as").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("as").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.as
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.asa.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("asa").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("asa").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.asa
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.ast.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("ast").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("ast").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.ast
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.az.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("az").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("az").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.az
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.be.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("be").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("be").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.be
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.bem.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("bem").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("bem").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.bem
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.bez.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("bez").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("bez").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.bez
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.bg.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("bg").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("bg").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.bg
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.bm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("bm").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("bm").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.bm
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.bn.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("bn").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("bn").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.bn
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.bo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("bo").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("bo").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.bo
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.br.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("br").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("br").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.br
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.brx.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("brx").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("brx").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.brx
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.bs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("bs").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("bs").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.bs
/* @generated */
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/modules/Intl.PluralRules.~locale.ca.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(undefined) {
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&1===Intl.PluralRules.supportedLocalesOf("ca").length
if (!("Intl"in this&&Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf&&function(){try{return 1===Intl.PluralRules.supportedLocalesOf("ca").length}catch(l){return!1}}
)) {
// Intl.PluralRules.~locale.ca
/* @generated */
Expand Down
Loading

0 comments on commit b21f5cf

Please sign in to comment.