[translator] Re-extract the traversal engine into its own package

Open
#203 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@SearheiParkhamchuk is already working on this.

Since Oct 21, 2026.

Assessment

This issue has not been assessed yet.

Description

chore low priority translator

The traversal engine was built as a private package, then moved into the plugin at src/core/traversal/ — a published package cannot depend on a private one, and the engine was still changing week to week.

Once it settles, it goes back out: the same folder move, plus the package fields it needs to stand alone. Doing it while the languages were still being written would have meant publishing a moving target.

One review finding is still open against it and should be settled here or before: the context a language is entered with is typed as unknown, so every language narrows it by hand and every fixture casts. The convention now has a name on the plugin side, which is the half that can be checked; the engine's own half is not.

Depends on: the swap, after which the engine stops changing.

Not part of the next major (#192), and not scheduled against it. Publishing the engine turns
its interface — the address token type, the entry context type — into a promise, and that promise
is not worth making to the major's deadline. This lands after the major instead.

Meanwhile the engine is held apart inside the package: it sits at src/traversal, a lint zone
stops anything outside it importing past traversal/index.js and stops the engine itself reaching
above its own folder or touching a framework, and a scan test resolves each path to catch what a
glob cannot. That costs nothing and promises nothing, so what is left here is only the packaging
— and the interface question above, which is cheaper to settle before anything is published.

Dominant language
TypeScript
Stars
34
Forks
5
Avg merge
2d 4h
Merged PRs (30d)
41

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from focusreactive/payload-plugins

All issues in focusreactive/payload-plugins

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.