Skip to content

v1.4.0

Latest

Choose a tag to compare

@camsong camsong released this 27 Feb 06:14
· 6 commits to master since this release

What's Changed

Bug Fix

  • crossorigin attribute value corrected: Previously hardcoded to the non-standard string 'true'. Now defaults to 'anonymous' (per HTML spec) when set to true, and also accepts explicit string values like 'use-credentials'. This is a backwards-compatible fix — existing users with crossorigin: true will now get the correct anonymous CORS behavior.

New Feature

  • fetchPriority option (#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 types field to package.json so 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