
\begin{DoxyItemize}
\item Add {\ttfamily events.\+once} from Node.\+js 11.\+13.\+0.

To use this function, Promises must be supported in the environment. Use a polyfill like {\ttfamily es6-\/promise} if you support older browsers.
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_events_History_autotoc_md9292}{}\doxysection{3.\+1.\+0 (2020-\/01-\/08)}\label{md_sfcode_node_modules_events_History_autotoc_md9292}
{\ttfamily events} now matches the Node.\+js 11.\+12.\+0 API.


\begin{DoxyItemize}
\item pass through return value in wrapped {\ttfamily emitter.\+once()} listeners

Now, this works\+: \`{}\`{}`js emitter.\+once(\textquotesingle{}myevent', function () \{ return 1; \}); var listener = emitter.\+raw\+Listeners(\textquotesingle{}myevent\textquotesingle{})\mbox{[}0\mbox{]} assert(listener() === 1); \`{}\`{}{\ttfamily  Previously,}listener()\`{} would return undefined regardless of the implementation.

Ported from \href{https://github.com/nodejs/node/commit/acc506c2d2771dab8d7bba6d3452bc5180dff7cf}{\texttt{ https\+://github.\+com/nodejs/node/commit/acc506c2d2771dab8d7bba6d3452bc5180dff7cf}}
\item Reduce code duplication in listener type check (\href{https://github.com/Gozala/events/pull/67}{\texttt{ \#67}} by \href{https://github.com/friederbluemle}{\texttt{ @friederbluemle}}).
\item Improve {\ttfamily emitter.\+once()} performance in some engines
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_events_History_autotoc_md9293}{}\doxysection{3.\+0.\+0 (2018-\/05-\/25)}\label{md_sfcode_node_modules_events_History_autotoc_md9293}
{\bfseries{This version drops support for IE8.}} {\ttfamily events} no longer includes polyfills for ES5 features. If you need to support older environments, use an ES5 shim like \href{https://npmjs.com/package/es5-shim}{\texttt{ es5-\/shim}}. Both the shim and sham versions of es5-\/shim are necessary.


\begin{DoxyItemize}
\item Update to events code from Node.\+js 10.\+x
\begin{DoxyItemize}
\item (semver major) Adds {\ttfamily off()} method
\end{DoxyItemize}
\item Port more tests from Node.\+js
\item Switch browser tests to airtap, making things more reliable
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_events_History_autotoc_md9294}{}\doxysection{2.\+1.\+0 (2018-\/05-\/25)}\label{md_sfcode_node_modules_events_History_autotoc_md9294}

\begin{DoxyItemize}
\item add Emitter\+::raw\+Listeners from Node.\+js v9.\+4
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_events_History_autotoc_md9295}{}\doxysection{2.\+0.\+0 (2018-\/02-\/02)}\label{md_sfcode_node_modules_events_History_autotoc_md9295}

\begin{DoxyItemize}
\item Update to events code from node.\+js 8.\+x
\begin{DoxyItemize}
\item Adds {\ttfamily prepend\+Listener()} and {\ttfamily prepend\+Once\+Listener()}
\item Adds {\ttfamily event\+Names()} method
\item (semver major) Unwrap {\ttfamily once()} listeners in {\ttfamily listeners()}
\end{DoxyItemize}
\item copy tests from node.\+js
\end{DoxyItemize}

Note that this version doubles the gzipped size, jumping from 1.\+1\+KB to 2.\+1\+KB, due to new methods and runtime performance improvements. Be aware of that when upgrading.\hypertarget{md_sfcode_node_modules_events_History_autotoc_md9296}{}\doxysection{1.\+1.\+1 (2016-\/06-\/22)}\label{md_sfcode_node_modules_events_History_autotoc_md9296}

\begin{DoxyItemize}
\item add more context to errors if they are not instanceof Error
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_events_History_autotoc_md9297}{}\doxysection{1.\+1.\+0 (2015-\/09-\/29)}\label{md_sfcode_node_modules_events_History_autotoc_md9297}

\begin{DoxyItemize}
\item add Emitter\+::lister\+Count (to match node v4 api)
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_events_History_autotoc_md9298}{}\doxysection{1.\+0.\+2 (2014-\/08-\/28)}\label{md_sfcode_node_modules_events_History_autotoc_md9298}

\begin{DoxyItemize}
\item remove un-\/reachable code
\item update dev\+Deps
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_events_History_autotoc_md9299}{}\doxysubsection{1.\+0.\+1 / 2014-\/05-\/11}\label{md_sfcode_node_modules_events_History_autotoc_md9299}

\begin{DoxyItemize}
\item check for console.\+trace before using it
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_events_History_autotoc_md9300}{}\doxysubsection{1.\+0.\+0 / 2013-\/12-\/10}\label{md_sfcode_node_modules_events_History_autotoc_md9300}

\begin{DoxyItemize}
\item Update to latest events code from node.\+js 0.\+10
\item copy tests from node.\+js
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_events_History_autotoc_md9301}{}\doxysubsection{0.\+4.\+0 / 2011-\/07-\/03}\label{md_sfcode_node_modules_events_History_autotoc_md9301}

\begin{DoxyItemize}
\item Switching to graphquire@0.\+8.\+0
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_events_History_autotoc_md9302}{}\doxysubsection{0.\+3.\+0 / 2011-\/07-\/03}\label{md_sfcode_node_modules_events_History_autotoc_md9302}

\begin{DoxyItemize}
\item Switching to URL based module require.
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_events_History_autotoc_md9303}{}\doxysubsection{0.\+2.\+0 / 2011-\/06-\/10}\label{md_sfcode_node_modules_events_History_autotoc_md9303}

\begin{DoxyItemize}
\item Simplified package structure.
\item Graphquire for dependency management.
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_events_History_autotoc_md9304}{}\doxysubsection{0.\+1.\+1 / 2011-\/05-\/16}\label{md_sfcode_node_modules_events_History_autotoc_md9304}

\begin{DoxyItemize}
\item Unhandled errors are logged via console.\+error
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_events_History_autotoc_md9305}{}\doxysubsection{0.\+1.\+0 / 2011-\/04-\/22}\label{md_sfcode_node_modules_events_History_autotoc_md9305}

\begin{DoxyItemize}
\item Initial release 
\end{DoxyItemize}