UNPKG

fetch-jsonp

Version:

Fetch JSONP like a boss using Fetch API

74 lines (57 loc) 1.82 kB
1.4.0 / 2026-2-27 ================== * fix: crossorigin attribute now correctly defaults to 'anonymous' instead of 'true'; also accepts string values like 'use-credentials' * feat: add fetchPriority option support ('high' | 'low' | 'auto'), thanks to @trudbot #73 * chore: add types field to package.json for correct npm TS badge, thanks to @karlhorky #71 1.3.0 / 2023-7-6 ================== * allow applications to set crossorigin attribute, thanks to @stfsy 1.2.3 / 2022-9-13 ================== * Set values of options to be optional, thanks to @timothy-bailey-redbox 1.2.1 / 2021-8-17 ================== * Add referrerPolicy support, thanks to @kukushouhou #62 1.2.0 / 2021-8-16 ================== * Add nonce support, thanks to @tanzhangwen #57 1.1.1 / 2017-6-10 ================== * Fix script error when script request error, thanks to @wheatma 1.1.0 / 2017-6-7 ================== * Handle <script> error event, thanks to @michaelvial 1.0.7 / 2017-5-25 ================== * support custom charset on script * fix docs: properly document how to use jsonCallback and jsonpCallbackFunction options 1.0.6 / 2017-2-3 ================== * update typescript config 1.0.5 / 2016-12-29 ================== * update typescript support 1.0.4 / 2016-12-23 ================== * add typescript support 1.0.3 / 2016-12-04 ================== * add examples index-ie8.html * remove `es6-promise` dependent 1.0.2 / 2016-09-26 ================== * Use original url when Request error 1.0.1 / 2016-08-14 ================== * Format code * Update Readme 1.0.0 / 2015-11-19 ================== * Remove Bower support * Add jsonpCallback and jsonpCallbackFunction as options 0.9.2 / 2015-08-11 ================== * Remove global export of fetchJsonp 0.9.1 / 2015-08-11 ================== * Update removeScript fix legacy IE