What's new in slacker 0.7.0 ?

Fri 09 March 2012
  • ANN tags:
  • clojure
  • slacker published: true comments: true

I just released [slacker "0.7.0"] to clojars. This is the first release after my presentation on the Clojure China Meetup. lbt05 contributed an ACL module to slacker, which is the most significant feature in this release.

The ACL module provides a simple DSL to define access rules.

[cc lang="clojure"]
(use 'slacker.acl)
(use 'slacker.server)

(defrules myrule
(allow ["10.60.15.*"]))

(start-slacker-server ...
:acl myrule)
[/cc]

"myrule" defines a limited access control list. Only clients from IP segment 10.60.15.* could access the slacker service.

And there are also minor enhancements in this release:

  • Content compression, new content type :deflate-carb :deflate-json and :deflate-clj
  • In debug mode, server side stacktraces are printed on client
  • Zookeeper node path refined
  • New options in use-remote, :only and :exclude
  • Cheshire used as json library

slacker 0.7.0 will be the last version on clojure 1.2 . As aleph 0.2.1 is coming near, we will migrate to clojure 1.3 as soon as possible. If you like to taste slacker on your 1.3 application now, there is a 0.7.1-SNAPSHOT available.