A very belated happy new year, and thank you for participating in the custom blocks beta! We’re excited to share the newest updates to the SDK, CLI and documentation.
One thing before we dive in: we’re looking to feature YOU when we announce custom blocks to the world. As one of our early custom block developers, we’d love to extend an opportunity to highlight a block you built. Please fill out this form by March 9 to be considered. All selected block developers will receive $1,000 worth of Airtable credits!
Blocks SDK updates
Cursor with several new features: the ability to set the current table and view with
setActiveView() , and the ability to watch and read the currently selected field ids with
We’ve also made a convenience update to our record hooks (
useRecordById ): they can now accept a
View , or
QueryResult as previously supported.
To upgrade to the latest version of the SDK, run
npm install @airtable/blocks in your block’s directory. You can find the complete list of changes, including any breaking changes, in the changelog.
Blocks CLI updates
Starting from 0.0.43, the CLI will require Node.js 12.14 or higher to run. If you installed Node using nvm, you can upgrade to the latest stable version using
nvm install lts/* --reinstall-packages-from=node .
To upgrade to the latest version of the CLI, run
npm install -g @airtable/blocks-cli .
UI components now have interactive examples: try them out in the API reference!