aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-11-02Improve async function handling code in setTimeout and setIntervalGravatar Jarred Sumner 1-0/+16
Should fix
2022-11-01typescript decorators round 2 (#1445)Gravatar Dylan Conway 1-0/+787
* __decorateClass, __decorateParam, lit test, wiptest test * decorator factories test * parameter decorator test * test for decorators with constructor parameter properties * Fix issue with `CryptoKey` and `SubtleCrypto` constructors * Limit concurrency for GitHub Actions due to issues with cache poisoning If multiple actions are running, sometimes the cache is poisoned from another action. We need to fix this, but this is an interim measure to make actions less flaky * Make these tests better * Move this to dependencies so the .a files upload * Fixup * temporary fix * Limit concurrency for MacOS Object actions * try againn * againn * Make `"tls"` an explicit object we pass instead of implicit top-level options cc @Electroid @colinhacks * Update server.zig * Prefer `BUN_PORT` over `PORT` * Fix typo in homebrew action * Run homebrew action when release is edited * Check published_at instead of draft in GitHub action * Implement `process.release` * Add missing dependencies to `make devcontainer` * Allow overriding node polyfills via `BUN_OVERRIDE_MODULE_PATH` * Add a stub for io_darwin on linux cc @sno2 hopefully this helps but i'm not sure * Add missing `break` * Download more RAM * feat(core): optimize zig slice (#1408) * feat(core): optimize zig slice * address concerns * Remove webcrypto from vendor-without-check * Update default tsconfig (#1418) Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> * Enable `BUN_OVERRIDE_MODULE_PATH` in `bun wiptest` * Upgrade WebKit * space * Support getting cached values and pending activity in the bindings generator * Remove :scissors: function * constructor creation, initializers, handle static and computed fields with decorators * Updating libuwebsockets C API (#1423) * fix for repeated regex match calls and fix for '^' in character classes (#1419) * tests and formatting * fix for ^ in character class * formatting * test for repeated match and exec calls * create oniguruma regex for each exec/test * check errorCode from creating oniguruma regexp and always return {} on failure * oops * call onig_initialize once * fix incorrect escaping, removed unnecessary oniguruma settings * tests for "-" and "^" in character classes * free regex object before returns * force gc for some tests * Update React fizz server (#1432) * Update fizz server * Use production build Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> * more decorator tests * optional setup function for loading elements, simulate clicks in lit test * fix createWriteStream (#1433) * fix createWriteStream * remove comment * Update build docs and commands for dev containers (#1438) * Update build documentation for dev containers * Add devcontainer-rebuild make target * Add make devcontainer-sh target * Fix missing .PHONY for vendor-without-check (#1437) * Fix check for ninja on Debian/Ubuntu (#1436) Even though the package is named ninja-build, the ninja binary is still named ninja, so use `which ninja` to check for it * Fix #1410 woops * await on DOMContentLoaded for elements instead of setup function * avoid lowering class if no decorators Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Ashcon Partovi <ashcon@partovi.net> Co-authored-by: Carter Snook <cartersnook04@gmail.com> Co-authored-by: Colin McDonnell <colinmcd94@gmail.com> Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com> Co-authored-by: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Co-authored-by: João Paquim <jpaquim@users.noreply.github.com>
2022-11-01fix createWriteStream (#1433)Gravatar Lawrence Chen 1-0/+69
* fix createWriteStream * remove comment
2022-10-31Update React fizz server (#1432)Gravatar Colin McDonnell 1-1750/+6686
* Update fizz server * Use production build Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu>
2022-10-31fix for repeated regex match calls and fix for '^' in character classes (#1419)Gravatar Dylan Conway 1-43/+239
* tests and formatting * fix for ^ in character class * formatting * test for repeated match and exec calls * create oniguruma regex for each exec/test * check errorCode from creating oniguruma regexp and always return {} on failure * oops * call onig_initialize once * fix incorrect escaping, removed unnecessary oniguruma settings * tests for "-" and "^" in character classes * free regex object before returns * force gc for some tests
2022-10-27Implement `process.release`Gravatar Jarred Sumner 1-0/+9
2022-10-26Make these tests betterGravatar Jarred Sumner 1-2/+2
2022-10-25Fix crash in TCP serverGravatar Jarred Sumner 1-2/+2
2022-10-25TCP & TLS Socket API (#1374)Gravatar Jarred Sumner 1-0/+114
* 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-24oniguruma regex lookbehind and multibyte hex fix (#1363)Gravatar Dylan Conway 1-9/+223
* handle multibyte hex characters * non extended strings used for toString() and source * add hasIndices flags * more tests for lookbehinds, unicode, and hex characters * handled case when hex doesnt have enough digit, more tests * fix adding characters out of bounds * backslash in character class * compile() returns object * escape special characters in oniguruma character class
2022-10-24`Bun.peek`Gravatar Jarred Sumner 1-0/+40
2022-10-23Fix `ReadableStream.prototype.tee`Gravatar Jarred Sumner 1-1/+48
2022-10-23Add Web Crypto API (#1384)Gravatar Jarred Sumner 1-0/+83
* Add Web Crypto API * Duplicate symbols * Update c_cpp_properties.json Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-10-22Fix spawn exitcode (#1371)Gravatar zhiyuan 1-0/+22
2022-10-21Add test for `fs.createReadStream`Gravatar Jarred Sumner 1-0/+43
2022-10-21Add test for ResolveError.position being inspectableGravatar Jarred Sumner 2-0/+12
2022-10-21Fix `import Foo, {bar}` when from hardcoded builtin modules in runtimeGravatar Jarred Sumner 1-0/+16
2022-10-20Fix Bun.serve error handler error param (#1359)Gravatar zhiyuan 1-1/+5
2022-10-19Fix calling `ws.publish` inside `close` when other clients are connectedGravatar Jarred Sumner 1-0/+63
This fixes https://github.com/oven-sh/bun/issues/1357
2022-10-19PrettierGravatar Jarred Sumner 1-319/+346
2022-10-19Allow returning a Response object when upgradingGravatar Jarred Sumner 1-0/+116
2022-10-18Fix testGravatar Jarred Sumner 1-28/+38
2022-10-18get args fix (#1346)Gravatar Dylan Conway 2-0/+37
* fix args.len < capacity check * tests for args * file name change * switch to stdout.writer, use JSON for parsing * bun-debug or bun * missing arg
2022-10-18Implement `performance.timeOrigin`Gravatar Jarred Sumner 1-0/+6
2022-10-17add oniguruma for regex with variable length lookbehinds (#1329)Gravatar Dylan Conway 1-0/+356
* added pcre2 submodule * pcre2 regex boilerplate * tests for pcre2 regex * flag validation, getters, construct and compile mostly working * string escaping for source and toString(), exec, more tests * flag sorting, match, matchAll, search, split, replace * remove lib link * add destructor to PCRE2RegExp * header include * removed ternary * switched to oniguruma for regex library * revert sql changes * fix indices flag, add tests * revert settings * working error messages * more tests for lastIndex, fix logic for compile and lastIndex * move oniguruma lib to deps out dir
2022-10-17Fix error handlerGravatar Jarred Sumner 1-0/+40
2022-10-17Update websocket-server.test.tsGravatar Jarred Sumner 1-0/+41
2022-10-17Implement `sendText`, `sendBinary`, `publishText`, `publishBinary`Gravatar Jarred Sumner 1-4/+112
2022-10-17Fix headers + add testGravatar Jarred Sumner 1-5/+16
2022-10-17More testsGravatar Jarred Sumner 1-3/+293
2022-10-17Redo WebSocket apiGravatar Jarred Sumner 1-10/+59
2022-10-16Changed apiGravatar Jarred Sumner 1-4/+64
2022-10-15Add test for body mixin errorGravatar Jarred Sumner 1-0/+17
2022-10-15Add a simple test for websocket serverGravatar Jarred Sumner 1-0/+114
2022-10-13Fix import alias (#1313)Gravatar zhiyuan 1-0/+8
2022-10-13Add `for await`Gravatar Jarred Sumner 1-0/+27
2022-10-12Implement `ReadableStream.prototype[Symbol.asyncIterator]`Gravatar Jarred Sumner 1-0/+117
cc @fabiancook
2022-10-12Fix `require("bun")` and `import("bun")` when statically knownGravatar Jarred Sumner 1-0/+8
2022-10-12Update test_scope_debug.tsGravatar Jarred Sumner 1-2/+111
2022-10-12support array as first arg in `Bun.spawn`Gravatar Jarred Sumner 2-3/+32
2022-10-12Fix test bugGravatar Jarred Sumner 1-3/+4
2022-10-11Implement `Bun.spawnSync`Gravatar Jarred Sumner 2-16/+46
2022-10-11Make `Bun.spawn` work on LinuxGravatar Jarred Sumner 3-132/+161
2022-10-11Add test for Bun.file() for stdin and stdoutGravatar Jarred Sumner 1-1/+39
2022-10-11Add test that reads & writes stdin/stderrGravatar Jarred Sumner 3-8/+32
2022-10-11Update bun-write.test.jsGravatar Jarred Sumner 1-4/+3
2022-10-11Implement `fs.rm` cross-platformlyGravatar Jarred Sumner 1-0/+32
2022-10-10Change behavior of Bun.writeGravatar Jarred Sumner 1-3/+3
2022-10-10Fix issue with exit callback in Bun.spawn() never firingGravatar Jarred Sumner 4-13/+101
2022-10-10Add test for calling assertGravatar Jarred Sumner 1-0/+11