File tree Expand file tree Collapse file tree 4 files changed +6
-14
lines changed
Expand file tree Collapse file tree 4 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' hibp ' : major
3+ ---
4+
5+ Drop support for browsers without native Promise implementations. In reality, this likely didn't change anything.
Original file line number Diff line number Diff line change @@ -116,11 +116,6 @@ happen).
116116
117117#### Using in the browser
118118
119- ** Prerequisite:** This module requires a Promise implementation to exist in the
120- global namespace prior to being loaded. Therefore, to facilitate usage in
121- [ browsers without native Promise support] [ caniuse-promise ] , you are responsible
122- for providing a polyfill. I recommend [ es6-promise] [ es6-promise ] .
123-
124119You have several options for using this library in a browser environment:
125120
1261211 . Bundled
@@ -216,8 +211,6 @@ This module is distributed under the [MIT License][license].
216211[ caniuse-esm ] : https://caniuse.com/#feat=es6-module
217212[ js-modules ] : https://v8.dev/features/modules#browser
218213[ webpack ] : https://webpack.js.org
219- [ caniuse-promise ] : https://caniuse.com/#search=promise
220- [ es6-promise ] : https://github.com/stefanpenner/es6-promise
221214[ runkit ] : https://runkit.com/npm/hibp
222215[ pwned ] : https://github.com/wKovacs64/pwned
223216[ pulls ] : https://github.com/wKovacs64/hibp/pulls
Original file line number Diff line number Diff line change @@ -113,12 +113,6 @@ happen).
113113
114114#### Using in the browser
115115
116- ** Prerequisite:** This module requires a Promise implementation to exist in the
117- global namespace prior to being loaded. Therefore, to facilitate usage in
118- [ browsers without native Promise support] ( https://caniuse.com/#search=promise ) ,
119- you are responsible for providing a polyfill. I recommend
120- [ es6-promise] ( https://github.com/stefanpenner/es6-promise ) .
121-
122116You have several options for using this library in a browser environment:
123117
1241181 . Bundled
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ export default [
128128 {
129129 modules : 'umd' ,
130130 targets : {
131- browsers : [ '> 1% ' , 'last 2 versions ' ] ,
131+ browsers : [ 'defaults ' , 'supports promises ' ] ,
132132 } ,
133133 } ,
134134 ] ,
You can’t perform that action at this time.
0 commit comments