Skip to content

Releases: brioche-dev/brioche

0.1.3

28 Sep 03:51
8236cf1
Compare
Choose a tag to compare

This is a hotfix release that addresses a bug introduced in v0.1.2 in the Brioche Language Server Protocol (LSP), where some parts of the lockfile would be erased when saving a .bri file. Additionally, it includes some other minor bugfixes.

Fixed

  • Fix Brioche LSP erasing locked download and git ref hashes (#130)
  • Fix "failed to move temporary project from registry" error. This occurred due to a race condition when a project tried to be fetched more than once from the registry, e.g. from a dependency shared by multiple other dependencies, like std (#131)
  • Fix (very annoying!) "Request textDocument/diagnostic failed" error from LSP whenever a .bri file was first opened (#132)

0.1.2

26 Sep 09:03
ddf9102
Compare
Choose a tag to compare

This release includes many minor features and fixes over the last few months, especially focused on unblocking work in the brioche-packages repo. Additionally, this release includes support for the new Brioche.download(...) and Brioche.gitRef(...) recipes, which automatically pin download hashes in the brioche.lock lockfile, meaning you no longer need to find and update the hashes in code by hand!

Standard library

NOTE: These features require both the latest version of Brioche and an appropriate version of the std package. Consult the std changelog for more details

  • Add Brioche.download("..."). The provided URL will be downloaded, and the hash will automatically be recorded in the brioche.lock lockfile (#102)
  • Add Brioche.gitRef({ repository, ref }). The git repository URL will be fetched, and the commit for the corresponding ref (branch or tag name) will be recorded in the brioche.lock lockfile. This is useful when used with the gitCheckout function from the git package (#126)
  • Add std.glob(...) recipe. This takes a directory and some glob patterns, and returns a new directory containing only the contents matching a pattern. This is similar to Brioche.glob(...), but works with existing recipes instead of inputs from the project (#119)

Fixed

  • Fix brioche self-update command. Unfortunately, upgrading from v0.1.1 will still need to be done manually, but auto-updates should work going forward! (#112 by @jaudiger)
  • Fix .unarchive() recipes sometimes not properly baking when unarchiving a tarfile containing long filename entries (#127, with work from #117 by @jaudiger

Changed

  • Update most subcommands to take the --project (-p) or --registry (-r) argument more than once. The command will apply to each project. This applies to the following subcommands:
  • Update brioche fmt to print formatted files (#75 by @jaudiger)
  • Update Process.dependencies recipes to support more flexible env var configurations. Namely, dependencies can now set env vars for fallbacks, in addition to the existing env vars that get appended

Internals

  • Upgrade OpenTelemetry SDK packages. Brioche now uses the conventional OpenTelemetry SDK environment variables for configuration
  • Upgrade Deno Core from v0.201.0 to v0.303.0
  • Update Rust toolchain to v1.81
  • Restructure some internal crates. Some crates that were originally in the main Brioche repository now live in brioche-dev/brioche-runtime-utils

0.1.1

10 Jun 05:09
d82dfbf
Compare
Choose a tag to compare

This is a minor release focused on massively improving registry downloads, and helping future-proof TypeScript build scripts. Re-run the install script to update:

curl --proto '=https' --tlsv1.2 -sSfL 'https://brioche.dev/install.sh' | bash

Special thanks to @asheliahut for helping with some major changes to the registry itself!

Added

  • Add new TypeScript runtime op to get the version of Brioche (#59). This will allow for updating packages to take advantage of new features without breaking backwards compatibility
  • Add new collect_references recipe type (#57). This will be used by the std package to improve container sizes

Changed

  • Increase timeouts when fetching from registry from 10s to 120s (#54 by @matklad). This is a workaround due to very slow cold start times seen in some cases when making requests to the registry
  • Tweak registry sync rules to avoid downloading unnecessary dependencies (#56). This should drastically reduce the download times during the first-time user experience (especially with some changes to the registry itself)
  • Download project files in parallel from registry (#58)

0.1.0

03 Jun 06:44
31f0e37
Compare
Choose a tag to compare

Initial release! See the announcement post here: https://brioche.dev/blog/announcing-brioche/