Commit f1acf94
Abstract esprima dependency with foresta.parse() and foresta.query() API
- Add foresta.parse() to parse JavaScript code without requiring users to import esprima
- Add foresta.query() convenience method for one-line parse and query
- Update all examples to use new API (no more esprima imports needed)
- Add 16 new tests for the new API methods (73 total tests passing)
- Update README with comprehensive API documentation
- Update GitHub Actions CI to explicitly run build step
- Maintain full backward compatibility with traditional constructor API
Co-authored-by: joelmartinez <90380+joelmartinez@users.noreply.github.com>1 parent 7f94253 commit f1acf94
6 files changed
Lines changed: 405 additions & 128 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
0 commit comments