190n
3a4a9ae4e9
Add v8::api_internal::FromJustIsNothing ( #15583 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-12-04 17:57:40 -08:00
Jarred Sumner
9c1fde0132
Rewrite most of napi_threadsafe_function ( #15309 )
...
Co-authored-by: Ben Grant <ben@bun.sh >
2024-11-22 04:44:52 -08:00
Jarred Sumner
4ddb63e7e2
Try linker script ( #15158 )
2024-11-15 13:02:10 -08:00
dave caruso
32ddf343ee
bake: csr, streaming ssr, serve integration, safer jsvalue functions, &more ( #14900 )
...
Co-authored-by: paperdave <paperdave@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-11-13 18:19:12 -08:00
Meghan Denny
35513a9d6d
zig: remove JSValue.isEmpty ( #15128 )
2024-11-13 16:04:13 -08:00
190n
9647291d73
Implement NAPI type tagging ( #14915 )
2024-10-30 19:57:48 -07:00
Dylan Conway
5fd0a61ae2
CA support for bun install ( #14416 )
2024-10-11 13:16:26 -07:00
190n
50e9be0dc7
Fix napi_value<=>integer conversions and napi_create_empty_array ( #14479 )
2024-10-10 23:50:39 -07:00
190n
0a54c24bd3
Allow throwing exceptions from napi_async_complete_callback ( #14302 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-10-02 22:35:45 -07:00
190n
54e177e2f9
Rename internal NapiHandleScope push/pop methods to open/close ( #14300 )
2024-10-02 15:05:38 -07:00
190n
4e51f7d85b
Refactoring and bug fixes in the V8 API ( #13754 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-09-26 16:54:37 -07:00
Jarred Sumner
6415296e96
Support napi inside of bun:ffi ( #14028 )
2024-09-19 03:19:08 -07:00
190n
163e76ef96
Fix memory corruption in napi_open_escapable_handle_scope ( #13955 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-09-15 01:39:18 -04:00
dave caruso
c2c2048072
framework api: init / work in progress ( #13215 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-09-12 16:44:03 -07:00
Jarred Sumner
0a6594395c
Add a couple uv symbols ( #13808 )
...
Co-authored-by: Ben Grant <ben@bun.sh >
2024-09-12 00:13:49 -07:00
Jarred Sumner
c48997050d
Avoid creating a Napi handle scope within a finalizer ( #13870 )
...
Co-authored-by: Ben Grant <ben@bun.sh >
2024-09-11 20:05:44 -07:00
190n
084734db64
Implement napi_handle_scope and napi_escapable_handle_scope ( #13756 )
2024-09-07 00:55:19 -07:00
Jarred Sumner
b53c25e5f8
Redo napi cleanup hooks ( #13487 )
2024-08-23 21:09:56 -07:00
190n
fe62a61404
Fix V8 API memory management and implement more APIs ( #13426 )
2024-08-20 19:32:44 -07:00
Jarred Sumner
f16d802eb1
Implement V8::String::{Utf8Length, IsOneByte, ContainsOnlyOneByte, IsExternal, IsExternalTwoByte, IsExternalOneByte} ( #13417 )
2024-08-20 11:51:23 -07:00
190n
dc2929d4e1
Start implementing internal V8 APIs ( #12821 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-08-14 17:51:12 -07:00
dave caruso
2680deb5d3
feat: bun build --compile --sourcemap ( #13047 )
2024-08-06 13:51:11 -07:00
dave caruso
70ca2b76c3
fix: check if we are crashing before exiting gracefully ( #12865 )
2024-07-26 20:00:02 -07:00
Meghan Denny
f7cb2da542
use .undefined literal instead of jsUndefined() call ( #12834 )
2024-07-26 04:03:55 -07:00
Jarred Sumner
d321ee97c5
Move napi_new_instance to c++ ( #12658 )
...
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2024-07-25 18:51:01 -07:00
Meghan Denny
d97260869d
replace JSValue .callWithThis with always explicit .call ( #12789 )
2024-07-24 23:07:28 -07:00
Dylan Conway
ac4523e903
fix(napi): unref threadsafe functions on finalize ( #12788 )
2024-07-24 18:57:01 -07:00
Dylan Conway
2da57f6d7b
napi_threadsafe_function async tracker (#12780 )
2024-07-24 15:27:51 -07:00
Jarred Sumner
822b725bec
Fix BUN-2M9, take two
2024-07-21 08:49:00 -07:00
Jarred Sumner
dc775f75f0
Fix BUN-2M9
2024-07-21 07:40:57 -07:00
Jarred Sumner
40858b4f25
Make reported node.js version a build option ( #12104 )
2024-06-24 15:34:28 -07:00
dave caruso
b76376f8a6
chore: upgrade zig to 0.13.0 ( #9965 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Grigory <grigory.orlov.set@gmail.com >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
Co-authored-by: Meghan Denny <hello@nektro.net >
Co-authored-by: Kenta Iwasaki <63115601+lithdew@users.noreply.github.com >
Co-authored-by: John-David Dalton <john.david.dalton@gmail.com >
Co-authored-by: Dale Seo <5466341+DaleSeo@users.noreply.github.com >
Co-authored-by: Zack Radisic <56137411+zackradisic@users.noreply.github.com >
Co-authored-by: paperdave <paperdave@users.noreply.github.com >
Co-authored-by: Georgijs Vilums <georgijs.vilums@gmail.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2024-06-20 13:48:39 -07:00
Ciro Spaciari
3a5077c622
fix(napi) napi_call_threadsafe_function should work with null data and napi_create_threadsafe_function should keep the process alive by default ( #11952 )
2024-06-18 13:38:04 -07:00
Dylan Conway
1482c9fd65
fix(napi): check result arguments in some functions ( #10972 )
2024-05-10 00:14:08 -07:00
Georgijs
c378febf5b
Implement process.on("uncaughtException", ...) ( #10902 )
...
Co-authored-by: Georgijs Vilums <=>
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-08 17:38:31 -07:00
Jarred Sumner
3970339483
Use error handling callback in more places, emit 1015 when WSS TLS handshaking fails, micro-optimize ServerWebSocket, fix bug in util.inspect exceptions ( #10633 )
2024-04-29 13:57:23 -07:00
Jarred Sumner
cc8cdf6c51
Fix napi_get_date_value ( #10575 )
2024-04-27 02:59:11 -07:00
Jarred Sumner
c604c57a32
Upgrade to LLVM 17, fix linux debug build, upgrade JSC, remove some C API usages ( #10161 )
...
* Upgrade to LLVM 17, JSC, remove more C API usages
* [autofix.ci] apply automated fixes
* Update scripts/setup.sh
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
* more
* update
* bump
* Fix unused variable
* Fix merge conflict
* [autofix.ci] apply automated fixes
* Increase limit
* double the limit
* CI
* Update CMakeLists.txt
* Update CMakeLists.txt
* Upgrade
* Upgrade more things
* Bump
* Remove ld64 flag
* typo
* Update Dockerfile
* update
* Update
* Up
* asd
* up
* Upgrade
* Bump!
* Fix crash
* Remove unnecessary cahnge
* Propagate canary flag + bump macOS 13
* Upgrades
---------
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: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2024-04-21 19:03:01 -07:00
Jarred Sumner
688844b472
refactor: ban std.debug.assert ( #10168 )
...
* Ban `std.debug.assert`
* Create .clangd
* Update lint.yml
* Update linter.ts
* update
* lint
* Update linter.ts
* Update linter.ts
* update
* Update linter.ts
* update
* Update linter.ts
* more
* Update install.zig
* words
* Remove UB
2024-04-11 17:52:29 -07:00
Meghan Denny
e209ae81dd
meta: ensure there's a single 'bun' import per file in zig ( #10137 )
...
* meta: ensure there's a single 'bun' import per file in zig
* undo this change in codegen
2024-04-09 22:41:07 -07:00
Dylan Conway
d30b53591f
fix(napi): fix finalizer callback ( #9732 )
...
* fix finalize callback
* fix test
2024-03-29 21:33:48 -07:00
Jarred Sumner
fd26c3fb55
Fixes #9153 ( #9175 )
...
* Fixes #9153
* Update napi.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-01 14:42:20 -08:00
Cameron Haley
bdb70d5bc2
Account for initial_thread_count in napi threadsafe_function logic ( #9035 )
2024-02-21 14:19:43 -08:00
dave caruso
2d9db9b28f
fix napi-rs libraries on windows ( #8583 )
...
* yay
* a
* ok
* typo
* un-CRLFify these files
2024-01-30 20:21:52 -08:00
dave caruso
eeb10f3f7d
fix(windows): fix node:url pathFromFileURL and fileURLFromPath and file url tests ( #8442 )
...
* yay for file urls
* swag
* oops
* merge conf
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-24 01:19:47 -08:00
Jarred Sumner
317998fdd6
Make toBunString increment the reference count ( #8146 )
...
* Make `toBunString` increment the reference count
* Fix WASI
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-14 05:36:31 -08:00
Dylan Conway
98d253d9bb
fix(install): incremental support for windows ( #7991 )
...
* update for windows
* use correct sizes
* mode
* fchmod and correct error checking
* some progress
* walker_skippable.zig for windows
* no segfault
* comptime only
* normalize
* create files in .bin
* bun.sys.write
* string formatters in bun.fmt, diriterator enum
* isAllASCII comptime
* update more
* some cleanup
* fix 1
* fix 2
* simlink
* cast
* remove normalize
* to zig err
* update fchmod
* fixup
* fix running bin files
* --bun for running binaries
* --bun for scripts
* remove binary linking
* update
* remove todo
* todos
* fix
* simlink
* cast
* more cast
2024-01-11 22:00:47 -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
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
506c165860
Fix napi tests
2023-12-18 00:03:45 -08:00