Download Latest Version v1.4.0 source code.tar.gz (6.1 kB)
Email in envelope

Get an email when there's a new version of Fetch JSONP

Home / v1.4.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-02-27 972 Bytes
v1.4.0 source code.tar.gz 2026-02-27 6.1 kB
v1.4.0 source code.zip 2026-02-27 10.6 kB
Totals: 3 Items   17.7 kB 0

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

Source: README.md, updated 2026-02-27