aboutsummaryrefslogtreecommitdiff
path: root/test/cli (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-10-06fix a couple install testsGravatar Dylan Conway 1-8/+8
2023-10-06formatGravatar Dylan Conway 1-1/+2
2023-10-05test(bun install): cover http(s) non-github case (#6190)Gravatar Justin "J.R." Hill 1-0/+48
2023-10-05Use singular nouns when appropriate on install messages (#2543)Gravatar Jake Boone 5-90/+90
* Use singular nouns when appropriate on install messages * Fix one more pluralization * Fix bun-add tests for "1 package installed" * Fix bun install/remove/update tests for "1 package installed"
2023-10-04fix semver and repository host bugs (#6312)Gravatar Dylan Conway 1-2/+208
* releases before prereleases * handle different repo hosts * remove log * Update bun-install.test.ts * test for `bun add` * gitlab test * use comptime hash map, another test case * don't need length * bump timeout, use tld * infer git dependencies for https and ssh
2023-10-03Upgrade webkit (#6277)Gravatar Dylan Conway 1-1/+0
* `reportExtraMemoryAllocated` parameters changed * bump webkit * Update Dockerfile * format
2023-10-03Support `bun run --if-present` (#6248)Gravatar Ashcon Partovi 1-0/+119
* Support --if-present Closes #5670 * More robust tests, handle more cases
2023-10-03Fix bunx command for github package #5974 (#6042)Gravatar axel escalada 1-0/+40
* fix bunx command for github package * refactor fmt package to use it when the path is seted * use labeled block to assign const instead of use 'undefined'
2023-10-03Store workspace package versions (#6258)bun-v1.0.4Gravatar Dylan Conway 1-0/+79
* Store workspace package versions in the lockfile * more logging * wip * keep information from workspace name array and cache * hash key * remove cache, compare workspaces with initially loaded * uncomment sort * remove comments * remove allocation * package json * test `bun add <package>` without workspace prefix * Update test/cli/install/bun-install.test.ts Co-authored-by: Markus Staab <maggus.staab@googlemail.com> --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Markus Staab <maggus.staab@googlemail.com>
2023-10-02Fix `bun install` reading Github API from wrong environment variable (#6247)Gravatar Ashcon Partovi 1-0/+59
* Fix `bun install` reading Github API from wrong environment variable * Update src/install/install.zig --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-28Add local tarball install #5812 (#6118)Gravatar axel escalada 1-1/+46
* check if the value passed for add command is a local tarball and install it, test for local tarball * use bunExe() * use absolute path to copy tarball * fmt ts
2023-09-27fix(bun install): Handle vercel and github tarball path dependencies (#6122)Gravatar Justin "J.R." Hill 1-0/+56
* fix(bun install): Handle vercel and github tarball path dependencies * test(bun install): test tarball path with when * Simplify github tarball detection --------- Co-authored-by: bun <noreply@oven.sh>
2023-09-26Update bun-install.test.tsGravatar Dylan Conway 1-263/+327
2023-09-26fix workspace dependency install (#6092)Gravatar Dylan Conway 1-0/+408
* handle `*` * test * always use the package name * more tests * install dependency in each
2023-09-25Fix create command with template prefixed with @ char #6007 (#6013)Gravatar axel escalada 1-0/+31
* fix create command with template prefixed with @ char * add typescript test for create command * format test
2023-09-24Correctly fix #5888 (#6000)Gravatar Jarred Sumner 2-2/+7
* Update our MultiArrayList * More consistent CI * Fix serialization issue * Update bun.lockb * Update bun.lockb * fixup * Fix `Bin{}` * `bun update` should not cache the manifest * Make bun install tests more consistent * This differs by platform evidently --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-23fix(lockfile): ensure all bytes of union are initialized before ↵Gravatar Ai Hoshino 1-1/+64
serialization. (#5957)
2023-09-22fix(runtime): exclude unevaluated module in `require.cache` (#5903)Gravatar Ai Hoshino 1-0/+1
Close: #5898
2023-09-21Implement module.parent (#5889)bun-v1.0.3Gravatar dave caruso 2-0/+17
* Make module.parent work * yay * oops * yay
2023-09-21Hide env elapsed time when loglevel=info (#5882)Gravatar Colin McDonnell 1-1/+1
* Hide env elapsed time when loglevel=info * Updates * Update * Fix test
2023-09-20fix(run): interpret extensionless files as typescript (#5711)Gravatar dave caruso 2-1/+32
* test * gadsgsagdsa * add better err msg * r * oops * ok
2023-09-20[bun install] Add `-E` as alias of `--exact` (#5104)Gravatar Jonah Snider 1-0/+55
* [bun install] Add `-E` as alias of `--exact` * Add test for -E flag
2023-09-20Fix path used in bunx (#5785)Gravatar Jarred Sumner 1-0/+20
* Fix path used in bunx * Add test * Use a different package --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-19fix(cli): `bun pm cache rm` command not work (#4571)Gravatar WingLim 1-1/+88
* fix(cli): rm arg is in positionals[1] * chore(cli): add cache remove test * chore: remvoe unnecessary join * chore: run formatter --------- Co-authored-by: dave caruso <me@paperdave.net>
2023-09-19Get artifactory to work (#5744)Gravatar Jarred Sumner 2-20/+23
* Get artifactory to work * Cleanup url normalization a ltitle more * Clean up tests * prettier --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-18Encode slashes in package names in the registry manifest request (#5716)Gravatar Jarred Sumner 4-13/+16
* Encode slashes in package names in the registry manifest request Co-Authored-By: Max Brosnahan <1177034+gingermusketeer@users.noreply.github.com> * Update dummy.registry.ts * Fix tests * Add guide for Azure Artifacts * Update azure-artifacts.md * Update azure-artifacts.md * Typo --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Max Brosnahan <1177034+gingermusketeer@users.noreply.github.com>
2023-09-18`bun run` fix missing script error on empty file (#5025)Gravatar Julian 2-0/+15
* Fix empty file not found bug * Add tests * fix test --------- Co-authored-by: Jeremy Funk <jeremy@kombo.dev> Co-authored-by: dave caruso <me@paperdave.net>
2023-09-18fix: provide empty string to 0 length process environment variables (#5679)Gravatar Liz 1-0/+10
* fix: provide empty string to len 0 process env vars For process loaded env vars, its a bug to give them the literal value '""' if the provided length is 0. * fix: add test and remove unneeded branch Removes the redundant branch for empty env vars and adds a test for the process specific case. * fix: remove empty_string_value Removes the constant in favor of using the empty values or passing the literal "". * style: format env.test.ts
2023-09-18fix(config): support for registry url without trailing slash (#5662)Gravatar Ai Hoshino 1-4/+6
* fix(config): support for registry URLs without trailing slash Close: #4589, #5368 * Update src/bunfig.zig * Update src/bunfig.zig --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-15Make `bun run --silent` omit `"error: "..." exited with code 1` (#5459)Gravatar Jarred Sumner 1-24/+66
* Make --silent behave as expected * Make the "tsconfig.json extends" error a debug level --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-13fix(runtime): require cache should not include unevaluated ESM modules. (#5233)Gravatar dave caruso 2-0/+33
2023-09-12Fix some bugs blocking Turborepo from using `bun run` (#5071)Gravatar Jarred Sumner 1-0/+58
* Clean up some error handling when loading `tsconfig.json` * [bun run] don't parse tsconfig.json for package.json scripts * Make this error message better * Bump * Don't print build errors twice * Handle quotes in error messages a little better * Add a couple tests --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-11fix loading env from `.env.production` and friends (#4630)Gravatar Dylan Conway 1-1/+42
* reload conditional vars * test * change `get` and `put` methods * dont clone empty env variables
2023-09-01fix(runtime): fix dns_resolver crash (#4435)Gravatar dave caruso 1-3/+3
* fix incorrect c pointer * format * lets go * random other test case fixed * hanassagi patch * Update dns_resolver.zig * Revert "Update dns_resolver.zig" This reverts commit 53eb338048583a338e7c01d2b351f1c679db3e15. * See if the tests pass --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-08-31`bun install` correctly join dependency URLs (#4421)Gravatar Julian 2-11/+156
* use WTF to join registry strings * show dependency error messages, better join error We actually report errors when enqueuing dependencies now. I also made the join URLs error message read better. It'd be cleaner to handle it all in one place, but there's currently no way to propagate the data up. * starting on registry URL tests * added more registry URL tests * [install] prevent optional/peer deps from failing builds Couldn't get the peer dependency test to work, but the code is there. * ran prettier * changed error note to use realname, updated tests * ran prettier again...
2023-08-30fix(install): resolve semver matching with pre-release tags. (#4412)Gravatar Ai Hoshino 1-0/+44
Close: #4398
2023-08-30[install] fix stale root life-cycle script in lockfile (#4411)Gravatar Alex Lam S.L 1-1/+169
fixes #4319
2023-08-26Fix the crash when importing a module that does not exist. (#4348)Gravatar Ai Hoshino 1-0/+22
Close: #4240
2023-08-24[install] fix stale life-cycle scripts from lockfile (#4307)Gravatar Alex Lam S.L 1-0/+100
fixes #4269
2023-08-24[install] fix crash when installing package that uses loose semver ↵Gravatar Alex Lam S.L 1-0/+135
pre-release (#4302) - also fix parsing of `1.2.3pre+build` fixes #4266
2023-08-16`bun --inspect` (#4158)Gravatar Jarred Sumner 2-5/+5
* Let the debugger to pause/resume the event loop * Add initial support for Debug Adapter Protocol * Add progress * Update Worker.cpp * Fix require("console") #3820 (#4073) * Fix #3820 * Add Module (#4074) * Set exports to {} in user-constructed CommonJSModuleRecords (#4076) * feat(bun/test): Implement "toSatisfy" & "toIncludeRepeated" (fwup) (#3651) * Fix merge issues * oop * make codegen * Fix build issues --------- Co-authored-by: dave caruso <me@paperdave.net> * worker tests (#4058) Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * feat(bun:test) add support for test.each() and describe.each() (#4047) * rename callback to func * update testscope to handle function arguments * works * big cleanup * works in debug, not release * fix memory issue & update tests * catch & str test * write types for each() & switch tests to ts * rm & typo * move some code around & support describe * review changes * Fix one of the astro segfaults, also fix bun init version (#4079) * 4->16 * add assertions * fix version stuff * Remove unintentional logs from #4043 * Run prettier * Update main-worker-file.js * Update SIMDUTF (#4078) * Fix constructing buffer from a UTF16 string with the Latin1 encoding. (#4086) Close: #3914 * Add support for `bun --revision` (#4027) Co-authored-by: Yash Sharma <yashsharma@Yashs-MacBook-Air.local> * Updates * Update __global.zig * remove non-node node-fallbacks (#4082) * remove non-node node-fallbacks. * organize the imports * Fix test * Sync bun-polyfills branch (#4081) * bun-polyfills: initial impl. & baseline refactor * move @types/ws dep from root to /test/ * bun-types: remove ReadableStream.forEach method (this does not exist, probably added by mistake) * bun-polyfills: remove extraneous stream utils * bun-polyfills: add types syncing file * bun-polyfills: re-arrange global polyfills * bun-polyfills: fix FileBlob streams types again * bun-polyfills: sync all of @types/node * bun-polyfills: typeguard all current polyfills * bun-polyfills: fix import paths * bun-polyfills: switch to wasm impl. of farmhash * bun-polyfills: support default import of bun obj * bun-polyfills: transpiler placeholder file * bun-polyfills: loaderless import.meta polyfill * bun-polyfills: refactor import.meta polyfill * bun-polyfills: repl entrypoint & todo list index * bun-types: Add null to return type of Bun.which * bun-types: match Bun.sha with Bun.hash.SHA512_256 * bun-polyfills: new "repl" package.json script * bun-polyfills: full refactor of toplevel hashes * bun-polyfills: these are fixed * bun-types: NODE_ENV is optional * bun-polyfills: fix Bun.env types * bun-types+polyfills: fix HeapSnapshot.version type * bun-polyfills: fix some web streams type conflicts * bun-polyfills: update internal FileBlob.slice * bun-polyfills: fix subproc stdin conversions * bun-polyfills: better internal fileblob types * bun-polyfills: try to sync global performance type * bun-polyfills: working zig wasm polyfills setup * bun-polyfills: update scripts * bun-polyfills: fix wasm file location resolution * bun-polyfills: goodbye farmhash (replaced by zig) * bun-polyfills: move all Bun.hash polyfills to zig * bun-polyfills: reimpl. seeding of seeded hashes * bun-polyfills: impl. undocumented murmur32v2 * bun-polyfills: switch zighash from jsdoc to .d.ts * bun-types: partial fix of Hash types * bun-polyfills: documented Hash.murmur32v2 * bun-polyfills: misc updates * bun-polyfills: enable sourcemaps * bun-polyfills: handle empty inputs to hash funcs * bun-types: narrow down hash func types * bun-polyfills: remove unnecessary bigint casts * bun-polyfills: impl. Bun.isMainThread * bun-polyfills: impl. Bun.sleep and fix sleepSync * bun-polyfills: impl. indexOfLine * bun-polyfills: impl. Bun.peek.status * bun-types: fix hashing test --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * Add remix guide * Fix title * add util.formatWithOptions (#4090) * Add formatWithOptions * tests and tweaks * adjust --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * bun test: format description of test.each (#4092) * bun test: format description * add tests for tests * only --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * Fixes #4062 (#4106) * Fixes #4062 * Update encoding.zig * Use faster C++ impl * Update wtf-bindings.cpp * undo * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> * zig fmt * Update remix guide * fs.zig: create temp files with 0o700, not 0o007 (#4107) * Handle thundering herd of setInterval (#4109) Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> * Fix memory leak in base64url (#4111) Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> * run files without extensions (#4113) * run script without extension * process stdio write fix * don't check for trailing slash, var stream * More lazily initialize these static strings * Remove assertion * wip * Add --inspect flag * Deprecate loading `node_modules.bun` * realpath * regenerate schema * More * more * Update cli.zig * Debugger JS loads * have fun * Most of the code * Its starting to work. * more progress * win some, lose some * Update dap.ts * Async Context Tracking * untested websocket * Emit Console messages * Error handling * errors * Make profiling work better * [clap] CLI arguments with optional values ignore positional params In `bun --inspect foo.js`, `foo.js` should not be the value of `--inspect`. It is a positional parameter. `--inspect=foo` * Support multiple simultaneous clients, automatically unpause on disconnect * regenerate * Update Makefile * Update WebKit * Update cli.zig * Update InternalModuleRegistry+createInternalModuleById.h * BaseURL * Update WebKit * Add web-inspector-bun * Update build.ts * formatting, mostly * Update debugger.ts * Update InternalModuleRegistryConstants.h * wrap * Update test * Update test --------- Co-authored-by: Ashcon Partovi <ashcon@partovi.net> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com> Co-authored-by: dave caruso <me@paperdave.net> Co-authored-by: Tiramify (A.K. Daniel) <94789999+TiranexDev@users.noreply.github.com> Co-authored-by: Jacques <25390037+jecquas@users.noreply.github.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Ai Hoshino <ambiguous404@gmail.com> Co-authored-by: Yash Sharma <yashosharma@gmail.com> Co-authored-by: Yash Sharma <yashsharma@Yashs-MacBook-Air.local> Co-authored-by: Colin McDonnell <colinmcd94@gmail.com> Co-authored-by: jhmaster <32803471+jhmaster2000@users.noreply.github.com> Co-authored-by: Adhityaa Chandrasekar <github@adtac.in> Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com>
2023-08-11Fix using uninitialized variable when formatting `config_path`. (#4129)Gravatar Ai Hoshino 1-0/+20
Close: #4128
2023-08-10bun test: format description of test.each (#4092)Gravatar Jacques 1-0/+215
* bun test: format description * add tests for tests * only --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-08-10Fix testGravatar Jarred Sumner 1-1/+1
2023-08-09Add support for `bun --revision` (#4027)Gravatar Yash Sharma 1-0/+27
Co-authored-by: Yash Sharma <yashsharma@Yashs-MacBook-Air.local>
2023-08-07implement `bun update` (#4046)Gravatar Alex Lam S.L 1-0/+259
- analogous to `npm update` - `bun update <name>` to refresh specified package under `package.json` - `bun update` to refresh all package to latest versions
2023-08-06Bind require.resolve() (#4030)Gravatar Jarred Sumner 1-3/+5
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-06[install] handle `bun add` of existing `peerDependencies` correctly (#4028)Gravatar Alex Lam S.L 2-6/+90
2023-08-04[install] handle `workspace:*` correctly (#3994)Gravatar Alex Lam S.L 1-0/+102
- parse as path so it works on unversioned workspaces - fix missed storage of workspace version fixes #3985
2023-08-04[install] store resolved workspace path in lockfile (#3974)Gravatar Alex Lam S.L 1-24/+140
- resolve cwd consistently - speed up package diff - update `test/bun.lockb` fixes #3685 fixes #3958