Jarred Sumner
b76384351c
More bug fixes ( #2486 )
...
* readline_promises test fix
* fix `escapeHTML` for baseline builds
* fs test fixes, use `tmpdir()`
* add paths for `resolve.test.js`
* isError with toString symbol and error prototype
* comment about `toString`
* skip async macro transform
* test cleanup, skip stack format test
* readline undo and redo fix
* capture error from readline keypress
* Update tcp-server.test.ts
* use `removefileat` for recursive rmdir
* use strong for `signal.reason`
* initialize `m_flags`
* directory with file fs test
* recursive option
* import expect
* could be less than
* move abort signal tests to another process
* fix typecheck
---------
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2023-03-28 18:23:50 -07:00
Jarred Sumner
1a25af5e3d
Implement simple workspaces glob support in bun install ( #2435 )
...
* [bun install] Implement `packages/*`-style globs
* Fix incorrect assertion
* 💅
* remove extraneous console.log
* Fix pointer to stack memory
* Add a test with a scoped package name from a glob workspace
* Fixup
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-03-20 05:57:23 -07:00
Jarred Sumner
0edd8d262d
Fix bug with scoped aliased dependencies in bun install on macOS
2023-03-19 20:58:27 -07:00
Jarred Sumner
7216bfe016
Fix out of bounds access
...
Repro'd in Buffer tests
2023-03-18 16:57:55 -07:00
Dylan Conway
a9c41c67e6
Fix several bugs ( #2418 )
...
* utf16 codepoint with replacement character
* Fix test failure with `TextEncoder("ascii')`
* Add missing type
* Fix Response.prototype.bodyUsed and Request.prototype.bodyUsed
* Fix bug with scrypt error not clearing
* Update server.zig
* oopsie
2023-03-18 00:55:05 -07:00
Alex Lam S.L
28346e4a39
improve Buffer compatibility with Node.js ( #2341 )
...
* improve `Buffer` compatibility with Node.js
* use `memmove()`
allow `encoding` to be `undefined`
2023-03-07 22:29:29 -08:00
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
693be3d1c2
Faster eqlCaseInsensitiveASCII
2023-02-25 18:23:01 -08:00
Alex Lam S.L
26df7ca892
fix compiler_rt linking failure on x86_64 ( #2163 )
...
- minor code tweaks
2023-02-24 14:51:20 -08:00
Alex Lam S.L
e887a064fb
prefer bun.copy() over std.mem.copy() ( #2152 )
2023-02-24 05:53:26 -08:00
Dylan Conway
3f04f8d0a6
Upgrade Zig ( #2151 )
...
* fixup
* Upgrade Zig
* Remove bad assertion
* strings
* bump
* mode -> optimize
* optimize
* Linux build
* Update bindgen.zig
2023-02-23 23:57:19 -08:00
Alex Lam S.L
c60d7db178
[install] support git dependencies ( #2094 )
2023-02-17 14:48:57 -08:00
Alex Lam S.L
79f7d29d03
allow bun add of packages with capital letters ( #2095 )
2023-02-17 14:46:07 -08:00
Jarred Sumner
56b75dbac3
faster Buffer.byteLength("latin1")
2023-02-16 17:17:29 -08:00
Ciro Spaciari
597053ea91
feat(fetch) AbortSignal ( #2019 )
...
* add fetch abort signal
* get aborted (still segfaults)
* bidings.zig u0 error
* still GC/memory error
* fix start crash
* fix AbortSignal fromJS
* change fromJS to obj.as
* addAbortSignalEventListenner
* handle abort types, and add tests
* fix tests
* add custom reason test
* merge 2 substring methods, use MAKE_STATIC_STRING_IMPL
* fix create AbortError and TimeoutError, move globalThis and exception creation to main thread
* fix tests and rebuild headers
* no need to check with substring reason is already an exception
* no need to check with substring reason is already an exception
* fix dumb error inverting conditions for check reason
* fix custom reason behavior
2023-02-15 14:20:40 -08:00
Jarred Sumner
aa0762e466
Implement FormData ( #2051 )
...
* Backport std::forward change
* Implement `FormData`
* Fix io_darwin headers issue
* Implement `Blob` support in FormData
* Add test for file upload
* Fix bug with Blob not reading Content-Type
* Finish implementing FormData
* Add FormData to types
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-02-13 00:50:15 -08:00
Derrick Farris
b1aac9ff6d
fix(string_immutable): fix toUTF16Alloc for bindgen w/ use_simdutf = false ( #2042 )
2023-02-10 13:12:14 -08:00
Alex Lam S.L
5181aa54e2
drop ASCII double-scan and other minor clean-ups ( #2038 )
2023-02-10 09:22:24 -08:00
Alex Lam S.L
6052a3edbd
fix assertion failure ( #2033 )
2023-02-09 21:20:11 -08:00
Alex Lam S.L
119120d21c
[simdutf] workaround validation OOB access ( #2031 )
2023-02-09 20:26:23 -08:00
Jarred Sumner
4bedd3833d
Workaround https://github.com/simdutf/simdutf/issues/213
2023-02-09 19:06:20 -08:00
Dylan Conway
6fdbb25f9a
utf16 to utf8 conversion validation ( #2001 )
...
* use replacement character for invalid surrogate pairs
* return index of non-ascii
* non-allocating case
* edge cases
* function rename
* oops
* get length once, index counter
2023-02-08 14:42:10 -08:00
Jarred Sumner
ca2e708be1
speed it up a little more
2023-02-05 07:07:35 -08:00
Jarred Sumner
198322073d
Update string_immutable.zig
2023-02-02 15:58:10 -08:00
Jarred Sumner
b12762af6c
Fix stack overflow when console.log'ing strings
2023-02-02 15:56:16 -08:00
Dylan Conway
3c23f9ad57
fix text encoding for utf8 ( #1967 )
...
* use character
* replacement character
* also test encoding decoded points
* increase length by 1
2023-02-01 18:48:09 -08:00
Ciro Spaciari
aa10799d8a
fix utf16le fill and utf8 partial write of utf16 ( #1943 )
2023-01-30 12:21:23 -08:00
Alex Lam S.L
ec2c16fefa
fix assert() crash ( #1941 )
2023-01-30 12:20:29 -08:00
Jarred Sumner
49d8316922
Make this more careful
2023-01-29 19:01:47 -08:00
Jarred Sumner
7a496fa41a
Fixes #1915
2023-01-29 19:01:39 -08:00
Alex Lam S.L
d9c1a18776
[bun add] fix more corner cases ( #1930 )
2023-01-28 23:54:47 -08:00
Jarred Sumner
f087388ebc
Support running WASI (WebAssembly) files using bun run ( #1929 )
...
* another micro bench
* Support running WASI
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-01-28 23:23:26 -08:00
Jarred Sumner
7420cb1d73
fix test failure in aarch64 and add test for simd code path
2023-01-23 18:03:48 -08:00
Jarred Sumner
99d2d6e607
Support query string parameters in module resolution
2023-01-21 23:11:31 -08:00
Jarred SUmner
168bb1427f
move more things
2023-01-13 11:38:16 -08:00
Jarred Sumner
87983464d8
Implement DNS module ( #1691 )
...
* Boilerplate for DNS stuff
* Add c-ares
* lookup
* make
* Implement dns.lookup
* Create c-ares
* wip
* normalize
* repro
* Revert "repro"
This reverts commit 8b93e0c295b335b8882a9601da47720348549beb.
* Implement macOS `getaddrinfo_async_start`
* embiggen
* Update string_immutable.zig
* Update Makefile
* alright
* Update .gitignore
* Add types
* more ccache
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Update bun.d.ts
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-01-07 07:09:48 -08:00
Jarred Sumner
c99059db9f
Remove usages of std.x
2023-01-03 18:53:40 -08:00
Jarred Sumner
be706fecb4
Make NamesIterator safer
2022-12-30 21:30:23 -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
3da9c728d6
Make bun pm ls only show top-level by default
2022-12-22 23:38:56 -08:00
Jarred Sumner
a2d96f9040
Fix checking the UTF-16 length twice
2022-12-11 13:01:24 -08:00
Dylan Conway
d9306c2681
first_non_ascii != offset
2022-12-06 21:46:20 -08:00
Dylan Conway
aa17f97d13
fix failing text decoder test
2022-12-06 21:04:38 -08:00
Jarred Sumner
c7f411bd88
Use more simdutf
2022-12-05 17:14:29 -08:00
Jarred Sumner
9e29159f44
More null checking for simdutf
2022-12-05 12:06:24 -08:00
Jarred Sumner
054413ba1f
[internal] Add some logs for string encoding
2022-12-05 03:38:45 -08:00
Jarred Sumner
714ce7619d
[internal] Make string comparisons faster
2022-12-04 06:53:53 -08:00
Jarred Sumner
bc028168a8
simdutf ascii validation is about 20% faster on arm64 than our zig simd @Vector version
2022-12-03 08:26:53 -08:00
Jarred Sumner
b631ea7d72
import everything from "bun" where possible
2022-11-29 02:42:56 -08:00
Jarred Sumner
4ee11d922c
Cleanup some of the encoding code
2022-11-27 22:09:56 -08:00