Ciro Spaciari
|
aa10799d8a
|
fix utf16le fill and utf8 partial write of utf16 (#1943)
|
2023-01-30 12:21:23 -08:00 |
|
Jarred Sumner
|
6f682c6369
|
Use more specific function
|
2023-01-24 03:03:57 -08:00 |
|
Jarred Sumner
|
05b1ce39d2
|
Faster string length in napi
|
2023-01-24 03:03:44 -08:00 |
|
Jarred Sumner
|
6cf87d022f
|
[napi] Clean up some string handling code
|
2023-01-24 02:59:51 -08:00 |
|
Jarred Sumner
|
aa456805dd
|
[napi] Handle missing description in napi_create_symbol
|
2023-01-23 15:09:18 -08:00 |
|
Jarred Sumner
|
d54e23ca33
|
[napi] Fix potential crash in napi_create_buffer_copy, napi_create_buffer
|
2023-01-16 15:48:14 -08:00 |
|
Jarred Sumner
|
83a5c9f3da
|
[internal] Fix checking for Error object
|
2023-01-08 07:37:51 -08:00 |
|
Jarred Sumner
|
8dc811e4aa
|
Add missing null check
Fixes https://github.com/oven-sh/bun/issues/1739
probably
|
2023-01-06 16:41:34 -08:00 |
|
Jarred Sumner
|
f191993c8f
|
Clean up some napi code
|
2023-01-05 14:49:41 -08:00 |
|
Jarred Sumner
|
59639ba654
|
Fixes #1733
|
2023-01-05 14:06:27 -08:00 |
|
Jarred Sumner
|
f79301c620
|
Implement napi_make_callback
|
2023-01-03 12:36:56 -08:00 |
|
Jarred Sumner
|
4ae33cbf45
|
Stub out missing napi functions and include error message
|
2023-01-03 10:55:13 -08:00 |
|
Jarred Sumner
|
59655d0587
|
Fix spec issue with napi_get_typedarray_info
|
2023-01-03 10:32:22 -08:00 |
|
Alex Lam S.L
|
8a29c64302
|
clean up Promise handling (#1697)
|
2023-01-01 16:37:45 -08:00 |
|
Jarred Sumner
|
c0dd284136
|
Upgrade to latest Zig (#1610)
* @min and @max
* builtins and some trivial ones
* Most of them
* more
* more!
* More Progress
* wip
* Update tagged_pointer.zig
* Update http_client_async.zig
* Most of the iterable dir changes
* alright
* Remove usages of deprecated formatters
* 📷
* fmt
* Update shimmer.zig
* wip
* wip
* wip
* progress
* more
* Latest
* stuck on error
* latest
* workaround stage2
* wip
* Update string_immutable.zig
* wip
* Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings
* Fix build errors
* Fixup most of the test failures
* Fix `make headers`
* Fix "outside package path" error
* Fixup aligned alloc
* Add missing file
* linux
* More linux fixes
* use latest peechy
* Fix transpiler test failure
* Forgot about these
* Fixup test failure
* Update node-timers.test.ts
* [node:htt] Fix `undefined is not an object` error
Fixes https://github.com/oven-sh/bun/issues/1618
* Update http.exports.js
* Make this test less flaky
* fix hashes
* Fix hex formatting and zls issues
* Download zig version
* Update Dockerfile
* Update Dockerfile
* Update uws
* Update Dockerfile
* Set llvm version
* Update README.md
* Update uws
* Update Dockerfile
* Update io_linux.zig
* Update bun.zig
* Log output
* workaround strange @cInclude error
* Make ffi tests better
* Don't use cImport
* Update c.zig
* Update c-bindings.cpp
* call setOutputDir
* Update Dockerfile
* Use a longer name
* latest
* Update serve.test.ts
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Co-authored-by: Veikka Tuominen <git@vexu.eu>
|
2022-12-28 00:51:22 -08:00 |
|
Jarred Sumner
|
1bdb4b2466
|
[napi] Fix assertion failure when argv is null
|
2022-12-17 12:26:19 -08:00 |
|
Jarred Sumner
|
01ed3045cb
|
[napi] Implement napi_create_bigint_words
warning: not tested
|
2022-12-16 00:40:08 -08:00 |
|
Jarred Sumner
|
b631ea7d72
|
import everything from "bun" where possible
|
2022-11-29 02:42:56 -08:00 |
|
Jarred Sumner
|
68b55cd855
|
Implement a singleton version of napi_get_instance_data and napi_set_instance_data
Still need to figure out how to do this without adding a layer of indirection to the global object as exposed to NAPI Addons
This code is not tested
|
2022-11-19 01:18:58 -08:00 |
|
Dylan Conway
|
43b4e1b67b
|
bun test matchers and tests (#1526)
* ignore webkit for cherry-pick
* toContain and toBeTruthy
* toBe null, undefined, falsy, toHaveProperty, .not
* markBindings
* remove toHaveProperty, undo ignore webkit, more tests
* undo ignore webkit
* remove bad tests
* check if length property exists for toHaveLength()
* fix call signature
* handle argument that is not an integer
* getLengthOfArray returns u64
* switch to truncate
* toHaveLength() edge cases
* add toBooleanSlow()
* infinity, nan, negative
|
2022-11-18 23:03:39 -08:00 |
|
Jarred Sumner
|
f3fb712051
|
Fix crash in process.env.FOO = bar that happened sometimes
|
2022-11-18 03:47:10 -08:00 |
|
Jarred Sumner
|
dddbce8a41
|
Implement napi_create_external and napi_get_value_external
|
2022-11-10 15:05:23 -08:00 |
|
Jarred Sumner
|
1b1b96aff8
|
add more logging
|
2022-10-15 21:01:50 -07:00 |
|
Jarred Sumner
|
9050e6ee87
|
Use PollRef in napi
|
2022-09-30 01:04:20 -07:00 |
|
Jarred Sumner
|
6338413696
|
Remove extraneous calls to .ref()
|
2022-09-30 00:44:36 -07:00 |
|
Jarred Sumner
|
5875d1419b
|
Make Bun.spawn, FileSink and FileBlobLoader a little more reliable
|
2022-09-26 20:35:26 -07:00 |
|
Jarred Sumner
|
24a9bc23b7
|
[Web Streams] Add body to Response and Request (#1255)
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
|
2022-09-26 20:04:28 -07:00 |
|
Jarred Sumner
|
0ce709d96a
|
Make new HTTP client more stable
|
2022-09-16 00:53:03 -07:00 |
|
Jarred Sumner
|
e49dcfeff7
|
Update napi.zig
|
2022-08-26 18:50:22 -07:00 |
|
Jarred Sumner
|
0e4db0b28f
|
Add string support to Buffer.fill
|
2022-08-18 21:09:26 -07:00 |
|
Hyro
|
ac8bcb5edb
|
remove comments
|
2022-07-08 14:09:14 -07:00 |
|
K.J. Valencik
|
b64c71eece
|
fix: napi_get_version should return the Node-API version and not the bun version
|
2022-07-07 14:18:44 -07:00 |
|
Jarred Sumner
|
43de33afc7
|
Web Streams API (#176)
* [bun.js] `WritableStream`, `ReadableStream`, `TransformStream`, `WritableStreamDefaultController`, `ReadableStreamDefaultController` & more
* Implement `Blob.stream()`
* Update streams.test.js
* Fix sourcemaps crash
* [TextEncoder] 3x faster in hot loops
* reading almost works
* start to implement native streams
* Implement `Blob.stream()`
* Implement `Bun.file(pathOrFd).stream()`
* Add an extra function
* [fs.readFile] Improve performance
* make jsc bindings a little easier to work with
* fix segfault
* faster async/await + readablestream optimizations
* WebKit updates
* More WebKit updates
* Add releaseWEakrefs binding
* `bun:jsc`
* More streams
* Update streams.test.js
* Update Makefile
* Update mimalloc
* Update WebKit
* Create bun-jsc.test.js
* Faster ReadableStream
* Fix off by one & exceptions
* Handle empty files/blobs
* Update streams.test.js
* Move streams to it's own file
* temp
* impl #1
* take two
* good enough for now
* Implement `readableStreamToArray`, `readableStreamToArrayBuffer`, `concatArrayBuffers`
* jsxOptimizationInlining
* Fix crash
* Add `jsxOptimizationInline` to Bun.Transpiler
* Update Transpiler types
* Update js_ast.zig
* Automatically choose production mode when NODE_ENV="production"
* Update cli.zig
* [jsx] Handle defaultProps when inlining
* Update transpiler.test.js
* uncomment some tests
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
|
2022-06-07 22:32:46 -07:00 |
|
Jarred Sumner
|
a37f86e89d
|
bun:sqlite (#167)
* ✂️
* Add the slow version
* draw the rest of the owl
* Fix crash when allocating lots of memory
* [Bun.Transipiler] Support passing objects
* [JS Parser] Support passing objects to macros via Bun.Transpiler
* Update JSSQLStatement.cpp
* Embed SQLite
* Add SQLite to Dockerfile
* [sqlite] Add quick one-off queries without creating a whole object
* [sqlite] Add `columnsCount`, rename raw() to `values()`, remove `rebind`
* Implement `bun:sqlite`
* return null
* Fix updating query
* Update bun.d.ts
* more tests
* Support variadic arguments, write tests and add types
* Update sqlite.d.ts
* Update sqlite.d.ts
* latest
* Implement `Database.loadExtension` and `Database.setCustomSQLite`
* Support `require.resolve`
* [napi] Improve string performance
* [bun.js] Support some of `node:module`
* another test
* [sqlite] Support serialize & deserialize
* [`bun:ffi`] Implement `CFunction` and `linkSymbols`
* [bun.js] Fix crash in `Buffer.from`
* Update sqlite.test.js
* Document linkSymbols
* docs
* Update README.md
|
2022-05-16 15:46:20 -07:00 |
|
Jarred Sumner
|
b21d0f0b22
|
Fix several bugs in napi
Closes https://github.com/Jarred-Sumner/bun/issues/163
Closes https://github.com/Jarred-Sumner/bun/issues/162
Closes https://github.com/Jarred-Sumner/bun/issues/161
|
2022-05-11 17:49:18 -07:00 |
|
Jarred Sumner
|
12e0496a79
|
[napi] Fix panic inside napi_fatal_error
|
2022-05-11 02:59:38 -07:00 |
|
Jarred Sumner
|
08e40efe11
|
[napi] Fix string bug
|
2022-05-10 20:24:07 -07:00 |
|
Jarred Sumner
|
8ac108ba06
|
[napi] Move some code to C++ for perf
|
2022-05-09 04:11:48 -07:00 |
|
Jarred Sumner
|
3bd83eb134
|
[napi] Fix strings
|
2022-05-09 00:23:51 -07:00 |
|
Jarred Sumner
|
3850fc5b0b
|
Make a lot more stuff work
|
2022-05-08 17:37:58 -07:00 |
|
Jarred Sumner
|
a7b0bc8790
|
it can call functions
|
2022-05-05 21:35:08 -07:00 |
|
Jarred Sumner
|
30ca112260
|
napi_threadsafe_function
|
2022-05-05 21:35:08 -07:00 |
|
Jarred Sumner
|
b487eb7e13
|
Update napi.zig
|
2022-05-05 21:35:08 -07:00 |
|
Jarred Sumner
|
5d24f45ac1
|
Update napi.zig
|
2022-05-05 21:35:08 -07:00 |
|
Jarred Sumner
|
c1f65ef975
|
napi_get_dataview_info?
|
2022-05-05 21:35:08 -07:00 |
|
Jarred Sumner
|
d6ce585ef3
|
cleanup hook
|
2022-05-05 21:35:08 -07:00 |
|
Jarred Sumner
|
c80e048ab3
|
implement napi_async_work
|
2022-05-05 21:35:08 -07:00 |
|
Jarred Sumner
|
b6a8675658
|
typeof
|
2022-05-05 21:35:08 -07:00 |
|
Jarred Sumner
|
2c0c91e2d0
|
more
|
2022-05-05 21:35:08 -07:00 |
|
Jarred Sumner
|
6b97680224
|
Update napi.zig
|
2022-05-05 21:35:08 -07:00 |
|