You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rslint parser is unmaintained and has a hard limit on how much code
it can parse.
This changes the internal parser so swc, which is maintained and production ready.
Instead of having untyped SyntaxNodes that allow free navigation within
the hierarchy, swc is rather based around typed AST nodes and a visitor pattern.
Some more code patterns are being covered by this change.
Last but not least, Scope extraction is now a fallible operation which is a breaking change.
Co-authored-by: Sebastian Zivota <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,19 @@
1
1
# Changelog
2
2
3
+
## Unreleased
4
+
5
+
### Features
6
+
7
+
- Handle getters, setters, non-identifier property names, and object literals in scope names. ([#13](https://github.com/getsentry/js-source-scopes/pull/13))
8
+
9
+
### Fixes
10
+
11
+
-`extract_scope_names` now returns an error if parsing fails, instead of an empty vector of scopes. ([#13](https://github.com/getsentry/js-source-scopes/pull/13))
12
+
13
+
### Internal
14
+
15
+
- Switch JS parser from rslint to swc, which is actively maintained. ([#13](https://github.com/getsentry/js-source-scopes/pull/13))
0 commit comments