aboutsummaryrefslogtreecommitdiff
path: root/packages (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-01add `BroadcastChannel` (#3922)Gravatar Dylan Conway 1-0/+79
* copy and format * update `SerializedScriptValue.cpp` * use `expect().fail()` in message channel tests * rename `BroadcastChannelIdentifier.h` * copy registries * progress and tests * cleanup * worker and broadcast channel test * `BroadcastChannel` ref and unref * `MessagePort` ref, unref, and hasRef * remove `SecurityContext.cpp/h` * add types
2023-08-01Update typesGravatar Jarred Sumner 1-0/+5
2023-07-28optional parameterGravatar Dylan Conway 1-3/+3
2023-07-28fix types and add message channel/port gc testGravatar Dylan Conway 1-59/+3
2023-07-28`MessageChannel` and `MessagePort` (#3860)Gravatar Dylan Conway 1-0/+146
* copy and format * copy * copy * cleanup * some tests * spellcheck * add types * don't lock getting contextId * array buffer test
2023-07-28feat(bun/test): Impl. expect().pass() & expect().fail() (#3843)Gravatar Tiramify (A.K. Daniel) 1-0/+24
* Impl. pass & fail * fix * fix 2 * smol
2023-07-27Add `Bun.isMainThread`Gravatar Jarred Sumner 1-0/+5
2023-07-26Enable `Promise.withResolvers()`Gravatar Jarred Sumner 1-1/+29
https://github.com/tc39/proposal-promise-with-resolvers Thanks @dcrousso
2023-07-26Fix broken anchorsGravatar Colin McDonnell 1-0/+2
2023-07-20Add number types for FFI (#3706)Gravatar Colin McDonnell 2-19/+28
2023-07-19Update worker.test-d.tsGravatar Jarred Sumner 1-4/+2
2023-07-19Docs & types for 0.7 (#3665)Gravatar Colin McDonnell 2-0/+41
* Docs & types for 0.7 * Tweak * Update * Tweaks * Tweak * Tweaks --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-07-19Bump version to Bun v0.7.0Gravatar Jarred Sumner 1-1/+1
2023-07-19Support streams in response.formData() & request.formData, introduce ↵Gravatar Jarred Sumner 1-13/+70
Bun.readableStreamToFormData() (#3697) * codegen * FormData.from * Fixes #3225 * Introduce `Bun.readableStreamToFormData` * Update bun.d.ts * Add examples * add --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-19Inline`bun` object from workersGravatar Jarred Sumner 1-17/+21
2023-07-19Implement `AsyncLocalStorage` (#3089)Gravatar dave caruso 2-1/+1
* work to get async local storage working. * a * a * everything but queueMicrotask * sdfghj * . * finish * tests * test * ok * done * im so stupid * Upgrade WebKit * refactor * refactor * changes requested * oops * cool * fix runInAsyncScope
2023-07-17Fix incorrect nameGravatar Jarred Sumner 1-2/+2
2023-07-16Implement Workers (#3645)Gravatar Jarred Sumner 2-0/+110
* copy files * format * options * Introduce `Worker`, `onmessage`, `onerror`, and `postMessage` globals * Stub `Worker.prototype.ref` & `Worker.prototype.unref` * Update web_worker.zig * Worker works * Add "mini" mode * add wakeup * Partially fix the keep-alive issue * clean up refer behavior * Implement `serialize` & `deserialize` in `bun:jsc` & add polyfill for `node:v8` * Types & docs * Update globals.d.ts * Add mutex * Fixes --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-14`structuredClone` typesGravatar Dylan Conway 1-8/+15
2023-07-13Remove fdatasync from typesGravatar Colin McDonnell 1-2/+2
2023-07-13Update docs/types for process (#3631)Gravatar Colin McDonnell 5-58/+209
* Update docs/types for process * Tweaks * Tweaks * Fix types
2023-07-13Implement `ping()`, `pong()`, `terminate()` for WebSocket client and server ↵Gravatar Ashcon Partovi 2-344/+463
(#3257)
2023-07-11Implement `process.kill` and `process._kill`Gravatar Jarred Sumner 1-0/+2
2023-07-11docs(sqlite): database prepare types reflect runtime (#3599)Gravatar simylein 1-0/+1
* docs(sqlite): database prepare types reflect runtime * Update sqlite.d.ts --------- Co-authored-by: Ashcon Partovi <ashcon@partovi.net>
2023-07-10Update globals.d.tsGravatar Jarred Sumner 1-2/+28
2023-07-07Update types, partially fix `typecheck` (#3551)Gravatar Colin McDonnell 6-98/+170
* Update types * Remove caret
2023-07-06Update trustedDeps docGravatar Colin McDonnell 1-0/+10
2023-07-06Various docs updates (#3437)Gravatar Colin McDonnell 1-0/+13
* Various docs updates * Add mocks page * Fix make * WebKit instructions * Update instructions * Updates * Update nodejs compat table * Document trusted deps * Tweak trustedDependencies docs * Document --exact * Update test docs * Tweaks * Boring * Remove redundant j * Undo makefile changes * Undo makefile changes * Update page title * Regen * Undo changes
2023-07-05Fixes #3512 (#3526)Gravatar Jarred Sumner 1-2/+2
* Fixes #3512 * Fix `clearTimeout` and `clearInterval` not cancelling jobs same-tick --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-02Stub out `useFakeTimers` and `useRealTimers`Gravatar Jarred Sumner 1-0/+30
2023-07-02[node:buffer] Implement `isUtf8` and `isAscii` (#3498)Gravatar Jarred Sumner 1-0/+24
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-30implement perf_hooks.constants (#3476)Gravatar dave caruso 1-13/+13
2023-06-29Fixes `node:http` and `node:stream` so `ytdl-core` works. (#3452)Gravatar dave caruso 2-2/+13
* fix crash in readablestate * make node:https request+get actually use https * use a native readablestream in IncomingMessage * tweaks * fix abort crash * emit close by default * remove abort. this isnt a real function * add validate functions, fixup some other requested changes. not done yet * Update WebCoreJSBuiltins.cpp * Update JSReadableState.cpp * Add some missing exports --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-28Introduce `await Bun.file(path).exists()` (#3446)Gravatar Jarred Sumner 1-1/+23
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-23[feat] fs.watch (#3249)Gravatar Ciro Spaciari 2-0/+155
* 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-22`expect().resolves` and `expect().rejects` (#3318)Gravatar Ashcon Partovi 1-0/+14
* Move expect and snapshots to their own files * expect().resolves and expect().rejects * Fix promise being added to unhandled rejection list * Handle timeouts in expect(<promise>) * wip merge * Fix merge issue --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-21finish implementing JSMockFunction prototype + lots of expect test ↵Gravatar dave caruso 1-9/+19
organizing (#3304) * mock tests * fix mistake * stuff * partially implement mock return promises * lot of housecleaning on jest tests * document / rename internalFields in jsmockfunction * finish implementing JSMockFunction prototype * cleanup * more progress * everything is done * remove demo.test.js * finish rebase * requested changes * fix compile error
2023-06-19feat(bun/test): Impl. "toBeArray", "toBeArrayOfSize" & "toBeTypeOf" (#3316)Gravatar Tiramify (A.K. Daniel) 1-0/+31
* Implement toBeArray, toBeArrayOfSize, toBeTypeOf * fix typos/variable names * Add testcases for regex and dates * little fix * i didn't paste that...
2023-06-18Make more tests failGravatar Jarred Sumner 1-0/+10
2023-06-17[eventsource] SSE Client (#3074)Gravatar Ciro Spaciari 1-0/+79
* fix flush * remove logs * add HTTP/1.1 eventsource * fix parse spec * multiple data in one event * get lastEventId for reconnection * fix parsing add reconnect * fix reconnection retry * add retry option * move eventsource to builtins * remove duplicate interface on globals.d.ts * move test to TS * fmt * allow no Content-Length or Transfer Encoding * udpate builtins * hardcoded * merge * revert /src/out * updated * Update .gitignore * Make the tests fail * Cleanup EventSource getter * fixup * fixup TS * fmt * update builtins * fix tests * Clear existing timeouts * Add `ref` and `unref` methods * Use `super` to make prototype pollution slightly harder * Reduce test timeout * Regenerate builtins * prettier + ref/unref * Outdated * forgot to commit this --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-17Add types for toBeOdd & toBeEven (#3344)Gravatar Tiramify (A.K. Daniel) 1-0/+18
2023-06-14document Bun.argv in typedefs (#3302)Gravatar dave caruso 1-0/+4
2023-06-13`mock` type changes (#3305)Gravatar Colin McDonnell 2-34/+16
* Update mock types and set bun-types@latest in bun init * Remove mockfn methods from toplevel mock * Remove comments
2023-06-13fix TS5096 (#3256)Gravatar xxxhussein 1-0/+2
2023-06-12Make mocks use FunctionPrototype (#3291)Gravatar Jarred Sumner 1-6/+35
* Make mocks use FunctionPrototype * Fix static methods * Fix types * Update JSMockFunction.cpp --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-09`toMatchObject` and some asymmetric matchers (#3260)Gravatar Dylan Conway 2-0/+21
* `toMatchObject` progress * add `expect.stringContaining()` * add `expect.stringMatching()` * print asymmetric matchers * cleanup * return before printing if constructor value isn't there * move matcher logic to cpp * pretty format and tests * fix formatting for snapshots * format `stringContaining` and `stringMatching` like jest * better test * remove commented tests * remove old property matcher code * add types * make sure all props are matched in arrays * add `Bun.deepMatch`
2023-06-09Fix jest.fn typeGravatar Colin McDonnell 1-1/+1
2023-06-09Clean up typesGravatar Colin McDonnell 2-179/+182
2023-06-09Improve types for mocks (#3261)Gravatar Colin McDonnell 2-4/+5
* Add jest.fn to types * Fix type-tests
2023-06-09Clean up comments in typesGravatar Colin McDonnell 1-8/+0