Skip to content

Releases: youtube/spfjs

SPF 24 (v2.4.0)

23 Jun 17:25
Compare
Choose a tag to compare

The SPF 24 (v2.4.0) release includes the following features:

  • Custom headers can now be sent with requests (#390)
    • Set headers globally using the request-headers config
    • Set headers per-request using the headers option
  • Error events will now provide the full XHR object in addition
    to the message for more detail (#402)

This release fixes the following bugs:

  • Script and style tags with alternate mime types (e.g.
    <script type="application/json">) will no longer be silently
    removed during response processing (#400)

This release includes the following optimizations:

  • Releases now contain the updated docs at the tagged commit
    (#406)

SPF 23 (v2.3.2)

16 Mar 21:08
Compare
Choose a tag to compare

The SPF 23 (v2.3.2) release fixes the following bugs:

  • Skew between timing values from Date.now and performance.now
    is fixed by always preferring performance.now (#389)

SPF 23 (v2.3.1)

14 Jan 03:14
Compare
Choose a tag to compare

The SPF 23 (v2.3.1) release fixes the following bugs:

  • The "value" attribute of input elements in now correctly set (#359)
  • Reloads on history navigations (e.g. after an error) now work correctly
    when the URL contains a hash (#377)

SPF 23 (v2.3.0)

05 Oct 18:59
Compare
Choose a tag to compare

The SPF 23 (v2.3.0) release includes the following features:

  • Preconnecting to links is now supported (#124)
    • Include <link rel="spf-preconnect"> tags to preresolve DNS and open a
      connection early for decreased latency
  • Cached and prefetched state is now available for multipart responses (#333)
    • Use timing.spfCached and timing.spfPrefetched during part processing
  • As advanced option, XHR responseType="json" is now supported (#317)
    • This moves JSON parsing off of the main thread to reduce CPU contention
      but prevents processing chunked responses on-the-fly (and therefore
      eliminates much of the performance benefits of multipart responses).
      Set the advanced-response-type-json config to enable the feature.

This release fixes the following bugs:

  • Cached and prefetched responses are no longer delayed by 1s in WebKit
    browsers when in the background (#337)

This release includes the following optimizations:

  • Responses are now cached after parsing resources to avoid needing to parse
    them each time the response is used for navigation (#307)
  • Tests have been upgraded from Jasmine 1.3.1 to Jasmine 2.3.4 (#364)
    • Please re-run npm install after updating a local repo

SPF 22 (v2.2.0)

10 Apr 21:08
Compare
Choose a tag to compare

The SPF 22 (v2.2.0) release includes the following features:

  • Scroll position is restored on back/forward navigation (#263)
  • Scroll position is reset to top on new navigation (#285)

This release fixes the following bugs:

  • Updating a CSS file using manages style loading no longer fails if the <link> is not in the <head> (#278)
  • Navigating from a hash to non-hash URL on the same page (e.g. from /page#target to /page) no longer triggers a request (#314)

This release includes the following optimizations:

  • During development, running npm run reset will now fully remove all generated paths (#270)
  • Proper compilation flags are now set for the bootloader boot.js, returning it to its previous size of 1.5K gzipped (#304)

SPF 21 (v2.1.2)

28 Jan 21:11
Compare
Choose a tag to compare

This update to SPF 21 (v2.1.2) fixes the following bugs:

  • Ensure Resource Timing data is valid in Chrome 40 (#268)
  • Always use the most recent Resource Timing data for a URL (#268)

SPF 21 (v2.1.1)

12 Dec 23:49
Compare
Choose a tag to compare

The SPF 21 (v2.1.1) release includes the following features:

  • Improved handling of URL identifiers and file extensions (#222)
  • Support for configurable persistant query parameters (#134)

Also, if you build SPF from source, this release now uses npm to build and manage dependencies instead of a make and custom scripts (#7).

SPF 21 (v2.1.0)

12 Dec 23:44
Compare
Choose a tag to compare

Note: Due to a mistake cutting the v2.1.0 release, this version is missing one of the intended features (#222). Please use v2.1.1 instead: https://github.com/youtube/spfjs/releases/tag/v2.1.1

SPF 20 (v2.0.1)

03 Dec 22:27
Compare
Choose a tag to compare

This point release fixes the following bugs:

  • IE 8 throws "invalid argument" when loading resources (#175)

SPF 20 (v2.0.0)

24 Nov 21:21
Compare
Choose a tag to compare

The SPF 20 (v2.0.0) release is the first major distribution release since open-sourcing.

This release includes the following major changes:

  • Parsing and processing of JS and CSS in all response fields (#24)
  • Standardized model of JS and CSS execution (#25)
  • UMD compatibility (#40)

the following major bug fixes:

  • Allow navigation to the current URL (#126)

and other fixes and enhancements.

This release also includes ready-to-use files built for distribution for the first time, which can now be easily installed with popular package managers:

  • npm install spfwill place files in node_modules/spf/dist/
  • bower install spf will place files in bower_components/spf/dist/

Finally, distribution releases are on various CDNs, such as: