digitaleventqueue-test v0.1.2
DEQ README
Introduction
DEQ - Digital Event Queue - is a javascript prototype/object that is designed to be used to act as a queue for datalayers in event-driven datalayer implementations. It allows you to create multiple queues where you can push events to and where you can register listeners that will be notified when an event has occurred.
Commands, e.g. adding an event to the queue or registering a listerner for an event, can be pushed to the queue as if they are pushed to an array. This allows asynchronously adding events and registering listeners. More information about these commands can be found in the commands documentation which is to be found in the /doc folder.
Changelog
v1.1.2
Introduce history of events as property of the DEQ
As an additional information source to be used in debugging, we now introduced a history property in the DEQ object that
stores all the commands that are pushed to the DigitalEventQueue. This property history
is an array in which all
the commands are pushed just before they are evaluated.
v1.1.1
Introduction of a reference to the DEQ instance as third parameter for the handler function
The callback function now receives a reference to the DEQ instance as a third parameter. This might be useful in some usecases where the callback function needs more information about the current queue status. This is more reliable then directly using a reference to the window scoped variable, as it may be the case that the handler is called just before the creating of the DEQ object is finished. Using this reference for the DEQ queue is in such situations safe to use.
v1.1.0
Introduction of new syntax for parameters in the push method
The syntax of how commands are being pushed is updated, such that now it takes an object with the command and the arguments as key-value pairs. This should:
- make the syntax more easily readable,
- gives the developer the freedom to put the arguments in the order he/she prevers,
- makes it easier to work with optional arguments,
and allows easier future extensions of functionality, where arguments can more easily be added.
Also in this update the commands are now case insensitive, e.g.
command: "add event"
will function the equally tocommand: "ADD EVENT"
. *(Personal preference is the uppercase variant)
Contributors
The current version of DEQ is the result of efforts from the following contributors.
- Koen Crommentuijn koen.crommentuijn@adversitement.com
- Martijn Schoenmakers martijn.schoenmakers@adversitement.com
License
Adversitement Digital Event Queue. Copyright (c) 2016-2017: Insite Innovations and Properties B.V., Liessentstraat 9A, 5405 AH Uden, The Netherlands. Email: legal@adversitement.com. All rights reserved.
This software is licensed under terms which can be found at: https://bitbucket.org/adversitement/deq/src/master/license.txt These terms include the terms of the Lesser General Public License (LGPL), version 3, as published by the Free Software Foundation. The full LGPL license text can be found at: http://www.gnu.org/copyleft/lesser.html
7 years ago