Skip to content

Commit 6fbaf74

Browse files
committed
v0.13.0
1 parent ea0e682 commit 6fbaf74

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## v0.13.0 / 2014 May 8
2+
3+
> This is a **major** release focused on simpler out-the-box setup + easier integration with a wide range of login/auth types.
4+
5+
* **BREAKING**: API fns removed: `chsk-type`, `chsk-open?`.
6+
* **BREAKING**: The `[:chsk/state]` event form has changed for added flexibility.
7+
* **NEW**: Added watchable, read-only `:state` atom to client-side `make-channel-socket!` fn result. Among other things, this atom contains any user-id provided by the server.
8+
* **NEW**: It is now possible to push server>user async events to clients _without_ a user-id by providing a `nil` user-id to the server-side `chsk-send!` fn (previously `nil` uids would throw an assertion error). In particular, this means it's now possible to broadcast to users that aren't logged in.
9+
* **NEW**: Server-side `make-channel-socket!` fn has picked up a `:csrf-token-fn` option which defaults to compatibility with the [Ring-Anti-Forgery](https://github.com/ring-clojure/ring-anti-forgery) middleware.
10+
* **NEW**: Clients are now entirely self configuring. It's no longer necessary to transfer any state (like csrf-token or user-id) from the server; this'll be done automatically on channel socket handshake.
11+
* **NEW**: Added a `chsk-reconnect!` API method that can be called to easily re-establish a channel socket connection after a login or auth change. **An example login procedure** has been added to the reference example project.
12+
* **CHANGE**: The example project now randomly selects `:ajax` or `:auto` connection mode.
13+
14+
As always, feedback welcome on any changes here. Have fun, cheers! - Peter
15+
16+
117
## v0.12.0 / 2014 May 1
218

319
* **NEW**: server- and client-side `start-chsk-router-loop!` fns now return a `(fn stop! [])`.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
**[API docs][]** | **[CHANGELOG][]** | [other Clojure libs][] | [Twitter][] | [contact/contributing](#contact--contributing) | current ([semantic][]) version:
22

33
```clojure
4-
[com.taoensso/sente "0.13.0-RC1"] ; Major usability improvements, some breaking changes
5-
[com.taoensso/sente "0.12.0"] ; Stable
4+
[com.taoensso/sente "0.13.0"] ; Major usability improvements, some breaking changes
65
```
76

87
# Sente, channel sockets for Clojure
@@ -51,7 +50,7 @@ So you can ignore the underlying protocol and deal directly with Sente's unified
5150
Add the necessary dependency to your [Leiningen][] `project.clj`. This'll provide your project with both the client (ClojureScript) + server (Clojure) side library code:
5251

5352
```clojure
54-
[com.taoensso/sente "0.13.0-RC1"]
53+
[com.taoensso/sente "0.13.0"]
5554
```
5655

5756
### On the server (Clojure) side

example-project/project.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject com.taoensso.examples/sente "0.13.0-SNAPSHOT"
1+
(defproject com.taoensso.examples/sente "0.13.0"
22
:description "Sente, reference web-app example project"
33
:url "https://github.com/ptaoussanis/sente"
44
:license {:name "Eclipse Public License"
@@ -15,7 +15,7 @@
1515
[org.clojure/clojurescript "0.0-2173"]
1616
[org.clojure/core.async "0.1.278.0-76b25b-alpha"]
1717
;;
18-
[com.taoensso/sente "0.13.0-SNAPSHOT"] ; <--- Sente
18+
[com.taoensso/sente "0.13.0"] ; <--- Sente
1919
[com.taoensso/timbre "3.2.1"]
2020
;;
2121
[http-kit "2.1.18"] ; <--- http-kit (currently required)

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject com.taoensso/sente "0.13.0-SNAPSHOT"
1+
(defproject com.taoensso/sente "0.13.0"
22
:author "Peter Taoussanis <https://www.taoensso.com>"
33
:description "Clojure channel sockets library"
44
:url "https://github.com/ptaoussanis/sente"

0 commit comments

Comments
 (0)