mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Update WebKit (#26549)
### What does this PR do?
Includes
9a2cc42ae1
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 <jarred@jarredsumner.com>
This commit is contained in:
@@ -31,13 +31,6 @@ execute_process(
|
|||||||
ERROR_QUIET
|
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(
|
execute_process(
|
||||||
COMMAND xcrun --sdk macosx --show-sdk-path
|
COMMAND xcrun --sdk macosx --show-sdk-path
|
||||||
OUTPUT_VARIABLE DEFAULT_CMAKE_OSX_SYSROOT
|
OUTPUT_VARIABLE DEFAULT_CMAKE_OSX_SYSROOT
|
||||||
|
|||||||
@@ -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")
|
option(WEBKIT_LOCAL "If a local version of WebKit should be used instead of downloading")
|
||||||
|
|
||||||
if(NOT WEBKIT_VERSION)
|
if(NOT WEBKIT_VERSION)
|
||||||
set(WEBKIT_VERSION cc5e0bddf7eae1d820cf673158845fe9bd83c094)
|
set(WEBKIT_VERSION 9a2cc42ae1bf693a0fd0ceb9b1d7d965d9cfd3ea)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Use preview build URL for Windows ARM64 until the fix is merged to main
|
# Use preview build URL for Windows ARM64 until the fix is merged to main
|
||||||
|
|||||||
@@ -1354,22 +1354,22 @@ In the JavaScript API, `metafile` accepts several forms:
|
|||||||
```ts title="build.ts" icon="/icons/typescript.svg"
|
```ts title="build.ts" icon="/icons/typescript.svg"
|
||||||
// Boolean — include metafile in the result object
|
// Boolean — include metafile in the result object
|
||||||
await Bun.build({
|
await Bun.build({
|
||||||
entrypoints: ['./src/index.ts'],
|
entrypoints: ["./src/index.ts"],
|
||||||
outdir: './dist',
|
outdir: "./dist",
|
||||||
metafile: true,
|
metafile: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
// String — write JSON metafile to a specific path
|
// String — write JSON metafile to a specific path
|
||||||
await Bun.build({
|
await Bun.build({
|
||||||
entrypoints: ['./src/index.ts'],
|
entrypoints: ["./src/index.ts"],
|
||||||
outdir: './dist',
|
outdir: "./dist",
|
||||||
metafile: "./dist/meta.json",
|
metafile: "./dist/meta.json",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Object — specify separate paths for JSON and markdown output
|
// Object — specify separate paths for JSON and markdown output
|
||||||
await Bun.build({
|
await Bun.build({
|
||||||
entrypoints: ['./src/index.ts'],
|
entrypoints: ["./src/index.ts"],
|
||||||
outdir: './dist',
|
outdir: "./dist",
|
||||||
metafile: {
|
metafile: {
|
||||||
json: "./dist/meta.json",
|
json: "./dist/meta.json",
|
||||||
markdown: "./dist/meta.md",
|
markdown: "./dist/meta.md",
|
||||||
|
|||||||
@@ -254,12 +254,12 @@ bun --cpu-prof --cpu-prof-name my-profile.cpuprofile script.js
|
|||||||
bun --cpu-prof --cpu-prof-dir ./profiles 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` | Generate a `.cpuprofile` JSON file (Chrome DevTools format) |
|
||||||
| `--cpu-prof-md` | Generate a markdown CPU profile (grep/LLM-friendly) |
|
| `--cpu-prof-md` | Generate a markdown CPU profile (grep/LLM-friendly) |
|
||||||
| `--cpu-prof-name <filename>` | Set output filename |
|
| `--cpu-prof-name <filename>` | Set output filename |
|
||||||
| `--cpu-prof-dir <dir>` | Set output directory |
|
| `--cpu-prof-dir <dir>` | Set output directory |
|
||||||
|
|
||||||
## Heap profiling
|
## 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
|
bun --heap-prof --heap-prof-dir ./profiles script.js
|
||||||
```
|
```
|
||||||
|
|
||||||
| Flag | Description |
|
| Flag | Description |
|
||||||
| ----------------------------- | --------------------------------------------------------- |
|
| ----------------------------- | ------------------------------------------ |
|
||||||
| `--heap-prof` | Generate a V8 `.heapsnapshot` file on exit |
|
| `--heap-prof` | Generate a V8 `.heapsnapshot` file on exit |
|
||||||
| `--heap-prof-md` | Generate a markdown heap profile on exit |
|
| `--heap-prof-md` | Generate a markdown heap profile on exit |
|
||||||
| `--heap-prof-name <filename>` | Set output filename |
|
| `--heap-prof-name <filename>` | Set output filename |
|
||||||
| `--heap-prof-dir <dir>` | Set output directory |
|
| `--heap-prof-dir <dir>` | Set output directory |
|
||||||
|
|||||||
@@ -902,19 +902,19 @@ Bun.wrapAnsi("\u001b[31mThe quick brown fox jumps over the lazy dog\u001b[0m", 2
|
|||||||
|
|
||||||
```ts
|
```ts
|
||||||
Bun.wrapAnsi("Hello World", 5, {
|
Bun.wrapAnsi("Hello World", 5, {
|
||||||
hard: true, // Break words that exceed column width (default: false)
|
hard: true, // Break words that exceed column width (default: false)
|
||||||
wordWrap: true, // Wrap at word boundaries (default: true)
|
wordWrap: true, // Wrap at word boundaries (default: true)
|
||||||
trim: true, // Trim leading/trailing whitespace per line (default: true)
|
trim: true, // Trim leading/trailing whitespace per line (default: true)
|
||||||
ambiguousIsNarrow: true, // Treat ambiguous-width characters as narrow (default: true)
|
ambiguousIsNarrow: true, // Treat ambiguous-width characters as narrow (default: true)
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
| --- | --- | --- |
|
| ------------------- | ------- | --------------------------------------------------------------------------------------------------------------- |
|
||||||
| `hard` | `false` | If `true`, break words in the middle if they exceed the column width. |
|
| `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. |
|
| `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. |
|
| `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. |
|
| `ambiguousIsNarrow` | `true` | If `true`, treat ambiguous-width Unicode characters as 1 column wide. If `false`, treat them as 2 columns wide. |
|
||||||
|
|
||||||
TypeScript definition:
|
TypeScript definition:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user