Jarred Sumner
714ce7619d
[internal] Make string comparisons faster
2022-12-04 06:53:53 -08:00
Jarred Sumner
7b70ed52fa
[bun bun] Fix incorrect package.hash
2022-12-01 21:37:25 -08:00
Jarred Sumner
b631ea7d72
import everything from "bun" where possible
2022-11-29 02:42:56 -08:00
Jarred Sumner
ac36ea51cf
possibly more reliable Bun.spawn ( #1547 )
...
* 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-23 07:14:33 -08:00
Jarred Sumner
d21aee5143
Introduce Bun.FileSystemRouter API
2022-11-22 02:13:03 -08:00
João Paquim
a3dc33c133
Wildcard imports map ( #1483 )
...
* 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-21 17:31:02 -08:00
Jarred Sumner
9ea025c543
remove this
...
wrong approach
2022-11-09 17:23:48 -08:00
Jarred Sumner
6c6e680d91
Allow read_only packages to check the cache
2022-11-08 03:02:20 -08:00
Jarred Sumner
9f222c5ed2
Default enable optional dependencies for remote packages
2022-11-08 03:01:41 -08:00
Jarred Sumner
41c983b386
clean up some reliability issues with automatic install
2022-11-07 19:50:54 -08:00
Jarred Sumner
71d0e14210
[bun:test] Implement expect in faster Zig bindings
2022-11-07 00:53:24 -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
2c762f47c9
Add simple Hot Module Reloading to bun's runtime
2022-10-06 00:47:03 -07:00
Jarred Sumner
871d530d6a
Fix crash with jsxFragment and jsxFactory in tsconfig.json
...
Fixes https://github.com/oven-sh/bun/issues/1269
2022-09-21 19:55:30 -07:00
Jarred Sumner
8b7f43f855
Handle nested files more correctly with "imports" in package.json
2022-09-19 21:02:26 -07:00
Jarred Sumner
21770eb0f3
Implement imports in package.json (#foo imports)
...
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-19 20:03:02 -07:00
Jarred Sumner
b24a9b29d7
Fix potential crash when resolving package.json "exports"
...
Have not seen a crash happen here yet
2022-09-06 17:25:22 -07:00
yepitschunked
b2141a204f
feat: hack in support for tsconfig extends ( #1147 )
...
* 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-28 21:21:20 -07:00
Zilin Zhu
36d5d764d8
fix path.normalize on ... ( #966 )
2022-08-03 21:14:08 -07:00
Jarred Sumner
7904f49b5d
Fixes https://github.com/oven-sh/bun/issues/229
2022-07-11 03:41:03 -07:00
r00ster91
16452c16da
Remove unnecessary Output.flushs before Global.exit and Global.crash ( #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-10 06:44:57 -07:00
Jarred Sumner
4601531bf0
[tsconfig] Fix crash affecting preact
2022-07-06 23:16:18 -07:00
Jarred Sumner
7bb75f5553
Add dynamic require support
2022-06-24 06:59:47 -07:00
Jarred Sumner
659d4497d0
Fix bug with browser disabled modules
2022-06-22 06:56:47 -07:00
Jarred Sumner
224cfa91fb
[TSConfig] Propagate runtime from tsconfig.json
2022-05-19 21:10:11 -07:00
Jarred Sumner
d4767ca763
[wip] Solid.js support for Bun!
2022-05-19 05:37:18 -07:00
Jarred Sumner
d629cfafd6
E.String gets a Rope
2022-05-05 21:32:19 -07:00
Jarred Sumner
5e739acfbb
[misc] Fix broken build on macOS
2022-04-20 23:46:11 -07:00
wangao
0aacddb971
[timer] Remove timer.zig and use system_timer.zig ( #149 )
2022-04-18 21:25:53 -07:00
Jarred Sumner
6728551dc4
Fix wasm build
2022-04-18 17:41:58 -07:00
Jarred Sumner
add1c91425
Warn about moduleSuffixes
2022-04-13 21:46:02 -07:00
Jarred Sumner
521ccba387
recommend bun install
2022-03-19 00:45:40 -07:00
Jarred Sumner
5d39d3a3b2
[resolver] Fix edgecase where remapping a tsx -> js import path produced an invalid file path
2022-03-18 04:38:49 -07:00
Jarred Sumner
7a978f9381
move some code around
2022-03-17 01:28:56 -07:00
Jarred Sumner
f4504292cf
[bun.js] Implement Blob
2022-03-13 06:08:10 -07:00
Jarred Sumner
701d6ec45d
rename _global -> bun
2022-03-08 18:54:54 -08:00
Jarred Sumner
51fbbea1d3
upgrade zig
2022-03-04 00:20:22 -08:00
Jarred Sumner
17d625a735
remove a threadlocal
2022-03-02 15:34:26 -08:00
Jarred Sumner
4bb3f207ed
Remove unused bool
2022-03-01 22:16:17 -08:00
Jarred Sumner
50560e169c
WASM
2022-02-27 23:20:10 -08:00
Jarred Sumner
931670b7cb
Wrap some usages of assert in a conditional
...
See https://github.com/ziglang/zig/issues/10942
2022-02-21 16:27:44 -08:00
Jarred Sumner
59109a309f
add version to Framework struct
2022-02-20 16:24:36 -08:00
Jarred Sumner
83659b898d
Path.join
2022-02-14 05:43:11 -08:00
Jarred Sumner
3d057950b9
std.os.exit -> Global.exit so stderr is always flushed
2022-02-11 14:56:28 -08:00
Jarred Sumner
3063df9b78
Update resolve_path.zig
2022-02-05 21:26:14 -08:00
Jarred Sumner
51abe58a1a
()
2022-02-05 18:56:15 -08:00
Jarred Sumner
7f1415c7ae
One less memcpy
2022-02-05 18:54:46 -08:00
Jarred Sumner
62541f1ac8
path.normalize() tests pass
2022-02-04 00:31:20 -08:00
Jarred Sumner
faf137b9be
Fix test failures in path.join
2022-02-03 21:03:39 -08:00
Jarred Sumner
a52a948a70
path.relative passes Node's tests (which also fixed bugs)
2022-02-02 23:33:37 -08:00