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

Aperta
#203 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@SearheiParkhamchuk ci sta già lavorando.

Dal 21/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
TypeScript
Stelle
34
Fork
5
Merge medio
2g 4h
PR unite (30g)
41

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di focusreactive/payload-plugins

Tutte le issue di focusreactive/payload-plugins

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.