chloe caruso
4ec410e0d7
internal: make @import("bun") work in zig ( #19096 )
2025-04-17 12:32:47 -07:00
chloe caruso
1a6a34700f
chore: less usingnamespace, deprecate bun.C in favor of automatic translate-c ( #17830 )
2025-03-03 15:04:21 -08:00
Pranav Joglekar
4e3c9bc1d1
feat: Support codesigning macOS executables in bun build --compile ( #17207 )
...
Co-authored-by: pfg <pfg@pfg.pw >
2025-02-25 01:34:11 -08:00
dave caruso
688ddbda74
feat(bundler): implement enum inlining / more constant folding ( #12144 )
...
Co-authored-by: paperdave <paperdave@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-07-03 04:23:17 -07:00
dave caruso
b76376f8a6
chore: upgrade zig to 0.13.0 ( #9965 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Grigory <grigory.orlov.set@gmail.com >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
Co-authored-by: Meghan Denny <hello@nektro.net >
Co-authored-by: Kenta Iwasaki <63115601+lithdew@users.noreply.github.com >
Co-authored-by: John-David Dalton <john.david.dalton@gmail.com >
Co-authored-by: Dale Seo <5466341+DaleSeo@users.noreply.github.com >
Co-authored-by: Zack Radisic <56137411+zackradisic@users.noreply.github.com >
Co-authored-by: paperdave <paperdave@users.noreply.github.com >
Co-authored-by: Georgijs Vilums <georgijs.vilums@gmail.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2024-06-20 13:48:39 -07:00
Meghan Denny
e3689e7e83
node:crypto: add blake2b512, sha512-224, sha3-* ( #10383 )
...
* node:crypto: add blake2b512, sha512-224, sha3-*
* update submodule
* flesh out rest of api
* remove new bun.newCatchable
* add SHA512_224 to HashClasses
* remove SHA512_224 js class
* better allocation
* remove memcpy in path where buffer is provided to us
* add back benchmark
* move zig crypto things into specific struct
* Apply formatting changes
* centralize algorithm definitions into one spot
* rsa-256 was deleted
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-04-23 19:35:27 -07:00
Jarred Sumner
1191bf0c15
Delete dead test code ( #10405 )
...
* Delete dead test code
* Apply formatting changes
---------
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-04-20 21:25:10 -07:00
dave caruso
c99d7ed331
feat: overhaul the crash handler ( #10203 )
...
* some work
* linux things
* linux things
* feat: tracestrings on Windows
* bwaa
* more work on the crash handler
* okay
* adgadsgbcxcv
* ya
* dsafds
* a
* wuh
* a
* bru h
* ok
* yay
* window
* alright
* oops
* yeah
* a
* a
* OOM handling
* fix on window
2024-04-17 15:32:25 -07:00
Jarred Sumner
688844b472
refactor: ban std.debug.assert ( #10168 )
...
* Ban `std.debug.assert`
* Create .clangd
* Update lint.yml
* Update linter.ts
* update
* lint
* Update linter.ts
* Update linter.ts
* update
* Update linter.ts
* update
* Update linter.ts
* more
* Update install.zig
* words
* Remove UB
2024-04-11 17:52:29 -07:00
Meghan Denny
e209ae81dd
meta: ensure there's a single 'bun' import per file in zig ( #10137 )
...
* meta: ensure there's a single 'bun' import per file in zig
* undo this change in codegen
2024-04-09 22:41:07 -07:00
Meghan Denny
5712ba8b3b
debug: introduce bun.callmod_inline ( #9001 )
2024-02-19 14:43:42 -08:00
Jarred Sumner
b7b0e28b10
Rename bun.zig to BunObject.zig ( #8344 )
...
* Rename `bun.zig` to `BunObject.zig`
* Rename `bun.classes.ts` to `BunObject.classes.ts`
* Update references to `bun.zig`
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-21 19:55:24 -08:00
Meghan Denny
065eae5a95
tidy: use std.mem.zeroes instead of loop or memset ( #8138 )
...
* use std.mem.zeroes instead of loop or memset
* Update src/bun.js/api/bun.zig
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-01-12 23:56:51 -08:00
Meghan Denny
45bd2264e3
more small undefined fixes ( #8133 )
2024-01-12 18:17:53 -08:00
dave caruso
369e3022e4
chore: upgrade zig to 0.12.0-dev.1828+225fe6ddb ( #7671 )
...
* chore: upgrade zig to 0.12.0-dev.1828+225fe6ddb
* open as iterable
* fix building identifier cache
* fix windows build
* fix linux build
* fix linux build
2023-12-16 00:14:15 -08:00
Jarred Sumner
0c532eac7b
Make tsc --help 2x faster ( #7365 )
2023-12-01 22:56:40 +01:00
Jarred Sumner
e2a17344dc
just kernel32 things ( #4354 )
...
* just kernel32 things
* more
* Update linux_c.zig
* Update windows_c.zig
* Add workaround
Workaround https://github.com/ziglang/zig/issues/16980
* Rename http.zig to bun_dev_http_server.zig
* Rename usages
* more
* more
* more
* thanks tigerbeetle
* Rename `JSC.Node.Syscall` -> `bun.sys`
* more
* woops
* more!
* hmm
* it says there are only 37 errors, but that's not true
* populate argv
* it says 32 errors!
* 24 errors
* fix regular build
* 12 left!
* Still 12 left!
* more
* 2 errors left...
* 1 more error
* Add link to Tigerbeetle
* Fix the remainign error
* Fix test timeout
* Update syscall.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-28 04:39:16 -07:00
Dylan Conway
661355546a
zig upgrade ( #3667 )
...
* upgrade
* more fixes
* Bump Zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-18 01:20:20 -07:00
Dylan Conway
5fa13625a1
upgrade zig to v0.11.0-dev.3737+9eb008717 ( #3374 )
...
* progress
* finish `@memset/@memcpy` update
* Update build.zig
* change `@enumToInt` to `@intFromEnum` and friends
* update zig versions
* it was 1
* add link to issue
* add `compileError` reminder
* fix merge
* format
* upgrade to llvm 16
* Revert "upgrade to llvm 16"
This reverts commit cc930ceb1c .
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-21 23:38:18 -07:00
Jarred Sumner
a2ec2ea397
Fixes #3250 ( #3269 )
...
* Fixes #3250
We must call `EVP_MD_CTX_cleanup` because `EVP_MD_CTX` containers pointers inside to allocated memory
* Fix leak
* Update sha.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-10 02:26:48 -07:00
Jarred Sumner
ea47ed0ee5
Fix broken autocomplete
2023-04-19 00:01:27 -07:00
Jarred Sumner
714b8d10e0
fixup
2023-02-28 21:56:28 -08:00
Jarred Sumner
56488d54d0
Add some more functions to sha bench
2023-02-27 18:30:42 -08:00
Jarred Sumner
f58728ccc7
Call BoringSSL.load() in more places
2023-02-25 15:15:10 -08:00
Dylan Conway
3f04f8d0a6
Upgrade Zig ( #2151 )
...
* fixup
* Upgrade Zig
* Remove bad assertion
* strings
* bump
* mode -> optimize
* optimize
* Linux build
* Update bindgen.zig
2023-02-23 23:57:19 -08:00
Jarred Sumner
0504bb8984
Expose the rest of RIPEMD160
2022-12-28 22:24:37 -08:00
Jarred Sumner
c0dd284136
Upgrade to latest Zig ( #1610 )
...
* @min and @max
* builtins and some trivial ones
* Most of them
* more
* more!
* More Progress
* wip
* Update tagged_pointer.zig
* Update http_client_async.zig
* Most of the iterable dir changes
* alright
* Remove usages of deprecated formatters
* 📷
* fmt
* Update shimmer.zig
* wip
* wip
* wip
* progress
* more
* Latest
* stuck on error
* latest
* workaround stage2
* wip
* Update string_immutable.zig
* wip
* Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings
* Fix build errors
* Fixup most of the test failures
* Fix `make headers`
* Fix "outside package path" error
* Fixup aligned alloc
* Add missing file
* linux
* More linux fixes
* use latest peechy
* Fix transpiler test failure
* Forgot about these
* Fixup test failure
* Update node-timers.test.ts
* [node:htt] Fix `undefined is not an object` error
Fixes https://github.com/oven-sh/bun/issues/1618
* Update http.exports.js
* Make this test less flaky
* fix hashes
* Fix hex formatting and zls issues
* Download zig version
* Update Dockerfile
* Update Dockerfile
* Update uws
* Update Dockerfile
* Set llvm version
* Update README.md
* Update uws
* Update Dockerfile
* Update io_linux.zig
* Update bun.zig
* Log output
* workaround strange @cInclude error
* Make ffi tests better
* Don't use cImport
* Update c.zig
* Update c-bindings.cpp
* call setOutputDir
* Update Dockerfile
* Use a longer name
* latest
* Update serve.test.ts
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Veikka Tuominen <git@vexu.eu >
2022-12-28 00:51:22 -08:00
Jarred Sumner
b631ea7d72
import everything from "bun" where possible
2022-11-29 02:42:56 -08:00
Zilin Zhu
1bc5036d2e
fix MD5 length and compile error ( #1050 )
2022-08-10 23:11:24 -07:00
sno2
f5d896542a
fix: update build files to latest Zig version
2022-07-09 18:25:25 -07:00
Jarred Sumner
3db3057d42
Support digest("base64" | "hex") in the hashings
2022-04-13 04:20:05 -07:00
Jarred Sumner
f6d73cb06e
[bun.js] Implement Bun.sha1, Bun.sha256, Bun.sha384, Bun.sha512, Bun.sha512_384
2022-04-12 22:59:52 -07:00