No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

changelog.md 981 B

hace 3 años
1234567891011121314151617181920212223242526272829303132333435
  1. ## Changelog
  2. ### v2.0.0
  3. **Breaking changes**
  4. - The main export now returns the compiled string, instead of the object returned from the compiler
  5. **Added features**
  6. - Adds a `.create` method to do what the main function did before v2.0.0
  7. ### v0.2.0
  8. 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.
  9. **Added features**
  10. - parser is exposed, so that expand-brackets parsers can be used by upstream parsers (like [micromatch][])
  11. - compiler is exposed, so that expand-brackets compilers can be used by upstream compilers
  12. - source maps
  13. **source map example**
  14. ```js
  15. var brackets = require('expand-brackets');
  16. var res = brackets('[:alpha:]');
  17. console.log(res.map);
  18. { version: 3,
  19. sources: [ 'brackets' ],
  20. names: [],
  21. mappings: 'AAAA,MAAS',
  22. sourcesContent: [ '[:alpha:]' ] }
  23. ```