Skip to content

Commit

Permalink
update @mrhenry/polyfill-library (#1788)
Browse files Browse the repository at this point in the history
* housekeeping

* update polyfill-library

* prepare release
  • Loading branch information
romainmenke authored May 28, 2024
1 parent 5097544 commit 6e357da
Show file tree
Hide file tree
Showing 40 changed files with 886 additions and 726 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"scrollend"
]
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages := ./ ./packages/babel-plugin-core-web ./packages/core-web ./packages/core-web-example ./packages/core-web-generator ./packages/core-web-tests ./packages/pages ./packages/pages-worker
packages := ./packages/babel-plugin-core-web ./packages/core-web ./packages/core-web-example ./packages/core-web-generator ./packages/core-web-tests ./packages/pages ./packages/pages-worker

node_modules: ./package-lock.json
rm -rf ./node_modules
Expand Down
1,308 changes: 652 additions & 656 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
{
"name": "@mrhenry/core-web-root",
"engines": {
"node": ">=16"
},
"version": "0.0.0",
"private": true,
"workspaces": [
"packages/*"
],
"prettier": {
"useTabs": true
},
"version": "1.2.2",
"volta": {
"node": "20.2.0",
"npm": "9.6.7"
"node": "22.2.0"
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"focus":[{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"$_instance","isVariable":true},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"focusin","raw":"'focusin'"},"value":"focusin"},{"type":"Identifier","name":"$1","isVariable":true}]},"feature":"Event.focusin"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"$_instance","isVariable":true},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"focusin","raw":"'focusin'"},"value":"focusin"},{"type":"Identifier","name":"$1","isVariable":true},{"type":"Identifier","name":"$2","isVariable":true}]},"feature":"Event.focusin"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"$_instance","isVariable":true},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"focusout","raw":"'focusout'"},"value":"focusout"},{"type":"Identifier","name":"$1","isVariable":true}]},"feature":"Event.focusin"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"$_instance","isVariable":true},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"focusout","raw":"'focusout'"},"value":"focusout"},{"type":"Identifier","name":"$1","isVariable":true},{"type":"Identifier","name":"$2","isVariable":true}]},"feature":"Event.focusin"}],"hashc":[{"matcher":{"type":"CallExpression","callee":{"type":"Identifier","name":"addEventListener"},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"hashchange","raw":"'hashchange'"},"value":"hashchange"},{"type":"Identifier","name":"$1","isVariable":true}]},"feature":"Event.hashchange"},{"matcher":{"type":"CallExpression","callee":{"type":"Identifier","name":"addEventListener"},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"hashchange","raw":"'hashchange'"},"value":"hashchange"},{"type":"Identifier","name":"$1","isVariable":true},{"type":"Identifier","name":"$2","isVariable":true}]},"feature":"Event.hashchange"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"window"},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"hashchange","raw":"'hashchange'"},"value":"hashchange"},{"type":"Identifier","name":"$1","isVariable":true}]},"feature":"Event.hashchange"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"window"},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"hashchange","raw":"'hashchange'"},"value":"hashchange"},{"type":"Identifier","name":"$1","isVariable":true},{"type":"Identifier","name":"$2","isVariable":true}]},"feature":"Event.hashchange"}],"visib":[{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"document"},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"visibilitychange","raw":"'visibilitychange'"},"value":"visibilitychange"},{"type":"Identifier","name":"$1","isVariable":true}]},"feature":"document.visibilityState"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"document"},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"visibilitychange","raw":"'visibilitychange'"},"value":"visibilitychange"},{"type":"Identifier","name":"$1","isVariable":true},{"type":"Identifier","name":"$2","isVariable":true}]},"feature":"document.visibilityState"}],"templ":[{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"document"},"computed":false,"property":{"type":"Identifier","name":"createElement"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"template","raw":"'template'"},"value":"template"}]},"feature":"HTMLTemplateElement"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"document"},"computed":false,"property":{"type":"Identifier","name":"createElement"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"template","raw":"'template'"},"value":"template"},{"type":"Identifier","name":"$1","isVariable":true}]},"feature":"HTMLTemplateElement"}]}
{"focus":[{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"$_instance","isVariable":true},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"focusin","raw":"'focusin'"},"value":"focusin"},{"type":"Identifier","name":"$1","isVariable":true}]},"feature":"Event.focusin"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"$_instance","isVariable":true},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"focusin","raw":"'focusin'"},"value":"focusin"},{"type":"Identifier","name":"$1","isVariable":true},{"type":"Identifier","name":"$2","isVariable":true}]},"feature":"Event.focusin"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"$_instance","isVariable":true},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"focusout","raw":"'focusout'"},"value":"focusout"},{"type":"Identifier","name":"$1","isVariable":true}]},"feature":"Event.focusin"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"$_instance","isVariable":true},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"focusout","raw":"'focusout'"},"value":"focusout"},{"type":"Identifier","name":"$1","isVariable":true},{"type":"Identifier","name":"$2","isVariable":true}]},"feature":"Event.focusin"}],"hashc":[{"matcher":{"type":"CallExpression","callee":{"type":"Identifier","name":"addEventListener"},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"hashchange","raw":"'hashchange'"},"value":"hashchange"},{"type":"Identifier","name":"$1","isVariable":true}]},"feature":"Event.hashchange"},{"matcher":{"type":"CallExpression","callee":{"type":"Identifier","name":"addEventListener"},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"hashchange","raw":"'hashchange'"},"value":"hashchange"},{"type":"Identifier","name":"$1","isVariable":true},{"type":"Identifier","name":"$2","isVariable":true}]},"feature":"Event.hashchange"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"window"},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"hashchange","raw":"'hashchange'"},"value":"hashchange"},{"type":"Identifier","name":"$1","isVariable":true}]},"feature":"Event.hashchange"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"window"},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"hashchange","raw":"'hashchange'"},"value":"hashchange"},{"type":"Identifier","name":"$1","isVariable":true},{"type":"Identifier","name":"$2","isVariable":true}]},"feature":"Event.hashchange"}],"scrol":[{"matcher":{"type":"CallExpression","callee":{"type":"Identifier","name":"addEventListener"},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"scrollend","raw":"'scrollend'"},"value":"scrollend"},{"type":"Identifier","name":"$1","isVariable":true}]},"feature":"Event.scrollend"},{"matcher":{"type":"CallExpression","callee":{"type":"Identifier","name":"addEventListener"},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"scrollend","raw":"'scrollend'"},"value":"scrollend"},{"type":"Identifier","name":"$1","isVariable":true},{"type":"Identifier","name":"$2","isVariable":true}]},"feature":"Event.scrollend"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"$_instance","isVariable":true},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"scrollend","raw":"'scrollend'"},"value":"scrollend"},{"type":"Identifier","name":"$1","isVariable":true}]},"feature":"Event.scrollend"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"$_instance","isVariable":true},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"scrollend","raw":"'scrollend'"},"value":"scrollend"},{"type":"Identifier","name":"$1","isVariable":true},{"type":"Identifier","name":"$2","isVariable":true}]},"feature":"Event.scrollend"}],"visib":[{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"document"},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"visibilitychange","raw":"'visibilitychange'"},"value":"visibilitychange"},{"type":"Identifier","name":"$1","isVariable":true}]},"feature":"document.visibilityState"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"document"},"computed":false,"property":{"type":"Identifier","name":"addEventListener"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"visibilitychange","raw":"'visibilitychange'"},"value":"visibilitychange"},{"type":"Identifier","name":"$1","isVariable":true},{"type":"Identifier","name":"$2","isVariable":true}]},"feature":"document.visibilityState"}],"templ":[{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"document"},"computed":false,"property":{"type":"Identifier","name":"createElement"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"template","raw":"'template'"},"value":"template"}]},"feature":"HTMLTemplateElement"},{"matcher":{"type":"CallExpression","callee":{"type":"MemberExpression","object":{"type":"Identifier","name":"document"},"computed":false,"property":{"type":"Identifier","name":"createElement"}},"arguments":[{"type":"StringLiteral","extra":{"rawValue":"template","raw":"'template'"},"value":"template"},{"type":"Identifier","name":"$1","isVariable":true}]},"feature":"HTMLTemplateElement"}]}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"Ab":[{"matcher":{"type":"Identifier","name":"AbortController"},"feature":"AbortController"}],"Au":[{"matcher":{"type":"Identifier","name":"AudioContext"},"feature":"AudioContext"}],"Bl":[{"matcher":{"type":"Identifier","name":"Blob"},"feature":"Blob"},{"matcher":{"type":"Identifier","name":"Blob"},"feature":"Blob"},{"matcher":{"type":"Identifier","name":"BlobBuilder"},"feature":"Blob"}],"Cu":[{"matcher":{"type":"Identifier","name":"CustomEvent"},"feature":"CustomEvent"}],"DO":[{"matcher":{"type":"Identifier","name":"DOMRect"},"feature":"DOMRect"},{"matcher":{"type":"Identifier","name":"DOMTokenList"},"feature":"DOMTokenList"},{"matcher":{"type":"Identifier","name":"DOMTokenList"},"feature":"DOMTokenList"}],"Do":[{"matcher":{"type":"Identifier","name":"DocumentFragment"},"feature":"DocumentFragment"}],"Ev":[{"matcher":{"type":"Identifier","name":"Event"},"feature":"Event"},{"matcher":{"type":"Identifier","name":"EventSource"},"feature":"EventSource"}],"HT":[{"matcher":{"type":"Identifier","name":"HTMLDocument"},"feature":"HTMLDocument"},{"matcher":{"type":"Identifier","name":"HTMLPictureElement"},"feature":"HTMLPictureElement"},{"matcher":{"type":"Identifier","name":"HTMLTemplateElement"},"feature":"HTMLTemplateElement"},{"matcher":{"type":"Identifier","name":"HTMLTemplateElement"},"feature":"HTMLTemplateElement"}],"In":[{"matcher":{"type":"Identifier","name":"IntersectionObserver"},"feature":"IntersectionObserver"},{"matcher":{"type":"Identifier","name":"IntersectionObserverEntry"},"feature":"IntersectionObserverEntry"},{"matcher":{"type":"Identifier","name":"IntersectionObserverEntry"},"feature":"IntersectionObserverEntry"}],"ma":[{"matcher":{"type":"Identifier","name":"matchMedia"},"feature":"MediaQueryList.prototype.addEventListener"},{"matcher":{"type":"Identifier","name":"matchMedia"},"feature":"matchMedia"},{"matcher":{"type":"Identifier","name":"matchMedia"},"feature":"matchMedia"}],"Me":[{"matcher":{"type":"Identifier","name":"MediaQueryList"},"feature":"MediaQueryList.prototype.addEventListener"},{"matcher":{"type":"Identifier","name":"MediaQueryList"},"feature":"matchMedia"}],"Mu":[{"matcher":{"type":"Identifier","name":"MutationObserver"},"feature":"MutationObserver"}],"Re":[{"matcher":{"type":"Identifier","name":"ResizeObserver"},"feature":"ResizeObserver"},{"matcher":{"type":"Identifier","name":"Request"},"feature":"fetch"},{"matcher":{"type":"Identifier","name":"Response"},"feature":"fetch"}],"Te":[{"matcher":{"type":"Identifier","name":"TextEncoder"},"feature":"TextEncoder"},{"matcher":{"type":"Identifier","name":"TextDecoder"},"feature":"TextDecoder"}],"Us":[{"matcher":{"type":"Identifier","name":"UserTiming"},"feature":"UserTiming"}],"at":[{"matcher":{"type":"Identifier","name":"atob"},"feature":"atob"}],"co":[{"matcher":{"type":"Identifier","name":"console"},"feature":"console"}],"de":[{"matcher":{"type":"Identifier","name":"devicePixelRatio"},"feature":"devicePixelRatio"}],"fe":[{"matcher":{"type":"Identifier","name":"fetch"},"feature":"fetch"},{"matcher":{"type":"Identifier","name":"fetch"},"feature":"fetch"}],"He":[{"matcher":{"type":"Identifier","name":"Headers"},"feature":"fetch"}],"Bo":[{"matcher":{"type":"Identifier","name":"Body"},"feature":"fetch"}],"re":[{"matcher":{"type":"Identifier","name":"requestAnimationFrame"},"feature":"requestAnimationFrame"},{"matcher":{"type":"Identifier","name":"requestIdleCallback"},"feature":"requestIdleCallback"}],"Sh":[{"matcher":{"type":"Identifier","name":"ShadyDOM"},"feature":"~shadydom"},{"matcher":{"type":"Identifier","name":"ShadyCSS"},"feature":"~shadycss-scoping-shim"}],"sh":[{"matcher":{"type":"Identifier","name":"shadowRoot"},"feature":"~shadydom"}],"sc":[{"matcher":{"type":"Identifier","name":"scroll"},"feature":"scroll"},{"matcher":{"type":"Identifier","name":"scrollBy"},"feature":"scrollBy"},{"matcher":{"type":"Identifier","name":"scrollIntoView"},"feature":"scrollIntoView"}]}
{"Ab":[{"matcher":{"type":"Identifier","name":"AbortController"},"feature":"AbortController"}],"Au":[{"matcher":{"type":"Identifier","name":"AudioContext"},"feature":"AudioContext"}],"Bl":[{"matcher":{"type":"Identifier","name":"Blob"},"feature":"Blob"},{"matcher":{"type":"Identifier","name":"Blob"},"feature":"Blob"},{"matcher":{"type":"Identifier","name":"BlobBuilder"},"feature":"Blob"}],"Cu":[{"matcher":{"type":"Identifier","name":"CustomEvent"},"feature":"CustomEvent"}],"DO":[{"matcher":{"type":"Identifier","name":"DOMRect"},"feature":"DOMRect"},{"matcher":{"type":"Identifier","name":"DOMTokenList"},"feature":"DOMTokenList"},{"matcher":{"type":"Identifier","name":"DOMTokenList"},"feature":"DOMTokenList"}],"Do":[{"matcher":{"type":"Identifier","name":"DocumentFragment"},"feature":"DocumentFragment"}],"Ev":[{"matcher":{"type":"Identifier","name":"Event"},"feature":"Event"},{"matcher":{"type":"Identifier","name":"EventSource"},"feature":"EventSource"}],"HT":[{"matcher":{"type":"Identifier","name":"HTMLDocument"},"feature":"HTMLDocument"},{"matcher":{"type":"Identifier","name":"HTMLPictureElement"},"feature":"HTMLPictureElement"},{"matcher":{"type":"Identifier","name":"HTMLTemplateElement"},"feature":"HTMLTemplateElement"},{"matcher":{"type":"Identifier","name":"HTMLTemplateElement"},"feature":"HTMLTemplateElement"}],"In":[{"matcher":{"type":"Identifier","name":"IntersectionObserver"},"feature":"IntersectionObserver"},{"matcher":{"type":"Identifier","name":"IntersectionObserverEntry"},"feature":"IntersectionObserverEntry"},{"matcher":{"type":"Identifier","name":"IntersectionObserverEntry"},"feature":"IntersectionObserverEntry"}],"ma":[{"matcher":{"type":"Identifier","name":"matchMedia"},"feature":"MediaQueryList.prototype.addEventListener"},{"matcher":{"type":"Identifier","name":"matchMedia"},"feature":"matchMedia"},{"matcher":{"type":"Identifier","name":"matchMedia"},"feature":"matchMedia"}],"Me":[{"matcher":{"type":"Identifier","name":"MediaQueryList"},"feature":"MediaQueryList.prototype.addEventListener"},{"matcher":{"type":"Identifier","name":"MediaQueryList"},"feature":"matchMedia"}],"Mu":[{"matcher":{"type":"Identifier","name":"MutationObserver"},"feature":"MutationObserver"}],"Re":[{"matcher":{"type":"Identifier","name":"ResizeObserver"},"feature":"ResizeObserver"},{"matcher":{"type":"Identifier","name":"Request"},"feature":"fetch"},{"matcher":{"type":"Identifier","name":"Response"},"feature":"fetch"}],"Te":[{"matcher":{"type":"Identifier","name":"TextEncoder"},"feature":"TextEncoder"},{"matcher":{"type":"Identifier","name":"TextDecoder"},"feature":"TextDecoder"}],"Us":[{"matcher":{"type":"Identifier","name":"UserTiming"},"feature":"UserTiming"}],"at":[{"matcher":{"type":"Identifier","name":"atob"},"feature":"atob"}],"co":[{"matcher":{"type":"Identifier","name":"console"},"feature":"console"}],"de":[{"matcher":{"type":"Identifier","name":"devicePixelRatio"},"feature":"devicePixelRatio"}],"fe":[{"matcher":{"type":"Identifier","name":"fetch"},"feature":"fetch"},{"matcher":{"type":"Identifier","name":"fetch"},"feature":"fetch"}],"He":[{"matcher":{"type":"Identifier","name":"Headers"},"feature":"fetch"}],"Bo":[{"matcher":{"type":"Identifier","name":"Body"},"feature":"fetch"}],"re":[{"matcher":{"type":"Identifier","name":"requestAnimationFrame"},"feature":"requestAnimationFrame"},{"matcher":{"type":"Identifier","name":"requestIdleCallback"},"feature":"requestIdleCallback"}],"Sh":[{"matcher":{"type":"Identifier","name":"ShadyDOM"},"feature":"~shadydom"},{"matcher":{"type":"Identifier","name":"ShadyCSS"},"feature":"~shadycss-scoping-shim"}],"sh":[{"matcher":{"type":"Identifier","name":"shadowRoot"},"feature":"~shadydom"}],"sc":[{"matcher":{"type":"Identifier","name":"scroll"},"feature":"scroll"},{"matcher":{"type":"Identifier","name":"scrollBy"},"feature":"scrollBy"},{"matcher":{"type":"Identifier","name":"scrollTo"},"feature":"scrollTo"},{"matcher":{"type":"Identifier","name":"scrollIntoView"},"feature":"scrollIntoView"}]}

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 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": "1.2.2",
"version": "1.2.3",
"description": "browser feature polyfills as a babel plugin",
"main": "lib/index.js",
"author": "Simon Menke <[email protected]>",
Expand Down
Loading

0 comments on commit 6e357da

Please sign in to comment.