Peter,

I just upgraded from Sente 0.15.1 to 1.0.0 and it looks like the values that 
come in ch-recv have changed format?

I used to have the following:

(go (loop [[op arg] (<! ch-recv)]
      (case op
        :chsk/recv (do-something-with arg)
        ...)))

But now I get a map back instead of a pair and have to do this:

(go (loop [{:keys [event} (<! ch-recv)]
      (let [[op arg] event]
        (case op
          :chsk/recv (do-something-with arg)
          ...))))

Is that an intentional change? I ask because you claimed the release was major 
but non-breaking - and this seems to be a breaking change...?

Sean

On Sep 2, 2014, at 7:28 AM, Peter Taoussanis <ptaoussa...@gmail.com> wrote:
> (All new releases are now on BreakVersioning, 
> https://github.com/ptaoussanis/encore/blob/master/BREAK-VERSIONING.md).
> 
> Sente - v1.0.0 / 2014 Sep 2 (today)
> ==================================
> Realtime web comms for Clojure/Script (think Socket.IO but with Transit & 
> core.async).
> https://github.com/ptaoussanis/sente/releases
> Notable recent changes: v1 release, optional Transit support, efficiency 
> improvements (perf+bandwidth).

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to