aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-06Bind require.resolve() (#4030)Gravatar Jarred Sumner 3-10/+42
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-06Fixes #4020Gravatar Jarred Sumner 2-1/+6
2023-08-06Running missing scripts exits with non-0 (#4026)Gravatar Yash Sharma 1-1/+1
Co-authored-by: Yash Sharma <yashsharma@Yashs-MacBook-Air.local>
2023-08-06[install] handle `bun add` of existing `peerDependencies` correctly (#4028)Gravatar Alex Lam S.L 1-16/+8
2023-08-06fix nanbun-v0.7.3Gravatar Jarred Sumner 1-0/+3
2023-08-06Update lol-htmlGravatar Jarred Sumner 1-0/+0
2023-08-06Fixes #3129 (#4018)Gravatar Jarred Sumner 2-98/+51
* Fixes #3129 * add CloseEvent --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-06Code coverage for `bun test` (#3975)Gravatar Jarred Sumner 20-26/+1113
* WIP code coverage initial commit * almost works * one approach * Code Coverage * Update WebKit * it works but is not yet accurate * skip double ascii check * wrapper * it works but i'm not sure what to do about blocks * hide blocks for now * Update ZigSourceProvider.cpp * Create coverage.md * Update nav.ts --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-06feat: impl `dns.getServers` (#3982)Gravatar Ai Hoshino 4-3/+102
* feat: impl `dns.getServers` Close: #3981 * check return value of `ares_inet_ntop`
2023-08-06Implement --test-name-pattern (#3998)Gravatar dave caruso 8-7/+151
* Fix end not being emitted all the time * stuff * Implement -t * Undo js_printer changes * Undo http changes * Update InternalModuleRegistryConstants.h * Delete unrelated test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-05Fix(cli/init): support subpath entrypoint. (#4002)Gravatar Ai Hoshino 1-1/+8
2023-08-05Remove Bun.plugin transpiler hook, encourage usage of `--preload` instead ↵Gravatar dave caruso 5-243/+1
(#3987) * Remove Bun.plugin transpiler hook * one missing case
2023-08-04Support --dev/-D and support more flags on bun install (#3989)Gravatar Colin McDonnell 1-3/+8
2023-08-04fix macro string escaping (#3967)Gravatar Dylan Conway 2-7/+23
* handle macro escaping * remove printer * use `js_lexer.decodeEscapeSequences`
2023-08-04Fixes #3991Gravatar Jarred Sumner 1-4/+4
Fixes #3991
2023-08-04[install] handle `workspace:*` correctly (#3994)Gravatar Alex Lam S.L 1-54/+56
- parse as path so it works on unversioned workspaces - fix missed storage of workspace version fixes #3985
2023-08-04FFI typo (#3973)Gravatar dave caruso 2-4/+4
* FFI typo * add tests * it was a newline
2023-08-04Buffer.copy should ignore out-of-range sourceEnd (#3971)Gravatar Yifei Wang 1-1/+2
2023-08-04[install] store resolved workspace path in lockfile (#3974)Gravatar Alex Lam S.L 3-58/+47
- resolve cwd consistently - speed up package diff - update `test/bun.lockb` fixes #3685 fixes #3958
2023-08-04feat(hot-clear-screen): clear terminal on hot reload (#3976)Gravatar simylein 1-0/+7
* feat(hot-clear-screen): clear terminal on hot reload * fix(hot-clear-screen): is now I n the correct place * fix(hot-clear-screen): enable buffering after terminal clear
2023-08-03Fix thread safety issue in async fs functions file paths (#3964)Gravatar Jarred Sumner 5-9/+58
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-03Implement Module.wrap()Gravatar Jarred Sumner 1-23/+45
2023-08-03Update build-id (#3940)Gravatar Jarred Sumner 1-1/+1
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-03allow bundling builtins for browser (#3959)Gravatar Dylan Conway 1-6/+3
* Update resolver.zig * bundle resolve error for non-existent builtins * tests
2023-08-03Fix edge case in `path.relative`. (#3952)Gravatar Ai Hoshino 1-3/+10
Close: #3924
2023-08-03Bunch of fixes (#3516)Gravatar Ashcon Partovi 16-342/+688
* Fix #3497 * Fix #3497 * Run prettier * Fix package.json * remove this too * yeah * Fix missing tests * Use native for utf-8-validate * Add module ID names to builtins * Defer evaluation of ESM & CJS modules until link time * Use builtin name for exports in plugins * Add module IDs to builtins * Update JSC build with new flag * WebKit upgrade fixes * Update WebKit * prettier * Upgrade WebKit * bump * Update once again * Add visitAdditionalChildren, remove .fill() usage * Update process.test.js * Update fs.test.ts --------- Co-authored-by: dave caruso <me@paperdave.net> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-03[install] fix stale `bun.lockb` on workspaces (#3945)Gravatar Alex Lam S.L 2-15/+62
- handle workspaces under `--production` correctly - fix `Makefile`
2023-08-03Minor optimization: Avoid extra copying when the chunk has only one element. ↵Gravatar Ai Hoshino 2-4/+4
(#3946) * Optimize the case where there is only one chunk. * add generated code
2023-08-03Fix the string encoding in `path.extname`. (#3949)Gravatar Ai Hoshino 1-1/+1
Close: #3948
2023-08-02SvelteKit compatibility hackGravatar Jarred Sumner 1-1/+4
2023-08-02typo (#3941)Gravatar dave caruso 1-2/+2
2023-08-02Fix formattingGravatar Ashcon Partovi 1-1/+1
2023-08-02Dave/removedeprecation (#3938)Gravatar dave caruso 2-179/+49
* hide deprecated stuff * this edit * hi
2023-08-02Fix http write (#3939)Gravatar dave caruso 2-13/+11
* Fix encoding problem when uploading a binary file. Close: #3116 * use BufferList * Finish rebase --------- Co-authored-by: Hanaasagi <ambiguous404@gmail.com>
2023-08-02Remove module and browser conditions (#3935)Gravatar dave caruso 1-28/+13
* fix astro compiler * clean this up * Update options.zig --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-08-02Implement `node:worker_threads` (#3923)Gravatar Jarred Sumner 18-58/+687
* Start to implement `worker_threads` * more * more!! * more * Update bundle_v2.zig * delete outdated tests * `receiveMessageOnPort` * props test and export default * fix merge * not implemented tests * individual imports * `receiveMessageOnPort` tests --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-08-02Implement `node:diagnostics_channel` (#3934)Gravatar Ashcon Partovi 5-103/+484
* Add types for `node:async_hooks` * Implement \`node:diagnostics_channel\`
2023-08-02Rewrite built-in modules to use CommonJS over ESM (#3814)Gravatar dave caruso 188-28827/+8622
* stfdsafsd sadffdsa stuff finish commonjs stuff asdf not done but work not done but work not done yet but this is how far i am remove files lol update built files uncomment everything in events lol export default stuff * afdsafsd * its not perfect but almost done * okay * cool * remove temp file * finish rebase * revert settings.json * a * ch-ch-ch-ch-changes * okay * remove this check in release for now * sxdcfghnjm, * lkjhgf * fmt * filename can be null * Update NodeModuleModule.h * weee * fmt --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-02Fixes #3931 (#3933)Gravatar Jarred Sumner 1-37/+9
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-02Fix path_watcher (#3920)Gravatar Ciro Spaciari 1-106/+174
* fix callback and onError * fix main watcher error return * fixup * rename to be more clear
2023-08-02clean declare structs (#3929)Gravatar Ciro Spaciari 2-5/+2
2023-08-01Fix expanding on .env files (#3918)Gravatar Ciro Spaciari 1-5/+8
* fix expanding * refactor locks * bound checks * fix comment * one more test * oops
2023-08-01add `BroadcastChannel` (#3922)Gravatar Dylan Conway 17-43/+1566
* copy and format * update `SerializedScriptValue.cpp` * use `expect().fail()` in message channel tests * rename `BroadcastChannelIdentifier.h` * copy registries * progress and tests * cleanup * worker and broadcast channel test * `BroadcastChannel` ref and unref * `MessagePort` ref, unref, and hasRef * remove `SecurityContext.cpp/h` * add types
2023-08-01Update JSWorker.cppGravatar Jarred Sumner 1-1/+1
2023-08-01Implement Worker.prototype.threadIdGravatar Jarred Sumner 2-2/+18
2023-07-31throw error if node module does not exist (#3913)Gravatar Vlad Sirenko 2-52/+71
2023-07-31More loggingGravatar Jarred Sumner 1-1/+7
2023-07-31Fixes #1669Gravatar Jarred Sumner 1-0/+0
2023-07-31Add a test for TransformStreamGravatar Jarred Sumner 3-11/+10
2023-07-31Fixes #2935Gravatar Jarred Sumner 2-9/+87