Skip to content

Releases

v1.3.1

Choose a tag to compare

@github-actions github-actions released this 10 Nov 20:00
v1.3.1
d19eeb7

Fixes

  • The view-transition preset of the client runtime goes in the bongo cascade layer, so a rule of your own overrides it without !important. Before, the runtime appended the preset to <head> after the stylesheets of the page, and source order gave it the last word: a page could turn off the cross-fade of transitions only with !important, or by giving up the preset for 'initial'. A rule that already reaches for !important still wins, because the preset carries none of its own. See Turn on transitions and Cascade layers. (fced932)

v1.3.0

Choose a tag to compare

@github-actions github-actions released this 03 Nov 05:54
v1.3.0
1174af4

Features

  • @bongo/tailwind builds Tailwind CSS v4 stylesheets from the classes that your pages render, not from a scan of your source files. A class that a template prints in one branch only is in the CSS only when a page renders that branch, and the words of your text never become utilities. The scripts next to a stylesheet and each @source also give classes. A CSS module with @reference and @apply works with $assets.classes(). See @bongo/tailwind. (#96)
  • $build.classes collects the class names of each page as bongo renders it. A loader of assets/ reads them with utils.classes(). An incremental build gives the same names as a fresh build. See Class names and Loader utilities. (#96)

Fixes

  • A client navigation to a link that the server redirects, such as /about to /about/, ends at the URL of the last response, with the hash of the link. Before, the address bar, the history entry, and the relative URLs of the page kept the URL of the link. A browser without precommitHandler loads the final URL as a full page. See Redirects. (#92)
  • bongo:navigate fires for each navigation before the URL changes. Before, it fired after the URL changed. See Events. (#92)
  • A fetch that fails before the URL changes no longer leaves the new URL on the old page. (#92)
  • Back and forward keep the scroll position that the client restores. Before, the browser could scroll the page to the top after the restore. See Scroll restoration. (#97)
  • A change in a value of $site, $build, $images, or $data renders every page again, such as a $site.url that the config reads from an environment variable. Before, a staging build after a production build shipped the production pages, unless it ran with --fresh. See Incremental builds. (#95)
  • The height of a resized image rounds to the nearest pixel. Before, a 1254×837 source at 960 came out 960×640, not 960×641. Each resized image encodes once more after you upgrade. See Processing. (#93)

Docs

  • The labels of the sidebar, the table of contents, and the footer are no longer headings, so the heading outline of each page is correct. (ddc5f95)

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 03:29
v1.2.0
02c87ae

Features

  • $build.outdir and --outdir (-o) name the output folder; the flag wins over the config. A config that fails to load empties only the --outdir folder, or the folder of the last good build. See Output folder. (3c6a771)
  • $assets.classes() gives a template the class names of a CSS module, as its stylesheet ships them. The module compiles once for both. See CSS modules. (#88)
  • $build.trailingSlash: false makes each page an .html file of its path, at a URL with no trailing slash. See Without trailing slashes. (#87)
  • bongo dev redirects a page URL with the other trailing slash to the path of its file, as a host does. See Trailing slashes. (#87)

Fixes

  • The client leaves history.pushState() and history.replaceState() to the page. Before, it fetched the URL as a page, so a widget that wrote its state into the URL lost it. Back and forward within one page no longer fetch it again. See Opt out. (#90)
  • A script import that does not resolve fails the build, and names the import, the file, and the line. Before, the script shipped the import as written, and failed in the browser. See Imports. (#88)
  • A regex with a quote or a backtick, such as /`/g, no longer breaks the next template tag. tempura is now 1.0.1. (#89)
  • A class of a CSS module that composes a class that composes another gets the names of all of them. (#88)
  • The file name alone decides if a stylesheet is a CSS module, so <bongo:style> takes no global. With global, a .module.css file shipped its classes as written, while $assets.classes() gave hashed names. (#88)
  • Under Node, code that calls a Bun API fails with a hint to run bongo with Bun. A partial that calls such code is no longer told to add {{#expect Bun}}. See Run with Bun. (357b79a)
  • The Markdown copy of a dotted path, such as /releases/v1.1.0, is v1.1.0.md, not v1.1.md, and the client takes a link to such a page. (#87)
  • A missing asset no longer reads asset!, rendering …. (#88)

Performance

  • A build with no change no longer renders every page that links a CSS module. On 10,000 pages, such a build takes 0.24 s, not 2.37 s. (#88)

Docs

  • CSS: @import, composing a class of another CSS module, and why a script cannot import a stylesheet. See @import and Stylesheets and scripts. (#88)
  • Run with Bun covers your own code that calls a Bun API, not only images. (357b79a)
  • The posts of the create-bongo template describe bongo as it is. (42d70c9)

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 01:48
v1.1.0
9257f29

Features

  • The config knows the mode. bongo dev sets NODE_ENV to development, and bongo build sets it to production, before the config loads. A value that you set stays. See Dev or build. (#81)
  • Scripts know the mode. Scripts get process.env.NODE_ENV, import.meta.env.DEV, and import.meta.env.PROD. In bongo dev, packages resolve with the development condition. See Script values. (#82)
  • $build.define replaces your own names in scripts. See Your own values. (#82)
  • bongo/env types import.meta.env. Add it to the types of your tsconfig.json. (#82)
  • tsconfig paths aliases work in the config, data modules, and partials. (#84)

Fixes

  • bongo no longer reads a tsconfig.json above the project folder, which can belong to another project. See Which tsconfig.json. (#83)
  • A build through a symlinked project path writes the same scripts as a build through the real path. (#85)
  • bongo/client ships its types. Before, its functions had no types outside this repository. (#86)
  • A new site from create-bongo passes tsc. The template installs @types/node, sets "types": ["bongo/env", "node"], and targets ES2024. (#82, #86)

Performance

  • $assets.render is about 9× faster on a cold cache. resvg no longer loads every system font for each image, and it draws off the main thread. (#79)

Docs