# digitaleventqueue-test

> Digital Event Queue

Latest version **0.1.2** (published 2017-04-14) · LGPL license · 0 weekly downloads

## Install

```sh
npm install digitaleventqueue-test
pnpm add digitaleventqueue-test
yarn add digitaleventqueue-test
bun add digitaleventqueue-test
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2017-04-14 |
| First published | 2017-04-14 |
| Weekly downloads | 0 |
| License | LGPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Martijn Schoenmakers |
| Maintainers | adversitement.martijnschoenmakers |

## Links

- npm: https://www.npmjs.com/package/digitaleventqueue-test
- Homepage: https://bitbucket.org/adversitement/deq#readme
- npm.io page: https://npm.io/package/digitaleventqueue-test

## Recent versions

- 0.1.2 (latest) — 2017-04-14

## README

# 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](./doc/DEQ-commands.md) which is to be found in the [/doc](./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 to 
 `command: "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](mailto: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](./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

---
_Source: https://npm.io/package/digitaleventqueue-test · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
