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 |
|
Jarred Sumner
|
c76bebca0b
|
more
|
2022-05-05 21:35:08 -07:00 |
|
Jarred Sumner
|
b534c4d661
|
More
|
2022-05-05 21:35:08 -07:00 |
|
Jarred Sumner
|
170d09b6bd
|
More
|
2022-05-05 21:35:08 -07:00 |
|
Jarred Sumner
|
b4fc584d18
|
Even More NAPI
|
2022-05-05 21:35:08 -07:00 |
|
Jarred Sumner
|
5b2d9f8128
|
Begin napi
|
2022-05-05 21:35:08 -07:00 |
|