on text-jsstring help sign in
servant-reflex/ChangeLog.md
52 lines 1.9 kB history raw
10.3.4
2-----
4Add selenium-based test suite
60.3.3
7-----
9- Fix encoding issue: Explicitly escape reserved characters from path pieces and query parameters
120.3.2
13-----
15- **Addition of 'Servant.Reflex.Common.Req.ClientOpts'** which
16allows the users to apply a final adjustment to Requests before
17thery are sent, such as setting the 'withCredentials' flag
18or print the Request to the console for debugging
19[PR #47](https://github.com/imalsogreg/servant-reflex/pull/47)
210.3
22---
24- **Addition of the 'Servant.Reflex.Multi' module** which allows the user
25to choose some '(Applicative f, Traversable f) => f' for collecting
26endpoint parameters. The traversable instance is used for passing
27multiple 'XhrRequest's in response to a single event trigger. The
28Applicative instance is used to combine parameters. For example,
29'Capture "id" Name :> QueryParam "greeting" Text :> Get '[JSON] Text'
30will generate a client function:
31`Dynamic t (f Name) -> Dynamic t (f greeting) -> Event t tag ->
32 m (Event t (f (ReqResult tag Text)))`
33Calling that function with 'f' chosen to be list ('[]'), this call
34`clientFun
35(constDyn ["Greg", "Bernie"])
36(constDyn ["Greetings", "Hey"])
37trigger`
38would produce four XhrRequests per 'trigger' event, one for each
39combination of possible parameters, and one response event
40would carry a list of the four responses.
41A 'zip-wise' combination of the parameters can be chosen with
42a different applicative wrapper: 'ZipList'
44- **Event tags**. A new type parameter lets users choose a payload
45value to attach to outgoing requests at the point of triggering,
46and which is embedded in the response, allowing individual
47request-response pairs to be followed. The response's tag has been
48added to each constructor `ReqResult tag a` type.
50- **Improved Unicode support** Thanks to Schell Scivally
51(https://github.com/schell) for identifying and fixing a UTF-8
52encoding bug!