Skip to content

Releases: Shopify/turbograft

v0.2.2

22 Jun 15:47
Compare
Choose a tag to compare

Changes

  • #116 (Fixes obscure refresh-always / data-tg-refresh-always bug where these elements could seem to be lost)

v0.2.1

25 May 19:01
Compare
Choose a tag to compare

Changes

  • #109 (make redirect_via_turbolinks_to protected)
  • #113 (document updatePushState)
  • #115 (readme botany typo)
  • #117 (allow full-refresh to respond to 422)

v0.2.0

23 Nov 18:31
Compare
Choose a tag to compare

Changes

  • #108 (support data attrs)

v0.1.20

27 Oct 20:20
Compare
Choose a tag to compare

Changes

  • #94 (Allow passing request headers using Turbolinks.visit API)
  • #104 (Don’t set request_method cookie for GET requests)

v0.1.19

03 Jun 17:21
Compare
Choose a tag to compare

Changes

  • #90 (Fix build and deprecation warnings)
  • #93 (Fix safari html parsing bug using up-to-date code from turbolinks)

v0.0.18

22 Apr 15:52
Compare
Choose a tag to compare

Changes

  • #88 (add option to specify using native encoding)

V0.1.17

20 Mar 18:42
Compare
Choose a tag to compare

Changes

  • (#74) Optionally prevent PushState on Page.refresh without XHR
  • (#78) Replace long argument list with options hash for fetch/loadPage/etc
  • (#82) Add attribute that prevents serialization of a subtree

v0.1.16

12 Mar 17:12
Compare
Choose a tag to compare

Changes

  • (#78) Added a method, Page.onReplace(DOMnode, function). This allows the user of TurboGraft to register a function to be called exactly once when a specific node has been refreshed (be it a full page refresh, or a partial page refresh).

Example Usage

class MyFoo
  constructor: (@node) ->
    @bindSomeEventsOn(@node)
    Page.onReplace(@node, @unbindSomeEvents.bind(this)) # we want to clean up all the events we bound to prevent leaking

  unbindSomeEvents = ->
    ... # undo whatever we did in the `bindSomeEvents` function

v0.1.15

06 Mar 22:10
Compare
Choose a tag to compare

Changes

  • (#54) guard parentNode being null when walking DOM
  • (#76) DRY up remote handler
  • (#77) Remove nodes with jQuery if available

v0.1.14

09 Feb 15:34
Compare
Choose a tag to compare

Changes

  • (#67) Iteratively add form elements to form data, instead of using clone approach, in order to maintain not adding input which don't have name attribute, but remedy textfield related bugs which were introduced.
  • (#65) Add refresh-on-success-except attribute which allows for excepting sections of the page when refreshing on success