From b64edcb490b486fb8af90cb2cb2dc51590453064 Mon Sep 17 00:00:00 2001 From: Dylan Conway Date: Thu, 29 Jan 2026 01:22:53 -0800 Subject: [PATCH] Update WebKit (#26549) ### What does this PR do? Includes https://github.com/oven-sh/WebKit/commit/9a2cc42ae1bf693a0fd0ceb9b1d7d965d9cfd3ea Fixes #https://github.com/oven-sh/bun/issues/26525 ### How did you verify your code works? CI --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Jarred Sumner --- cmake/tools/SetupMacSDK.cmake | 7 ------- cmake/tools/SetupWebKit.cmake | 2 +- docs/bundler/index.mdx | 12 ++++++------ docs/project/benchmarking.mdx | 22 +++++++++++----------- docs/runtime/utils.mdx | 18 +++++++++--------- 5 files changed, 27 insertions(+), 34 deletions(-) diff --git a/cmake/tools/SetupMacSDK.cmake b/cmake/tools/SetupMacSDK.cmake index 1eff438b79..9a5223a722 100644 --- a/cmake/tools/SetupMacSDK.cmake +++ b/cmake/tools/SetupMacSDK.cmake @@ -31,13 +31,6 @@ execute_process( ERROR_QUIET ) -if(MACOS_VERSION VERSION_LESS ${CMAKE_OSX_DEPLOYMENT_TARGET}) - message(FATAL_ERROR "Your computer is running macOS ${MACOS_VERSION}, which is older than the target macOS SDK ${CMAKE_OSX_DEPLOYMENT_TARGET}. To fix this, either:\n" - " - Upgrade your computer to macOS ${CMAKE_OSX_DEPLOYMENT_TARGET} or newer\n" - " - Download a newer version of the macOS SDK from Apple: https://developer.apple.com/download/all/?q=xcode\n" - " - Set -DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOS_VERSION}\n") -endif() - execute_process( COMMAND xcrun --sdk macosx --show-sdk-path OUTPUT_VARIABLE DEFAULT_CMAKE_OSX_SYSROOT diff --git a/cmake/tools/SetupWebKit.cmake b/cmake/tools/SetupWebKit.cmake index 2275644005..deb529de47 100644 --- a/cmake/tools/SetupWebKit.cmake +++ b/cmake/tools/SetupWebKit.cmake @@ -2,7 +2,7 @@ option(WEBKIT_VERSION "The version of WebKit to use") option(WEBKIT_LOCAL "If a local version of WebKit should be used instead of downloading") if(NOT WEBKIT_VERSION) - set(WEBKIT_VERSION cc5e0bddf7eae1d820cf673158845fe9bd83c094) + set(WEBKIT_VERSION 9a2cc42ae1bf693a0fd0ceb9b1d7d965d9cfd3ea) endif() # Use preview build URL for Windows ARM64 until the fix is merged to main diff --git a/docs/bundler/index.mdx b/docs/bundler/index.mdx index ae8772169f..46e4c8ce6d 100644 --- a/docs/bundler/index.mdx +++ b/docs/bundler/index.mdx @@ -1354,22 +1354,22 @@ In the JavaScript API, `metafile` accepts several forms: ```ts title="build.ts" icon="/icons/typescript.svg" // Boolean — include metafile in the result object await Bun.build({ - entrypoints: ['./src/index.ts'], - outdir: './dist', + entrypoints: ["./src/index.ts"], + outdir: "./dist", metafile: true, }); // String — write JSON metafile to a specific path await Bun.build({ - entrypoints: ['./src/index.ts'], - outdir: './dist', + entrypoints: ["./src/index.ts"], + outdir: "./dist", metafile: "./dist/meta.json", }); // Object — specify separate paths for JSON and markdown output await Bun.build({ - entrypoints: ['./src/index.ts'], - outdir: './dist', + entrypoints: ["./src/index.ts"], + outdir: "./dist", metafile: { json: "./dist/meta.json", markdown: "./dist/meta.md", diff --git a/docs/project/benchmarking.mdx b/docs/project/benchmarking.mdx index acdff3e8b5..8773470dbc 100644 --- a/docs/project/benchmarking.mdx +++ b/docs/project/benchmarking.mdx @@ -254,12 +254,12 @@ bun --cpu-prof --cpu-prof-name my-profile.cpuprofile script.js bun --cpu-prof --cpu-prof-dir ./profiles script.js ``` -| Flag | Description | -| ---------------------------- | -------------------------------------------------------- | +| Flag | Description | +| ---------------------------- | ----------------------------------------------------------- | | `--cpu-prof` | Generate a `.cpuprofile` JSON file (Chrome DevTools format) | -| `--cpu-prof-md` | Generate a markdown CPU profile (grep/LLM-friendly) | -| `--cpu-prof-name ` | Set output filename | -| `--cpu-prof-dir ` | Set output directory | +| `--cpu-prof-md` | Generate a markdown CPU profile (grep/LLM-friendly) | +| `--cpu-prof-name ` | Set output filename | +| `--cpu-prof-dir ` | Set output directory | ## Heap profiling @@ -288,9 +288,9 @@ bun --heap-prof --heap-prof-name my-snapshot.heapsnapshot script.js bun --heap-prof --heap-prof-dir ./profiles script.js ``` -| Flag | Description | -| ----------------------------- | --------------------------------------------------------- | -| `--heap-prof` | Generate a V8 `.heapsnapshot` file on exit | -| `--heap-prof-md` | Generate a markdown heap profile on exit | -| `--heap-prof-name ` | Set output filename | -| `--heap-prof-dir ` | Set output directory | +| Flag | Description | +| ----------------------------- | ------------------------------------------ | +| `--heap-prof` | Generate a V8 `.heapsnapshot` file on exit | +| `--heap-prof-md` | Generate a markdown heap profile on exit | +| `--heap-prof-name ` | Set output filename | +| `--heap-prof-dir ` | Set output directory | diff --git a/docs/runtime/utils.mdx b/docs/runtime/utils.mdx index 9f7b3c9f04..2347c2a21c 100644 --- a/docs/runtime/utils.mdx +++ b/docs/runtime/utils.mdx @@ -902,19 +902,19 @@ Bun.wrapAnsi("\u001b[31mThe quick brown fox jumps over the lazy dog\u001b[0m", 2 ```ts Bun.wrapAnsi("Hello World", 5, { - hard: true, // Break words that exceed column width (default: false) - wordWrap: true, // Wrap at word boundaries (default: true) - trim: true, // Trim leading/trailing whitespace per line (default: true) + hard: true, // Break words that exceed column width (default: false) + wordWrap: true, // Wrap at word boundaries (default: true) + trim: true, // Trim leading/trailing whitespace per line (default: true) ambiguousIsNarrow: true, // Treat ambiguous-width characters as narrow (default: true) }); ``` -| Option | Default | Description | -| --- | --- | --- | -| `hard` | `false` | If `true`, break words in the middle if they exceed the column width. | -| `wordWrap` | `true` | If `true`, wrap at word boundaries. If `false`, only break at explicit newlines. | -| `trim` | `true` | If `true`, trim leading and trailing whitespace from each line. | -| `ambiguousIsNarrow` | `true` | If `true`, treat ambiguous-width Unicode characters as 1 column wide. If `false`, treat them as 2 columns wide. | +| Option | Default | Description | +| ------------------- | ------- | --------------------------------------------------------------------------------------------------------------- | +| `hard` | `false` | If `true`, break words in the middle if they exceed the column width. | +| `wordWrap` | `true` | If `true`, wrap at word boundaries. If `false`, only break at explicit newlines. | +| `trim` | `true` | If `true`, trim leading and trailing whitespace from each line. | +| `ambiguousIsNarrow` | `true` | If `true`, treat ambiguous-width Unicode characters as 1 column wide. If `false`, treat them as 2 columns wide. | TypeScript definition: