elements
Start Docs Blog Demos UI Pricing
Elements Manual
  • Getting Started
  • CLI
  • Build
  • Browser
  • Packages
  • TypeScript
  • Elements HTML
  • Assets
  • RPC
  • Router
  • Session
  • Database
  • Migrations
  • LiveTable
  • Channel
  • Jobs
  • Email
  • Payments
  • JSON
  • Async
  • Style
  • UI
  • JSOC
  • Config
  • Tests
  • Logs
  • Deploy
  • Editors
  • Recipes
  • Licenses
  • Issues
  • Changelog
    • 0.35.0
    • 0.34.0
    • 0.33.0
    • 0.32.2
    • 0.32.1
    • 0.32.0
    • 0.31.1
    • 0.31.0
    • 0.30.0
    • 0.29.0
    • 0.28.1
    • 0.28.0
Manual / Changelog/ 0.35.0

0.35.0

elements man changelog/v0-35-0

On This Page

  • Changes
  • Upgrade

The browser attaches a page to the server's HTML by position, and the HTML carries no ids. A deployed app serves no browser source maps. A migration file with no statement is not applied. elements run prints only the program's output when the build has no errors. The hydration changes are in @elements/app 0.31.0: upgrade the package in every project after upgrading Elements.

Changes

  • The HTML the server renders has no ids. A template is between the comments <!--<Dialog>--> and <!--</Dialog>-->, and an element with a binding or an event handler has the bare attribute e:mark. The browser attaches each element, e:if, e:for and template to the server's HTML in the order they appear in the page. Requires @elements/app 0.31.0.
  • When an attribute initializer returns one value on the server and another in the browser, the page shows the browser's value after it attaches. The browser renders an e:if, e:switch, e:for, template or {expression} again when what it holds differs from what the server rendered, and every part of the page after it attaches to its own nodes.
  • On the first page load, an oninit handler runs after every element on the page has attached to the server's HTML. On an element the browser renders later, oninit runs before the element is inserted, as before.
  • A deployed app has no browser source maps: the build on a deploy machine writes no .map file and no sourceMappingURL comment for a browser file. elements start on your own machine writes them as before. See elements man deploy/what-happens.
  • The build does not apply a migration file that has no statement. The file elements create migration writes without -tables holds only comments, and the build applies it as a new migration when you save its first statement. See elements man migrations.
  • elements run prints nothing of its own when the build has no errors, so its output is the program's output. When the build has errors it prints them and does not start the program.
  • The -quiet option is removed from every command. A command draws its live view only when its output is a terminal, and -json writes the result as JSON.
  • In browser code, new C() is a compile error when the constructor of C, one of its field initializers or one of its static blocks calls a server function or reads process.env, and it is not called through an @rpc function. A read of a static field of such a class is the same error.
  • {process.env.KEY} in a template is a compile error, and so is process.env used as a value in browser code: assigned to a variable, destructured, or passed as an argument.
  • The call stack of a browser security error starts with the code the error is at, as written (db.query, process.env.KEY or a config key). The calls that reach it follow, innermost first.
  • The error for a config key read in browser code is placed at the key to tag. For config.app.stripe.publicKey the line, the column and the underline are at publicKey.
  • elements man database/transactions has a section on a network call that must run once per key, and elements man migrations says which parts of a migration the camelCase conversion leaves as written.
  • The AGENTS.md that elements create writes tells an agent to name the manual pages start/conventions and async in each brief to a subagent.

Upgrade

  1. Upgrade @elements/app in each project, and restart elements start after the install.

    Terminal
    elements install @elements/app -u -json elements build -json
  2. Remove -quiet from each script that passes it to an elements command. A script that reads a command's output passes -json.

  3. Change a test or a script that finds an element by its e:id attribute, or that reads an id from a template's comment. Find a template by its name, as elements man browser shows.

Prev ChangelogNext 0.34.0
Product
Manual Pricing Compare
Company
History Contact
Legal
Privacy Policy Acceptable Use Terms License Agreement
© Elements Dev Corporation 2026