Every module keeps its full history, so you can always see what's live, what's being worked on, and go back if you need to.
Two kinds of history
| What it is | Where you see it | |
|---|---|---|
| Versions (0.15.0, 0.16.0…) | What has been published. Each one is stored and never changes. | The module's ⋮ › Preferences › Version history |
| Revisions (r1, r2…) | Each change made in a draft before it's published. Kept even after a draft is thrown away. | The Module Builder |
A module has at most one draft at a time in your workspace, shared by everyone working on it. The draft remembers which version it started from. Every change, whether from the Module Builder or checked in from your computer or your AI assistant, becomes its next revision.
Go back to an earlier version
- Click the ⋮ on the module in the sidebar, then Preferences.
- Under Version history, click Roll back on the version you want, and confirm.
Only the code changes: your records, and anything a newer version added, stay. Switch to moves forward again. See Module settings and versions.
Deploys never go backwards
Publishing, or deploying from your AI assistant or the command line, refuses a version older than the one that's live, because it would quietly undo work. Start from the live code, make your change there, and raise the version number. Publishing the same version again is fine.
Modified copies
If your workspace changes its copy of a module someone else made, it shows Modified copy. Rolling it back throws your changes away, so you're asked first.
Take the code to your own computer
The platform keeps every revision and version for you, so there's nothing you have to manage. When you'd rather work in your own editor or with your AI assistant, check the module out:
- You get the newest code: the open draft if there is one, otherwise the version that's live.
- When you check it in, it becomes the draft's next revision. Nothing goes live until a Workspace Admin previews and publishes it in the Module Builder.
- You can check out only modules your own workspace owns (or a new one it is building), never a module from the Marketplace.
See Several people changing one module for what happens when someone checked in before you, and The command line (CLI) for the commands.