aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/webcore/encoding.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-06-23[feat] fs.watch (#3249)Gravatar Ciro Spaciari 1-1/+14
* initial support * add types * fix comment * fix types * bigfix up * more fixes * fix some encoding support for watch * fix rename event * fixup * fix latin1 * add fs_events, still failing some tests * fixuup * remove unecesary check * readd tests ops * this is necessary? just testing CI/CD weird errors * just use dupe here * cleanup and fix deinit * fix zig upgrade
2023-06-21upgrade zig to `v0.11.0-dev.3737+9eb008717` (#3374)Gravatar Dylan Conway 1-28/+29
* progress * finish `@memset/@memcpy` update * Update build.zig * change `@enumToInt` to `@intFromEnum` and friends * update zig versions * it was 1 * add link to issue * add `compileError` reminder * fix merge * format * upgrade to llvm 16 * Revert "upgrade to llvm 16" This reverts commit cc930ceb1c5b4db9614a7638596948f704544ab8. --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-01Rename `ptr` to `_unsafe_ptr_do_not_use` (#3163)Gravatar Jarred Sumner 1-2/+2
* Rename `ptr` to `_unsafe_ptr_do_not_use` * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-19Fix broken autocompleteGravatar Jarred Sumner 1-10/+10
2023-03-18Fix several bugs (#2418)Gravatar Dylan Conway 1-3/+20
* 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-99/+55
* improve `Buffer` compatibility with Node.js * use `memmove()` allow `encoding` to be `undefined`
2023-02-23Upgrade Zig (#2151)Gravatar Dylan Conway 1-1/+1
* fixup * Upgrade Zig * Remove bad assertion * strings * bump * mode -> optimize * optimize * Linux build * Update bindgen.zig
2023-02-05speed it up a little moreGravatar Jarred Sumner 1-46/+26
2023-02-05Faster Buffer.toString("ascii")Gravatar Jarred Sumner 1-8/+35
2023-02-03anotherGravatar Dylan Conway 1-1/+1
2023-02-03integers overflowingGravatar Dylan Conway 1-1/+1
2023-02-01fix text encoding for utf8 (#1967)Gravatar Dylan Conway 1-2/+12
* use character * replacement character * also test encoding decoded points * increase length by 1
2023-01-30remove log that appears in productionGravatar Jarred Sumner 1-5/+1
2023-01-30fix utf16le fill and utf8 partial write of utf16 (#1943)Gravatar Ciro Spaciari 1-17/+29
2023-01-29[buffer] More passing Node.js testsGravatar Jarred Sumner 1-4/+5
2023-01-26Implement all pending resolve methods in DNS (#1903)Gravatar Ciro Spaciari 1-9/+5
* initial steps to create generic resolve * add soa * add naptr * add naptr * add mx and fix naptr * add resolve caa * fix Caa test * fix toJS from caa * add resolveNs * add resolvePtr * fix resolvePtr test * add resolveCname * add resolve rrtype options (still missing ANY) * fix Naptr * fix drainPendingCares
2023-01-23fix(Buffer) Fix arguments in buffer.write, fix size returned from ↵Gravatar Ciro Spaciari 1-9/+26
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:scissors: duplicate codeGravatar Jarred Sumner 1-64/+9
2023-01-19make this code easier to readGravatar Jarred Sumner 1-0/+8
2023-01-13Split some things into more files and use bun namespace instead of import moreGravatar Jarred SUmner 1-1/+1
2022-12-29Introduce `Bun.CryptoHasher`Gravatar Jarred Sumner 1-1/+2
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-34/+18
* @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-03make sure to not use incomplete characters (#1575)Gravatar Dylan Conway 1-1/+4
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-10/+10
2022-11-27Cleanup some of the encoding codeGravatar Jarred Sumner 1-6/+5
2022-11-08Fix `Buffer.from(text, "base64")` and `Buffer.toString("base64")`Gravatar Jarred Sumner 1-20/+3
2022-11-0820% faster TextDecoder on small inputsGravatar Jarred Sumner 1-0/+65
2022-10-27feat(core): optimize zig slice (#1408)Gravatar Carter Snook 1-1/+1
* feat(core): optimize zig slice * address concerns
2022-10-21Treat invalid buffer value as utf8 stringGravatar Jarred Sumner 1-2/+3
2022-09-30Fix body mixinGravatar Jarred Sumner 1-2/+2
2022-09-01Fix failing Buffer tests (#1197)Gravatar Zilin Zhu 1-6/+6
2022-09-01Add native StringDecoder (#1188)Gravatar Zilin Zhu 1-9/+6
* Add native StringDecoder * fix upon reviews * add Constructor and use LazyClassStructure
2022-08-29chore: Clean buffer C API (#1174)Gravatar Zilin Zhu 1-178/+93
2022-08-27Update WebKit (#1165)Gravatar Jarred Sumner 1-2/+2
* Update WebKit * Fix `DataView` and non-8 bit sized typed arrays with TextDecoder * New WebKit Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-08-18Faster TextDecoderGravatar Jarred Sumner 1-120/+75
2022-08-12[bun.js] up to 60% faster TextEncoder.encodeInto and ~3% faster ↵Gravatar Jarred Sumner 1-61/+83
TextEncoder.encode
2022-07-27#609 Don't truncate ascii buffers to 7-bit (#775)Gravatar szatkus 1-10/+9
2022-07-01Fix failing tests for ReadableStream -> {text, arrayBuffer, blob}Gravatar Jarred Sumner 1-0/+1
2022-06-30[TextEncoder] Use JSC heap for small buffersGravatar Jarred Sumner 1-16/+64
2022-06-29Correctly handle latin1 rope strings with non-ascii charactersGravatar Jarred Sumner 1-36/+27
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-0/+1247