You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

changelog.md 981B

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. ```