Skip to content

chore(#780): move tree-sitter-xpath into separate repo#784

Merged
garethbowen merged 2 commits intomainfrom
780-remove-tree-sitter-xpath
Apr 24, 2026
Merged

chore(#780): move tree-sitter-xpath into separate repo#784
garethbowen merged 2 commits intomainfrom
780-remove-tree-sitter-xpath

Conversation

@garethbowen
Copy link
Copy Markdown
Collaborator

@garethbowen garethbowen commented Apr 23, 2026

Closes #780

I have verified this PR works in these browsers (latest versions):

  • Chrome
  • Firefox
  • Safari (macOS)
  • Safari (iOS)
  • Chrome for Android
  • Not applicable

What else has been done to verify that this works as intended?

Why is this the best possible solution? Were any other approaches considered?

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

Do we need any specific form for testing your changes? If so, please attach one.

What's changed

@garethbowen garethbowen requested a review from latin-panda April 23, 2026 05:29
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 23, 2026

🦋 Changeset detected

Latest commit: def624e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@getodk/common Minor
@getodk/xpath Minor
@getodk/web-forms Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Collaborator

@latin-panda latin-panda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So happy to see this extracted from the repo ✨

Can this be removed too: tsconfig.tools.json?

Approving now to unblock, since the suggestions below are minor.

Comment thread .github/workflows/ci.yml Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this comment still needed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's not needed as it's caching the build output which is now just part of node_modules. Removed.

"devDependencies": {
"@babel/core": "^7.28.5",
"@getodk/tree-sitter-xpath": "0.2.2",
"@getodk/tree-sitter-xpath": "^0.2.2",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need the same in xforms-engine, right?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Done.

Comment thread package.json Outdated
Comment on lines 74 to 77
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any chance these 2 can be removed or moved somehow to the new tree-sitter repo? That way, we only include ODK's tree-sitter.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I think so. I'm cautious because of the web-tree-sitter peerdependency. Because WF has to list it as a dependency I don't think the resolutions from tree-sitter-xpath will be respected. I've removed them and nothing has changed in the lock file so I think we're good to go for now at least - if it breaks in the future we can add them back.

@garethbowen garethbowen merged commit 024287c into main Apr 24, 2026
50 checks passed
@garethbowen garethbowen deleted the 780-remove-tree-sitter-xpath branch April 24, 2026 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move tree-sitter-xpath package into its own repo

2 participants