Debian Codegraph @

scope-analyzer/CHANGELOG.md

raw
1 # scope-analyzer change log
2
3 All notable changes to this project will be documented in this file.
4
5 This project adheres to [Semantic Versioning](http://semver.org/).
6
7 ## 2.1.2 / 2021-10-05
8 * make `.parent` and `[kScope]` properties non-enumerable, fixing compatibility with `recast`. anecdotally a 20-30% performance regression.
9
10 you can pin to 2.1.1 if you need the 20% and don't need safe traversal of node properties.
11
12 ## 2.1.1 / 2020-03-06
13 * use `dash-ast` for faster tree walking. anecdotally results in a 10-20% analysis speedup.
14
15 ## 2.1.0 / 2020-03-06
16 * add `deleteScope()` and `clear()` methods to delete scope information from a single node or an entire tree. Thanks @fabiosantoscode!
17
18 ## 2.0.6 / 2020-03-05
19 * detect the `.value` part of a shorthand property as the variable reference, instead of the `.key` part.
20
21 This is a bugfix only for ASTs that were already modified prior to being crawled with scope-analyzer. Thanks @fabiosantoscode!
22
23 ## 2.0.5 / 2018-06-25
24 * detect `catch(param){}` bindings
25
26 ## 2.0.4 / 2018-05-22
27 * fix class method definition names being counted as references to outer variables.
28
29 ## 2.0.3 / 2018-04-20
30 * revert to custom walker, acorn.walk behaviour is different and not faster
31
32 ## 2.0.2 / 2018-04-20
33 * fix valid references that occur above a value is declared in source code
34
35 ## 2.0.1 / 2018-03-30
36 * always initialise scope on the root node, so that undeclared names can be attached
37
38 ## 2.0.0 / 2018-03-08
39
40 * add support for ES5 environments (Node 0.10+)
41 * `scan.getBinding()` now also returns bindings for undeclared identifiers. `binding.definition` will be undefined for undeclared identifiers.
42
43 ## 1.3.0 / 2018-01-13
44
45 * add `binding.remove(node)` to remove a reference to a binding from the list of references. use `binding.isReferenced()` to check if there are any references left.
46
47 ## 1.2.0 / 2018-01-02
48
49 * track uses of undeclared variable names. use `getUndeclaredNames()` on the root scope to get a list of undeclared names used in the AST.
50
51 ## 1.1.1 / 2018-01-02
52
53 * fix `import { a as b }` being counted as a reference to `a`
54
55 ## 1.1.0 / 2017-12-26
56
57 * account for import declarations
58 * rename `analyze` to `crawl` (analyze is still available as alias)
59 * some tests
60
61 ## 1.0.0 / 2017-11-15
62
63 * initial release