aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/javascript.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-02-03Support loading multiple entry points by changing what `bun:main` points toGravatar Jarred Sumner 1-1/+14
2022-02-02"path" module from Node.js implementationGravatar Jarred Sumner 1-1/+31
2022-02-01WIPGravatar Jarred Sumner 1-0/+23
2022-01-29Slight tweaks to TOML parserGravatar Jarred Sumner 1-2/+102
2022-01-27[bunfig] Implement config file formatGravatar Jarred Sumner 1-15/+3
2022-01-25Slightly saferGravatar Jarred Sumner 1-1/+1
2022-01-23fake segfault testGravatar Jarred Sumner 1-3/+2
2022-01-21[Bun.js] Fix error printingGravatar Jarred Sumner 1-2/+2
2022-01-21[Bun.js] Add a threadpool for doing CPU-bound workGravatar Jarred Sumner 1-4/+75
2022-01-20[Bun.js] Fix TypedArray/ArrayBuffer <> Zig interopGravatar Jarred Sumner 1-1/+1
2022-01-19Bun.Transpiler – API for scanning imports/exports of JSX/TSX/TS/JS filesGravatar Jarred Sumner 1-1/+16
2022-01-19`fs.*Sync()`, `bun wiptest`, and More ™ (#106)Gravatar Jarred Sumner 1-139/+475
* 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-04[Bun.js][bun dev] Support macros inside of Bun.jsGravatar Jarred Sumner 1-44/+70
Closes #36
2022-01-01[bun dev] Automatically set `origin` - improve support for proxying BunGravatar Jarred Sumner 1-15/+33
Previously, when running Bun behind a reverse proxy, you had to pass an explicit `--origin` arg and it could only run behind one proxy at a time. Now, Bun automatically determines the origin from the request if possible. It reads `Forwarded`, `X-Forwarded-Proto`, `X-Forwarded-Host`, `Origin`, and lastly `Host`. If none are available, it falls back to the `--origin` CLI arg. This change is important for usecases like Replit which shows multiple iframes in different origins.
2021-12-31Attempt to fix watcher issue with repl.itGravatar Jarred Sumner 1-1/+2
2021-12-30Upgrade to latest Zig, remove dependency on patched version of Zig (#96)Gravatar Jarred Sumner 1-147/+193
* 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-28[Bun.js] Add Bun.argv api, so you can get the arguments that started a scriptGravatar Jarred Sumner 1-1/+26
2021-12-27Prepare to run unit tests & remove some dead code (#92)Gravatar Jarred Sumner 1-12/+1
* 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-23Workaround miscompilation so JavaScriptCore runs on Linux AARCH64Gravatar Jarred Sumner 1-4/+4
2021-12-22[Bun.js] Fix SSR when using `fetch`Gravatar Jarred Sumner 1-4/+11
2021-12-21Slightly less pointer chasingGravatar Jarred SUmner 1-1/+1
2021-12-17👶event loopGravatar Jarred Sumner 1-25/+62
2021-12-16wipGravatar Jarred Sumner 1-0/+7
2021-12-16[macros] Do not automatically load node_modules.bun in macrosGravatar Jarred Sumner 1-11/+11
2021-11-04[internal] fmtGravatar Jarred Sumner 1-20/+28
2021-11-03[Bun.js] Rename `Bun.sleep` -> `Bun.sleepSync`bun-v0.0.44Gravatar Jarred Sumner 1-3/+3
2021-10-31[Bun.js] Bun.sleep() lets you synchronously sleep. Thanks @evanwashereGravatar Jarred Sumner 1-0/+19
2021-10-30Update javascript.zigGravatar Jarred Sumner 1-0/+1
2021-10-30[Bun.js] Lazily add `FORCE_COLOR` environment variable for better ↵Gravatar Jarred Sumner 1-1/+13
compatibility with Node.js modules that detect whether the terminal supports colors
2021-10-30[Bun.js] Partially fix loading Node.js fallback modulesGravatar Jarred Sumner 1-2/+19
2021-10-30[Bun.js] Add API for detecting if ANSI colors are enabledGravatar Jarred Sumner 1-25/+29
2021-10-30[Bun.js] Add performance.now()Gravatar Jarred Sumner 1-0/+40
2021-10-29[internal] Fix missing symbol errors when building JavaScriptCore bindings ↵Gravatar Jarred Sumner 1-1/+6
without already having the object files
2021-10-24[internal] Get source URLs in C++Gravatar Jarred Sumner 1-45/+0
2021-10-23[internal] :scissors: dead codeGravatar Jarred Sumner 1-1/+0
2021-10-23[Bun.js] Add `Bun.env` and support `process.env` for non-transpiled ↵Gravatar Jarred Sumner 1-2/+129
environment variables
2021-10-20rewrote most of the routerGravatar Jarred Sumner 1-7/+33
2021-10-06Add support for reading JSX config from tsconfig.jsonGravatar Jarred Sumner 1-0/+1
2021-10-05analytics is good enough for nowGravatar Jarred Sumner 1-0/+2
2021-09-30Pass macro_context when appropriate. This needs to be refactored more.Gravatar Jarred Sumner 1-1/+7
2021-09-30Support remapping macro pathsGravatar Jarred Sumner 1-6/+37
2021-09-26Update `Bun.readFileAsBytes` and `Bun.readFile` to also accept an array of ↵Gravatar Jarred Sumner 1-91/+143
filepaths to join For example: ``` Bun.readFileAsString([Bun.main, "../pages/hi.tsx"]); ```
2021-09-26Basic macro implGravatar Jarred Sumner 1-0/+15
2021-09-24skeleton codebun-v0.0.22Gravatar Jarred Sumner 1-3/+113
2021-09-24Remove `cache_files` since it's not used and causes slower Bun compilation timesGravatar Jarred Sumner 1-1/+1
2021-09-21[Bun.js] Add Bun.readFileBytes() to get a Uint8Array of the file's contents ↵Gravatar Jarred Sumner 1-0/+72
without copying.
2021-09-21[Bun.js] Add support for `console.time`, `console.timeEnd`Gravatar Jarred Sumner 1-0/+1
2021-09-16Colorize build/resolve errors and add a ^Gravatar Jarred Sumner 1-3/+11
2021-09-11bun:error.js into separate module, ensure we don't include fast refresh in ↵Gravatar Jarred Sumner 1-0/+28
Bun.js, log build errors to browser console, don't warn for node_modules,
2021-09-09fetc h!!!Gravatar Jarred Sumner 1-1/+5