So far we haven't written the primitive value handlers, but we're open to doing it if it looks like a good option.
There are two main reasons why we haven't done this so far:
1. We can't do much better than reading the plain text response and returning that (the plain values don't have any annotations that tell us whether they are numbers, strings, dates, etc). At that point, we're pretty much equivalent to reading the responseText
property of an XHR.
2. One of the nice things about datajs is how it can 'smooth out' differences, for example between reading from a local ATOM server to an other-domain JSON server. For primitive values however, JSONP may not work well. In particular, $count is always plain
text and there is no JSON-based representation. So perhaps it's better that we "promise less" in this case.
That said, there area also arguments for implementing this, such as not having to pull in an additional library to work around XHR differences or just the consistency of plugging this along with the dance of httpClient, handlers and such.
I'd love to hear your thoughts on this.