Skip to content

Commit

Permalink
feat: Added support for 'requestidlecallback'
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Sep 20, 2018
1 parent 15390d5 commit f8df4bb
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ And, if you request `performance.now`, `date.now` will also be included since th
- performance.now
- blob
- requestanimationframe
- requestidlecallback
- url
- base64
- xhr
Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,26 @@
"polyfills-as-a-service"
],
"devDependencies": {
"@wessberg/rollup-plugin-di": "^1.0.86",
"@wessberg/scaffold": "^1.0.1",
"@wessberg/rollup-plugin-di": "^1.0.87",
"@wessberg/scaffold": "^1.0.4",
"@wessberg/ts-config": "^0.0.30",
"conventional-changelog-cli": "^2.0.5",
"husky": "latest",
"rollup": "^0.65.2",
"rollup": "^0.66.1",
"tslint": "^5.11.0",
"typescript": "^3.0.3",
"useragent-generator": "^1.1.0"
},
"dependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/core": "^7.1.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-stage-3": "^7.0.0",
"@babel/preset-typescript": "^7.0.0",
"@babel/preset-typescript": "^7.1.0",
"@types/file-type": "^5.2.1",
"@types/iltorb": "^2.3.0",
"@types/memory-fs": "^0.3.1",
"@types/memory-fs": "^0.3.2",
"@types/mime": "^2.0.0",
"@types/node": "^10.9.4",
"@types/node": "^10.10.1",
"@types/semver": "^5.5.0",
"@webcomponents/custom-elements": "^1.2.0",
"@webcomponents/shadydom": "^1.2.0",
Expand Down Expand Up @@ -100,14 +100,15 @@
"proxy-polyfill": "^0.3.0",
"regenerator-runtime": "^0.12.1",
"requestanimationframe": "0.0.23",
"requestidlecallback": "^0.3.0",
"semver": "^5.5.1",
"systemjs": "^0.21.4",
"temp-dir": "^1.0.0",
"toposort": "^2.0.2",
"tslib": "^1.9.3",
"url-polyfill": "^1.1.0",
"web-animations-js": "^2.3.1",
"whatwg-fetch": "^2.0.4",
"whatwg-fetch": "^3.0.0",
"xhr-polyfill": "^0.1.8",
"zone.js": "^0.8.26"
},
Expand Down
7 changes: 7 additions & 0 deletions src/constant/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ export const constant: IConstant = {
version: environment.NPM_PACKAGE_DEPENDENCIES_BLOB_POLYFILL,
dependencies: ["base64", "url"]
},
requestidlecallback: {
library: "requestidlecallback",
relativePaths: ["index.js"],
features: ["requestidlecallback"],
version: environment.NPM_PACKAGE_DEPENDENCIES_REQUESTIDLECALLBACK,
dependencies: ["requestanimationframe"]
},
requestanimationframe: {
library: "requestanimationframe",
relativePaths: ["app/requestAnimationFrame.js"],
Expand Down
1 change: 1 addition & 0 deletions src/environment/environment-defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const environmentDefaults = {
NPM_PACKAGE_DEPENDENCIES_PERFNOW: "",
NPM_PACKAGE_DEPENDENCIES_BLOB_POLYFILL: "",
NPM_PACKAGE_DEPENDENCIES_REQUESTANIMATIONFRAME: "",
NPM_PACKAGE_DEPENDENCIES_REQUESTIDLECALLBACK: "",
NPM_PACKAGE_DEPENDENCIES_URL_POLYFILL: "",
NPM_PACKAGE_DEPENDENCIES_OBJECT_FIT_IMAGES: "",
NPM_PACKAGE_DEPENDENCIES_CONSOLE_POLYFILL: "",
Expand Down
1 change: 1 addition & 0 deletions src/polyfill/polyfill-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export declare type PolyfillDealiasedName =
|"performance.now"
|"blob"
|"requestanimationframe"
|"requestidlecallback"
|"url"
|"base64"
|"xhr"
Expand Down

0 comments on commit f8df4bb

Please sign in to comment.