Zack Radisic
4749449bb0
fix bugz
2023-12-25 23:38:23 +03:00
Zack Radisic
79d6893d09
lol
2023-12-25 03:39:38 +03:00
Zack Radisic
5ff870f169
Support custom glob patterns in bun test
2023-12-25 03:38:15 +03:00
Jarred Sumner
09d51486e9
Enable forceConsistentCasingInFileNames in bun init
bun-v1.0.20
2023-12-24 06:18:25 -08:00
Jarred Sumner
ead3bdf947
Make the tsconfig.json used in bun init sloppier
2023-12-24 06:16:44 -08:00
Arnaud Barré
6077ace528
Update init template & TS documentation ( #7813 )
...
* Update init template & TS documentation
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-24 06:13:53 -08:00
Jarred Sumner
a119e8d636
fs.readFile & fs.writeFile encoding + simplify string handling + fix memory leak ( #7797 )
...
* Simplify string handling code
* add extra + external
* Update fs.test.ts
* Bump
* woopsie
* prettier
* Rename stats() to resourceUsage()
* Fix leak
* Fix more leaks
* Setup malloc heap breakdown
* Thread safety
* Fix bug when creating buffer from utf-16 string
cc @dylan-conway
* Use global allocator
* More new
* Update fs.test.ts
* Update setTimeout.test.js
* Fix UAF in HTMLRewriter
* More bun.new
* Remove logs
* Un-skip test which no longer is flaky
* Even more `bun.new`
* Fix memory leak in HTMLRewriter.
Fixes #2325
* Don't accept Buffer for now
* Fix issue with node-fetch polyfill
* Don't destruct the response value too soon
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-12-24 06:10:46 -08:00
vitalspace
72eb607e21
FIx "Inconsistent script not found error message" ( #7799 )
2023-12-23 01:37:58 -08:00
Ciro Spaciari
26325aca95
fix(setTimeout) fix high CPU usage ( #7792 )
...
* fix timers CPU usage
* add stats to subprocess
* fix issue number
* add ResourceUsage
* better names on ResourceUsage
* add wait4 for macOS
* better names 2
* add types
* change comments style
* BigInt
2023-12-22 16:59:00 -08:00
Risu
98242fa10d
Add node:test to Node.js compatibility docs ( #7779 )
2023-12-22 09:21:35 -08:00
Dylan Conway
906f86d6fd
always set name ( #7783 )
bun-v1.0.19
2023-12-21 23:46:32 -08:00
Omar
9fdd1068da
whitelist lightningcss-cli ( #7782 )
...
lightningcss is a popular css library with over 0.5 million weekly downloads. It also offers a cli tool that requires postinstall script to run.
https://www.npmjs.com/package/lightningcss
https://www.npmjs.com/package/lightningcss-cli?activeTab=code
2023-12-21 23:42:57 -08:00
Jarred Sumner
7e59f287a1
Fix bug in bun upgrade --canary ( #7777 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-12-21 20:18:02 -08:00
Jarred Sumner
56df6a9888
Bump!
2023-12-21 18:29:16 -08:00
Jarred Sumner
ada49eb96d
Update setInterval-leak-fixture.js
2023-12-21 18:21:00 -08:00
Jarred Sumner
c5436c09ab
Fix setInterval regression ( #7776 )
...
* Fix setInterval regression
* Add some comments
* Add another test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-12-21 18:00:24 -08:00
Jarred Sumner
a93f467a74
NAPI fixes ( #7765 )
...
* napi fixes
* Make bcrypt work
* Always return this
* Fixes #7685
* [autofix.ci] apply automated fixes
* Update napi.cpp
* Make it clearer what this is doing
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-21 15:55:58 -08:00
Ashcon Partovi
cd55401eba
Fix flaky tests
2023-12-21 08:14:43 -08:00
SirHyperNova
0f8bcfdc53
Remove "not production ready" from WebSocket ( #7760 )
2023-12-20 23:31:48 -08:00
Jarred Sumner
2428da9354
Fix formatting error
2023-12-20 21:18:19 -08:00
Jarred Sumner
65e11c48b6
Fix hashing consistency issue ( #7757 )
...
* Fix color issue in `bun test`
* Fix hashing consistentcy issue
* Fix Windows build failure
* Update types.zig
* Fix build
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-12-20 20:57:20 -08:00
dave caruso
6b549ee592
fix: random improvements to bun.String ( #7695 )
...
* make bun.String.createUninitialized harder to mess up
* remove toJSConst
* Update src/bun.js/bindings/BunString.cpp
* ok
* aaaaaaaa
* fix ucs2 encoding oopsies
* a
* [autofix.ci] apply automated fixes
* fix baseline build
* hello
* remove commented code
* aaa
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-20 19:18:32 -08:00
Jarred Sumner
5b538fb076
Fix Windows build failure
2023-12-20 19:09:53 -08:00
Vlad Sirenko
7e511f55de
4415 es5 class http.Server ( #7705 )
2023-12-20 15:55:30 -08:00
Jarred Sumner
c271c6c38e
perf: More efficient setTimeout and setInterval ( #7715 )
...
* Use timer heap for `setTimeout`
* Further efficiency improvement to timers
* Fix assertion
* Make this test less flaky?
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-12-20 15:13:23 -08:00
dave caruso
00955c712e
fix: crash in bun init by renaming string function to be more consistant ( #7746 )
2023-12-20 13:44:53 -08:00
dave caruso
00e745ec2c
fix(windows): use path normalizer in bun run index.ts ( #7723 )
...
* cleanup stuff
* hi
* fix building on posix
* a
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-12-20 13:42:09 -08:00
Alex Martin
6ee812d63d
Handle holey arrays console log edge case ( #7751 )
...
", " was only being written when appropriate before "empty item", and not
"N x empty items".
2023-12-20 13:36:28 -08:00
Jarred Sumner
a623e7c702
Fixes #7736 ( #7752 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-12-20 00:57:16 -08:00
Jarred Sumner
59a0e885d9
Make large stdio in Bun.spawnSync efficient on Linux ( #7733 )
...
* Use memfd in spawnSync when possible
* Make it work
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-12-19 20:25:31 -08:00
Dylan Conway
3f1c39ad0b
fix(install): lifecycle script verbose logging and a couple bug fixes ( #7726 )
...
* trim trailing slash, always create temp node-gyp
* verbose lifecycle scripts
* move node_modules from other package managers to subdirectory
* fix merge
* remove for another branch
* Update bun-install-registry.test.ts
* Update bun-install-registry.test.ts
* inherit mac only
* Update src/install/lifecycle_script_runner.zig
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* cache directory created when ensuring temp node-gyp
* fix merge
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-12-19 19:39:33 -08:00
dave caruso
39d062cf3c
feat: print the longest postinstall if it took more than 500ms ( #7719 )
...
* print the longest postinstall if it took more than 500ms
* build error
* make newlines print right
* fix tests
* sdfafdsa
* i hope this is it
2023-12-19 17:51:39 -08:00
dave caruso
92901eb6e0
fix: change how exit codes and signals are printed ( #7674 )
...
* change how exit codes and signals are printed
* second iteration of this
* [autofix.ci] apply automated fixes
* dasfsa
* Fix Linux Build
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-12-19 16:55:15 -08:00
dave caruso
ab68aa5a8e
dx(win): fix codegen.ps1 on
2023-12-19 13:29:31 -08:00
Supachai Kheawjuy
3f131c0411
docs(api): typo Diffie Hellman in http.md ( #7744 )
2023-12-19 11:17:11 -08:00
Supachai Kheawjuy
db60c92e25
docs(bundler): remove unused callout tag in index.md ( #7742 )
2023-12-19 10:20:14 -08:00
Bjön Limell
1730cfbbbf
docs: fixed Bun.gunzip ( #7738 )
2023-12-19 09:14:47 -08:00
Supachai Kheawjuy
45a499912b
docs(guides/process): change file extension from tsx to ts in stdin.md ( #7737 )
2023-12-19 08:44:34 -08:00
Jarred Sumner
61f92d9e5f
fix(install): fix false positive "lockfile is frozen" when using bun install --production ( #7713 )
...
* More lkogs
Add more logs for `--verbose`
* Fixes #5792
This makes `--frozen-lockfile` use a hash of all the resolved package versions that were installed, instead of the more permissive logic used to decide whether or not to re-run the install
* Fix debug assertion failure in `bun install --production`
* Update src/install/install.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-12-19 00:56:21 -08:00
Spencer Smith
3baaa28f93
Update index.md ( #7727 )
2023-12-18 22:23:31 -08:00
Dylan Conway
b88324db31
chore: upgrade webkit ( #7720 )
...
* update
* alwaysInline
* update webkit commit
* update webkit tag
* remove webkit_url
* check for exception and update webkit commit
* update webkit tag
2023-12-18 20:54:04 -08:00
Dylan Conway
dc19541719
update bun.zig
2023-12-18 20:15:02 -08:00
Jarred Sumner
2d2f3c4e50
fix: Tweaks to syntax highlighter ( #7711 )
...
* [syntax highlighter] Highlight `from` and `as` in `import`. Don't bold function calls or identifiers
* Update bun.zig
* Update bun.zig
* Update src/bun.zig
Co-authored-by: dave caruso <me@paperdave.net >
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: dave caruso <me@paperdave.net >
2023-12-18 18:32:45 -08:00
dave caruso
f3ce571a29
fix: parsing error from "a<b>" as typescript ( #7722 )
2023-12-18 18:24:04 -08:00
dave caruso
1a2643520b
fix(bundler): handle direct eval better ( #7693 )
...
* fix(bundler): handle direct eval better
* error message
2023-12-18 14:41:04 -08:00
Colin McDonnell
31c17a1bb3
Better types ( #7670 )
...
* Rewrite bun-types to include @types/node
* Incorporate new commits
* Update bun.lockb
* [autofix.ci] apply automated fixes
* Update readme, add back webkit
* Updates
* BunJS -> Bun
* Switch init to @types/bun
* [autofix.ci] apply automated fixes
* Tweaks
* Revert docs changes
* Fix bugs
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-18 13:27:48 -08:00
Jarred Sumner
a1a4178c3f
Fix next build integration test
2023-12-18 01:21:00 -08:00
Jarred Sumner
7ac5bdc9dd
Fix flaky test
2023-12-18 01:11:36 -08:00
Jarred Sumner
506c165860
Fix napi tests
2023-12-18 00:03:45 -08:00
Jarred Sumner
6fc29b6412
Recommend the .start() method
2023-12-17 23:18:41 -08:00