Jarred Sumner
9388b3f825
Add a zig fmt action ( #2277 )
...
* Add a zig fmt action
* add failing file
* Setup prettier better
* Update prettier-fmt.yml
* Fail on error
* Update prettier-fmt.yml
* boop
* boop2
* tar.gz
* Update zig-fmt.yml
* Update zig-fmt.yml
* Update zig-fmt.yml
* Update zig-fmt.yml
* Update zig-fmt.yml
* boop
* Update prettier-fmt.yml
* tag
* newlines
* multiline
* fixup
* Update zig-fmt.yml
* update it
* fixup
* both
* w
* Update prettier-fmt.yml
* prettier all the things
* Update package.json
* zig fmt
* ❌ ✅
* bump
* .
* quotes
* fix prettier ignore
* once more
* Update prettier-fmt.yml
* Update fallback.ts
* consistentcy
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-03-02 19:02:10 -08:00
Jarred Sumner
1ba007831d
Ensure prettier knows where to look
2023-03-02 15:12:00 -08:00
Jarred Sumner
8f67cf75ee
Bump WebKit
2023-02-25 04:28:04 -08:00
Jarred Sumner
941c6ed814
Upgrade WebKit
2023-02-09 21:28:50 -08:00
Colin McDonnell
08e33fbd42
Fix gaps in types ( #2003 )
...
* Add type for clearImmediate
* Expose Crypto class
* Add types for CustomEvent
* Add types for module and exports
* Add types for global
* Add types for DOMException
* Add types for WebAssembly
* Update formatting
* Fix clearTimeout
* Fix formatting
* Update formatting
* Remove log
---------
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
2023-02-06 21:36:36 -08:00
Jarred Sumner
348e72356b
Bump WebKit
2023-01-29 01:26:16 -08:00
Jarred Sumner
efc024cfc4
clean up deps
2023-01-23 16:51:48 -08:00
Ciro Spaciari
b3533fb3a8
fix(Buffer) Fix arguments in buffer.write, fix size returned from buffer.write for utf16, fix size calc for base64, fix calc for hex byte size ( #1881 )
...
* fix buffer write when more than 2 args are passed
* fix encoding parameter
* better buffer write tests
* fix ucs2/utf8 len return
* fix base64 size in Buffer write
* fix hex encoding size
* actual fix base64
* actual fix base64
* fix segfault
* add fill parameter in Buffer.alloc
* use createUnitialized when alloc have fill parameter, use RETURN_IF_EXCEPTION when static casting
* fix utf16le, ucs2 copying in Buffer write
2023-01-23 16:48:52 -08:00
Jarred Sumner
58cbd6b211
Regenerate lockb
2023-01-18 16:51:18 -08:00
Jarred Sumner
9fd3b5587b
Auto-install and link webkit
2023-01-02 11:29:22 -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
Simon He
7c2180194c
chore: add eslintcache ( #1586 )
2022-12-07 22:03:11 -08:00
Colin McDonnell
f7f1b60444
Add bun-types, add typechecking, add child_process types ( #1475 )
...
* Add bun-types to packages
* Improve typing
* Fix types in tests
* Fix dts tests
* Run formatter
* Fix all type errors
* Add strict mode, fix type errors
* Add ffi changes
* Move workflows to root
* Add workflows
* Remove labeler
* Add child_process types
* Fix synthetic defaults issue
* Remove docs
* Move scripts
* Run prettier
* Include examples in typechecking
* captureStackTrace types
* moved captureStackTrace types to globals
* Address reviews
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2022-11-09 15:40:40 -08:00
Colin McDonnell
3a60764f32
Update React fizz server ( #1432 )
...
* Update fizz server
* Use production build
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
2022-10-31 22:10:28 -07:00
Jarred Sumner
02c920f4fd
TCP & TLS Socket API ( #1374 )
...
* TCP Socket API
* Wip
* Add snippet for StringDecoder
* Rename `close` to `stop`, replace `close` with `end`
* Add a tcp echo server test
* Some docs
* Update README.md
* Fix build
* Update README.md
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-10-25 00:44:25 -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
Jarred Sumner
1bc8c92e2f
[misc] Add bun-types to repo
2022-08-04 22:16:05 -07:00
Alexander
7d1c9fa1a4
Migrate to Zig v0.10.0
2022-07-09 05:09:16 -07:00
Jarred Sumner
cf4c9912c3
Fix npm peer dep issue
2022-07-04 16:46:17 -07:00
Jarred Sumner
29af6560d3
[internal] Add react-dom as a dev dependency for the tests
2022-07-02 01:36:04 -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
125a4c747b
[bun:ffi] cleanup
2022-05-02 03:40:14 -07:00
Jarred Sumner
612fad706f
fix wasm build take 2 (one more thing is broken)
2022-04-18 20:51:10 -07:00
Jarred Sumner
27ad502119
cleanup a few things
2022-04-03 16:35:09 -07:00
Jarred Sumner
fe5ef864f1
hopefully no more unnecessary git status
2022-02-25 00:54:59 -08:00
Jarred Sumner
293a9bc811
[bun install] Add metadata hash
2022-02-25 00:48:36 -08:00
Jarred Sumner
a09b995651
Bun.Transpiler – API for scanning imports/exports of JSX/TSX/TS/JS files
2022-01-19 23:07:03 -08:00
Jarred Sumner
3083bbadc1
Bump peechy again
2021-12-31 00:01:17 -08:00
Jarred Sumner
b1c3fce49b
[internal] Move network_thread into http package
2021-12-30 21:27:27 -08:00
Jarred Sumner
e75c711c68
Upgrade to latest Zig, remove dependency on patched version of Zig ( #96 )
...
* Prepare to upgrade zig
* zig fmt
* AllocGate
* Update data_url.zig
* wip
* few files
* just headers now?
* I think everything works?
* Update mimalloc
* Update hash_map.zig
* Perf improvements to compensate for Allocgate
* Bump
* 📷
* Update bun.lockb
* Less branching
* [js parser] Slightly reduce memory usage
* Update js_parser.zig
* WIP remove unused
* [JS parser] WIP support for `with` keyword
* Remove more dead code
* Fix all the build errors!
* cleanup
* Move `network_thread` up
* Bump peechy
* Update README.md
2021-12-30 21:12:32 -08:00
Jarred Sumner
bb5ad6e1ad
Cleanup build issues
2021-12-24 20:43:53 -08:00
Jack Hanford
7f62169b5e
add prettier to root
2021-11-22 10:21:29 -08:00
Jarred Sumner
a5181c8ed1
[examples] Display Next.js version in example
2021-11-02 23:43:20 -07:00
Jarred Sumner
08e0a51036
Add prettier to makefile & package.json
2021-10-30 17:48:04 -07:00
Jarred Sumner
2dcb465d50
Upgrade to latest peechy
2021-10-24 16:48:47 -07:00
Jarred Sumner
0f7bc76f39
v0.0.0
2021-10-13 23:13:58 -07:00
Jarred SUmner
cdabcfd9d0
Linux works now.
2021-10-02 22:54:19 -07:00
Jarred Sumner
018ba2c83b
Most of macro implementation
2021-09-26 20:03:49 -07:00
Jarred Sumner
3350e63004
Add puppeteer to package.json
2021-09-17 03:14:56 -07:00
Jarred Sumner
e43d3e995f
package.json
...
Former-commit-id: 2299f44cc9092dad2ef48ea54af2555c192a723e
2021-09-05 14:27:00 -07:00