There is a templates/ dir to solve some of this.
Versions with x-publish.fullApi: true (currently 18) are generated from the
full-API templates in templates/full/ and export the full API
(parse, parsePlPgSQL, scan, fingerprint, normalize + sync variants);
the other versions use the slim (parse-only) templates.
Each version's libpg_query source (repo, branch/tag and exact commit) comes from
x-publish in its package.json, so copy:templates regenerates every Makefile
as-is β 15/17/18 point at constructive-io/libpg_query branches, pinned by commit.
- All
versions/*/test/errors.test.jsfiles are identical (324 lines each) - All
versions/*/test/parsing.test.jsfiles are identical (89 lines each) - Recommendation: Consider using the template approach mentioned by the user
versions/*/src/index.tsare nearly identical except for version numbersversions/*/src/wasm_wrapper.care identicalversions/*/Makefilediffer only in:LIBPG_QUERY_REPO/LIBPG_QUERY_TAG/LIBPG_QUERY_COMMIT- Version 13 has an extra emscripten patch
- Version 13 applies an extra patch:
emscripten_disable_spinlocks.patch - Other versions don't have this patch
- Status: Patch file exists and is likely needed for v13 compatibility