Updates

What’s new

Branching and Publishing APIs

·

Published

Plugin 4.1 APIs

Plugins 4.1 brings two of our most requested capabilities to plugins: Branching and Publishing. Together, they unlock new plugin workflows, from experimenting on a branch to shipping your site. We’ve also rebuilt our API docs with search, improved content, and better linking. For the complete technical rundown, read the changelog. Find an overview of what’s new below.

Branching
  • Added createBranch to create and switch to a new branch

  • Added the Branch class to switch, merge, and delete branches

  • Added getBranch and getBranches to look up branches by ID

  • Added subscribeToBranches to react to branch changes live

Publishing
  • Added publish to ship a project’s changes from a plugin

  • Added deploy to push a published version to a custom domain

  • Added getUnpublishedPageChanges to list changes since publish

  • Added getDeployment and getDeploymentIssues to track deploys

Plugins
  • Added a url property to Font for its source file

  • Added PathNode and ShapeGroupNode for imported vectors

  • Added createdAt and updatedAt timestamps to collection items

  • Added ShapeContainerNode and BooleanShapeNode node types

  • Notion: Relation fields now support up to 100 references

  • Notion: Added faster, clearer sync error reports

  • Notion: Improved the sync progress interface

  • Tidy Up: Added vertical layout and name sorting

  • ASCII: Can now be launched from the image picker

  • Google Sheets: Added support for the alt-text field

  • Google Sheets: Added support for the option field