aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ZigGeneratedClasses.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-03-14Implement `toMatchSnapshot()` (#2294)Gravatar Dylan Conway 1-0/+169
* buggy snapshot * error output for failed snapshot * missing first * hints * open dir once, better cleanup * update flag * truncate on update * object and class snapshot formatting * array formatting * no function name, single item is empty array * string objects, maps, sets, promise * avoid using invalid memory * handle number objects * handle extending `Number` * boolean objects * snapshot tests and test updates * snapshot format for buffers * safer snapshot parsing * property matchers setup * strings and tests * generate classes with empty prototype * optional `propertyMatchers` parameter * new test folder structure * strings.eqlLong * globalObject.throwPretty() and expect.any tests * add updateSnapshot flag to help * move snapshot format out of `printErrorlikeObject` * empty object snapshot format * separate typed array, remove trailing comma * use `isCell`, object trailing commas * handle unicode * todo for primitive constructors * switch to `JSC.Node.Syscall.open` and `JSC.Maybe` * use js parser for snapshot files * deinit ast, log parse error * copy/paste most of `exports.ZigConsoleClient` * remove snapshot option * remove ordered properties option * remove snapshot format option from `exports.zig` * remove extra newlines * change mode * update test runner output * escape backticks faster * `bunx jest` in temp dir * remove buffered writer * add `toMatchSnapshot` to types * cleanup, switch to `pread` * cli `--update` flag * `--update-snapshots` * remove string object format
2023-02-22feat(Request.signal) Initial support for signal in Request + fetch and ↵Gravatar Ciro Spaciari 1-0/+37
Request + Bun.serve (#2097) * 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 * Request signal * remove package-lock.json * Remove JSC.Strong from Request signal * fix globals for fetch abort signal * more tests, clone signal crashs * fix AbortSignal.toJS * fix toJS bidings for AbortSignal * add streaming tests * fix abortion before connecting * fix tests and segfault * add fetch testing abort after finish * fix signal handler cleanup * support signal event Bun.serve * pull tests (failing) * remove unsupported test * formating * fix server Request.signal, fix cleanNativeBindings * add direct tests * more pull tests * fix stream tests * fix fetch, pending onAborted fix in HTTPServerWritable --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-02-22[breaking] Return Node.js `Timeout` objects in `setTimeout`, `setInterval`, ↵Gravatar Jarred Sumner 1-0/+203
and `setImmediate` Fixes #2129 #880
2023-02-13Implement `FormData` (#2051)Gravatar Jarred Sumner 1-0/+60
* 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-11Fixes https://github.com/oven-sh/bun/issues/2052Gravatar Jarred Sumner 1-40/+0
2023-02-11Backport std::forward changeGravatar Jarred Sumner 1-40/+80
2023-02-06Mark things as DontDeleteGravatar Jarred Sumner 1-153/+153
2023-02-06Make `Stat` functions fastGravatar Jarred Sumner 1-7/+133
2023-02-06Mark some things as not configurableGravatar Jarred Sumner 1-184/+948
2023-02-06Expose Dirent and Stats (#1998)Gravatar Michał Warda 1-0/+16
* Expose dirent and stats * Expose Dirent and Stats inside fs * Add tests for Dirent and Stats exposing * Automatically generate bindings
2023-01-23Add a commentGravatar Jarred Sumner 1-5348/+5672
2023-01-09check for isEmpty or !isCellGravatar Jarred Sumner 1-46/+46
2023-01-08[internal] Regenerate codeGravatar Jarred Sumner 1-46/+69
2022-12-29Introduce `Bun.CryptoHasher`Gravatar Jarred Sumner 1-86/+157
2022-12-28Implement `Bun.RIPEMD160`Gravatar Jarred Sumner 1-8/+312
`RIPEMD160` is used by node:crypto.
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-0/+2302
* @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-04Update ZigGeneratedClasses.cppGravatar Jarred Sumner 1-0/+16
2022-11-28toHaveProperty and tests (#1558)Gravatar Dylan Conway 1-1/+1
* toHaveProperty and tests * emoji tests
2022-11-22Remove some dead codeGravatar Jarred Sumner 1-416/+0
2022-11-22[FileSystemRouter] base_dir, Request, ResponseGravatar Jarred Sumner 1-1/+73
2022-11-22Introduce `Bun.FileSystemRouter` APIGravatar Jarred Sumner 1-162/+975
2022-11-20[internal] Implement `visitAdditionalChildren`Gravatar Jarred Sumner 1-6/+219
2022-11-20[TCP] Make `Socket` more careful about GCGravatar Jarred Sumner 1-0/+12
2022-11-19Fix a GC issue with `Bun.spawn`Gravatar Jarred Sumner 1-2/+9
The `Subprocess` object stays alive until the process exits, even if it's never referenced
2022-11-18bun test matchers and tests (#1526)Gravatar Dylan Conway 1-0/+120
* 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-15add generated getter/setter type with thisValue (#1513)Gravatar Dylan Conway 1-6/+6
2022-11-0820% faster TextDecoder on small inputsGravatar Jarred Sumner 1-4420/+3871
2022-11-07[bun:test] Implement `expect` in faster Zig bindingsGravatar Jarred Sumner 1-1132/+3476
2022-10-28spaceGravatar Jarred Sumner 1-0/+206
2022-10-25TCP & TLS Socket API (#1374)Gravatar Jarred Sumner 1-1/+1365
* 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-17Implement `sendText`, `sendBinary`, `publishText`, `publishBinary`Gravatar Jarred Sumner 1-0/+208
2022-10-17Redo WebSocket apiGravatar Jarred Sumner 1-0/+22
2022-10-15Errors must return 0 instead of undefinedGravatar Jarred Sumner 1-15/+101
2022-10-15WebSocket Server supportGravatar Jarred Sumner 1-1/+489
2022-10-10Keep the process aliveGravatar Jarred Sumner 1-31/+12
2022-10-08Fix fetch response redirected (#1303)Gravatar zhiyuan 1-1/+71
* fix: sync codegen * fix: generate class script * fix: sync codegen * fix: add response redirected property
2022-09-28Implement `reportExtraMemoryVisited` and `reportExtraMemoryAllocated` in ↵Gravatar Jarred Sumner 1-4/+51
bindings
2022-09-26Make `Bun.spawn`, FileSink and FileBlobLoader a little more reliableGravatar Jarred Sumner 1-15/+25
2022-09-26[Web Streams] Add `body` to `Response` and `Request` (#1255)Gravatar Jarred Sumner 1-0/+52
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-09-25wipGravatar Jarred Sumner 1-1/+378
2022-09-22Faster `Blob` + begin to implement `FileSink`Gravatar Jarred Sumner 1-34/+379
2022-08-27Update WebKit (#1165)Gravatar Jarred Sumner 1-75/+75
* 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-90/+95
2022-08-18Fix missing `prototype` property on generated classesGravatar Jarred Sumner 1-731/+929
2022-08-18Handle builds with remote inspector disabledGravatar Jarred Sumner 1-1/+1
2022-08-17Move the crypto hashers to the new bindingsGravatar Jarred Sumner 1-266/+2168
2022-08-17New Zig <> C++ bindings generator. +20% faster HTTP serverGravatar Jarred Sumner 1-0/+972