aboutsummaryrefslogtreecommitdiff
path: root/src/global.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-01-19`fs.*Sync()`, `bun wiptest`, and More ™ (#106)Gravatar Jarred Sumner 1-6/+23
* very very wip * almost ready to fix the errors * Update identity_context.zig * Update base.zig * [bun test] It runs successfully * Remove unnecessary call * [Bun.js] Improve JS <> Zig unicode string interop This fixes longstanding unicode bugs with `console.log` & `fetch`. I believe @evanwashere reported this first awhile ago * [Bun.js] Implement `Object.is()` binding and a way to set a timeout for script execution * Update PLCrashReport.zig * [Bun.js] Make `console.log` more closely match Node.js and Deno * [Bun.js] Implement formatting specifier for console.* * Implement `console.clear()` * bug fix * Support console.clear() * Buffer stderr * [bun test] Begin implementing Node.js `fs` * Update darwin_c.zig * Implement more of `fs` * `mkdir`, `mkdir` recursive, `mkdtemp` * `open`, `read` (and pread) * Move some things into more files * Implement readdir * `readFile`, `readLink`, and `realpath` * `writeFile`, `symlink`, `chown`, `rename`, `stat`, `unlink`, `truncate` * `lutimes` * Implement `SystemError` and begin wiring up the `fs` module * `"fs"` - Most of the arguments / validation * `fs` - Rest of the arguments / validations * Begin wiring up the `fs` module * Fix all the build errors * support printing typed arrays in console.log * It...works? * Support `require("fs")`, `import fs from 'fs';`, `import * as fs from 'fs'` * Fix a couple bugs * get rid of the crash reporter for now * Update fs.exports.js * [bun.js] slight improvement to startup time * [bun.js] Improve error message printing * [Bun.js] Add `Bun.gc()` to run the garbage collector manually and report heap size * [Bun.js] Add Bun.generateHeapSnapshot to return what JS types are using memory * [Bun.js] Add `Bun.shrink()` to tell JSC to shrink the VM size * Improve encoding reader * [bun.js] Improve callback & microtask performance * Update node_fs.zig * Implement `console.assert` * simple test * [Bun.js] Prepare for multiple globals/realms to support testing * Create callbacks-overhead.mjs * Update http.zig * [Bun.js] Implement `queueMicrotask` * Add test for queueMicrotask * :sleepy: * [Bun.js] Implement `process.versions`, `process.pid`, `process.ppid`, `process.nextTick`, `process.versions`, * Implement `process.env.toJSON()` * [Bun.js] Improve performance of `fs.existsSync` * :nail_care: * [Bun.js] Implement `process.chdir(str)` and `process.cwd()`, support up to 4 args in `process.nextTick` * Make creating Zig::Process lazy * Split processi nto separte file * [Bun.js] Node.js Streams - Part 1/? * [Bun.js] Node.js streams 2/? * WIP streams * fix crash * Reduce allocations in many places * swap * Make `bun` start 2ms faster * Always use an apiLock() * libBacktrace doesn't really work yet * Fix crash in the upgrade checker * Clean up code for importing the runtime when not bundling * :camera: * Update linker.zig * 68! * backtrace * no, really backtrace * Fix * Linux fixes * Fixes on Linux * Update mimalloc * [bun test] Automatically scan for {.test,_test,.spec,_spec}.{jsx,tsx,js,cts,mts,ts,cjs}
2022-01-04Improve how we detect if terminal colors are supportedGravatar Jarred Sumner 1-10/+60
2022-01-03Implement a crash reporter and improve some error handling in `bun install`Gravatar Jarred Sumner 1-1/+1
2022-01-02copy: replace Bun with bun (#99)Gravatar luke miles 1-1/+1
Most CLI tools have the style convention of referring to themselves in lowercase. It is, after all, the name that users type in when using the tool. This PR maintains that convention in bun. "Drop the uppercase B, it's cleaner"
2021-12-30Update global.zigGravatar Jarred Sumner 1-1/+1
2021-12-30linuxGravatar Jarred Sumner 1-1/+1
2021-12-30Upgrade to latest Zig, remove dependency on patched version of Zig (#96)Gravatar Jarred Sumner 1-23/+30
* Prepare to upgrade zig * zig fmt * AllocGate * Update data_url.zig * wip * few files * just headers now? * I think everything works? * Update mimalloc * Update hash_map.zig * Perf improvements to compensate for Allocgate * Bump * :camera: * Update bun.lockb * Less branching * [js parser] Slightly reduce memory usage * Update js_parser.zig * WIP remove unused * [JS parser] WIP support for `with` keyword * Remove more dead code * Fix all the build errors! * cleanup * Move `network_thread` up * Bump peechy * Update README.md
2021-12-27Prepare to run unit tests & remove some dead code (#92)Gravatar Jarred Sumner 1-1/+6
* Remove some dead code * :skull: code * Fix the zig tests * [JS Printer] Print integers faster & less scientific notation on decimals * :skull: dead code * skip * Run all the unit tests
2021-12-24Fix rare crash when new thread is created, possibly only on muslGravatar Jarred Sumner 1-0/+13
2021-12-18Not using hop!Gravatar Jarred Sumner 1-2/+1
2021-12-17WIP hopGravatar Jarred SUmner 1-1/+2
2021-12-16Add some timestampsGravatar Jarred Sumner 1-0/+9
2021-12-16Slightly better progress barGravatar Jarred Sumner 1-3/+36
2021-12-16[bun install] Deterministic lockfile and simple installsGravatar Jarred Sumner 1-0/+8
2021-12-16Mimalloc cleanupGravatar Jarred Sumner 1-0/+16
2021-12-16[bun install] some things installGravatar Jarred Sumner 1-0/+1
2021-12-16[bun install] node-semver works excluding hyphen rangesGravatar Jarred Sumner 1-1/+1
2021-12-16[bun install] Add tests for parsing Semver versionsGravatar Jarred Sumner 1-0/+8
2021-11-02[internal] Inline empty functionGravatar Jarred Sumner 1-1/+1
2021-11-02[interla] CommentGravatar Jarred Sumner 1-0/+3
2021-11-02[internal] Global.configureAllocator()Gravatar Jarred Sumner 1-1/+18
2021-10-24[internal] only set source for test onceGravatar Jarred Sumner 1-0/+3
2021-10-23[internal] Remove more dead code, add script to find .zig files that aren't ↵Gravatar Jarred Sumner 1-1/+4
imported by other .zig files
2021-10-20rewrote most of the routerGravatar Jarred Sumner 1-2/+4
2021-10-14`bun create react app` is almost doneGravatar Jarred Sumner 1-1/+8
2021-10-10[fetch] Add support for gzip & deflate to the http clientGravatar Jarred Sumner 1-0/+5
Powered by Cloudflare's zlib fork
2021-10-03Fix various macOS-specific compile errors and run `zig fmt`Gravatar Jarred Sumner 1-5/+4
2021-10-03Add Three.js benchmarkGravatar Jarred SUmner 1-1/+1
2021-10-02Linux works now.Gravatar Jarred SUmner 1-2/+7
2021-10-01Split out the macOS specific partsGravatar Jarred Sumner 1-1/+2
2021-09-16Colorize build/resolve errors and add a ^Gravatar Jarred Sumner 1-21/+16
2021-09-15Switch to 0.0.x instead of 0.0.0-x to fix the npm install issueGravatar Jarred Sumner 1-2/+2
2021-09-14Support installing bun from npmGravatar Jarred Sumner 1-0/+4
2021-09-14Include build id in welcome notebun-v0.0.0-9bun-v0.0.0-8bun-v0.0.0-10Gravatar Jarred Sumner 1-1/+1
2021-09-14Include a build idbun-build-8bun-build-build-8Gravatar Jarred Sumner 1-0/+2
2021-09-12Support bundling dynamically imported modules.Gravatar Jarred Sumner 1-30/+1
2021-09-08Fixes for AARCH64:Gravatar Jarred Sumner 1-3/+2
2021-08-31Add display name field to frameworks, improve logging, add counters, addGravatar Jarred Sumner 1-0/+11
Former-commit-id: b2cf011b6c6405a786fe22367e1cd4e6c2c4c90f
2021-08-25latestGravatar Jarred Sumner 1-1/+1
Former-commit-id: f5600d123d3710e7ea80ff2b7c66d13382462420
2021-08-23Fix resolve bug with mixed-case node_modulesGravatar Jarred Sumner 1-3/+21
Former-commit-id: 5bdae0ee491e28b49ceed6136f04e0c1feddc808
2021-08-23Use mimalloc for a 10% boostGravatar Jarred Sumner 1-0/+2
Former-commit-id: 044e11d720bc6742dc53b30b4e88e8be7e76c419
2021-08-17log error on respondWith rejection,Gravatar Jarred Sumner 1-0/+4
Former-commit-id: 8f6312a17dc9811d54e4dc31d9ada68e98bae891
2021-08-17alright thats the renameGravatar Jarred Sumner 1-1/+17
Former-commit-id: 0faf61249e76382dfb1aa8721249474eae920753
2021-08-14.env worksGravatar Jarred Sumner 1-0/+3
Former-commit-id: 45ee7874f2c8566c3034743161031b0859423f41
2021-08-05router almost worksGravatar Jarred Sumner 1-6/+6
Former-commit-id: a8b9d27bd0946f9c48bd8e4b5b5c2031aa434f28
2021-08-04coldGravatar Jarred Sumner 1-0/+5
Former-commit-id: 29ceac2a8474322997b89ce217b059bc0c5bc810
2021-08-01hmGravatar Jarred Sumner 1-8/+13
Former-commit-id: 0dc1c1a74b845d037326f4f2facd786924ca722e
2021-07-30little bit of errors, little bit of bytecode caching. neither finishedGravatar Jarred Sumner 1-3/+28
Former-commit-id: c774c395136d58330aa7cad7e9fa434bcef7d5c6
2021-07-26Fix build issuesGravatar Jarred Sumner 1-1/+1
Former-commit-id: 5164b69b57e8c11666591823c5b83435facce5c8
2021-07-26coolGravatar Jarred Sumner 1-6/+8
Former-commit-id: a7214ab61c42f1454a8e17c633085f12ed6bef5a