Jarred Sumner
ef268c5ee5
@globalPrivate -> @linkTimeConstant
...
See https://github.com/WebKit/WebKit/pull/2553
I'm not 100% sure @linkTimeConstant is correct. Specifically, I don't know if it's a link time constant or just a global private thing.
2022-09-04 00:52:30 -07:00
Jarred Sumner
15b7f9793f
[Node API] Fix napi_module_register
2022-09-03 22:47:00 -07:00
Jarred Sumner
04cc1968db
Fix createRequire() in node:module
...
Fixes https://github.com/oven-sh/bun/issues/831
Fixes https://github.com/oven-sh/bun/issues/453
2022-09-03 21:48:06 -07:00
Jarred Sumner
cc46604bdb
Fix build error
2022-09-03 21:03:50 -07:00
Jarred Sumner
8e5b1c44bc
Fixes https://github.com/oven-sh/bun/issues/677
2022-09-03 18:49:19 -07:00
Hyro
2340e7e6e5
chore(install-script): automatically add bun to path - bash shell ( #1168 )
...
* chore(install-script): automatically add bun to path - bash shell
* add tildify
* chore: make requested changes
* fix: add equals true
Co-authored-by: Wallunen <44848747+Wallunen@users.noreply.github.com >
* fix: $XDG_CONFIG_HOME can be undefined
Co-authored-by: Wallunen <44848747+Wallunen@users.noreply.github.com >
Co-authored-by: Wallunen <44848747+Wallunen@users.noreply.github.com >
2022-09-03 05:01:26 -07:00
Jarred Sumner
0ca42e81f3
Plugin API ( #1199 )
...
* Plugin API
* Fix the bugs
* Implement `"object"` loader
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-09-03 03:57:43 -07:00
Dylan Conway
8b2d07e82e
fixed is_export and added test cases ( #1203 )
2022-09-03 01:39:24 -07:00
usrtax
89524d55bd
allow set proxy for github ( #1198 )
...
in china , github is blocked, we use https://ghproxy.com/ for proxy
for example
use
`wget https://ghproxy.com/https://github.com/stilleshan/ServerStatus/archive/master.zip `
instead of
`wget https://github.com/stilleshan/ServerStatus/archive/master.zip `
2022-09-01 23:12:33 -07:00
Zilin Zhu
2dc07d7505
Fix failing Buffer tests ( #1197 )
2022-09-01 23:11:09 -07:00
Jarred Sumner
4e73726bee
Delete some dead code
2022-09-01 20:34:41 -07:00
Jarred Sumner
793a42e7f5
[bun run] Silence .env loaded log
...
Fixes https://github.com/oven-sh/bun/issues/1192
2022-09-01 15:31:22 -07:00
Zilin Zhu
700c31dd13
Add native StringDecoder ( #1188 )
...
* Add native StringDecoder
* fix upon reviews
* add Constructor and use LazyClassStructure
2022-09-01 12:56:41 -07:00
Jarred Sumner
f023b89b73
Fix crash in napi finalizer
2022-09-01 01:58:42 -07:00
Jarred Sumner
5eb431dcd0
Fixes https://github.com/oven-sh/bun/issues/1183
2022-09-01 01:08:59 -07:00
Ikko Ashimine
5d99398850
Fix typo in futex.zig ( #1186 )
...
Therefor -> Therefore
2022-09-01 00:14:20 -07:00
Bram Wasti
bfe9d594a9
Add profiler support ( #1110 )
2022-08-30 19:31:58 -07:00
Taher
8651799097
Fixed JSBuffer write issues ( #1175 )
2022-08-29 13:09:46 -07:00
Jarred Sumner
9d8fb81413
Improve error when FFI fails to dlopen()
2022-08-29 13:02:02 -07:00
Zilin Zhu
34c0f77319
chore: Clean buffer C API ( #1174 )
2022-08-29 05:09:47 -07:00
Jarred Sumner
7b628ca09c
Fixes https://github.com/oven-sh/bun/issues/1127
2022-08-29 03:26:07 -07:00
Jarred Sumner
d7dbe6f329
Remove code that doesn't work
2022-08-28 21:46:47 -07:00
Jarred Sumner
c1734c6ec5
More reliable macOS event loop ( #1166 )
...
* More reliable macOS event loop
* Reduce CPU usage of idling
* Add another implementation
* Add benchmark
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-08-28 21:28:05 -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
ce90e0c372
support pass null as NULL ptr ( #1160 )
2022-08-28 06:19:53 -07:00
Jarred Sumner
296fb41e92
[bun:ffi] Fix crash with uint64_t
2022-08-28 00:39:08 -07:00
Jarred Sumner
30992a8b05
[bun:ffi] Fix int16 / uin16 max
2022-08-28 00:28:50 -07:00
Jarred Sumner
af5c4dedca
Update WebKit ( #1165 )
...
* Update WebKit
* Fix `DataView` and non-8 bit sized typed arrays with TextDecoder
* New WebKit
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-08-27 23:46:05 -07:00
Jarred Sumner
8b3afa5831
Fix crash in os module on macOS
2022-08-27 17:30:34 -07:00
Zilin Zhu
6644c2fd17
Fix ffi uint64_t parameter ( #1158 )
2022-08-27 12:32:13 -07:00
Zilin Zhu
49447decdd
fix compile error ( #1157 )
2022-08-27 02:59:07 -07:00
Jarred Sumner
e49dcfeff7
Update napi.zig
2022-08-26 18:50:22 -07:00
Jarred Sumner
70e778c2a8
Remove pointer to stack buffer in os module and fix build issue
...
We cannot have pointers to stack memory returned in the same scope because that memory is no longer valid at the end of the scope
cc @xHyroM
2022-08-26 18:50:15 -07:00
Jarred Sumner
975477d0f0
Implement napi_add_finalizer
2022-08-26 18:28:01 -07:00
Jarred Sumner
64b3d28d41
Update node_fs.zig
2022-08-26 01:59:13 -07:00
Zilin Zhu
07a4b26697
fix mkdtemp ( #1151 )
...
* fix mkdtemp
* Update src/bun.js/node/node_fs.zig
* Update src/bun.js/node/node_fs.zig
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2022-08-26 01:22:25 -07:00
Zilin Zhu
cf55a38879
Add native BufferList ( #1146 )
...
* add simple methods
* add native BufferList
* use RopeBuilder
* use Deque
2022-08-25 21:12:45 -07:00
Hyro
7a734e0a28
feat: implement native os module ( #1115 )
...
* feat: implement os module
* revert(bun-error): package-lock.json
* feat: implement EOL
* feat: implement EOL
* feat: implement arch function
* feat: implement homedir function
* add comptime to homedir if
* feat: add platform function
* feat: implement type function
* feat: add hostname (not sure iff works on all platforms)
* chore: make requested changes
* fix: change toValueGC into toValue in arch function
* add EOL, devNull constant variables
* fix: store only string
* feat: add tests
* feat: add endianness
* ususe toValue for devNull & EOL
* feat: implement endianness & fix release
* revert javascript.zig fix
* feat: implement tmpdir
* feat: implement totalmem, freemem, uptime
* feat: loadavg
* feat: implement version
* feat: add userInfo
* feat: implement totalmem for macos
* feat: add getPriority (not finished, waiting for dc response)
* feat: finish userInfo implementation
* feat: implement cpus, not done
* feat: finish getPriority implementation & stats cpus()
* feat: implement setPriority
* reemove test.c
* feat: implement constants.dlope.xn, constants.priority.x, constants.UV_UDP_REUSEADDR
* feat: implement signals, errno
* updated cpus function, stilldoesnt work
* increase object length
* feat: add t more ests
* feat: add cpus()
* remov some files
* fix: handle empty array
* started working on interface addresses (in C)
ill use C++ after it work
* fix interface_addresses
* Improved getCpuInfo code, decreased ram usage, increased speed
* getCpuTime optimizations
* started working on networkInterfaces
* feat: networkInterfaces implementation
* delete unnecessary files
* add benchs & fix code
* add tests
* add missing benchs
* Increased buffer of getCpuInfo to 2048, it should skip few iterations
* remove hardcoded constants
* feat: implement errno constants
* fix getWindowsErrorConstant
* feat: add signal constants
* feat: implement priority constants
* remove duplications
* fix: change value to ?i16
* fix(__defineConstant): make some parameters comptime, change value to ?i32
* fix: add E to ERRNO constants, add SIG to SIG constants
* feat: add dlopen constants
* change functions to private
* feat: add UV_UDP_REUSEADDR
* fix typo
* simplify functions
* rename functions in bindings
* feat: implement loadavg for darwin
* feat: implement system uptime
* feat: implement get free memory for darwin
* fix system memory bindings
* feat: implement network interfaces for darwin
* code cleanup
* feat: support for macos version & release
* some fixes
* MacOS support for CpuInfo
* Fixed minor mistake in getCpuInfo_B
* Delete test.zig
* Update c_cpp_properties.json
* Update tasks.json
* feat: implement scopeid
* feat: implement cidr 🚀
* remove unnecesarry changes
* remove unnecesarry changes
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* fix: import string
* fix: change IPV6 to IPv6
* fix some things
* chore: make requested changes
* revert: launch.json
* fix test
* Fixed few memory leaks
* testing
* again
* added len
* another test
* improved parsing
* added small check
* Bonk
* FINISH 🚀 🚀 🚀 🚀 🚀 🚀
* Update tasks.json
* NetworkInterface test
* FINISH 🚀 🚀 🚀
Co-authored-by: Fire-The-Fox <gajdos.jan77@gmail.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2022-08-25 19:38:28 -07:00
Jarred Sumner
e0b35b3086
Fix Request and Response in macros
2022-08-25 19:23:49 -07:00
Jarred Sumner
49bec758b7
Faster way to lookup mimetype
2022-08-25 19:23:18 -07:00
Jarred Sumner
950d03a9ea
Fix incorrect indexOfNotChar causing sourcemaps bugs
2022-08-25 18:53:20 -07:00
Zilin Zhu
e6a1209c53
Fix clearTimeout and linux timeout ( #1138 )
2022-08-24 09:12:20 -07:00
Zilin Zhu
f2316a8eda
Add pad back to base64 ( #1140 )
2022-08-24 09:10:49 -07:00
Sam
8f58e07ea1
updated minified url polyfill ( #1132 )
2022-08-23 11:25:37 -07:00
Zilin Zhu
9943ca916d
add SlowBuffer ( #1133 )
2022-08-23 05:12:58 -07:00
Jarred Sumner
75a76fb836
Remove response pool
2022-08-22 10:59:49 -07:00
Jarred Sumner
2a0ab2aa9b
Fix build error
2022-08-22 10:21:54 -07:00
Jarred Sumner
fd5398ce80
woops
2022-08-22 09:52:31 -07:00
Jarred Sumner
633bef7ef1
[node:http] speed up assigning headers
2022-08-22 09:51:33 -07:00
Jarred Sumner
fcd09abec6
reduce usage of protect
2022-08-22 09:36:38 -07:00