Skip to content

Commit f1acf94

Browse files
Copilotjoelmartinez
andcommitted
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

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- name: Install dependencies
2929
run: npm ci
3030

31+
- name: Build
32+
run: npm run build
33+
3134
- name: Run tests
3235
run: npm test
3336

0 commit comments

Comments
 (0)