v0.3.0
Released on 2026-04-23.
- Cross-module
pub constimports. Apub constdeclared in one module can now be brought into scope viaimport m.{ NAME }or accessed via a qualifier (import mthenm.NAME). The compiler inlines the folded literal value at every use site in the importing module, so no Apex cross-class field reference is emitted. Lists, maps, and sets are supported alongside scalars. - Vertex project config file (
vertex.jsoncorvertex.json) at the project root. Fields:src(source directory),out(output directory, relative to project root),clean(delete.cls/.cls-meta.xmlinoutbefore writing). JSONC supports//and/* */comments plus trailing commas. When both files exist,vertex.jsoncwins with a warning. Full schema and defaults at vertex-run.github.io/tooling/config. vertex initsubcommand. Scaffolds a startervertex.jsoncwith the recommended defaults and inline comments. Refuses to overwrite an existingvertex.jsoncorvertex.json.
Changed
Section titled “Changed”vertex buildnow requires a config file at the project root. Missing file produces a hand-holding diagnostic pointing atvertex init. This makes the output location always visible in-project rather than buried in a compiler default.- Default output directory is now
force-app/main/vertex/classes(whatvertex initwrites) instead of<packageDirectories[0].path>/main/default/classes. Thesfdx-project.jsonpackageDirectoriesentry is no longer used to derive the output path. Users wiring a deploy should ensure apackageDirectoriesentry covers the configuredoutpath. - Default clean behavior flipped to
true. Safe under the new default output directory (Vertex-owned) and only deletes.cls/.cls-meta.xmlfiles, never unrelated files.
Removed
Section titled “Removed”- The
E162“cross-module const imports are not yet supported” diagnostic. Cross-modulepub constis now a fully supported feature, not an error. - The
--srcflag onvertex build. Source directory is configured via"src"invertex.jsonc. Passing--srcprints a hand-holding error.