\hypertarget{md_sfcode_node_modules_expand_brackets_changelog_autotoc_md9405}{}\doxysubsection{v2.\+0.\+0}\label{md_sfcode_node_modules_expand_brackets_changelog_autotoc_md9405}
{\bfseries{Breaking changes}}


\begin{DoxyItemize}
\item The main export now returns the compiled string, instead of the object returned from the compiler
\end{DoxyItemize}

{\bfseries{Added features}}


\begin{DoxyItemize}
\item Adds a {\ttfamily .create} method to do what the main function did before v2.\+0.\+0
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_expand_brackets_changelog_autotoc_md9406}{}\doxysubsection{v0.\+2.\+0}\label{md_sfcode_node_modules_expand_brackets_changelog_autotoc_md9406}
In addition to performance and matching improvements, the v0.\+2.\+0 refactor adds complete POSIX character class support, with the exception of equivalence classes and POSIX.\+2 collating symbols which are not relevant to node.\+js usage.

{\bfseries{Added features}}


\begin{DoxyItemize}
\item parser is exposed, so that expand-\/brackets parsers can be used by upstream parsers (like \mbox{[}micromatch\mbox{]}\mbox{[}\mbox{]})
\item compiler is exposed, so that expand-\/brackets compilers can be used by upstream compilers
\item source maps
\end{DoxyItemize}

{\bfseries{source map example}}


\begin{DoxyCode}{0}
\DoxyCodeLine{var brackets = require('expand-\/brackets');}
\DoxyCodeLine{var res = brackets('[:alpha:]');}
\DoxyCodeLine{console.log(res.map);}
\DoxyCodeLine{}
\DoxyCodeLine{\{ version: 3,}
\DoxyCodeLine{     sources: [ 'brackets' ],}
\DoxyCodeLine{     names: [],}
\DoxyCodeLine{     mappings: 'AAAA,MAAS',}
\DoxyCodeLine{     sourcesContent: [ '[:alpha:]' ] \} }

\end{DoxyCode}
 