What's Changed
Bug Fix
crossoriginattribute value corrected: Previously hardcoded to the non-standard string'true'. Now defaults to'anonymous'(per HTML spec) when set totrue, and also accepts explicit string values like'use-credentials'. This is a backwards-compatible fix — existing users withcrossorigin: truewill now get the correctanonymousCORS behavior.
New Feature
fetchPriorityoption (#70, #73): Control the priority of the JSONP script request with'high','low', or'auto'. Widely supported in modern browsers (MDN) and safely ignored in unsupported browsers. Thanks to @trudbot!
Chore
- Added
typesfield topackage.jsonso npm correctly shows the TS badge instead of the DT badge (#71). Thanks to @karlhorky!
Full Changelog
https://github.com/camsong/fetch-jsonp/blob/master/HISTORY.md