github observablehq/framework v1.3.0

latest releases: v1.9.0, v1.8.0, v1.7.1...
8 months ago

Mosaic

Framework now has built-in support for Mosaic vgplot, an interactive grammar of graphics that helps you build coordinated views with fast interaction for millions of data points (or more). Framework’s Mosaic integration is powered by DuckDB-Wasm and Observable Plot. Data sources are configured using the sql front matter option — meaning you can query the same data using Mosaic and Framework’s SQL code blocks. See this interactive heatmap of one million New York City taxi rides for an example:

Speaking of DuckDB, our SQL code blocks and sql tagged template literal are now much faster thanks to an optimized DuckDBClient which uses connection.query instead of connection.send for non-streaming queries.

All the interpreters

The new interpreters config option allows you to register additional interpreted languages for data loaders. 🎉 For example, to use Perl (.pl) and AppleScript (.scpt):

export default {
  interpreters: {
    ".pl": ["perl"],
    ".scpt": ["osascript"]
  }
};

We also now support Java (.java), Julia (.jl), and PHP (.php) data loaders by default.

Better links

The new cleanUrls config option, if set to false, preserves the .html extension on page links. This is useful for some static site servers that don’t support “clean” URLs. We’ve also enabled automatic “linkification” of links in Markdown such as https://observablehq.com and mailto:support@observablehq.com.

And more…

The new dark built-in reactive variable lets you more easily write code that adapts to light or dark mode. Our project templates now use a JavaScript config file by default, rather than TypeScript, to improve compatibility with Node 18. Deploying a project to Observable now prompts you for the desired access level rather than silently defaulting to private.

New Contributors

Full Changelog: v1.2.0...v1.3.0

Don't miss a new framework release

NewReleases is sending notifications on new releases.