Skip to content

v0.4.0

Latest

Choose a tag to compare

@cesarParra cesarParra released this 24 Apr 19:33

Added

  • global access modifier for cross-namespace visibility. A third tier
    alongside private (default) and pub, global emits the Apex global
    keyword required by managed-package APIs, @RestResource classes,
    @InvocableMethod methods used in subscribers, and
    Batchable/Schedulable/Queueable classes exposed cross-namespace.
    Applies to fn, type, opaque type, and const declarations. When
    any declaration in a module is global, the generated outer Apex class
    is emitted as global too. Composes with the sharing annotations:
    global with sharing class, global without sharing class, and
    global inherited sharing class are all valid. Full reference at
    vertex-run.github.io/reference/visibility.
  • REST resources as a first-class language feature. A .vtx file
    annotated with @RestResource(urlMapping: "/...") at module level
    becomes a Salesforce custom Apex REST endpoint. Handler functions use
    @Get, @Post, @Put, @Patch, and @Delete with an optional path
    suffix: @Get("/{accountId}") binds the captured segment to a
    same-named String parameter on the handler. Handlers have the shape
    fn(req: Request, <captures: String>...): Response; return a
    Response value built with factory functions like
    Response.ok(body: x), Response.text(status: 200, body: "..."),
    Response.no_content(). A single module supports multiple handlers
    per verb, dispatched at runtime by path-pattern specificity
    (literal segments beat captures). Full reference at
    vertex-run.github.io/reference/salesforce/rest-resources.

Installation

Download the binary for your platform from the assets below, make it executable, and move it somewhere on your PATH:

macOS (Apple Silicon)

curl -Lo vertex https://github.com/vertex-run/vertex/releases/download/v0.4.0/vertex-macos-arm64
chmod +x vertex && sudo mv vertex /usr/local/bin/

macOS (Intel)

curl -Lo vertex https://github.com/vertex-run/vertex/releases/download/v0.4.0/vertex-macos-x86_64
chmod +x vertex && sudo mv vertex /usr/local/bin/

Linux (x86_64)

curl -Lo vertex https://github.com/vertex-run/vertex/releases/download/v0.4.0/vertex-linux-x86_64
chmod +x vertex && sudo mv vertex /usr/local/bin/

Windows (x86_64)
Download vertex-windows-x86_64.exe, rename it to vertex.exe, and place it in a folder on your PATH.


After installing, verify with vertex --version.
For full documentation visit https://vertex-run.github.io.