Bun

@bunjavascript

Bun is a fast, all-in-one toolkit for installing, bundling, running and testing JavaScript & TypeScript. To install: `npm i -g bun`

7 Urmărește83.3K Urmăritori4.2K Postări
  1. Bun@bunjavascript
    Bun is joining Anthropic!
    7651.3K12.1K4.7M
  2. Bun@bunjavascript
    Bun
    RT @rauchg: $ 𝚊𝚕𝚒𝚊𝚜 𝚗𝚘𝚠=𝚟𝚎𝚛𝚌𝚎𝚕 $ 𝚌𝚊𝚝 >𝙳𝚘𝚌𝚔𝚎𝚛𝚏𝚒𝚕𝚎 <<'𝙴𝙾𝙵' 𝙵𝚁𝙾𝙼 𝚘𝚟𝚎𝚗/𝚋𝚞𝚗:𝚊𝚕𝚙𝚒𝚗𝚎 𝙲𝙼𝙳 ["𝚋𝚞𝚗","-𝚎","𝙱𝚞𝚗.𝚜𝚎𝚛𝚟𝚎({𝚙𝚘𝚛𝚝:𝟾𝟶,𝚏𝚎𝚝𝚌𝚑:()=>𝚗𝚎𝚠 𝚁𝚎𝚜𝚙𝚘𝚗𝚜𝚎('𝚠𝚎 𝚊𝚛𝚎 𝚜𝚘 𝚋𝚊𝚌𝚔')})"] 𝙴𝙾𝙵 $ 𝚗𝚘𝚠 > Ready:
    Vercel Developers @vercel_dev
    Your plain 𝙳𝚘𝚌𝚔𝚎𝚛𝚏𝚒𝚕𝚎 now deploys on Vercel. Add a 𝙳𝚘𝚌𝚔𝚎𝚛𝚏𝚒𝚕𝚎 or 𝙲𝚘𝚗𝚝𝚊𝚒𝚗𝚎𝚛𝚏𝚒𝚕𝚎 at your root, then Vercel selects the Container preset, builds it, and routes traffic to the image.
    0120462
  3. Vercel Developers✓@vercel_dev
    Your plain 𝙳𝚘𝚌𝚔𝚎𝚛𝚏𝚒𝚕𝚎 now deploys on Vercel. Add a 𝙳𝚘𝚌𝚔𝚎𝚛𝚏𝚒𝚕𝚎 or 𝙲𝚘𝚗𝚝𝚊𝚒𝚗𝚎𝚛𝚏𝚒𝚕𝚎 at your root, then Vercel selects the Container preset, builds it, and routes traffic to the image.
    101017247.4K
  4. Bun@bunjavascript
    switched from oxfmt to bun fmt Formatting in CI got 1.7x faster
    Descarcă
    151154315.9K
  5. Bun@bunjavascript
    switched from `oxlint` to `bun lint` ci got 22s faster
    Descarcă
    31331.1K37.6K
  6. Bun@bunjavascript
    Last week, we published 3 security advisories including Brotli, tls certificates, and quic As future hardening, we will replace most of Bun’s C/C++ dependencies with our own safe Rust implementation. Starting with libarchive
    272253922.5K
  7. Bun@bunjavascript
    Postări @bunjavascript
    HdrHistogram is another
    10685.3K
  8. Bun@bunjavascript
    Postări @bunjavascript
    We expect to replace more, excluding WebKit/JavaScriptCore, BoringSSL, and lsquic. There’s still: turbojpeg, libpng, zlib-ng, libdeflate, brotli, zstd, and several more.
    60854K
  9. Bun@bunjavascript
    switched from TypeScript 7 to `bun check` type-checking got 69s faster
    Descarcă
    393597933.4K
  10. Bun@bunjavascript
    Postări @bunjavascript
    and uses 5x less memory
    Descarcă
    03884K
  11. Bun@bunjavascript
    Bun
    RT @steipete: I spent some time on the weekend to test bun's AOT compiler and results are nothing short of amazing. Performance up 2-3x, memory use less than half.
    Jarred Sumner @jarredsumner
    Bun AOT also introduces `--trim` which deletes unused parts of Bun from the compiled binary On macOS, a binary that uses Bun.serve’s HTTP server goes from 89 MB to 25 MB
    0240468
  12. Jarred Sumner✓@jarredsumner
    Bun AOT also introduces `--trim` which deletes unused parts of Bun from the compiled binary On macOS, a binary that uses Bun.serve’s HTTP server goes from 89 MB to 25 MB
    Descarcă
    60471.5K109K
  13. Bun@bunjavascript
    We published three security advisories for Bun 1.4.3 and earlier: compromised eMudhra certificates, the brotli decoder bug (HTTP2Shell), and the HTTP/3 "Header Accordions" attack. These are all fixed in Bun 1.4.4. Please upgrade, and rebuild anything made with `bun build --compile` $ bun upgrade
    194760540.6K
  14. Bun@bunjavascript
    Bun
    RT @jarredsumner: Merging Bun AOT next week, then testing on Claude Code Expecting 2-3x less memory + CPU &amp; a slightly smaller binary This is the future of server-side JavaScript Instead of you rewriting in Rust, we rewrote JavaScript's compiler to emit native code ahead of time
    Jarred Sumner @jarredsumner
    4th attempt at Bun AOT. Code quality &amp; design is better. Perf is nearly there. Most importantly though It’s just TypeScript. Disregard everything I said last week about `as` casts changing runtime behavior and function arguments throwing. None of that is necessary.
    0580435
  15. Jarred Sumner✓@jarredsumner
    4th attempt at Bun AOT. Code quality &amp; design is better. Perf is nearly there. Most importantly though It’s just TypeScript. Disregard everything I said last week about `as` casts changing runtime behavior and function arguments throwing. None of that is necessary.
    41380296.5K
  16. Bun@bunjavascript
    Bun
    RT @kurtextrem: Bun's now leading the TypeScript checker race! As always, in @framer's monorepo: 🏆 bun check: 2.42s, 2.0 GB | v1.4.4 🥈 tsrs: 2.50s, 2.6 GB | v0.18 🥉 tsc-ts: 5.9s, 5.3 GB | v0.6 TS 7.1 beta: 13.9s, 8.1 GB
    Bun @bunjavascript
    Bun v1.4.4 - Fixes 271 issues, addressing 544 👍 - `bun fmt` is a fast Prettier-compatible code formatter - `bun check` gets 1.4x - 7.8x faster - New in Bun.SQL &amp; WebSocket - Security fixes, including for Brotli, TLS certs, HTTP/3, and more
    0120535
  17. Bun@bunjavascript
    Bun v1.4.4 - Fixes 271 issues, addressing 544 👍 - `bun fmt` is a fast Prettier-compatible code formatter - `bun check` gets 1.4x - 7.8x faster - New in Bun.SQL &amp; WebSocket - Security fixes, including for Brotli, TLS certs, HTTP/3, and more
    48761.3K92K
  18. Bun@bunjavascript
    Postări @bunjavascript
    We needed to get this release out tonight , so we couldn't include `bun lint` yet. bun lint is available via `bun upgrade --canary` though
    30747.4K
  19. Bun@bunjavascript
    Bun v1.4.4 is compiling
    251166319.4K
  20. Bun@bunjavascript
    Bun v1.4.4 will be released this evening with a fix for this and for the Brotli issue. Both fetch() and Bun.serve() did not and continue to not enable HTTP/3 by default.
    John Althouse @4A4133
    Sorry everyone... We're announcing a 0-Day vuln in QUIC that allows anyone to remotely turn off a server running these libraries. I swear we didn't plan this.
    16471.3K75.1K
  21. John Althouse✓@4A4133
    Sorry everyone... We're announcing a 0-Day vuln in QUIC that allows anyone to remotely turn off a server running these libraries. I swear we didn't plan this.
    764603K488K
  22. Bun@bunjavascript
    Bun
    RT @jarredsumner: In the next version of Bun bun check gets 1.7x - 7x faster
    Descarcă
    0260410
  23. Bun@bunjavascript
    In the next version of Bun `bun lint --staged` is a builtin alternative to lint-staged
    Descarcă
    231448216.5K
  24. Bun@bunjavascript
    In the next version of Bun bun lint is a 26x faster ESLint-compatible linter with over 1,000 builtin rules - reads eslint &amp; oxlint configs.
    Descarcă
    55601.2K98.2K
  25. Bun@bunjavascript
    Postări @bunjavascript
    You can see the complete list of over 1,000 builtin lint rules here
    11646K
  26. Bun@bunjavascript
    Postări @bunjavascript
    bun lint builds on top of: - TypeScript’s parser and type checker, ported to Rust - Lint rules ported from oxlint: unicorn, jest, vitest, jsx-a11y, next and promise - Lint rules ported from ESLint, typescript-eslint, eslint-plugin-react, -import and -react-hooks Big thanks to those projects!
    00313.3K