Renamed to bellroy/elm-eventstream. It is published under that name, and new versions come out there.
Versions published as tricycle/elm-eventstream still install under that name. 2 versions of 3 come from the new location (see their notes). 1 version could not be recovered and cannot be installed.
Rerouted (cache, verified). The original is gone. This copy comes from a Lamdera package cache made before it went. The Lamdera package server serves a copy recovered from a Lamdera package cache from 2021-02-13.
What we checked: Rebuilt from the unpacked sources in a Lamdera package cache (5 copies agree), which Elm only writes after the published SHA-1 checked out; elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, so its SHA-1 is not the published one.
The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.
Details · package.elm-lang.org's zip: https://github.com/tricycle/elm-eventstream/zipball/1.1.1/
Keep track of a stream of events and set triggers that send out outgoing events.
Currently in use by us to supply the Google Tag Managers Data Layer with safely encoded events.
Create an EventStream
Attempt to add a new event to the EventStream
The minimal expected structure of an event needs to look like;
{ "eventName": "YourEventName",
"eventData": "Data for which you supply a decoder that confirms it's validity and match"
}Get RawIncomingEvents that match query from the eventStream
Add a trigger to the EventStream
A structured error describing why your mutation to the EventStream failed. You can use this to give feedback to the developer who might be adding an unknown or misformed event.
Convert an EventStream error into a String that is nice for debugging.
The Matcher is currently an alias for the Core String type.
The Matcher allows for more advanced, event specific triggers to be set.
You might have an event A that contains a field name on which you want to place a specific trigger.
This could then look like A.someValue.
Please refer to the tests included for more examples
The EventStream holds the possible eventNames and matchers, triggers for outgoing events and ofcourse every past events