aboutsummaryrefslogtreecommitdiff
path: root/src/resolver (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-02-11fix segfault during non-install script execution (#2045)Gravatar Alex Lam S.L 2-2/+1
2023-02-06[WIP] fix corner cases with aliases dependencies (#2000)Gravatar Alex Lam S.L 1-1/+2
* fix corner cases with aliases dependencies * in-memory convert legacy `bun.lockb`
2023-02-01resolve duplicate npm dependencies correctly (#1970)Gravatar Alex Lam S.L 1-1/+1
* resolve duplicate npm dependencies correctly fixes #1952 * modify the correct reference
2023-01-27fix sentinel mismatchesGravatar Dylan Conway 1-1/+1
2023-01-25be more carefulGravatar Jarred Sumner 1-1/+1
2023-01-24Try resolving against the path without the .js extensionGravatar Jarred Sumner 1-8/+67
2023-01-24Always allow importing `${package}/package.json`Gravatar Jarred Sumner 1-0/+25
2023-01-21Support query string parameters in module resolutionGravatar Jarred Sumner 1-0/+8
2023-01-21minor clean-ups (#1869)Gravatar Alex Lam S.L 1-2/+1
- use `Lockfile.str()` more - allow `child-process-stdio.test.js` to run with `bun-debug`
2023-01-21Remove UB with `semver.String`Gravatar Jarred Sumner 1-1/+1
Thanks @MasterQ32
2023-01-19use `String.from()` (#1850)Gravatar Alex Lam S.L 1-1/+1
2023-01-18support npm dependency aliasing (#1837)Gravatar Alex Lam S.L 2-13/+8
* support npm dependency aliasing * fix variable name
2023-01-16Fix `getFdPath` when `/proc/fd` is not mountedGravatar Jarred Sumner 1-4/+4
2023-01-14support installation of NPM workspaces (#1764)Gravatar Alex Lam S.L 1-4/+4
2023-01-13move more thingsGravatar Jarred SUmner 2-4/+4
2023-01-10Disable reading the `browser` field when targeting Bun's runtime (#1763)Gravatar Jarred Sumner 1-134/+147
* Fix flipped order * Disable reading `"browser"` field when targeting Bun's runtime in the resolver * Update resolver.zig Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-10 use `strings.hasPrefixComptime()` (#1755)Gravatar Alex Lam S.L 2-2/+2
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 3-62/+65
* @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 * :camera: * 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-04[internal] Make string comparisons fasterGravatar Jarred Sumner 4-12/+12
2022-12-01[bun bun] Fix incorrect package.hashGravatar Jarred Sumner 2-6/+8
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 6-9/+9
2022-11-23possibly more reliable Bun.spawn (#1547)Gravatar Jarred Sumner 1-1/+1
* wip * wip * Fix bug with stdin * zig fmt * seems to work! * Update streams.test.js Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-22Introduce `Bun.FileSystemRouter` APIGravatar Jarred Sumner 1-0/+1
2022-11-21Wildcard imports map (#1483)Gravatar João Paquim 2-93/+186
* Log extra info on missing file extension * Improve error messages for missing /index.js on import * Remove unnecessary function parameter path * Add loadPackageImports function to match esbuild * Add support for pattern trailer import syntax * Fix review comments
2022-11-09remove thisGravatar Jarred Sumner 1-49/+0
wrong approach
2022-11-08Allow read_only packages to check the cacheGravatar Jarred Sumner 1-25/+74
2022-11-08Default enable optional dependencies for remote packagesGravatar Jarred Sumner 1-1/+1
2022-11-07clean up some reliability issues with automatic installGravatar Jarred Sumner 1-9/+1
2022-11-07[bun:test] Implement `expect` in faster Zig bindingsGravatar Jarred Sumner 1-1/+0
2022-11-06Automatically install npm packages when running a script in Bun's runtime ↵Gravatar Jarred Sumner 3-240/+1213
(#1459) * Update bundler.zig * WIP * Update README.md * Update README.md * wip * Support running scripts without package.json * Add `--no-auto-install` and `--prefer-offline` flags * WIP * wip * Update headers-handwritten.h * WIP * Build fixes * Fix UAF * Update install.zig * Must call .allocate() * Micro-optimization: only call .timestamp() once per tick when installing packages * Support progress bar * Extend the timestamp for package staleness checks to 1 day * Add `--prefer-latest`, `-i` CLI Flags * Fix crash * Support line text manually being set on an Error instance * Add a few more fields for error messages * Fix bug when counting 8 character strings in string builder * Implement error handling for automatic package installs! * Fix crash * Make it say module when there's a slash * Update module_loader.zig * Ban dependency versions in import specifiers when a package.json is present * Remove unused field * Update README.md * Update README.md * Update README.md * Update README.md Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-10-06Add simple Hot Module Reloading to bun's runtimeGravatar Jarred Sumner 1-8/+20
2022-09-21Fix crash with `jsxFragment` and `jsxFactory` in tsconfig.jsonGravatar Jarred Sumner 1-21/+51
Fixes https://github.com/oven-sh/bun/issues/1269
2022-09-19Handle nested files more correctly with "imports" in package.jsonGravatar Jarred Sumner 1-5/+3
2022-09-19Implement `imports` in package.json (`#foo` imports)Gravatar Jarred Sumner 2-85/+205
Fixes https://github.com/oven-sh/bun/issues/478 Fixes https://github.com/oven-sh/bun/issues/234 Fixes https://github.com/oven-sh/bun/issues/822
2022-09-06Fix potential crash when resolving package.json "exports"Gravatar Jarred Sumner 1-1/+1
Have not seen a crash happen here yet
2022-08-28feat: hack in support for tsconfig `extends` (#1147)Gravatar yepitschunked 2-14/+47
* hack in support for extends * Update src/resolver/resolver.zig Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * wip review fixes * fix style Co-authored-by: Victor Lin <victor.lin@airbnb.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Victor Lin <vlin@twitter.com>
2022-08-03fix path.normalize on ... (#966)Gravatar Zilin Zhu 1-1/+1
2022-07-11Fixes https://github.com/oven-sh/bun/issues/229Gravatar Jarred Sumner 2-3/+6
2022-07-10Remove unnecessary `Output.flush`s before `Global.exit` and `Global.crash` ↵Gravatar r00ster91 1-4/+0
(#535) * fix: add missing newline * refactor: std.process.exit -> Global.exit * fix: std.os.abort -> Global.exit I'm not sure about this one. Please verify. * cleanup: remove unnecessary `Output.flush`s
2022-07-06[tsconfig] Fix crash affecting preactGravatar Jarred Sumner 1-0/+15
2022-06-24Add dynamic require supportGravatar Jarred Sumner 1-1/+1
2022-06-22Fix bug with `browser` disabled modulesGravatar Jarred Sumner 1-12/+29
2022-05-19[TSConfig] Propagate runtime from tsconfig.jsonGravatar Jarred Sumner 1-0/+1
2022-05-19[wip] Solid.js support for Bun!Gravatar Jarred Sumner 3-6/+10
2022-05-05E.String gets a RopeGravatar Jarred Sumner 1-7/+7
2022-04-20[misc] Fix broken build on macOSGravatar Jarred Sumner 1-2/+2
2022-04-18[timer] Remove timer.zig and use system_timer.zig (#149)Gravatar wangao 1-8/+4
2022-04-18Fix wasm buildGravatar Jarred Sumner 1-7/+18
2022-04-13Warn about moduleSuffixesGravatar Jarred Sumner 1-0/+6
2022-03-19recommend bun installGravatar Jarred Sumner 1-2/+2