diff --git a/docs/api/sqlite.md b/docs/api/sqlite.md index f9a707d27c..08e3dfd512 100644 --- a/docs/api/sqlite.md +++ b/docs/api/sqlite.md @@ -663,6 +663,8 @@ class Statement { toString(): string; // serialize to SQL columnNames: string[]; // the column names of the result set + columnTypes: string[]; // types based on actual values in first row (call .get()/.all() first) + declaredTypes: (string | null)[]; // types from CREATE TABLE schema (call .get()/.all() first) paramsCount: number; // the number of parameters expected by the statement native: any; // the native object representing the statement diff --git a/docs/cli/init.md b/docs/cli/init.md index 7aad791372..a3b5919e02 100644 --- a/docs/cli/init.md +++ b/docs/cli/init.md @@ -32,7 +32,10 @@ It creates: - a `tsconfig.json` file or a `jsconfig.json` file, depending if the entry point is a TypeScript file or not - an entry point which defaults to `index.ts` unless any of `index.{tsx, jsx, js, mts, mjs}` exist or the `package.json` specifies a `module` or `main` field - a `README.md` file -- a `.cursor/rules/*.mdc` file to guide [Cursor AI](https://cursor.sh) to use Bun instead of Node.js/npm when Cursor is detected + +AI Agent rules (disable with `$BUN_AGENT_RULE_DISABLED=1`): +- a `CLAUDE.md` file when Claude CLI is detected (disable with `CLAUDE_CODE_AGENT_RULE_DISABLED` env var) +- a `.cursor/rules/*.mdc` file to guide [Cursor AI](https://cursor.sh) to use Bun instead of Node.js and npm when Cursor is detected If you pass `-y` or `--yes`, it will assume you want to continue without asking questions. diff --git a/docs/cli/run.md b/docs/cli/run.md index b060d84118..5330aba3d9 100644 --- a/docs/cli/run.md +++ b/docs/cli/run.md @@ -247,4 +247,15 @@ When there is a package.json script and a file with the same name, `bun run` pri 3. Binaries from project packages, eg `bun add eslint && bun run eslint` 4. (`bun run` only) System commands, eg `bun run ls` +### `--unhandled-rejections` + +Configure how unhandled promise rejections are handled: + +```bash +$ bun --unhandled-rejections=throw script.js # Throw exception (terminate immediately) +$ bun --unhandled-rejections=strict script.js # Throw exception (emit rejectionHandled if handled later) +$ bun --unhandled-rejections=warn script.js # Print warning to stderr (default in Node.js) +$ bun --unhandled-rejections=none script.js # Silently ignore +``` + {% bunCLIUsage command="run" /%}