aboutsummaryrefslogtreecommitdiff
path: root/src/string_immutable.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-03-20Implement simple `workspaces` glob support in bun install (#2435)Gravatar Jarred Sumner 1-1/+1
* [bun install] Implement `packages/*`-style globs * Fix incorrect assertion * :nail_care: * 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-19Fix bug with scoped aliased dependencies in bun install on macOSGravatar Jarred Sumner 1-0/+12
2023-03-18Fix out of bounds accessGravatar Jarred Sumner 1-19/+9
Repro'd in Buffer tests
2023-03-18Fix several bugs (#2418)Gravatar Dylan Conway 1-12/+49
* 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-07improve `Buffer` compatibility with Node.js (#2341)Gravatar Alex Lam S.L 1-12/+32
* improve `Buffer` compatibility with Node.js * use `memmove()` allow `encoding` to be `undefined`
2023-03-02Add a zig fmt action (#2277)Gravatar Jarred Sumner 1-1/+1
* 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-02-25Faster `eqlCaseInsensitiveASCII`Gravatar Jarred Sumner 1-14/+20
2023-02-24fix `compiler_rt` linking failure on `x86_64` (#2163)Gravatar Alex Lam S.L 1-16/+7
- minor code tweaks
2023-02-24prefer `bun.copy()` over `std.mem.copy()` (#2152)Gravatar Alex Lam S.L 1-14/+11
2023-02-23Upgrade Zig (#2151)Gravatar Dylan Conway 1-29/+25
* fixup * Upgrade Zig * Remove bad assertion * strings * bump * mode -> optimize * optimize * Linux build * Update bindgen.zig
2023-02-17[install] support git dependencies (#2094)Gravatar Alex Lam S.L 1-0/+8
2023-02-17allow `bun add` of packages with capital letters (#2095)Gravatar Alex Lam S.L 1-1/+3
2023-02-16faster Buffer.byteLength("latin1")Gravatar Jarred Sumner 1-36/+28
2023-02-15feat(fetch) AbortSignal (#2019)Gravatar Ciro Spaciari 1-1/+0
* 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-13Implement `FormData` (#2051)Gravatar Jarred Sumner 1-0/+50
* 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-10fix(string_immutable): fix `toUTF16Alloc` for bindgen w/ `use_simdutf = ↵Gravatar Derrick Farris 1-1/+2
false` (#2042)
2023-02-10drop ASCII double-scan and other minor clean-ups (#2038)Gravatar Alex Lam S.L 1-137/+86
2023-02-09fix assertion failure (#2033)Gravatar Alex Lam S.L 1-5/+2
2023-02-09[simdutf] workaround validation OOB access (#2031)Gravatar Alex Lam S.L 1-14/+9
2023-02-09Workaround https://github.com/simdutf/simdutf/issues/213Gravatar Jarred Sumner 1-3/+4
2023-02-08utf16 to utf8 conversion validation (#2001)Gravatar Dylan Conway 1-7/+37
* 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-05speed it up a little moreGravatar Jarred Sumner 1-11/+53
2023-02-02Update string_immutable.zigGravatar Jarred Sumner 1-1/+1
2023-02-02Fix stack overflow when console.log'ing stringsGravatar Jarred Sumner 1-6/+12
2023-02-01fix text encoding for utf8 (#1967)Gravatar Dylan Conway 1-3/+1
* use character * replacement character * also test encoding decoded points * increase length by 1
2023-01-30fix utf16le fill and utf8 partial write of utf16 (#1943)Gravatar Ciro Spaciari 1-0/+48
2023-01-30fix `assert()` crash (#1941)Gravatar Alex Lam S.L 1-1/+1
2023-01-29Make this more carefulGravatar Jarred Sumner 1-1/+1
2023-01-29Fixes #1915Gravatar Jarred Sumner 1-17/+38
2023-01-28[bun add] fix more corner cases (#1930)Gravatar Alex Lam S.L 1-19/+13
2023-01-28Support running WASI (WebAssembly) files using `bun run` (#1929)Gravatar Jarred Sumner 1-0/+11
* another micro bench * Support running WASI --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-23fix test failure in aarch64 and add test for simd code pathGravatar Jarred Sumner 1-21/+42
2023-01-21Support query string parameters in module resolutionGravatar Jarred Sumner 1-0/+5
2023-01-13move more thingsGravatar Jarred SUmner 1-3/+3
2023-01-07Implement DNS module (#1691)Gravatar Jarred Sumner 1-0/+8
* 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-03Remove usages of std.xGravatar Jarred Sumner 1-1/+1
2022-12-30Make `NamesIterator` saferGravatar Jarred Sumner 1-0/+9
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-59/+69
* @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 * :camera: * 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-22Make `bun pm ls` only show top-level by defaultGravatar Jarred Sumner 1-0/+9
2022-12-11Fix checking the UTF-16 length twiceGravatar Jarred Sumner 1-5/+20
2022-12-06first_non_ascii != offsetGravatar Dylan Conway 1-1/+0
2022-12-06fix failing text decoder testGravatar Dylan Conway 1-2/+1
2022-12-05Use more simdutfGravatar Jarred Sumner 1-0/+9
2022-12-05More null checking for simdutfGravatar Jarred Sumner 1-27/+38
2022-12-05[internal] Add some logs for string encodingGravatar Jarred Sumner 1-1/+11
2022-12-04[internal] Make string comparisons fasterGravatar Jarred Sumner 1-26/+56
2022-12-03simdutf ascii validation is about 20% faster on arm64 than our zig simd ↵Gravatar Jarred Sumner 1-0/+3
@Vector version
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-2/+2
2022-11-27Cleanup some of the encoding codeGravatar Jarred Sumner 1-7/+20
2022-11-27[console.log] Fix printing latin1 supplement characters at runtimeGravatar Jarred Sumner 1-19/+50
Fixes https://github.com/oven-sh/bun/issues/1031#issuecomment-1236092120