Alex Lam S.L
97b637a0bc
fix corner cases with aliased dependencies ( #1927 )
2023-01-28 15:49:30 -08:00
Alex Lam S.L
07258bd559
[WIP] append GitHub package after fully parsed ( #1911 )
2023-01-28 07:05:28 -08:00
Jarred Sumner
128a293901
Make the parser error in bun install look better
2023-01-28 01:09:42 -08:00
Jarred Sumner
2e1c7f5597
sentinel
2023-01-27 15:27:04 -08:00
Jarred SUmner
915b46768c
Remove usages of assumeSentinel
2023-01-26 23:04:37 -08:00
Jarred SUmner
2c23d8736f
valgrind
2023-01-26 04:45:24 -08:00
Alex Lam S.L
f8f989f667
parse package-spec from CLI correctly ( #1895 )
...
* parse package-spec from CLI correctly
fixes #861
* copy separately for `UpdateRequest.name`
fix GItHub URL reporting in results
update tests to reflect latest code changes
* better fix for GitHub URL display issue
2023-01-26 01:06:51 -08:00
Jarred Sumner
781df80a90
[bun install] Support verifying GitHub dependencies
2023-01-25 17:26:49 -08:00
Jarred Sumner
b26ff0074d
[bun install] Include the resolved version for github dependencies in the hash
2023-01-25 17:26:09 -08:00
Jarred Sumner
0a8e42a4ba
[bun install] For github dependencies, write a .bun-tag to mark the revision
2023-01-25 17:25:19 -08:00
Jarred Sumner
a8743f0a34
Fix "failed to resolve"
2023-01-25 02:21:40 -08:00
Jarred Sumner
468226fc90
be more careful
2023-01-25 01:52:04 -08:00
Jarred Sumner
0f2c9c9ff3
Fix "failed to resolve" bug 🫠
2023-01-25 01:09:42 -08:00
Jarred Sumner
ed2a57fcc9
Add log
2023-01-25 01:09:05 -08:00
Jarred Sumner
81b6878e1a
Add assertion
2023-01-24 23:54:42 -08:00
Jarred Sumner
325ffd70e1
one less alloc
2023-01-24 23:53:03 -08:00
Jarred Sumner
d4ce045f9e
More careful about the lifetime of alias
2023-01-24 23:51:48 -08:00
Jarred Sumner
ce38365106
assert defined in development
2023-01-24 23:50:35 -08:00
Jarred Sumner
a3cc911e7a
get cache key for github in one pass
2023-01-24 22:27:06 -08:00
Alex Lam S.L
f43b675200
support GitHub URLs as dependencies ( #1875 )
2023-01-24 11:57:25 -08:00
Alex Lam S.L
e47fe2ca00
support bun link of scoped packages ( #1892 )
2023-01-24 11:52:47 -08:00
Jarred Sumner
17bde9bc86
Fix test failure due to UB
2023-01-21 15:36:51 -08:00
Alex Lam S.L
fd29d05c6a
minor clean-ups ( #1869 )
...
- use `Lockfile.str()` more
- allow `child-process-stdio.test.js` to run with `bun-debug`
2023-01-21 14:02:22 -08:00
Alex Lam S.L
f0fa760479
[semver] parse ^ & ~ expressions correctly ( #1854 )
...
* [semver] parse `^` & `~` expressions correctly
* handle semver ranges correctly against build tags
2023-01-21 04:16:26 -08:00
Jarred Sumner
24e8aa105f
Remove UB with semver.String
...
Thanks @MasterQ32
2023-01-21 04:11:57 -08:00
Alex Lam S.L
bab7e63d7c
use String.from() ( #1850 )
2023-01-19 19:26:10 -08:00
Jarred Sumner
795cde6d62
Bugfixes to install ( #1848 )
2023-01-20 04:55:22 +02:00
Alex Lam S.L
9dfbf57397
repopulate alias_map correctly ( #1847 )
2023-01-19 16:24:56 -08:00
Jarred Sumner
9bcd4952ce
Fix UAF when opening workspaces
2023-01-19 16:14:40 -08:00
Jarred Sumner
8745f10cd3
Improve error message when a workspace is not found
2023-01-19 15:48:03 -08:00
Alex Lam S.L
cd5f2ab11f
parse dependency specifier correctly ( #1840 )
2023-01-19 06:39:01 -08:00
Alex Lam S.L
61736966ad
fix stale references upon Lockfile tree cloning ( #1845 )
2023-01-19 06:38:08 -08:00
Alex Lam S.L
8bdcded5c1
fix memory reference issues ( #1841 )
2023-01-19 00:53:01 -08:00
Alex Lam S.L
c0ec61cf16
support npm dependency aliasing ( #1837 )
...
* support npm dependency aliasing
* fix variable name
2023-01-18 20:11:52 -08:00
Ciro Spaciari
c00fadab9e
feat(cli): Support HTTPS_PROXY, HTTP_PROXY, and NO_PROXY #1440 ( #1814 )
...
* WIP: http_proxy implemented, first steps for https_proxy #1440
* add HTTP_PROXY support to upgrade_command and WIP: tunneling
* WIP async handshake, stuck on WANT_READ, try to defer + check
* create and upgrade with proxy working, TLS and non-TLS to proxy TLS working
* bun install/upgrade/create working with http(s)_proxy #1440
* add NO_PROXY support #1440
* remove commented code and add TODO
* fix getHttpProxy no_proxy
* fix formatting
* refactor catch and getHttpProxy, fix empty strngs in env for proxy
* allow optimization for handleResponseBody
2023-01-17 17:47:01 -08:00
Jarred Sumner
274ae5de1b
[bun install] Make it print workspace: instead of workspace://
2023-01-16 18:57:04 -08:00
Jarred Sumner
a345efd270
Fix getFdPath when /proc/fd is not mounted
2023-01-16 13:59:52 -08:00
Alex Lam S.L
893ec2fb45
fix life-cycle script execution ( #1799 )
...
- change current working directory for workspaces
- add `node_modules/.bin` to `PATH` before running
2023-01-14 21:37:16 -08:00
Alex Lam S.L
7fa023b8b5
support installation of NPM workspaces ( #1764 )
2023-01-14 07:14:48 -08:00
Jarred SUmner
168bb1427f
move more things
2023-01-13 11:38:16 -08:00
Jarred SUmner
996ef44c02
Split some things into more files and use bun namespace instead of import more
2023-01-13 11:27:16 -08:00
Alex Lam S.L
270b07e85e
use strings.hasPrefixComptime() ( #1755 )
2023-01-10 05:35:20 -08:00
Jarred Sumner
1ba95a65ee
Make the error message for unsupported dependency type a little clearer
2023-01-02 14:52:35 -08:00
Jarred Sumner
be706fecb4
Make NamesIterator safer
2022-12-30 21:30:23 -08:00
Jarred Sumner
2fc6913085
More assertions
2022-12-30 04:46:52 -08:00
Jarred Sumner
42be4e52fe
Use ArrayBitSet that passes by reference instead of value
2022-12-30 04:46:52 -08:00
Jarred Sumner
385c81d67b
Fix crash with bun install <foo>
2022-12-30 04:46:52 -08:00
Jarred SUmner
2c5e1cb7d7
Fix broken hardlink installs
2022-12-29 21:46:32 -08:00
Jarred Sumner
c0dd284136
Upgrade to latest Zig ( #1610 )
...
* @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
* 📷
* 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-28 00:51:22 -08:00
Alex Lam S.L
c4ca4c70d1
[install] specify auth-type ( #1667 )
2022-12-26 15:15:58 -08:00