aboutsummaryrefslogtreecommitdiff
path: root/docs/api (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-09-01Fix typo (#4445)Gravatar Jorge Jiménez 1-1/+1
Replace `key: [Bun.file('./key1.pem'), Bun.file('./key2.pem']` with `key: [Bun.file('./key1.pem'), Bun.file('./key2.pem')]`
2023-08-28docs: hot reloading with Bun.serveGravatar Colin McDonnell 1-6/+6
2023-08-24Update http.mdbun-v0.8.1Gravatar Jarred Sumner 1-2/+13
2023-08-21Docs and types for v0.8.0 (#4199)Gravatar Colin McDonnell 1-0/+15
* Improve test documentation * Update nodejs compat docs with tty * Add debugger guide * Document Bun.inspect.custom, improve bun test nav * Address reviews * Update Bun.file types * Add Nuxt guide * Add tty types
2023-08-14Small docs changeGravatar Colin McDonnell 1-2/+2
2023-08-12Fix worker event loop ref/unref + leak (#4114)Gravatar dave caruso 1-19/+23
* make more tests pass * worker changes * fix some bugs * remove this * progress * uh * okay * remove console log * a * comment assert for later * mergable state * remove test * remove test
2023-08-07Fix `Bun.hash` functions (#4054)Gravatar jhmaster 1-4/+5
* fix `Bun.hash` functions to behave as expected * update Bun.hash tests * properly test the returned hash * include murmur32v2 * update Bun.hash docs * run fmt
2023-08-04Update import-meta.mdGravatar Jarred Sumner 1-2/+1
2023-08-04Fix incorrect docsGravatar Jarred Sumner 1-2/+3
2023-08-03More guides and fixing links (#3960)bun-v0.7.2Gravatar Colin McDonnell 2-5/+5
* More guides * WIP * Updates * Fix
2023-08-02Update streams.md (#3926)Gravatar Vaughan Rouesnel 1-1/+1
2023-07-31Fix incorrect functionGravatar Jarred Sumner 1-1/+1
2023-07-29typo spawn.md (#3875)Gravatar Jhorman Tito 1-1/+1
2023-07-20Update sqlite.mdGravatar Jarred Sumner 1-5/+5
2023-07-19Docs & types for 0.7 (#3665)Gravatar Colin McDonnell 2-3/+3
* Docs & types for 0.7 * Tweak * Update * Tweaks * Tweak * Tweaks --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-07-19Support streams in response.formData() & request.formData, introduce ↵Gravatar Jarred Sumner 1-0/+6
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-6/+2
2023-07-18Update workers.mdGravatar Jarred Sumner 1-2/+2
2023-07-18ClarifyGravatar Jarred Sumner 1-0/+2
2023-07-17Clean up worker docsGravatar Colin McDonnell 1-65/+69
2023-07-16Document serialize/deserializeGravatar Jarred Sumner 1-0/+14
2023-07-16Update workers.mdGravatar Jarred Sumner 1-1/+1
2023-07-16renameGravatar Jarred Sumner 1-0/+0
2023-07-16Implement Workers (#3645)Gravatar Jarred Sumner 1-0/+162
* 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-14Update docsGravatar Colin McDonnell 1-6/+8
2023-07-11Add npmrc noteGravatar Colin McDonnell 1-2/+10
2023-07-06Various docs updates (#3437)Gravatar Colin McDonnell 2-41/+72
* 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-06-20Docs for DOM testing and FileSink (#3330)Gravatar Colin McDonnell 2-48/+122
* Update websocket docs & jsdoc * Add info about user-specific data in ws * Document FileSink * Docs for happydom test * Updates
2023-06-10Fix wording and code example in docs for Bun.sleepSync (#3270)Gravatar paperluigis 1-10/+0
2023-06-09docs: add missing right parenthesis in example code (#3245)Gravatar James Liu 1-2/+1
add missing right parenthesis in example code in `HTTP server` section
2023-06-06Docs for `Bun.password` and ws publish (#3227)Gravatar Colin McDonnell 2-16/+100
* Update websocket docs & jsdoc * Document Bun.password * Update hash encoding docs * Fix typos * Add info about user-specific data in ws * Update outdated websocket jsdoc * Replace usages of req.url * Remove log
2023-05-29More/better docs for JSX, utils, binary data, streams, hashing, `bun test`, ↵Gravatar Colin McDonnell 7-38/+1795
`Bun.serve` (#3005) * WIP * Updates * Document deepEquals * WIP * Update typeS * Update TLS docs for Bun.serve * Update types for tls * Draft binary data page. Add Streams page. * Update test runner docs * Add hashing, flesh out utils * Grammar * Update types * Fix * Add import.meta docs * Tee
2023-05-25Update sqlite.md (#3063)Gravatar Dialga 1-1/+1
fix serialize example
2023-05-11bundler tests and improve `Bun.build` return type (#2833)Gravatar dave caruso 1-2/+2
* importstar_ts * tests * run acorn test suite * bench tweaks * test * bun.build tests very incomplete * remove dataurl and base64 loaders from tests since they dont work yet * tests * stuff * stuff * add errors and array of blobs * work so far * docs * requested changes * fix overwrite docs * remove this file
2023-05-05Add missing JSON API to Web APIs page (#2799)Gravatar Kruithne 1-0/+6
* Add missing JSON API to Web APIs page Unless I'm missing something obvious, it appears that Bun has the JSON API (`stringify`/`parse`) but is not listed anywhere in the documentation. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON * Include JSON in global docs
2023-04-28bundler tests: rest of default.test.ts and starting jsx tests (#2765)Gravatar dave caruso 1-1/+1
2023-04-18clarify file io docs (#2689)Gravatar dave caruso 1-1/+5
2023-04-14[nit] minor typo in tcp.md (#2657)Gravatar Kruithne 1-1/+1
2023-04-13Docs restructuring (#2638)Gravatar Colin McDonnell 8-46/+32
* Restructure * Update nav * Reorg * Reshuffle ecosystem pages * Split up runtime/runtime * Back to runtime/index * Fix issue * Split up runtime/index * Add Writing Tests page * Prettier matcher table * More updates
2023-04-07`FileBlob` -> `BunFile`, add `BunFile.lastModified` (#2581)Gravatar Colin McDonnell 2-3/+3
* Improve BunPlugin types * FileBlob -> BunFile * Update Bun.env types. Fixes #2481 * Add lastModified to BunFile
2023-04-06bun-types: infer strict `Subprocess` from `Bun.spawn()` options, part 2 (#2573)Gravatar dave caruso 1-44/+61
2023-03-21Update sqlite.md (#2452)Gravatar Joker_ 1-1/+1
Fix benchmark source pointing to wrong URL.
2023-03-11Update file-system-router.md (#2365)Gravatar Haris Sulaiman 1-1/+1
2023-03-10Fix link in globals.md (#2362)Gravatar Fran Zekan 1-1/+1
2023-03-07Document openInEditorGravatar Colin McDonnell 2-1/+29
2023-03-05Update out of date docGravatar Jarred Sumner 1-1/+1
2023-03-04docs(websocket): change server port on example to default port (#2301)Gravatar aab 1-2/+2
Current example will fail without explicitly configure the server to use port 8080. Hence, replacing it with default port (3000).
2023-03-02docs: Fix variable name in transpiler API docs (#2281)Gravatar aab 1-2/+2
2023-03-01Fix async in sqliteGravatar Colin McDonnell 1-2/+2
2023-02-27Update file-io.md (#2230)Gravatar maor-benami 1-1/+1
should `notreal.type` reflect the overridden value?