Skip to content

v0.5.1

Choose a tag to compare

@chizkidd chizkidd released this 22 Oct 14:52
· 130 commits to main since this release
e5f9a54

Hardening pass from the adversarial QA report, self-hosted fonts, and cross-browser tests.

Fixed

  • Very large notebooks render much faster: 5,000 cells went from about 19 s to about 3 s, and the first cell appears in half a second.
  • A corrupted "recently opened" list no longer breaks the home page, and a huge link is no longer saved there (it could fill the browser's storage and put a megabyte-long name in the tab title). File names are capped at 120 characters.
  • A GitHub token with an invisible or disallowed character is refused when saved, with an explanation. An already saved one gets a clear message instead of "couldn't reach GitHub".
  • nbformat 3 notebooks with odd heading levels or empty entries open instead of failing, and a JSON file that is not a notebook says so.
  • Odd answers from the GitHub API give a clear message instead of a stuck spinner or the word "undefined". GitHub and notebook requests time out after 20 and 60 seconds.
  • data:, javascript: and file: links are refused clearly.
  • Colab GitHub links open the notebook, git@github.com:owner/repo.git is understood, and Google Drive and Colab Drive links explain why they can't be opened.
  • Long file names no longer push the page sideways on phones.
  • Accessibility: sideways-scrolling code blocks can be reached with the keyboard and show a focus ring, and two colors are slightly darker to reach 4.5:1 contrast.

Changed

  • A link to a non-notebook file in a repo (for example a README) now opens its folder instead of showing a JSON error.
  • Page fonts are served from nbview.org instead of Google Fonts, so visiting no longer sends anything to Google.

Added

  • Regression tests (npm test), also in Firefox and Safari's engine, plus an optional smoke test against the real GitHub.
  • A Privacy section in the README, MAINTENANCE.md and tests/README.md.

Full changelog: https://github.com/chizkidd/nbview/blob/main/CHANGELOG.md