Files
bun.sh/docs/api
Dylan Conway 8fad98ffdb Add Bun.YAML.parse and YAML imports (#22073)
### What does this PR do?
This PR adds builtin YAML parsing with `Bun.YAML.parse`
```js
import { YAML } from "bun";
const items = YAML.parse("- item1");
console.log(items); // [ "item1" ]
```

Also YAML imports work just like JSON and TOML imports
```js
import pkg from "./package.yaml"
console.log({ pkg }); // { pkg: { name: "pkg", version: "1.1.1" } }
```
### How did you verify your code works?
Added some tests for YAML imports and parsed values.

---------

Co-authored-by: Claude Bot <claude-bot@bun.sh>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2025-08-23 06:55:30 -07:00
..
2025-07-10 00:10:43 -07:00
2025-07-10 00:10:43 -07:00
2024-09-26 13:47:09 -07:00
2025-03-26 20:51:20 -07:00
2025-07-10 00:10:43 -07:00
2025-08-11 18:42:55 -07:00
2025-02-19 20:48:12 -08:00
2025-07-10 00:10:43 -07:00
2023-02-23 17:13:30 -08:00
2025-07-10 00:10:43 -07:00
2025-06-03 03:34:35 -07:00
2025-01-13 02:15:17 -08:00
2025-04-16 23:22:41 -07:00
2025-07-10 00:10:43 -07:00
2024-09-06 13:26:20 -07:00
2025-08-19 23:15:53 -07:00
2025-08-01 16:09:44 -07:00
2025-01-17 22:08:07 -08:00
2025-08-17 17:33:51 -07:00