Jarred Sumner
1490cdc4ff
Fix assertion failure and possible infinite loop when printing as yarn lock files
2023-07-28 17:40:05 -07:00
Dylan Conway
661355546a
zig upgrade ( #3667 )
...
* upgrade
* more fixes
* Bump Zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-18 01:20:20 -07:00
Dylan Conway
5fa13625a1
upgrade zig to v0.11.0-dev.3737+9eb008717 ( #3374 )
...
* progress
* finish `@memset/@memcpy` update
* Update build.zig
* change `@enumToInt` to `@intFromEnum` and friends
* update zig versions
* it was 1
* add link to issue
* add `compileError` reminder
* fix merge
* format
* upgrade to llvm 16
* Revert "upgrade to llvm 16"
This reverts commit cc930ceb1c .
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-21 23:38:18 -07:00
Jarred Sumner
ea47ed0ee5
Fix broken autocomplete
2023-04-19 00:01:27 -07:00
Jarred Sumner
7bd6a1f86d
Remove usages of void{} in favor of {}
...
See https://github.com/ziglang/zig/issues/15213
2023-04-09 05:39:05 -07:00
Alex Lam S.L
0a91490226
[install] support tarball URLs ( #2497 )
...
closes #2448
2023-03-28 13:45:00 -07:00
Dylan Conway
3f04f8d0a6
Upgrade Zig ( #2151 )
...
* fixup
* Upgrade Zig
* Remove bad assertion
* strings
* bump
* mode -> optimize
* optimize
* Linux build
* Update bindgen.zig
2023-02-23 23:57:19 -08:00
Alex Lam S.L
2dc85c4e45
[install] support SCP-style git dependencies ( #2124 )
...
- try HTTPS first before SSH
- improve package name resolution
- improve report messages
fixes #2119
2023-02-21 19:32:35 -08:00
Alex Lam S.L
c60d7db178
[install] support git dependencies ( #2094 )
2023-02-17 14:48:57 -08:00
Alex Lam S.L
cdbc620104
[install] support git://github.com/ dependencies ( #2059 )
2023-02-12 14:44:39 -08:00
Alex Lam S.L
30e82c5df4
fix segfault during non-install script execution ( #2045 )
2023-02-11 20:40:18 -08:00
Alex Lam S.L
f31330d3e2
[install] pick latest tagged version by default ( #2016 )
...
* [install] pick `latest` tagged version by default
fixes #1993
* update `package.json` the same way as `npm
2023-02-08 16:28:29 -08:00
Alex Lam S.L
18807cef03
[install] assorted fixes & improvements ( #2011 )
...
- take `peerDependencies` into account during package placement
- do not recursively resolve `workspaces` (matches `npm`)
- link binaries to non-root packages correctly
- prune empty nodes during dependency tree construction
- support non-standard `workspace:` specifier
2023-02-08 14:37:14 -08:00
Alex Lam S.L
48eb0c12ab
parse git+ https://github.com/ as GitHub URLs ( #1926 )
...
fixes #1921
2023-01-28 22:14:07 -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
468226fc90
be more careful
2023-01-25 01:52:04 -08:00
Alex Lam S.L
f43b675200
support GitHub URLs as dependencies ( #1875 )
2023-01-24 11:57:25 -08:00
Jarred Sumner
17bde9bc86
Fix test failure due to UB
2023-01-21 15:36:51 -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
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
cd5f2ab11f
parse dependency specifier correctly ( #1840 )
2023-01-19 06:39: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
Jarred Sumner
274ae5de1b
[bun install] Make it print workspace: instead of workspace://
2023-01-16 18:57:04 -08:00
Alex Lam S.L
7fa023b8b5
support installation of NPM workspaces ( #1764 )
2023-01-14 07:14:48 -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
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
Jarred Sumner
b631ea7d72
import everything from "bun" where possible
2022-11-29 02:42:56 -08:00
Jarred Sumner
e45f72e8e4
Automatically install npm packages when running a script in Bun's runtime ( #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-11-06 21:42:05 -08:00
Jarred Sumner
cc2c50ad09
[bun install] Implement bun link
2022-08-07 23:23:34 -07:00
Jarred Sumner
bebce1ec63
[bun install] Fix missing lockfile data for tarballs
2022-07-27 21:15:57 -07:00
Jarred Sumner
4749df7c51
[bun install] Resolve nested folder: dependencies and tweak lockfile format for better determinism
2022-02-13 16:08:54 -08:00
Jarred SUmner
b9555a5775
[bun install] Significant perf improvement to installing new packages and fixes 'bun install --production'. Closes #97
2022-01-03 01:40:30 -08:00
Jarred Sumner
e75c711c68
Upgrade to latest Zig, remove dependency on patched version of Zig ( #96 )
...
* 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
* 📷
* 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-30 21:12:32 -08:00
Jarred Sumner
6649218e17
Update dependency.zig
2021-12-20 17:56:22 -08:00
Jarred Sumner
453fae4a5c
[bun install] Strip leading v in versions
2021-12-20 17:52:50 -08:00
Jarred Sumner
81e7576150
Fix error and fix ../
2021-12-19 17:09:19 -08:00
Jarred Sumner
2e69f15c20
Relative paths outside project
2021-12-19 14:48:12 -08:00
Jarred Sumner
0c7b35d0ab
[bun install] Support file: protocol for installing folders as packages
2021-12-19 14:38:32 -08:00
Jarred Sumner
e12f10ae0e
[bun install] More git protocols are valid
2021-12-19 14:37:43 -08:00
Jarred Sumner
b363402f45
[bun install] Support linking binaries & native binaries
2021-12-16 19:18:51 -08:00
Jarred Sumner
e3a12ea1a9
[bun install] Fix bun add so it writes the resolved version to package.json
2021-12-16 19:18:51 -08:00
Jarred Sumner
8586d2e41c
[bun install] Support dependencies prefixed with "npm:"
2021-12-16 19:18:51 -08:00
Jarred Sumner
461c769ac4
Track peer dependencies but don't install them
2021-12-16 19:18:51 -08:00
Jarred Sumner
41c60fb848
[bun install] move around some code
2021-12-16 19:18:51 -08:00