-
Notifications
You must be signed in to change notification settings - Fork 5k
Delete the schema::api mirror types and bun_api; one loader numbering across Rust/C++/JS #37095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
9ec01a0
5f64644
3898ee6
2ca9440
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5547,9 +5547,11 @@ | |
| | "tsx" | ||
| | "json" | ||
| | "jsonc" | ||
| | "json5" | ||
| | "toml" | ||
| | "yaml" | ||
| | "xml" | ||
| | "md" | ||
|
Check warning on line 5554 in packages/bun-types/bun.d.ts
|
||
|
Comment on lines
+5550
to
+5554
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Extended reasoning...What changedBefore this PR, At the same time, the PR rewrote the comment above
And the PR did update What's stale
type ImportKind =
| "import-statement"
| "require-call"
| "require-resolve"
| "dynamic-import"
| "import-rule"
| "url-token"
| "internal"
| "entry-point-run"
| "entry-point-build";Missing Step-by-step: how the new values reach user code
The same holds for Why this is same-PR, not pre-existingBefore this PR, ids 9–11 were out of bounds on the 9-element hand-written array, so Impact & fixTypes-only; no runtime effect. A TypeScript user switching on Anchoring on the |
||
| | "file" | ||
| | "napi" | ||
| | "wasm" | ||
|
|
||
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
Repository: oven-sh/bun
Length of output: 50370
🏁 Script executed:
Repository: oven-sh/bun
Length of output: 50369
🏁 Script executed:
Repository: oven-sh/bun
Length of output: 50367
🏁 Script executed:
Repository: oven-sh/bun
Length of output: 6394
🏁 Script executed:
Repository: oven-sh/bun
Length of output: 50367
🏁 Script executed:
Repository: oven-sh/bun
Length of output: 20040
Preserve the native-plugin loader ABI.
HEAD^assignedBUN_LOADER_TOML = 7andBUN_LOADER_WASM = 8. The new enum insertsBUN_LOADER_JSONC = 7, so older native plugins select the wrong loaders when Bun consumes their rawuint8_tvalues.Keep existing numeric assignments and append new loaders, or add and enforce an ABI version before decoding loader values. Align
packages/bun-native-bundler-plugin-api/bundler_plugin.h,packages/bun-native-plugin-rs/headers/bun-native-bundler-plugin-api/bundler_plugin.h,packages/bun-native-plugin-rs/src/sys.rs, andsrc/jsc/bindings/headers-handwritten.h.📍 Affects 3 files
packages/bun-native-bundler-plugin-api/bundler_plugin.h#L15-L28(this comment)packages/bun-native-plugin-rs/headers/bun-native-bundler-plugin-api/bundler_plugin.h#L15-L32packages/bun-native-plugin-rs/src/sys.rs#L111-L125🤖 Prompt for AI Agents