Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
981 bytes
|
Line | |
---|
1 | ## Changelog
|
---|
2 |
|
---|
3 | ### v2.0.0
|
---|
4 |
|
---|
5 | **Breaking changes**
|
---|
6 |
|
---|
7 | - The main export now returns the compiled string, instead of the object returned from the compiler
|
---|
8 |
|
---|
9 | **Added features**
|
---|
10 |
|
---|
11 | - Adds a `.create` method to do what the main function did before v2.0.0
|
---|
12 |
|
---|
13 | ### v0.2.0
|
---|
14 |
|
---|
15 | 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.
|
---|
16 |
|
---|
17 | **Added features**
|
---|
18 |
|
---|
19 | - parser is exposed, so that expand-brackets parsers can be used by upstream parsers (like [micromatch][])
|
---|
20 | - compiler is exposed, so that expand-brackets compilers can be used by upstream compilers
|
---|
21 | - source maps
|
---|
22 |
|
---|
23 | **source map example**
|
---|
24 |
|
---|
25 | ```js
|
---|
26 | var brackets = require('expand-brackets');
|
---|
27 | var res = brackets('[:alpha:]');
|
---|
28 | console.log(res.map);
|
---|
29 |
|
---|
30 | { version: 3,
|
---|
31 | sources: [ 'brackets' ],
|
---|
32 | names: [],
|
---|
33 | mappings: 'AAAA,MAAS',
|
---|
34 | sourcesContent: [ '[:alpha:]' ] }
|
---|
35 | ```
|
---|
Note:
See
TracBrowser
for help on using the repository browser.