The JavaScript Codegen now includes support for
logPage
to log page actions on custom destinations. This function aligns with the one used in our TypeScript Codegen, allowing for a shared interface between the two languages. This simplifies migration and enables seamless code reuse across both JavaScript and TypeScript without any modifications. The
logPage
function is available on both
Web
and
Node
platforms. The new function name will be available in your Codegen the next time you run
avo pull
or run Codegen from a sources Codegen settings.
No changes are required for existing Codegen implementations, as the "page" function remains fully supported.