Releases: nix-community/bun2nix
Releases · nix-community/bun2nix
2.0.5
What's Changed
- Make sure generated
bun.nixfiles follownixfmtconventions - Add a flag for overriding the path to copy workspace packages from
Full Changelog: 2.0.4...2.0.5
2.0.4
What's Changed
- Add a
bunRoothandling mechanism for changing the root of the bun project - Allow auto patching of elfs downloaded in npm packages (opt-in)
- Add template for development with phoenix (elixir)
Full Changelog: 2.0.3...2.0.4
2.0.3
What's Changed
- Fix default
bunBuildFlagsoverriding providedbunBuildFlagsvalue by @baileyluTCD in #54
Full Changelog: 2.0.2...2.0.3
2.0.2
- Properly strips
file:from file dependencies - Adds section on isolated installs troubleshooting to docs
2.0.1
- Move repository to
nix-community - Move to nix community CI
- Fix now revealed issues with template builds on darwin machines
- Update all javascript deps
- Add a warning when an unlocked dependency is found in a bun lockfile
2.0.0
V2 Release Guide
bun2nix V2 comes with many improvements, including:
- Guaranteed correct bun installs via building the bun cache instead of creating the
node_modules/directory manually - Faster incremental builds via better caching
- Rewritten nix API designed to be both more idiomatic and flexible
- New NPM packaged web assembly CLI - run the
bun2nixCLI with nothing butbunx bun2nix- see the NPM page. - Now supports more of bun's dependency types, including:
- Files and symlinks
- Tarballs
- Git Dependencies
This work was done under Fleek. Please, check us out, especially if you are interested in Nix!
Updating
Below is a guide to all the breaking changes:
mkBunDerivation
mkBunDerivationhas been renamed and moved frominputs.bun2nix.${system}.mkBunDerivationtoinputs.bun2nix.packages.${system}.default.mkDerivation(or more simplybun2nix.mkDerivation)- The
indexattribute has been renamed tomoduleto be inline with how it's defined inpackages.json. - Instead of specifying
bunNixdirectly, specifybunDepsusingfetchBunDepsinstead. - See
mkDerivationfor other new features and examples
mkBunNodeModules
mkBunNodeModuleshas been removed entirely in favor offetchBunDepsto build a bun compatible cache.- Still need to add
node_modules/to an arbitrary derivation? Have a look at the newbun2nixhook, which provides a much nicer API.
writeBunScriptBin
- This has been moved from
inputs.bun2nix.lib.${system}.writeBunScriptBintoinputs.bun2nix.packages.${system}.default.writeBunScriptBin
New bun.nix schema
- Now consumable by
pkgs.callPackageandbun2nix.fetchBunDeps. - Don't forget to rewrite your
bun.nixfile by runningbun2nix -o bun.nixbefore use!
1.5.2
What's Changed
- fix(nix): make nativeBuildInputs extend from arg by @25huizengek1 in #37
- chore(nix)!: use lib.extendMkDerivation by @25huizengek1 in #38
- Patch local script shebangs before build by @baileyluTCD in #39
New Contributors
- @25huizengek1 made their first contribution in #37
Full Changelog: 1.5.1...1.5.2
1.5.1
Breaking Change
This release contains a breaking change to 'mkBunNodeModules'. See #35 for more.
What's Changed
- Better document the use of the
bytecodeflag by @baileyluTCD in #33 - Add
dontPatchShebangsoption tomkBunNodeModulesby @rome-user in #35
New Contributors
- @rome-user made their first contribution in #35
Full Changelog: 1.5.0...1.5.1
1.5.0
What's Changed
- fix: bun2nix fails in bun workspace by @mahmoudajawad in #10
- Prevent creating urls for workspace references by @louisdutton in #25
- Revert "fix: prevent generating urls for workspace references" by @louisdutton in #26
- Infer pkg json info by @baileyluTCD in #27
- Use flake self-reference in package.nix to improve Nix evaluation per… by @conneroisu in #28
- Evaluate template packages in
nix flake checkby @baileyluTCD in #29 - Add a bun script builder function by @baileyluTCD in #30
New Contributors
- @mahmoudajawad made their first contribution in #10
- @louisdutton made their first contribution in #25
- @conneroisu made their first contribution in #28
Full Changelog: 1.4.2...1.5.0
1.4.2
What's Changed
- fix(template): add nix build result to gitignore in nix templates by @gytic in #11
- Add a check to keep template tag versions up to date automatically by @baileyluTCD in #13
- Fix index.ts not resolving dependencies properly for templates by @baileyluTCD in #14
- Force template auto-update on download by @baileyluTCD in #16
- feat(template): add shell hook to sync bun dependencies by @gytic in #19
- Prepare 1.4.2 release by @baileyluTCD in #18
New Contributors
Full Changelog: 1.4.1...1.4.2