Meghan Denny
9ef7b304d9
misc: use compileError instead of unreachable for comptime-known switches ( #7905 )
2023-12-29 02:07:17 -08:00
Meghan Denny
38d5a5fe9a
tidy: bun.zig: remove switch on literal ( #7907 )
2023-12-29 02:06:56 -08:00
Jarred Sumner
43b99021f8
Fix flaky timeout test
2023-12-29 01:29:40 -08:00
Jarred Sumner
8a34b8f6f8
Add flags for Valgrind build
2023-12-29 00:25:02 -08:00
Jarred Sumner
70f344101b
Revert " feat(server): add server backlog parameter ( #7822 )" ( #7908 )
...
This reverts commit 411094b82d .
2023-12-28 23:44:27 -08:00
Jarred Sumner
a3a6b894c5
[bun:sqlite] Cache the structure and call the destructor ( #7904 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-12-28 21:33:55 -08:00
Meghan Denny
a5bf1216d1
cli: resolve TODO filing upstream issue ( #7903 )
2023-12-28 20:11:51 -08:00
Jarred Sumner
ae5f1b0168
Fix crash with latin1 supplemental characters in bun:sqlite query ( #7902 )
...
* Fix crash with latin1 supplemental characters in bun:sqlite queries
* Make it run from any dir
* Fix comment
* [autofix.ci] apply automated fixes
---------
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-28 20:00:58 -08:00
Jarred Sumner
20690403da
Fixes #7868 ( #7884 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-12-28 17:53:11 -08:00
Jarred Sumner
903a202473
Support Blob in CryptoHasher ( #7878 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-12-28 16:33:18 -08:00
Kaio Duarte
14bc121dc8
Compare error name and message on Bun.deepEquals and assert.deepStrictEqual ( #7867 )
...
* check error name and message on Bun.deepEquals
* add tests
* add test with subclass of Error
2023-12-28 16:32:49 -08:00
Oleg Sevruk
eac3bda895
Update bun-create.md ( #7889 )
...
Typo. Correct the 8th item in the hidden section “How to create buns”
2023-12-28 16:30:29 -08:00
Aarvin R
0a7bbcb9a6
finish docs for env quotes ( #7895 )
...
- added template literal backticks to sentence
- added example of quotes in .env files
2023-12-28 16:17:16 -08:00
Aarvin R
107015fd48
fix example syntax for plugins ( #7894 )
...
- updated docs/runtime/plugins.md to use plugin()
- update docs/runtime/plugins.md to use "loaded" instead of "registered" for clarity
2023-12-28 16:14:56 -08:00
Malthe Borch
813afe6c53
Add 'listening' boolean property to 'net:Server' ( #7658 )
...
* Add 'listening' boolean property to 'net:Server'
* Convert to getter
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-28 14:20:41 -03:00
Hanaasagi
411094b82d
feat(server): add server backlog parameter ( #7822 )
...
* feat(server): add server backlog parameter
* add some tests
* Apply suggestions from code review
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
* fix test
* chore: fix style
---------
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2023-12-28 14:19:20 -03:00
Jarred Sumner
1f90608d66
Fixes #7827 ( #7858 )
...
* Fixes #7827
* Add some assertions and errors
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-12-27 20:22:44 -08:00
Xiliang Chen
2b09347dc6
fix toMatchSnapshot signature ( #7880 )
2023-12-27 20:16:05 -08:00
Meghan Denny
f02ef8fb35
script/setup.sh: don't hardcode search for pkg-config ( #7871 )
2023-12-27 18:35:09 -08:00
Meghan Denny
da13884295
inspect: print 'call' property in objects ( #7874 )
...
functions have separate code path now
2023-12-27 18:34:52 -08:00
Meghan Denny
8a39c02e7a
bun.js bindings: tidy with inline range ( #7875 )
2023-12-27 18:34:18 -08:00
Meghan Denny
bfc065c5cc
bun.js bindings: remove redundant as-bitcast-as ( #7876 )
2023-12-27 18:33:56 -08:00
Meghan Denny
93c081f351
scripts/setup.sh: don't check for zig since it installs zig later ( #7870 )
...
* scripts/setup.sh: don't check for zig since it installs zig later
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-27 16:26:46 -07:00
Ciarán
4a66091491
Fixes #7740 : Change "Duplicate dependency" to warn instead of error ( #7766 )
...
* fix(#7740 ): change 'Duplicate dependency' to be warning instead of error
* chore(07740.test.ts): clean up test
* [autofix.ci] apply automated fixes
* fix(src/logger.zig): increment warnings instead of errors in addRangeWarningFmtWithNotes()
* chore(07740.test.ts): simplify package.json to avoid increasing test times
* chore(bun-install.test.ts): update test to expect 'warn' instead of 'error'
* chore(07740.test.ts): fix formatting
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-27 00:53:02 -08:00
johnpyp
d1dcf5ccf7
doc: improve Bun.Glob api docs ( #7859 )
...
* doc: improve Bun.Glob api docs
* Update docs/api/glob.md
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-12-26 22:20:25 -08:00
Ciro Spaciari
f8159f1b36
fix(fetch) Fix fetch redirect ( #7847 )
...
* clean socket instance before closing on redirect
* fetch redirect test
* fix flask test
* oops
2023-12-26 17:37:41 -08:00
cirospaciari
1a370eb483
revert
2023-12-26 11:33:30 -03:00
cirospaciari
f12ff9d1e5
clean client ref from socket before close
2023-12-26 11:22:12 -03:00
Jarred Sumner
4d6219eda4
Revert "whitelist nuxt ( #7840 )"
...
This reverts commit a3630dde2e .
`nuxt` does not list any scripts in their package.json
2023-12-25 23:39:57 -08:00
Larry Williamson
a3630dde2e
whitelist nuxt ( #7840 )
2023-12-25 23:27:56 -08:00
Ryan
c6ba32b850
Add purescript and spago to default-trusted-dependencies.txt ( #7838 )
...
These are two important packages for purescript development, purescript is the language (including a binary file that must be installed), and spago is the purescript package manager (also including a binary file that must be installed).
2023-12-25 22:58:32 -08:00
Omar
05984d405f
Whitelist Railway CLI ( #7832 )
...
https://railway.app
Railway CLI is used to deploy Railway services. The CLI npm package requires running postinstall scripts.
9de89415f0/package.json (L17)
2023-12-25 20:32:16 -05:00
thunfisch987
696a5a28c9
Update docs/typescript.md ( #7825 )
2023-12-25 09:22:29 -07:00
Jarred Sumner
b399deebdd
15% faster crypto.randomUUID ( #7824 )
...
* Fixes #7811
* [autofix.ci] apply automated fixes
* Update src/bun.js/webcore.zig
Co-authored-by: Markus Staab <maggus.staab@googlemail.com >
---------
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>
Co-authored-by: Markus Staab <maggus.staab@googlemail.com >
2023-12-25 01:25:35 -08:00
xxxhussein
39ea8cbfea
Update installation.md ( #7817 )
...
npm states that their name should be written as "npm" in lowercase rather than "NPM" or "Npm" etc.
2023-12-24 19:52:38 -08: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