Skip to main content
Big news! Interval has been acquired by Meter. Learn more →

Changelog

Features, improvements, SDK releases, and more.

Get 1-2 emails per month with a roundup of product updates, SDK releases, and more.

Interval SDK v1.5.0 includes two brand new I/O methods: io.input.slider for requesting a number within a range using a slider UI and io.display.html for rendering basic HTML content in your actions or pages.

Screenshot of a table with cells highlighted in different colors

Other updates & improvements

  • We added user.role and user.teams properties to ctx for the current user running the action or viewing the page.
  • We added a warnOnClose option to action definitions to opt into disabling warnings when leaving the page in a middle of a transaction.
  • We added support for SCIM directory user and group sync for SSO-enabled accounts.
  • We shipped many improvements to our reconnection logic, especially for background tabs, backgrounded transactions, and organizations with a large number of concurrent users.
  • We added logic to prevent sending multiple notifications if the server restarts while a transaction is awaiting input.
  • We added an initiallySelected prop to io.select.table to specify the initial selection state.
  • Loading APIs are now available in Page handlers.

We're also testing a new platform for writing, running, and sharing Interval actions in your browser. If you'd like to help us test it, try it out by joining the waitlist or stop by our Discord server and request access.

New:

  • Added new io.input.slider IO method to request a number with a range slider control.
  • Added new io.display.html method to display rendered HTML to the user.
  • Added user.role and user.teams properties to ctx for the current user running the action or viewing the page.
  • Added warnOnClose property to the action definition, set to false to suppress the default behavior of warning the user when leaving or restarting an in-progress transaction.

v1.1.0 of our TypeScript and Python SDKs adds more customization options for content in tables. Markdown is now supported in table cells, and you can use the new highlightColor prop to add color accents to individual cells. We also upgraded tables to support dynamic column widths, so table columns will automatically resize to fit their contents and fit more of your data on screen.

Screenshot of a table with cells highlighted in different colors

You'll find expanded Markdown support in other places, too, like the helpText prop on all components that support it. (Expanded Markdown support does not require an SDK upgrade.)

Screenshot of a date input with an inline markdown link in the help text

We've also improved redirect behavior in Pages and Actions, and we added a global onError handler that's perfect for logging or reporting to error services like Sentry. See the full v1.1.0 changelog for everything that's changed.

Other updates & improvements

  • The 'Go back' button in transactions now receives keyboard focus when tabbing through options.
  • We added a missing confirmation message after verifying your email address.
  • You can now switch between your organizations using the Cmd+K menu.
  • We removed log messages about missing columns when a table is empty.
  • You can now add Interval to your home screen on iOS and Android with a nice app icon and support for minimal-ui mode.
  • We fixed sticky table headers not working on some pages.
  • We removed double scrollbars in some places if your system uses persistent scrollbars.

New:

  • Added ctx.redirect() support to Page handlers.
  • Added replace property to ctx.redirect() to replace the current entry in the user's history stack, like history.replaceState.
  • Added highlightColor property to io.display.table and io.select.table's renderCell method to highlight a cell's background and text colors.
  • Added a global onError callback to the Interval constructor, perfect for logging or reporting to error services.
  • Page handlers can now return undefined or None to conditionally opt out of custom layouts and fall back to rendering the default index.
  • Markdown is now supported in io.display.table and io.select.table cells and in any input IO methods' helpText properties.

Fixed:

  • Improved retry and timeout behavior, preventing large payloads from saturating connection to Interval.
  • Fixed issues with Pages showing up in the dashboard sidebar in some cases when they shouldn't.
  • Fixed .validate() calls when chained after .withChoices() calls.

Breaking changes:

  • The ctx.environment property now shows the specific environment that the Action or Page is running in, instead of just "live" or "development".

New:

  • Added withChoices() chained method to io.group and other IO methods to allow for customizing the "Continue" buttons to enable branching logic and more advanced workflows. See Submit buttons for more information.
  • Added support for ECMAScript Modules (ESM) when using file-based routing with routesDirectory with Node.js.

Fixed:

  • The ctx.action.url property and Interval client startup message now display the correct URL for custom environments.
  • Fixed an issue with the dashboard sidebar not showing up for some Page configurations.

Breaking changes:

New:

  • Added support for a preview UI that preserves action context across IO method calls and removes the need to "Continue" for display-only informational renders. Please let us know if you would like to test this feature before general availability!
  • Added the .safelyClose() method to Interval to safely shut down a deployment without losing work or interrupting users.
  • The defaultValue property for all supported IO methods now also accept null in addition to undefined.
  • Added copy and download buttons to io.display.code, io.display.object, and code blocks in io.display.markdown.
  • Added inline IDE documentation to IO methods.

Fixed:

  • Fixed an issue with some userland errors not being surfaced in Pages.
  • Many small fixes and UI improvements!

v0.36.0 of our Node SDK was our final release of 2022 and it includes a handful of features you requested - including a new I/O method: io.display.grid for displaying collections of data like photos, cover art, and more.

A screenshot of a dashboard listing a Spotify account's recent likes in a grid layout.

This method includes settings for column width, image crop, aspect ratio, linking, and per-item dropdown menus. If you're currently using io.display.table for content with images (videos, blog posts, etc.) this might be a better fit for you!

A screenshot of a dashboard with blog posts arranged in a grid layout.

Code-based permissions

For users on our Teams plan and higher, you can now grant team-level access to actions and pages directly from within your app's code. If you're using Pages, permissions set at the page level will also apply to actions and pages nested within that page. Visit the docs to see how you can define permissions in code.

Interval Direct Connect

Connections between your app and your users' browsers are currently relayed through Interval, but soon we'll be removing this relay step to create a direct connection under the hood between your app and your users. We're still finalizing benchmarks, but the early results from our internal testing indicate that this will be the single biggest upgrade to the performance of Interval apps so far. 🚀

This new functionality is currently in private beta. If you'd like to try the Direct Connect beta, let us know and we'll enable it for your account.

Other updates & improvements

  • We've added isFilterable and isSortable props to io.display.table and io.select.table for disabling filtering and sorting if desired — this is particularly useful for tables with asynchronous data.
  • We've added a new "quiet" setting to the options for logLevel in the Interval client to reduce terminal console logging.
  • We're now catching and showing more errors in the dashboard UI to help you debug your code when something isn't working properly.
  • The string shorthand for columns and accessorKey values in io.display.table and io.select.table are now type checked against your input data.
  • Errors in asynchronous method state change handlers like io.display.table's getData function are now properly displayed in both the host terminal console and the web dashboard.
  • We've fixed a bug where secondary navigation links didn't link to the correct environment in non-production environments.
  • We've made it easier to copy your Personal Development Key from the empty state in Dev mode.
  • New users can now be pre-assigned to teams when inviting them to your organization.
  • You can now switch plans directly from the billing screen in your dashboard.
  • We've adjusted the font size in io.display.markdown to better match the rest of the dashboard.
  • Images are now supported in the dropdowns for io.select.single and io.search with multiple size options.

New:

  • Added io.display.grid method for visually focused collections of data, usually with an emphasis on images.
  • Added isFilterable and isSortable props to io.display.table and io.select.table for disabling filtering and sorting if desired — this can be useful for tables with asynchronous data.
  • Added quiet logging level to the Interval client to reduce terminal console logging, enable by adding logLevel: "quiet" property to the Interval constructor.
  • The string shorthand for columns and accessorKey values in io.display.table and io.select.table are now type checked against your input data. Rest assured knowing that your columns are defined in your data!

Fixed:

New:

  • Pages, a lightweight way to display data to complement actions, are now in public beta!
  • Introducing Interval Direct Connect! In all previous Interval versions connections between your app and your users' browsers are relayed through Interval. We're removing this relay step, allowing for a direct connection under the hood between your app and your users. We're still finalizing benchmarks, but the early results from our internal testing indicate that this will be the single biggest upgrade to the performance of Interval apps so far. This new functionality is currently in private beta. If you'd like to try the Direct Connect beta, let us know and we'll enable it for your account.

We're big fans of file based routing here at Interval, having used frameworks like Next.js and Remix in many of our own projects. With file based routing, adding new pages or actions to your app is as simple as creating a file and exporting some code from it. Your application perfectly mirrors your app's structure on the filesystem and you don't have to manually import code each time you want to add a page or an action.

Today, we're excited to bring file based routing to Interval as an experimental feature.

As you'd expect, Interval will recursively walk directories and detect your app's structure from the filesystem. To add actions and pages, just create a file with a default Action or Page export and Interval will handle the rest. Then, initializing your app is as easy as using the new routesDirectory property:

import Interval from '@interval/sdk/dist/experimental'
import path from 'path'

const interval = new Interval({
apiKey: '<YOUR API KEY>',
routesDirectory: path.resolve(__dirname, 'routes'),
})

interval.listen()

We've been using this internally and it very quickly replaced inline definitions as our go-to method for building apps with Interval.

For more, check out the file routing API docs.

A screenshot of a code editor using the new file routing API.

Custom environment colors

By popular request, we've added a more prominent bar across the top of the screen to help you differentiate between development and production environments, along with several color options to choose from.

A screenshot of the dashboard with a red bar across the top of the screen that says 'Production'.

Last week we shipped v0.32 of our Node.js SDK which includes two updates to our display components — both of which are excellent companions to our new Routing API.

First, there's a new io.display.metadata component for displaying a series of label/value data pairs in your choice of list, grid, and card layouts.

Second, we've made io.display.heading more powerful with some new props:

  • Level for setting the header size
  • Description for adding context to a section
  • Menu items for adding contextual buttons alongside the header

To show off these updates, here's a demo of an app that pulls in data for artists and tracks from the Spotify API:

Using the new updates in an app that browses artists and tracks from the Spotify API.

Join our Discord community

We've just launched our brand new community Discord where anyone can ask questions, submit feedback, share what you're building, and chat with our team. Stop by and say hello!

Today we're excited to announce the rollout of a brand new look for your Interval dashboard! Your actions will continue to look and function as they always have, but we've made a few noticeable changes to the surrounding chrome - and many more changes under the hood - to make your apps even more powerful and to pave the way for some big API updates.

A screenshot of the new dashboard layout.

The first thing you'll notice is that most of the Interval chrome is gone. Settings are now located in a single menu in the top right corner, allowing your app to take over the entire screen.

A screenshot of the new environment switcher.

We've also replaced the "Actions" and "Develop" menu items with environments named "Production" and "Development". Functionally, nothing has changed - Development is scoped to your personal Interval account, while Production is shared with the whole team - but we've found these labels to be more recognizable to new users. And if you're using custom environments, they'll appear in the same menu.

And finally, there's a brand new navigation bar across the top. We're handing the keys for that over to you with the new Router API.

Router API

While actions are the bread and butter of building with Interval, powerful internal tools may call for more sophisticated UIs and structure, such as dashboards, list and resource views, and hierarchical navigation.

Interval's Router API lets you build these more powerful features within your Interval app.

With the Router API you can:

  • Define top-level navigation within your organization's Interval dashboard
  • Group related actions to provide better structure and easier navigation
  • Create pages and list views with custom content for your team to be used as a launching point for other actions

The new dashboard was designed specifically for this new API, so we'd love for you to try it out. To get started, reply to this email, and we'll enable access for your account.

Note: Names and functionality of Router API methods are very likely to change.

Check out the docs to learn more about the new routing APIs.

Other bugfixes & improvements

  • We shipped io.confirmIdentity in SDK v0.30.0, allowing you to programmatically prompt for 2FA verification inside high stakes actions with a single line of code. (demo))
  • We added io.display.code to display code with syntax highlighting and a copy button inside your pages and actions.
  • io.group now accepts keyed objects, making it easier to grab a subset of keys from the response object.
  • Actions can now be marked as unlisted. You can still link to them from other actions, but they won't otherwise appear in the UI.
  • primary, secondary, and danger are available as button themes beginning with SDK v0.31.0.
  • Invitations are now sent automatically when adding new users to your organization, simplifying the process to a single step.
  • We fixed action links in dropdown menus so you can Cmd/Ctrl-click to open them in a new tab.
  • Pages and transactions now reload when search params change.
  • Group descriptions are now displayed in the UI.
  • We made the language more helpful when your app connects with an invalid or missing API key.
  • We improved the empty state for groups and pages without actions.
  • We now alert you to errors in your code in more places in the dashboard.
  • We fixed some loading errors encountered while switching between organizations and environments.
  • We improved access to nested pages and actions from the Cmd/Ctrl+K menu.

548 Market St PMB 31323
San Francisco, CA 94104

© 2023

Join our mailing list

Get 1-2 emails per month with a roundup of product updates, SDK releases, and more.