id
int64
0
886
original_context
stringlengths
648
56.6k
modified_context
stringlengths
587
47.6k
omitted_context
listlengths
0
19
omitted_index
listlengths
0
19
metadata
dict
800
diff --git a/common/arg.cpp b/common/arg.cpp index 85ba411146786..9cbf985710112 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -2140,6 +2140,13 @@ common_params_context common_params_parser_init(common_params & params, llama_ex params.no_mmproj = true; } ).set_examples(mmproj_examples));...
diff --git a/common/arg.cpp b/common/arg.cpp index 85ba411146786..9cbf985710112 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -2140,6 +2140,13 @@ common_params_context common_params_parser_init(common_params & params, llama_ex params.no_mmproj = true; } ).set_examples(mmproj_examples));...
[ "- \" --image and -p are optional, if NOT provided, the CLI will run in chat mode\\n\",", "- /* use_gpu */ true," ]
[ 38, 48 ]
{ "additions": 12, "author": "ngxson", "deletions": 3, "html_url": "https://github.com/ggml-org/llama.cpp/pull/13093", "issue_id": 13093, "merged_at": "2025-04-24T12:04:14Z", "omission_probability": 0.1, "pr_number": 13093, "repo": "ggml-org/llama.cpp", "title": "arg : add --no-mmproj-offload", "t...
801
diff --git a/common/arg.cpp b/common/arg.cpp index 1cfd0168d95ae..85ba411146786 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -38,6 +38,11 @@ using json = nlohmann::ordered_json; +std::initializer_list<enum llama_example> mmproj_examples = { + LLAMA_EXAMPLE_LLAVA, + // TODO: add LLAMA_EXAMPLE_SERVER wh...
diff --git a/common/arg.cpp b/common/arg.cpp index 1cfd0168d95ae..85ba411146786 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -38,6 +38,11 @@ using json = nlohmann::ordered_json; +std::initializer_list<enum llama_example> mmproj_examples = { + // TODO: add LLAMA_EXAMPLE_SERVER when it's ready common_arg & co...
[ "+ LLAMA_EXAMPLE_LLAVA,", "+ result.found_mmproj = true;", "- common_params_handle_model(params.model, params.hf_token, DEFAULT_MODEL_PATH);", "- // allow --mmproj to be set from -hf", "- // assuming that mmproj is always in the same repo as text model", "+...
[ 9, 43, 63, 67, 68, 76 ]
{ "additions": 53, "author": "ngxson", "deletions": 17, "html_url": "https://github.com/ggml-org/llama.cpp/pull/13082", "issue_id": 13082, "merged_at": "2025-04-24T10:14:13Z", "omission_probability": 0.1, "pr_number": 13082, "repo": "ggml-org/llama.cpp", "title": "arg : clean up handling --mmproj wi...
802
diff --git a/examples/llava/mtmd-cli.cpp b/examples/llava/mtmd-cli.cpp index e80845a2c5469..89af7331a1658 100644 --- a/examples/llava/mtmd-cli.cpp +++ b/examples/llava/mtmd-cli.cpp @@ -24,7 +24,9 @@ #include <signal.h> #endif -static bool g_is_generating = false; +// volatile, because of signal being an interrupt +...
diff --git a/examples/llava/mtmd-cli.cpp b/examples/llava/mtmd-cli.cpp index e80845a2c5469..89af7331a1658 100644 --- a/examples/llava/mtmd-cli.cpp +++ b/examples/llava/mtmd-cli.cpp @@ -24,7 +24,9 @@ #include <signal.h> +// volatile, because of signal being an interrupt +static volatile bool g_is_generating = false; +s...
[ "-static bool g_is_generating = false;", "+ _exit(1);", "+ break;" ]
[ 8, 22, 43 ]
{ "additions": 24, "author": "pl752", "deletions": 7, "html_url": "https://github.com/ggml-org/llama.cpp/pull/13080", "issue_id": 13080, "merged_at": "2025-04-23T21:32:35Z", "omission_probability": 0.1, "pr_number": 13080, "repo": "ggml-org/llama.cpp", "title": "llama-mtmd-cli: Sigint rework in mtmd...
803
diff --git a/examples/rpc/rpc-server.cpp b/examples/rpc/rpc-server.cpp index 9db5542570de8..0277e25cb5ec2 100644 --- a/examples/rpc/rpc-server.cpp +++ b/examples/rpc/rpc-server.cpp @@ -22,6 +22,7 @@ #include "ggml-rpc.h" #ifdef _WIN32 +# define NOMINMAX # define DIRECTORY_SEPARATOR '\\' # include <locale> # ...
diff --git a/examples/rpc/rpc-server.cpp b/examples/rpc/rpc-server.cpp index 9db5542570de8..0277e25cb5ec2 100644 --- a/examples/rpc/rpc-server.cpp +++ b/examples/rpc/rpc-server.cpp @@ -22,6 +22,7 @@ #include "ggml-rpc.h" #ifdef _WIN32 +# define NOMINMAX # define DIRECTORY_SEPARATOR '\\' # include <locale> # in...
[ "+ ggml_backend_cpu_set_n_threads(backend, params.n_threads);" ]
[ 65 ]
{ "additions": 17, "author": "rgerganov", "deletions": 2, "html_url": "https://github.com/ggml-org/llama.cpp/pull/13060", "issue_id": 13060, "merged_at": "2025-04-23T07:32:49Z", "omission_probability": 0.1, "pr_number": 13060, "repo": "ggml-org/llama.cpp", "title": "rpc : add command line option for...
804
diff --git a/ggml/CMakeLists.txt b/ggml/CMakeLists.txt index d33f843b417cf..1360a0df594f3 100644 --- a/ggml/CMakeLists.txt +++ b/ggml/CMakeLists.txt @@ -107,6 +107,7 @@ message(DEBUG "INS_ENB : ${INS_ENB}") option(GGML_CPU_HBM "ggml: use memkind for CPU HBM" OFF) option(GGML_CPU_AARCH64 "ggm...
diff --git a/ggml/CMakeLists.txt b/ggml/CMakeLists.txt index d33f843b417cf..1360a0df594f3 100644 --- a/ggml/CMakeLists.txt +++ b/ggml/CMakeLists.txt @@ -107,6 +107,7 @@ message(DEBUG "INS_ENB : ${INS_ENB}") option(GGML_CPU_HBM "ggml: use memkind for CPU HBM" OFF) option(GGML_CPU_AARCH64 "ggm...
[ "- ggml_add_cpu_backend_variant(sandybridge AVX)", "+ ggml_add_cpu_backend_variant(icelake SSE42 AVX F16C AVX2 BMI2 FMA AVX512 AVX512_VBMI AVX512_VNNI)", "+ ggml_add_cpu_backend_variant(alderlake SSE42 AVX F16C AVX2 BMI2 FMA AVX_VNNI)", "+ list(APPEND ARCH_DEFINITIONS GG...
[ 28, 38, 39, 68, 69 ]
{ "additions": 16, "author": "slaren", "deletions": 10, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12871", "issue_id": 12871, "merged_at": "2025-04-21T16:13:52Z", "omission_probability": 0.1, "pr_number": 12871, "repo": "ggml-org/llama.cpp", "title": "ggml : add SSE 4.2 and x64 base var...
805
diff --git a/examples/quantize/quantize.cpp b/examples/quantize/quantize.cpp index a4468b1698722..0355311dc5c06 100644 --- a/examples/quantize/quantize.cpp +++ b/examples/quantize/quantize.cpp @@ -9,6 +9,7 @@ #include <fstream> #include <cmath> #include <cctype> +#include <algorithm> struct quant_option { st...
diff --git a/examples/quantize/quantize.cpp b/examples/quantize/quantize.cpp index a4468b1698722..0355311dc5c06 100644 --- a/examples/quantize/quantize.cpp +++ b/examples/quantize/quantize.cpp @@ -9,6 +9,7 @@ #include <cmath> #include <cctype> +#include <algorithm> struct quant_option { std::string name; @@ -16...
[ "+ printf(\" Advanced option to selectively quantize tensors. May be specified multiple times.\\n\");", "+ \"attn_kv_a_mqa\",", "+ \"attn_q_b\",", "+ \"cross_attn_k\",", "+ \"ffn_down\",", "+ \"ffn_gate\",", "+ \"ffn_up_shexp\",", "+ \"time_mix_value\",", "+// changes to...
[ 36, 47, 53, 61, 66, 69, 74, 81, 84, 98, 113, 122, 125, 235, 270 ]
{ "additions": 155, "author": "EAddario", "deletions": 20, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12511", "issue_id": 12511, "merged_at": "2025-04-13T18:29:28Z", "omission_probability": 0.1, "pr_number": 12511, "repo": "ggml-org/llama.cpp", "title": "quantize: Handle user-defined qu...
806
diff --git a/ggml/src/ggml-metal/ggml-metal.m b/ggml/src/ggml-metal/ggml-metal.m index 85f3ae7bfdc31..266d8af4693c2 100644 --- a/ggml/src/ggml-metal/ggml-metal.m +++ b/ggml/src/ggml-metal/ggml-metal.m @@ -481,6 +481,7 @@ static void ggml_backend_metal_device_rel(struct ggml_backend_metal_device_conte GGML_METAL_KE...
diff --git a/ggml/src/ggml-metal/ggml-metal.m b/ggml/src/ggml-metal/ggml-metal.m index 85f3ae7bfdc31..266d8af4693c2 100644 --- a/ggml/src/ggml-metal/ggml-metal.m +++ b/ggml/src/ggml-metal/ggml-metal.m @@ -481,6 +481,7 @@ static void ggml_backend_metal_device_rel(struct ggml_backend_metal_device_conte GGML_METAL_KE...
[ "+ } break;" ]
[ 43 ]
{ "additions": 22, "author": "jmorganca", "deletions": 0, "html_url": "https://github.com/ggml-org/llama.cpp/pull/13029", "issue_id": 13029, "merged_at": "2025-04-20T05:28:40Z", "omission_probability": 0.1, "pr_number": 13029, "repo": "ggml-org/llama.cpp", "title": "metal: add neg operator", "tota...
807
diff --git a/ggml/src/ggml-vulkan/ggml-vulkan.cpp b/ggml/src/ggml-vulkan/ggml-vulkan.cpp index 2f6d03c939eb5..39f3cd343ac45 100644 --- a/ggml/src/ggml-vulkan/ggml-vulkan.cpp +++ b/ggml/src/ggml-vulkan/ggml-vulkan.cpp @@ -2397,7 +2397,7 @@ static void ggml_vk_load_shaders(vk_device& device) { ggml_vk_create_pipel...
diff --git a/ggml/src/ggml-vulkan/ggml-vulkan.cpp b/ggml/src/ggml-vulkan/ggml-vulkan.cpp index 2f6d03c939eb5..39f3cd343ac45 100644 --- a/ggml/src/ggml-vulkan/ggml-vulkan.cpp +++ b/ggml/src/ggml-vulkan/ggml-vulkan.cpp @@ -2397,7 +2397,7 @@ static void ggml_vk_load_shaders(vk_device& device) { ggml_vk_create_pipelin...
[ "+ ggml_vk_create_pipeline(device, device->pipeline_rms_norm_f32, \"rms_norm_f32\", rms_norm_f32_len, rms_norm_f32_data, \"main\", 2, sizeof(vk_op_unary_push_constants), {1, 1, 1}, {}, 1);", "+ break;", "+ op_params[0], 0.0f,", "+ const uint row = gl_WorkGroupID.x;", "+ uint32_t...
[ 9, 35, 53, 99, 108 ]
{ "additions": 39, "author": "jeffbolznv", "deletions": 15, "html_url": "https://github.com/ggml-org/llama.cpp/pull/13031", "issue_id": 13031, "merged_at": "2025-04-20T08:50:02Z", "omission_probability": 0.1, "pr_number": 13031, "repo": "ggml-org/llama.cpp", "title": "vulkan: support noncontiguous r...
808
diff --git a/examples/main/main.cpp b/examples/main/main.cpp index fd7410a646c69..c59b941bf5e47 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -865,9 +865,22 @@ int main(int argc, char ** argv) { console::set_display(console::reset); display = true; - ...
diff --git a/examples/main/main.cpp b/examples/main/main.cpp index fd7410a646c69..c59b941bf5e47 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -865,9 +865,22 @@ int main(int argc, char ** argv) { console::set_display(console::reset); display = true; - ...
[ "+ if (buffer.empty()) { // Ctrl+D on empty line exits", "+ LOG_DBG(\"empty line, passing control back\\n\");" ]
[ 11, 25 ]
{ "additions": 16, "author": "danielzgtg", "deletions": 5, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12951", "issue_id": 12951, "merged_at": "2025-04-18T20:02:55Z", "omission_probability": 0.1, "pr_number": 12951, "repo": "ggml-org/llama.cpp", "title": "main : Fix Ctrl+D/newline handli...
809
diff --git a/examples/llava/gemma3-cli.cpp b/examples/llava/gemma3-cli.cpp index 91a07e2a8f40d..de206c85ae80c 100644 --- a/examples/llava/gemma3-cli.cpp +++ b/examples/llava/gemma3-cli.cpp @@ -184,18 +184,19 @@ static int eval_message(gemma3_context & ctx, common_chat_msg & msg, std::vector text.text = fo...
diff --git a/examples/llava/gemma3-cli.cpp b/examples/llava/gemma3-cli.cpp index 91a07e2a8f40d..de206c85ae80c 100644 --- a/examples/llava/gemma3-cli.cpp +++ b/examples/llava/gemma3-cli.cpp @@ -184,18 +184,19 @@ static int eval_message(gemma3_context & ctx, common_chat_msg & msg, std::vector text.text = fo...
[ "+ int32_t res = mtmd_tokenize(ctx.ctx_vision.get(), chunks, text, bitmaps);", "+ std::vector<std::string> parts = string_split_str(prompt_modified, ctx->image_marker);", "+ output.clear();", "- output->emplace_back(std::move(chunk));", "- mtmd_image_tokens * image_tokens = new mt...
[ 12, 84, 85, 94, 115, 140, 163, 252, 267, 278, 287, 318 ]
{ "additions": 92, "author": "ngxson", "deletions": 44, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12906", "issue_id": 12906, "merged_at": "2025-04-18T08:04:51Z", "omission_probability": 0.1, "pr_number": 12906, "repo": "ggml-org/llama.cpp", "title": "mtmd : add methods to access `mtmd_...
810
diff --git a/examples/rpc/rpc-server.cpp b/examples/rpc/rpc-server.cpp index f8f2cb90ea10d..9db5542570de8 100644 --- a/examples/rpc/rpc-server.cpp +++ b/examples/rpc/rpc-server.cpp @@ -297,7 +297,10 @@ int main(int argc, char * argv[]) { } cache_dir = cache_dir_str.c_str(); } - printf("Startin...
diff --git a/examples/rpc/rpc-server.cpp b/examples/rpc/rpc-server.cpp index f8f2cb90ea10d..9db5542570de8 100644 --- a/examples/rpc/rpc-server.cpp +++ b/examples/rpc/rpc-server.cpp @@ -297,7 +297,10 @@ int main(int argc, char * argv[]) { cache_dir = cache_dir_str.c_str(); - printf("Starting RPC server\n"); ...
[ "+ RPC_PROTO_PATCH_VERSION);", "+#define RPC_PROTO_MINOR_VERSION 0", "+};", "+ fprintf(stderr, \"RPC server version mismatch: %d.%d.%d\\n\", response.major, response.minor, response.patch);", "+ void hello(rpc_msg_hello_rsp & response);", "+ server.hello(response);", "+ ...
[ 12, 25, 49, 63, 89, 124, 139 ]
{ "additions": 60, "author": "rgerganov", "deletions": 2, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12955", "issue_id": 12955, "merged_at": "2025-04-18T07:13:43Z", "omission_probability": 0.1, "pr_number": 12955, "repo": "ggml-org/llama.cpp", "title": "rpc : add RPC_CMD_HELLO", "tota...
811
diff --git a/ggml/src/ggml-cuda/ggml-cuda.cu b/ggml/src/ggml-cuda/ggml-cuda.cu index bab85809ac068..a7febef723c2e 100644 --- a/ggml/src/ggml-cuda/ggml-cuda.cu +++ b/ggml/src/ggml-cuda/ggml-cuda.cu @@ -3237,6 +3237,10 @@ static bool ggml_backend_cuda_device_supports_op(ggml_backend_dev_t dev, const g if (op...
diff --git a/ggml/src/ggml-cuda/ggml-cuda.cu b/ggml/src/ggml-cuda/ggml-cuda.cu index bab85809ac068..a7febef723c2e 100644 --- a/ggml/src/ggml-cuda/ggml-cuda.cu +++ b/ggml/src/ggml-cuda/ggml-cuda.cu @@ -3237,6 +3237,10 @@ static bool ggml_backend_cuda_device_supports_op(ggml_backend_dev_t dev, const g if (op...
[ "+ GGML_METAL_ADD_KERNEL(GGML_METAL_KERNEL_TYPE_FLASH_ATTN_EXT_VEC_Q5_0_HK576_HV512, flash_attn_ext_vec_q5_0_hk576_hv512, has_simdgroup_reduction);", "+ case GGML_TYPE_Q4_1: pipeline = ctx->kernels[GGML_METAL_KERNEL_TYPE_FLASH_ATTN_EXT_VEC_Q4_1_HK576_HV512].pipe...
[ 153, 252, 272, 279, 315, 323, 351, 368, 432, 449, 462, 493, 495 ]
{ "additions": 117, "author": "ggerganov", "deletions": 26, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12953", "issue_id": 12953, "merged_at": "2025-04-17T15:16:36Z", "omission_probability": 0.1, "pr_number": 12953, "repo": "ggml-org/llama.cpp", "title": "graph : make FA compatible with...
812
diff --git a/examples/rpc/README.md b/examples/rpc/README.md index 312bb634dc920..561f19fda6b06 100644 --- a/examples/rpc/README.md +++ b/examples/rpc/README.md @@ -72,3 +72,14 @@ $ bin/llama-cli -m ../models/tinyllama-1b/ggml-model-f16.gguf -p "Hello, my name This way you can offload model layers to both local and ...
diff --git a/examples/rpc/README.md b/examples/rpc/README.md index 312bb634dc920..561f19fda6b06 100644 --- a/examples/rpc/README.md +++ b/examples/rpc/README.md @@ -72,3 +72,14 @@ $ bin/llama-cli -m ../models/tinyllama-1b/ggml-model-f16.gguf -p "Hello, my name This way you can offload model layers to both local and re...
[]
[]
{ "additions": 11, "author": "rgerganov", "deletions": 0, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12620", "issue_id": 12620, "merged_at": "2025-03-28T07:44:13Z", "omission_probability": 0.1, "pr_number": 12620, "repo": "ggml-org/llama.cpp", "title": "rpc : update README for cache usa...
813
diff --git a/ggml/src/ggml-cuda/cpy.cu b/ggml/src/ggml-cuda/cpy.cu index 4f4faa3e63ae7..ed25646e8e261 100644 --- a/ggml/src/ggml-cuda/cpy.cu +++ b/ggml/src/ggml-cuda/cpy.cu @@ -551,7 +551,7 @@ static void ggml_cpy_f16_f16_cuda( (cx, cdst, ne, ne00, ne01, ne02, nb00, nb01, nb02, nb03, ne10, ne11, ne12, nb10, nb...
diff --git a/ggml/src/ggml-cuda/cpy.cu b/ggml/src/ggml-cuda/cpy.cu index 4f4faa3e63ae7..ed25646e8e261 100644 --- a/ggml/src/ggml-cuda/cpy.cu +++ b/ggml/src/ggml-cuda/cpy.cu @@ -551,7 +551,7 @@ static void ggml_cpy_f16_f16_cuda( (cx, cdst, ne, ne00, ne01, ne02, nb00, nb01, nb02, nb03, ne10, ne11, ne12, nb10, nb...
[ "-void ggml_cuda_cpy(ggml_backend_cuda_context & ctx, const ggml_tensor * src0, ggml_tensor * src1);" ]
[ 49 ]
{ "additions": 7, "author": "agray3", "deletions": 6, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12970", "issue_id": 12970, "merged_at": "2025-04-17T13:19:42Z", "omission_probability": 0.1, "pr_number": 12970, "repo": "ggml-org/llama.cpp", "title": "ggml: Re-enable CUDA graphs in presen...
814
diff --git a/ggml/src/ggml-vulkan/ggml-vulkan.cpp b/ggml/src/ggml-vulkan/ggml-vulkan.cpp index 783a0ff86c1c1..0e9b2e8135a7a 100644 --- a/ggml/src/ggml-vulkan/ggml-vulkan.cpp +++ b/ggml/src/ggml-vulkan/ggml-vulkan.cpp @@ -5531,7 +5531,7 @@ static void ggml_vk_flash_attn(ggml_backend_vk_context * ctx, vk_context& subctx ...
diff --git a/ggml/src/ggml-vulkan/ggml-vulkan.cpp b/ggml/src/ggml-vulkan/ggml-vulkan.cpp index 783a0ff86c1c1..0e9b2e8135a7a 100644 --- a/ggml/src/ggml-vulkan/ggml-vulkan.cpp +++ b/ggml/src/ggml-vulkan/ggml-vulkan.cpp @@ -5531,7 +5531,7 @@ static void ggml_vk_flash_attn(ggml_backend_vk_context * ctx, vk_context& subctx ...
[ "+ }" ]
[ 48 ]
{ "additions": 7, "author": "jeffbolznv", "deletions": 5, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12931", "issue_id": 12931, "merged_at": "2025-04-16T18:37:25Z", "omission_probability": 0.1, "pr_number": 12931, "repo": "ggml-org/llama.cpp", "title": "vulkan: enable coopmat2 FA gqa an...
815
diff --git a/ggml/src/ggml-cann/aclnn_ops.cpp b/ggml/src/ggml-cann/aclnn_ops.cpp index 2c5cdcae32cc8..2c6737ea8cf3f 100644 --- a/ggml/src/ggml-cann/aclnn_ops.cpp +++ b/ggml/src/ggml-cann/aclnn_ops.cpp @@ -625,6 +625,10 @@ static void ggml_cann_avg_pool2d(ggml_backend_cann_context& ctx, bool count_include_pad = tru...
diff --git a/ggml/src/ggml-cann/aclnn_ops.cpp b/ggml/src/ggml-cann/aclnn_ops.cpp index 2c5cdcae32cc8..2c6737ea8cf3f 100644 --- a/ggml/src/ggml-cann/aclnn_ops.cpp +++ b/ggml/src/ggml-cann/aclnn_ops.cpp @@ -625,6 +625,10 @@ static void ggml_cann_avg_pool2d(ggml_backend_cann_context& ctx, bool count_include_pad = tru...
[]
[]
{ "additions": 18, "author": "noemotiovon", "deletions": 0, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12962", "issue_id": 12962, "merged_at": "2025-04-16T08:21:05Z", "omission_probability": 0.1, "pr_number": 12962, "repo": "ggml-org/llama.cpp", "title": "[CANN]310P OPT Support", "tot...
816
diff --git a/ggml/src/ggml-sycl/ggml-sycl.cpp b/ggml/src/ggml-sycl/ggml-sycl.cpp index 09800d3403fe1..4d2fda0bfa6ae 100644 --- a/ggml/src/ggml-sycl/ggml-sycl.cpp +++ b/ggml/src/ggml-sycl/ggml-sycl.cpp @@ -4009,10 +4009,8 @@ static bool ggml_backend_sycl_device_supports_op(ggml_backend_dev_t dev, const g case G...
diff --git a/ggml/src/ggml-sycl/ggml-sycl.cpp b/ggml/src/ggml-sycl/ggml-sycl.cpp index 09800d3403fe1..4d2fda0bfa6ae 100644 --- a/ggml/src/ggml-sycl/ggml-sycl.cpp +++ b/ggml/src/ggml-sycl/ggml-sycl.cpp @@ -4009,10 +4009,8 @@ static bool ggml_backend_sycl_device_supports_op(ggml_backend_dev_t dev, const g case G...
[ "- }", "+ const int row_dst = (item_ct1.get_group(2) * item_ct1.get_local_range(2)) + item_ct1.get_local_id(2);", "+ float theta_base = 0.0f;", "+ rope_yarn(theta_base / freq_factor, freq_scale, corr_dims, i0, ext_factor, attn_factor, &cos_theta, &sin_theta);", "+ const float...
[ 10, 52, 61, 74, 76, 171 ]
{ "additions": 105, "author": "qnixsynapse", "deletions": 7, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12887", "issue_id": 12887, "merged_at": "2025-04-15T08:37:43Z", "omission_probability": 0.1, "pr_number": 12887, "repo": "ggml-org/llama.cpp", "title": "SYCL: Add ROPE vision kernel",...
817
diff --git a/ggml/src/ggml-metal/ggml-metal.m b/ggml/src/ggml-metal/ggml-metal.m index 9f1c6c6ccc09f..16ca08383c7ed 100644 --- a/ggml/src/ggml-metal/ggml-metal.m +++ b/ggml/src/ggml-metal/ggml-metal.m @@ -402,6 +402,13 @@ static void ggml_backend_metal_device_rel(struct ggml_backend_metal_device_conte GGML_METAL_K...
diff --git a/ggml/src/ggml-metal/ggml-metal.m b/ggml/src/ggml-metal/ggml-metal.m index 9f1c6c6ccc09f..16ca08383c7ed 100644 --- a/ggml/src/ggml-metal/ggml-metal.m +++ b/ggml/src/ggml-metal/ggml-metal.m @@ -402,6 +402,13 @@ static void ggml_backend_metal_device_rel(struct ggml_backend_metal_device_conte GGML_METAL_K...
[ "+ GGML_METAL_ADD_KERNEL(GGML_METAL_KERNEL_TYPE_FLASH_ATTN_EXT_VEC_Q4_1_H96, flash_attn_ext_vec_q4_1_h96, has_simdgroup_reduction);", "+ case GGML_TYPE_BF16: pipeline = ctx->kernels[GGML_METAL_KERNEL_TYPE_FLASH_ATTN_EXT_VEC_BF16_H96].pipeline; break;", "+ ...
[ 25, 49, 52, 57, 79, 81 ]
{ "additions": 43, "author": "ggerganov", "deletions": 1, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12952", "issue_id": 12952, "merged_at": "2025-04-15T11:45:06Z", "omission_probability": 0.1, "pr_number": 12952, "repo": "ggml-org/llama.cpp", "title": "metal : add FA-vec kernels for he...
818
diff --git a/Makefile b/Makefile index 1f9455eff0aec..772993ada2707 100644 --- a/Makefile +++ b/Makefile @@ -780,10 +780,6 @@ ifdef GGML_HIP MK_CPPFLAGS += -DGGML_USE_HIP -DGGML_USE_CUDA -ifdef GGML_HIP_UMA - MK_CPPFLAGS += -DGGML_HIP_UMA -endif # GGML_HIP_UMA - MK_LDFLAGS += -L$(ROCM_PATH)/lib -Wl,-rpath=$(ROC...
diff --git a/Makefile b/Makefile index 1f9455eff0aec..772993ada2707 100644 --- a/Makefile +++ b/Makefile @@ -780,10 +780,6 @@ ifdef GGML_HIP MK_CPPFLAGS += -DGGML_USE_HIP -DGGML_USE_CUDA -ifdef GGML_HIP_UMA - MK_CPPFLAGS += -DGGML_HIP_UMA -endif # GGML_HIP_UMA MK_LDFLAGS += -L$(ROCM_PATH)/lib -Wl,-rpath=$(ROCM_PATH...
[ "+ // fall back to cudaMalloc if not supported (e.g. on Windows)", "+#define cudaMallocManaged hipMallocManaged" ]
[ 78, 111 ]
{ "additions": 22, "author": "hjc4869", "deletions": 26, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12934", "issue_id": 12934, "merged_at": "2025-04-15T09:20:38Z", "omission_probability": 0.1, "pr_number": 12934, "repo": "ggml-org/llama.cpp", "title": "CUDA/HIP: Share the same unified m...
819
diff --git a/ggml/CMakeLists.txt b/ggml/CMakeLists.txt index fc5eac151b90c..91fd8988dfd3a 100644 --- a/ggml/CMakeLists.txt +++ b/ggml/CMakeLists.txt @@ -153,6 +153,9 @@ option(GGML_CUDA_NO_PEER_COPY "ggml: do not use peer to peer copie option(GGML_CUDA_NO_VMM "ggml: do not try to use ...
diff --git a/ggml/CMakeLists.txt b/ggml/CMakeLists.txt index fc5eac151b90c..91fd8988dfd3a 100644 --- a/ggml/CMakeLists.txt +++ b/ggml/CMakeLists.txt @@ -153,6 +153,9 @@ option(GGML_CUDA_NO_PEER_COPY "ggml: do not use peer to peer copie option(GGML_CUDA_NO_VMM "ggml: do not try to use ...
[]
[]
{ "additions": 12, "author": "Green-Sky", "deletions": 0, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12029", "issue_id": 12029, "merged_at": "2025-03-01T11:57:22Z", "omission_probability": 0.1, "pr_number": 12029, "repo": "ggml-org/llama.cpp", "title": "CUDA: compress-mode size", "tot...
820
diff --git a/ggml/src/ggml-sycl/ggml-sycl.cpp b/ggml/src/ggml-sycl/ggml-sycl.cpp index 3e48a9244d339..09800d3403fe1 100644 --- a/ggml/src/ggml-sycl/ggml-sycl.cpp +++ b/ggml/src/ggml-sycl/ggml-sycl.cpp @@ -4018,8 +4018,7 @@ static bool ggml_backend_sycl_device_supports_op(ggml_backend_dev_t dev, const g ...
diff --git a/ggml/src/ggml-sycl/ggml-sycl.cpp b/ggml/src/ggml-sycl/ggml-sycl.cpp index 3e48a9244d339..09800d3403fe1 100644 --- a/ggml/src/ggml-sycl/ggml-sycl.cpp +++ b/ggml/src/ggml-sycl/ggml-sycl.cpp @@ -4018,8 +4018,7 @@ static bool ggml_backend_sycl_device_supports_op(ggml_backend_dev_t dev, const g ...
[ "+ return true;", "+static void im2col_kernel(const float * x, T * dst, int64_t batch_offset, int64_t offset_delta, int64_t IC, int64_t IW,", "+ int s0, int s1, int p0, int p1, int d0, int d1, const sycl::nd_item<3> & item_ct1) {", "- const int64_t kd = kx * ksize;",...
[ 10, 33, 35, 46, 52, 82, 100, 101, 102, 131, 132, 141, 165, 176, 177, 197, 203 ]
{ "additions": 83, "author": "qnixsynapse", "deletions": 69, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12910", "issue_id": 12910, "merged_at": "2025-04-14T12:23:53Z", "omission_probability": 0.1, "pr_number": 12910, "repo": "ggml-org/llama.cpp", "title": "SYCL: Fix im2col", "total_ch...
821
diff --git a/ggml/src/ggml-rpc/ggml-rpc.cpp b/ggml/src/ggml-rpc/ggml-rpc.cpp index 862b9b666175d..3189ae85d55f9 100644 --- a/ggml/src/ggml-rpc/ggml-rpc.cpp +++ b/ggml/src/ggml-rpc/ggml-rpc.cpp @@ -1,6 +1,7 @@ #include "ggml-rpc.h" #include "ggml-impl.h" #include "ggml-backend-impl.h" +#include "ggml-cpp.h" #inclu...
diff --git a/ggml/src/ggml-rpc/ggml-rpc.cpp b/ggml/src/ggml-rpc/ggml-rpc.cpp index 862b9b666175d..3189ae85d55f9 100644 --- a/ggml/src/ggml-rpc/ggml-rpc.cpp +++ b/ggml/src/ggml-rpc/ggml-rpc.cpp @@ -1,6 +1,7 @@ #include "ggml-rpc.h" #include "ggml-impl.h" #include "ggml-backend-impl.h" +#include "ggml-cpp.h" #include...
[]
[]
{ "additions": 23, "author": "rgerganov", "deletions": 22, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12938", "issue_id": 12938, "merged_at": "2025-04-14T10:59:34Z", "omission_probability": 0.1, "pr_number": 12938, "repo": "ggml-org/llama.cpp", "title": "rpc : use ggml_context_ptr", "...
822
diff --git a/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp b/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp index 74a31abb2d6fc..ced09c05c2ccb 100644 --- a/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp +++ b/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp @@ -183,67 +183,63 @@ static inline __m256 __avx_rearranged_f32cx8_load(ggml_fp16_t *x, __m128i...
diff --git a/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp b/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp index 74a31abb2d6fc..ced09c05c2ccb 100644 --- a/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp +++ b/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp @@ -183,67 +183,63 @@ static inline __m256 __avx_rearranged_f32cx8_load(ggml_fp16_t *x, __m128i...
[ "-static inline __m512i sum_i16_pairs_int_32x16(const __m512i x) {", "+// add int16_t pairwise and return as 512 bit int vector, then add the accumulator", "+ return _mm512_add_epi32(acc, _mm512_madd_epi16(ones, x));", "-// multiply int8_t, add results pairwise twice and return as 512 bit int vector", "-...
[ 9, 10, 14, 31, 32, 33, 49, 51, 60, 79, 98, 99, 102, 104, 165, 234 ]
{ "additions": 65, "author": "SongXiaoXi", "deletions": 97, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12773", "issue_id": 12773, "merged_at": "2025-04-14T05:47:55Z", "omission_probability": 0.1, "pr_number": 12773, "repo": "ggml-org/llama.cpp", "title": "ggml: use _mm[512/256]_dpbusd[_...
823
diff --git a/common/chat.cpp b/common/chat.cpp index 62ca26ad7609c..bbc5f087cdcc0 100644 --- a/common/chat.cpp +++ b/common/chat.cpp @@ -1622,7 +1622,7 @@ static common_chat_params common_chat_templates_apply_jinja( } // Hermes 2/3 Pro, Qwen 2.5 Instruct (w/ tools) - if (src.find("<tool_call>") != std::s...
diff --git a/common/chat.cpp b/common/chat.cpp index 62ca26ad7609c..bbc5f087cdcc0 100644 --- a/common/chat.cpp +++ b/common/chat.cpp @@ -1622,7 +1622,7 @@ static common_chat_params common_chat_templates_apply_jinja( // Hermes 2/3 Pro, Qwen 2.5 Instruct (w/ tools) - if (src.find("<tool_call>") != std::string::np...
[ "+ assert_equals(COMMON_CHAT_FORMAT_CONTENT_ONLY,", "+ common_chat_templates_apply(tmpls.get(), inputs_no_tools).format);" ]
[ 53, 54 ]
{ "additions": 10, "author": "ochafik", "deletions": 1, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12900", "issue_id": 12900, "merged_at": "2025-04-11T19:47:52Z", "omission_probability": 0.1, "pr_number": 12900, "repo": "ggml-org/llama.cpp", "title": "`tool-call`: fix non-tool-calling g...
824
diff --git a/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm2.comp b/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm2.comp index a8f4bc41726c2..e1baa85f9e330 100644 --- a/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm2.comp +++ b/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm2.comp @@ -201,6 +201,11 @@ void m...
diff --git a/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm2.comp b/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm2.comp index a8f4bc41726c2..e1baa85f9e330 100644 --- a/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm2.comp +++ b/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm2.comp @@ -201,6 +201,11 @@ void m...
[ "- tensorLayoutM = setTensorLayoutStrideNV(tensorLayoutM, 0, 1);" ]
[ 30 ]
{ "additions": 7, "author": "jeffbolznv", "deletions": 4, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12853", "issue_id": 12853, "merged_at": "2025-04-12T08:44:48Z", "omission_probability": 0.1, "pr_number": 12853, "repo": "ggml-org/llama.cpp", "title": "vulkan: use aligned loads for fla...
825
diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index a55b3f3835184..49c90b7506e73 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -323,8 +323,8 @@ struct clip_ctx { std::vector<ggml_backend_t> backend_ptrs; std::vector<ggml_backend_buffer_type_t> backend_buft; - ggml...
diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index a55b3f3835184..49c90b7506e73 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -323,8 +323,8 @@ struct clip_ctx { std::vector<ggml_backend_t> backend_ptrs; std::vector<ggml_backend_buffer_type_t> backend_buft; - ggml_b...
[ "+ backend = backend_cpu;", "+ ggml_backend_free(backend);", "+ }" ]
[ 36, 51, 54 ]
{ "additions": 20, "author": "mattjcly", "deletions": 13, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12907", "issue_id": 12907, "merged_at": "2025-04-12T05:29:03Z", "omission_probability": 0.1, "pr_number": 12907, "repo": "ggml-org/llama.cpp", "title": "llava: Fix cpu-only clip image en...
826
diff --git a/docs/build.md b/docs/build.md index aa1db9a047130..9c1314a29431b 100644 --- a/docs/build.md +++ b/docs/build.md @@ -191,7 +191,7 @@ The following compilation options are also available to tweak performance: | Option | Legal values | Default | Description ...
diff --git a/docs/build.md b/docs/build.md index aa1db9a047130..9c1314a29431b 100644 --- a/docs/build.md +++ b/docs/build.md @@ -191,7 +191,7 @@ The following compilation options are also available to tweak performance: | Option | Legal values | Default | Description ...
[ "-#if defined(GGML_HIP_ROCWMMA_FATTN) && (defined(CDNA) || defined(RDNA3))", "+#endif // defined(GGML_HIP_ROCWMMA_FATTN) && (defined(CDNA) || defined(RDNA3) || defined(RDNA4))", "+ if (GGML_CUDA_CC_IS_RDNA2(cc) || GGML_CUDA_CC_IS_RDNA3(cc) || GGML_CUDA_CC_IS_RDNA4(cc)) {", "+#define RDNA4" ]
[ 51, 55, 163, 176 ]
{ "additions": 25, "author": "slojosic-amd", "deletions": 17, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12372", "issue_id": 12372, "merged_at": "2025-03-26T22:46:30Z", "omission_probability": 0.1, "pr_number": 12372, "repo": "ggml-org/llama.cpp", "title": "Add support for new gfx1200 a...
827
diff --git a/README.md b/README.md index 95a05e6ed75c1..9211ebfa1627a 100644 --- a/README.md +++ b/README.md @@ -265,7 +265,9 @@ The [Hugging Face](https://huggingface.co) platform hosts a [number of LLMs](htt - [Trending](https://huggingface.co/models?library=gguf&sort=trending) - [LLaMA](https://huggingface.co/mode...
diff --git a/README.md b/README.md index 95a05e6ed75c1..9211ebfa1627a 100644 --- a/README.md +++ b/README.md @@ -265,7 +265,9 @@ The [Hugging Face](https://huggingface.co) platform hosts a [number of LLMs](htt - [Trending](https://huggingface.co/models?library=gguf&sort=trending) - [LLaMA](https://huggingface.co/mode...
[ "- }", "+ auto [model_name, manifest_url] = extract_model_and_tag(model, model_endpoint + \"v2/\");" ]
[ 55, 111 ]
{ "additions": 30, "author": "tastelikefeet", "deletions": 12, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12664", "issue_id": 12664, "merged_at": "2025-04-11T12:01:57Z", "omission_probability": 0.1, "pr_number": 12664, "repo": "ggml-org/llama.cpp", "title": "contrib: support modelscope ...
828
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 9eba3f6a42b5e..114cbf83ed33b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -36,13 +36,13 @@ jobs: matrix: config: # Multi-stage build - - { tag: "cpu", dockerfile: ".devop...
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 9eba3f6a42b5e..114cbf83ed33b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -36,13 +36,13 @@ jobs: matrix: config: # Multi-stage build - - { tag: "cpu", dockerfile: ".devop...
[ "+ - { tag: \"vulkan\", dockerfile: \".devops/vulkan.Dockerfile\", platforms: \"linux/amd64\", full: true, light: true, server: true, free_disk_space: false }" ]
[ 17 ]
{ "additions": 6, "author": "yeahdongcn", "deletions": 6, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12861", "issue_id": 12861, "merged_at": "2025-04-11T07:26:17Z", "omission_probability": 0.1, "pr_number": 12861, "repo": "ggml-org/llama.cpp", "title": "Replace freediskspace to free_dis...
829
diff --git a/build-xcframework.sh b/build-xcframework.sh index 1b9091d288cc8..97001b5f7ff85 100755 --- a/build-xcframework.sh +++ b/build-xcframework.sh @@ -41,6 +41,11 @@ COMMON_CMAKE_ARGS=( -DGGML_OPENMP=${GGML_OPENMP} ) +XCODE_VERSION=$(xcodebuild -version 2>/dev/null | head -n1 | awk '{ print $2 }') +MAJOR_...
diff --git a/build-xcframework.sh b/build-xcframework.sh index 1b9091d288cc8..97001b5f7ff85 100755 --- a/build-xcframework.sh +++ b/build-xcframework.sh @@ -41,6 +41,11 @@ COMMON_CMAKE_ARGS=( -DGGML_OPENMP=${GGML_OPENMP} ) +MAJOR_VERSION=$(echo $XCODE_VERSION | cut -d. -f1) +MINOR_VERSION=$(echo $XCODE_VERSION | ...
[ "+XCODE_VERSION=$(xcodebuild -version 2>/dev/null | head -n1 | awk '{ print $2 }')", "+ VISION_OS_BUILD_VERSION=\"visionos\"", "+ xcrun vtool -set-build-version tvos ${TVOS_MIN_OS_VERSION} ${TVOS_MIN_OS_VERSION} -replace \\" ]
[ 8, 34, 45 ]
{ "additions": 16, "author": "danbev", "deletions": 4, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12854", "issue_id": 12854, "merged_at": "2025-04-11T07:24:34Z", "omission_probability": 0.1, "pr_number": 12854, "repo": "ggml-org/llama.cpp", "title": "xcf : add check for visionos build v...
830
diff --git a/convert_hf_to_gguf.py b/convert_hf_to_gguf.py index 656dc987780c9..2d70f3cc20b09 100755 --- a/convert_hf_to_gguf.py +++ b/convert_hf_to_gguf.py @@ -1788,10 +1788,6 @@ def set_gguf_parameters(self): self.gguf_writer.add_expert_feed_forward_length(self.hparams["intermediate_size_moe"]) def mo...
diff --git a/convert_hf_to_gguf.py b/convert_hf_to_gguf.py index 656dc987780c9..2d70f3cc20b09 100755 --- a/convert_hf_to_gguf.py +++ b/convert_hf_to_gguf.py @@ -1788,10 +1788,6 @@ def set_gguf_parameters(self): self.gguf_writer.add_expert_feed_forward_length(self.hparams["intermediate_size_moe"]) def modi...
[ "- name = name.replace(\"language_model.\", \"\")", "+ \"language_model.model.layers.{bid}.self_attn.o_proj\", # llama4", "+ \"language_model.model.layers.{bid}.post_attention_layernorm\", # llama4", "+ \"language_model.model.layers.{bid}.feed_forward.route...
[ 8, 79, 87, 95, 103, 139, 161 ]
{ "additions": 19, "author": "ngxson", "deletions": 4, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12870", "issue_id": 12870, "merged_at": "2025-04-11T07:23:37Z", "omission_probability": 0.1, "pr_number": 12870, "repo": "ggml-org/llama.cpp", "title": "convert : proper tensor name mapping...
831
diff --git a/src/llama-model.cpp b/src/llama-model.cpp index a442abeb85392..f251be73c5dc9 100644 --- a/src/llama-model.cpp +++ b/src/llama-model.cpp @@ -256,7 +256,7 @@ static ggml_backend_buffer_type_t select_weight_buft(const llama_hparams & hpara return nullptr; } -// CPU: ACCEL -> CPU extra -> GPU host -> C...
diff --git a/src/llama-model.cpp b/src/llama-model.cpp index a442abeb85392..f251be73c5dc9 100644 --- a/src/llama-model.cpp +++ b/src/llama-model.cpp @@ -256,7 +256,7 @@ static ggml_backend_buffer_type_t select_weight_buft(const llama_hparams & hpara return nullptr; } -// CPU: ACCEL -> CPU extra -> GPU host -> CPU...
[ "- // ref: https://github.com/ggml-org/llama.cpp/issues/12481#issuecomment-2743136094", "- ++extra_bufts;", "- LLAMA_LOG_WARN(\"%s: disabling extra buffer types (i.e. repacking) since a GPU device is available\\n\", __func__);" ]
[ 26, 36, 40 ]
{ "additions": 15, "author": "Djip007", "deletions": 27, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12632", "issue_id": 12632, "merged_at": "2025-03-29T13:07:37Z", "omission_probability": 0.1, "pr_number": 12632, "repo": "ggml-org/llama.cpp", "title": "change cpu_buft_list order: ACCEL ...
832
diff --git a/ggml/src/ggml-cann/acl_tensor.cpp b/ggml/src/ggml-cann/acl_tensor.cpp index 9b6553c500129..f5462c5a18e37 100644 --- a/ggml/src/ggml-cann/acl_tensor.cpp +++ b/ggml/src/ggml-cann/acl_tensor.cpp @@ -41,6 +41,8 @@ aclDataType ggml_cann_type_mapping(ggml_type type) { return ACL_INT4; case ...
diff --git a/ggml/src/ggml-cann/acl_tensor.cpp b/ggml/src/ggml-cann/acl_tensor.cpp index 9b6553c500129..f5462c5a18e37 100644 --- a/ggml/src/ggml-cann/acl_tensor.cpp +++ b/ggml/src/ggml-cann/acl_tensor.cpp @@ -41,6 +41,8 @@ aclDataType ggml_cann_type_mapping(ggml_type type) { return ACL_INT4; case ...
[ "+ case GGML_TYPE_I64:", "+#include <aclnnop/aclnn_mean.h>", "+ src0->ne, src0->nb, 3);", "+ ACL_CHECK(aclDestroyTensor(acl_dst));", "+ ggml_cann_sum(ctx, dst);", "+ GGML_CANN_CALL_ACLNN_OP(GtScalar, acl_src, alpha, acl_dst);", "+ * @brief Computes the mean of a ggml...
[ 8, 22, 81, 91, 105, 121, 145, 148, 154, 155, 164, 177, 203, 230 ]
{ "additions": 173, "author": "noemotiovon", "deletions": 0, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12841", "issue_id": 12841, "merged_at": "2025-04-10T00:51:52Z", "omission_probability": 0.1, "pr_number": 12841, "repo": "ggml-org/llama.cpp", "title": "[CANN]Support Opt LOG && MEAN ...
833
diff --git a/.devops/cuda.Dockerfile b/.devops/cuda.Dockerfile index a196111e61d62..8ae57d2e289f4 100644 --- a/.devops/cuda.Dockerfile +++ b/.devops/cuda.Dockerfile @@ -21,7 +21,7 @@ COPY . . RUN if [ "${CUDA_DOCKER_ARCH}" != "default" ]; then \ export CMAKE_ARGS="-DCMAKE_CUDA_ARCHITECTURES=${CUDA_DOCKER_ARCH}"; ...
diff --git a/.devops/cuda.Dockerfile b/.devops/cuda.Dockerfile index a196111e61d62..8ae57d2e289f4 100644 --- a/.devops/cuda.Dockerfile +++ b/.devops/cuda.Dockerfile @@ -21,7 +21,7 @@ COPY . . RUN if [ "${CUDA_DOCKER_ARCH}" != "default" ]; then \ export CMAKE_ARGS="-DCMAKE_CUDA_ARCHITECTURES=${CUDA_DOCKER_ARCH}"; ...
[ "- cmake -B build -DGGML_NATIVE=OFF -DGGML_MUSA=ON ${CMAKE_ARGS} -DCMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined . && \\", "+#ARG ROCM_DOCKER_ARCH=gfx1100" ]
[ 34, 50 ]
{ "additions": 7, "author": "rudiservo", "deletions": 7, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12749", "issue_id": 12749, "merged_at": "2025-04-09T23:17:12Z", "omission_probability": 0.1, "pr_number": 12749, "repo": "ggml-org/llama.cpp", "title": "Added all CPU to Docker GPU images...
834
diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 760c3646433ad..1bf1ee876b40f 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -1705,6 +1705,8 @@ struct server_queue { }; struct server_response { + bool running = true; + // for keeping track of all tasks ...
diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 760c3646433ad..1bf1ee876b40f 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -1705,6 +1705,8 @@ struct server_queue { struct server_response { + bool running = true; // for keeping track of all tasks waiting ...
[ "+ if (!running) {", "+ SRV_DBG(\"%s : queue result stop\\n\", __func__);" ]
[ 17, 29 ]
{ "additions": 20, "author": "ngxson", "deletions": 3, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12831", "issue_id": 12831, "merged_at": "2025-04-08T16:37:06Z", "omission_probability": 0.1, "pr_number": 12831, "repo": "ggml-org/llama.cpp", "title": "server : fix thread.join() on exit",...
835
diff --git a/examples/server/utils.hpp b/examples/server/utils.hpp index 55cf3230d90ce..aba2f27f9b564 100644 --- a/examples/server/utils.hpp +++ b/examples/server/utils.hpp @@ -3,7 +3,7 @@ #include "common.h" #include "log.h" #include "llama.h" -#include "common/base64.hpp" +#include "base64.hpp" // increase max ...
diff --git a/examples/server/utils.hpp b/examples/server/utils.hpp index 55cf3230d90ce..aba2f27f9b564 100644 --- a/examples/server/utils.hpp +++ b/examples/server/utils.hpp @@ -3,7 +3,7 @@ #include "common.h" #include "log.h" #include "llama.h" -#include "common/base64.hpp" +#include "base64.hpp" // increase max pa...
[ "+target_include_directories(llama PUBLIC . ../include)", "+ /* .template_str= */ U8C(\"{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|role_start|>system<|role_end|>你是Megrez-3B-Instruct,将针对用户的问题给出详细的、积极的回答。<|turn_end|>' }}{% endif %}{{ '<|role_start|>' + messa...
[ 22, 82 ]
{ "additions": 11, "author": "pminev", "deletions": 7, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12827", "issue_id": 12827, "merged_at": "2025-04-09T08:11:11Z", "omission_probability": 0.1, "pr_number": 12827, "repo": "ggml-org/llama.cpp", "title": "ci: detach common from the library",...
836
diff --git a/ggml/src/ggml-cuda/cpy.cu b/ggml/src/ggml-cuda/cpy.cu index ed853ee6c15a2..4f4faa3e63ae7 100644 --- a/ggml/src/ggml-cuda/cpy.cu +++ b/ggml/src/ggml-cuda/cpy.cu @@ -10,6 +10,13 @@ static __device__ void cpy_1_f32_f32(const char * cxi, char * cdsti) { *dsti = *xi; } +static __device__ void cpy_1_f32_...
diff --git a/ggml/src/ggml-cuda/cpy.cu b/ggml/src/ggml-cuda/cpy.cu index ed853ee6c15a2..4f4faa3e63ae7 100644 --- a/ggml/src/ggml-cuda/cpy.cu +++ b/ggml/src/ggml-cuda/cpy.cu @@ -10,6 +10,13 @@ static __device__ void cpy_1_f32_f32(const char * cxi, char * cdsti) { *dsti = *xi; +static __device__ void cpy_1_f32_bf16(...
[ "+ const float * xi = (const float *) cxi;" ]
[ 9 ]
{ "additions": 24, "author": "CISC", "deletions": 0, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12806", "issue_id": 12806, "merged_at": "2025-04-08T21:21:32Z", "omission_probability": 0.1, "pr_number": 12806, "repo": "ggml-org/llama.cpp", "title": "cuda : add f32 to bf16 copy op", "to...
837
diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index e9520f3d1a378..44428cc959553 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -380,6 +380,7 @@ struct clip_ctx { if (backend_cpu != backend) { ggml_backend_free(backend_cpu); } + clip_image_si...
diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index e9520f3d1a378..44428cc959553 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -380,6 +380,7 @@ struct clip_ctx { if (backend_cpu != backend) { ggml_backend_free(backend_cpu); } + clip_image_si...
[ "+ if (load_image_size == nullptr) {" ]
[ 17 ]
{ "additions": 11, "author": "mattjcly", "deletions": 0, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12834", "issue_id": 12834, "merged_at": "2025-04-08T20:01:58Z", "omission_probability": 0.1, "pr_number": 12834, "repo": "ggml-org/llama.cpp", "title": "llava: improve clip_ctx destructor...
838
diff --git a/examples/server/tests/unit/test_embedding.py b/examples/server/tests/unit/test_embedding.py index 8b0eb42b0926f..0feb452ccfcd4 100644 --- a/examples/server/tests/unit/test_embedding.py +++ b/examples/server/tests/unit/test_embedding.py @@ -49,6 +49,26 @@ def test_embedding_multiple(): assert len(d...
diff --git a/examples/server/tests/unit/test_embedding.py b/examples/server/tests/unit/test_embedding.py index 8b0eb42b0926f..0feb452ccfcd4 100644 --- a/examples/server/tests/unit/test_embedding.py +++ b/examples/server/tests/unit/test_embedding.py @@ -49,6 +49,26 @@ def test_embedding_multiple(): assert len(d...
[ "+ \"c \"*255,", "+ for d in res.body['data']:", "+ server.server_embeddings = True", "+ GGML_ASSERT((v->type == GGML_TYPE_F32 || v_to_float ) && \"fattn: unsupported V-type\");", "+ // TODO: not sure if it is worth adding kernels for this size" ]
[ 17, 23, 51, 81, 113 ]
{ "additions": 59, "author": "ggerganov", "deletions": 6, "html_url": "https://github.com/ggml-org/llama.cpp/pull/12825", "issue_id": 12825, "merged_at": "2025-04-08T16:54:52Z", "omission_probability": 0.1, "pr_number": 12825, "repo": "ggml-org/llama.cpp", "title": "llama : fix FA when KV cache is n...
839
diff --git a/lib/internal/readline/interface.js b/lib/internal/readline/interface.js index 872fb8994cd214..429aa41d4bfabf 100644 --- a/lib/internal/readline/interface.js +++ b/lib/internal/readline/interface.js @@ -599,9 +599,6 @@ class Interface extends InterfaceConstructor { * @returns {void | Interface} */ ...
diff --git a/lib/internal/readline/interface.js b/lib/internal/readline/interface.js index 872fb8994cd214..429aa41d4bfabf 100644 --- a/lib/internal/readline/interface.js +++ b/lib/internal/readline/interface.js @@ -599,9 +599,6 @@ class Interface extends InterfaceConstructor { pause() { if (this.paused) return;...
[ "- // Call write after close", "-const repl = require('repl');", "+process.stdin.unref?.();" ]
[ 42, 162, 174 ]
{ "additions": 14, "author": "dario-piotrowicz", "deletions": 73, "html_url": "https://github.com/nodejs/node/pull/58024", "issue_id": 58024, "merged_at": "2025-04-25T22:45:58Z", "omission_probability": 0.1, "pr_number": 58024, "repo": "nodejs/node", "title": "Revert \"readline: add stricter validat...
840
diff --git a/src/node_options-inl.h b/src/node_options-inl.h index 24954e0b583834..55078af457fc7c 100644 --- a/src/node_options-inl.h +++ b/src/node_options-inl.h @@ -3,7 +3,9 @@ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS +#include <algorithm> #include <cstdlib> +#include <ranges> #include "node_opt...
diff --git a/src/node_options-inl.h b/src/node_options-inl.h index 24954e0b583834..55078af457fc7c 100644 --- a/src/node_options-inl.h +++ b/src/node_options-inl.h @@ -3,7 +3,9 @@ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS +#include <algorithm> #include <cstdlib> +#include <ranges> #include "node_options...
[ "- auto implications = implications_.equal_range(implied_name);", "+ std::ranges::for_each(std::ranges::subrange(f, l) | std::views::values,", "+ } else {" ]
[ 18, 28, 32 ]
{ "additions": 12, "author": "lemire", "deletions": 9, "html_url": "https://github.com/nodejs/node/pull/57975", "issue_id": 57975, "merged_at": "2025-04-25T17:52:42Z", "omission_probability": 0.1, "pr_number": 57975, "repo": "nodejs/node", "title": "src: use ranges library (C++20) to simplify code",...
841
diff --git a/lib/internal/main/watch_mode.js b/lib/internal/main/watch_mode.js index 60639efb45482d..6ccc90436e6201 100644 --- a/lib/internal/main/watch_mode.js +++ b/lib/internal/main/watch_mode.js @@ -79,10 +79,11 @@ function start() { } child.once('exit', (code) => { exited = true; + const waitingForCh...
diff --git a/lib/internal/main/watch_mode.js b/lib/internal/main/watch_mode.js index 60639efb45482d..6ccc90436e6201 100644 --- a/lib/internal/main/watch_mode.js +++ b/lib/internal/main/watch_mode.js @@ -79,10 +79,11 @@ function start() { } child.once('exit', (code) => { exited = true; + const waitingForCh...
[]
[]
{ "additions": 48, "author": "dario-piotrowicz", "deletions": 47, "html_url": "https://github.com/nodejs/node/pull/57926", "issue_id": 57926, "merged_at": "2025-04-24T14:00:25Z", "omission_probability": 0.1, "pr_number": 57926, "repo": "nodejs/node", "title": "watch: clarify completion/failure watch...
842
diff --git a/lib/internal/crypto/webidl.js b/lib/internal/crypto/webidl.js index f7c3aed3d95ac0..cba02279977e4b 100644 --- a/lib/internal/crypto/webidl.js +++ b/lib/internal/crypto/webidl.js @@ -25,9 +25,6 @@ const { String, TypedArrayPrototypeGetBuffer, TypedArrayPrototypeGetSymbolToStringTag, - globalThis: ...
diff --git a/lib/internal/crypto/webidl.js b/lib/internal/crypto/webidl.js index f7c3aed3d95ac0..cba02279977e4b 100644 --- a/lib/internal/crypto/webidl.js +++ b/lib/internal/crypto/webidl.js @@ -25,9 +25,6 @@ const { String, TypedArrayPrototypeGetBuffer, TypedArrayPrototypeGetSymbolToStringTag, - globalThis: ...
[ "+ const crossrealmSAB = vm.runInContext('new SharedArrayBuffer(4)', context);", "+ ]).then(common.mustCall((r) => {", "+ ]);", "+}", "- // Verify the decrypted content matches original" ]
[ 75, 83, 87, 90, 199 ]
{ "additions": 56, "author": "aduh95", "deletions": 55, "html_url": "https://github.com/nodejs/node/pull/57974", "issue_id": 57974, "merged_at": "2025-04-24T13:28:52Z", "omission_probability": 0.1, "pr_number": 57974, "repo": "nodejs/node", "title": "crypto: fix cross-realm `SharedArrayBuffer` valid...
843
diff --git a/doc/api/async_context.md b/doc/api/async_context.md index c35f65d18d7924..66d134871bd148 100644 --- a/doc/api/async_context.md +++ b/doc/api/async_context.md @@ -172,7 +172,7 @@ added: - v19.8.0 - v18.16.0 changes: - - version: + - version: - v23.11.0 - v22.15.0 pr-url: https://github.c...
diff --git a/doc/api/async_context.md b/doc/api/async_context.md index c35f65d18d7924..66d134871bd148 100644 --- a/doc/api/async_context.md +++ b/doc/api/async_context.md @@ -172,7 +172,7 @@ added: - v19.8.0 - v18.16.0 diff --git a/doc/api/dns.md b/doc/api/dns.md index 5faf78734867ea..04022473c9ca42 100644 --- a/do...
[]
[]
{ "additions": 37, "author": "aduh95", "deletions": 37, "html_url": "https://github.com/nodejs/node/pull/57987", "issue_id": 57987, "merged_at": "2025-04-23T08:59:34Z", "omission_probability": 0.1, "pr_number": 57987, "repo": "nodejs/node", "title": "doc: fix linter errors", "total_changes": 74 }
844
diff --git a/src/util-inl.h b/src/util-inl.h index d400d913be70f6..44dbceed5f3d22 100644 --- a/src/util-inl.h +++ b/src/util-inl.h @@ -28,10 +28,13 @@ #include <cstring> #include <locale> #include <ranges> -#include <regex> // NOLINT(build/c++11) #include "node_revert.h" #include "util.h" +#ifdef _WIN32 +#inclu...
diff --git a/src/util-inl.h b/src/util-inl.h index d400d913be70f6..44dbceed5f3d22 100644 --- a/src/util-inl.h +++ b/src/util-inl.h @@ -28,10 +28,13 @@ #include <cstring> #include <locale> #include <ranges> -#include <regex> // NOLINT(build/c++11) #include "node_revert.h" #include "util.h" +#include <regex> // NO...
[ "-#else" ]
[ 34 ]
{ "additions": 8, "author": "anonrig", "deletions": 7, "html_url": "https://github.com/nodejs/node/pull/57951", "issue_id": 57951, "merged_at": "2025-04-22T16:02:17Z", "omission_probability": 0.1, "pr_number": 57951, "repo": "nodejs/node", "title": "src: move windows specific fns to _WIN32", "tota...
845
diff --git a/src/api/environment.cc b/src/api/environment.cc index af5c62f64542a0..50792c6d767478 100644 --- a/src/api/environment.cc +++ b/src/api/environment.cc @@ -807,10 +807,10 @@ Maybe<void> InitializePrimordials(Local<Context> context, // context. CHECK(!exports->Has(context, primordials_string).FromJust()...
diff --git a/src/api/environment.cc b/src/api/environment.cc index af5c62f64542a0..50792c6d767478 100644 --- a/src/api/environment.cc +++ b/src/api/environment.cc @@ -807,10 +807,10 @@ Maybe<void> InitializePrimordials(Local<Context> context, // context. CHECK(!exports->Has(context, primordials_string).FromJust()...
[ "- CHECK(trace_constants->SetPrototypeV2(env->context(), Null(env->isolate()))", "+ Local<Object> sig_constants =" ]
[ 67, 73 ]
{ "additions": 22, "author": "anonrig", "deletions": 38, "html_url": "https://github.com/nodejs/node/pull/57949", "issue_id": 57949, "merged_at": "2025-04-22T15:27:12Z", "omission_probability": 0.1, "pr_number": 57949, "repo": "nodejs/node", "title": "src: avoid calling SetPrototypeV2()", "total_c...
846
diff --git a/lib/internal/crypto/webidl.js b/lib/internal/crypto/webidl.js index f557f81cab0869..f7c3aed3d95ac0 100644 --- a/lib/internal/crypto/webidl.js +++ b/lib/internal/crypto/webidl.js @@ -12,7 +12,6 @@ const { ArrayBufferIsView, - ArrayBufferPrototype, ArrayPrototypeIncludes, ArrayPrototypePush, ...
diff --git a/lib/internal/crypto/webidl.js b/lib/internal/crypto/webidl.js index f557f81cab0869..f7c3aed3d95ac0 100644 --- a/lib/internal/crypto/webidl.js +++ b/lib/internal/crypto/webidl.js @@ -12,7 +12,6 @@ const { ArrayBufferIsView, - ArrayBufferPrototype, ArrayPrototypeIncludes, ArrayPrototypePush, Ar...
[ "+ subtle.digest('SHA-256', samerealmData)", "+ Object.getPrototypeOf(crossrealmBuffer),", "+ crossRealmBuffer" ]
[ 52, 67, 123 ]
{ "additions": 155, "author": "fforbeck", "deletions": 4, "html_url": "https://github.com/nodejs/node/pull/57828", "issue_id": 57828, "merged_at": "2025-04-22T13:01:22Z", "omission_probability": 0.1, "pr_number": 57828, "repo": "nodejs/node", "title": "crypto: fix cross-realm ArrayBuffer validation"...
847
diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md index 0f077ed7981484..beddcf90d2552c 100644 --- a/doc/api/sqlite.md +++ b/doc/api/sqlite.md @@ -241,6 +241,19 @@ Enables or disables the `loadExtension` SQL function, and the `loadExtension()` method. When `allowExtension` is `false` when constructing, you cannot enab...
diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md index 0f077ed7981484..beddcf90d2552c 100644 --- a/doc/api/sqlite.md +++ b/doc/api/sqlite.md @@ -241,6 +241,19 @@ Enables or disables the `loadExtension` SQL function, and the `loadExtension()` method. When `allowExtension` is `false` when constructing, you cannot enab...
[ "+ DatabaseSync* db;", "+ args.GetReturnValue().Set(Null(env->isolate()));" ]
[ 41, 60 ]
{ "additions": 99, "author": "geeksilva97", "deletions": 0, "html_url": "https://github.com/nodejs/node/pull/57860", "issue_id": 57860, "merged_at": "2025-04-21T14:57:15Z", "omission_probability": 0.1, "pr_number": 57860, "repo": "nodejs/node", "title": "sqlite: add location method", "total_change...
848
diff --git a/tools/actions/lint-release-proposal-commit-list.mjs b/tools/actions/lint-release-proposal-commit-list.mjs index b9745bad3c30c1..c0cef2dcf02e60 100755 --- a/tools/actions/lint-release-proposal-commit-list.mjs +++ b/tools/actions/lint-release-proposal-commit-list.mjs @@ -19,14 +19,24 @@ const stdinLineByLine...
diff --git a/tools/actions/lint-release-proposal-commit-list.mjs b/tools/actions/lint-release-proposal-commit-list.mjs index b9745bad3c30c1..c0cef2dcf02e60 100755 --- a/tools/actions/lint-release-proposal-commit-list.mjs +++ b/tools/actions/lint-release-proposal-commit-list.mjs @@ -19,14 +19,24 @@ const stdinLineByLine...
[ "+} else {" ]
[ 16 ]
{ "additions": 15, "author": "aduh95", "deletions": 5, "html_url": "https://github.com/nodejs/node/pull/57892", "issue_id": 57892, "merged_at": "2025-04-21T06:33:57Z", "omission_probability": 0.1, "pr_number": 57892, "repo": "nodejs/node", "title": "tools: add semver-major release support to release...
849
diff --git a/src/node_dotenv.cc b/src/node_dotenv.cc index dd660058115ddb..d5f14fa92e2694 100644 --- a/src/node_dotenv.cc +++ b/src/node_dotenv.cc @@ -102,8 +102,11 @@ MaybeLocal<Object> Dotenv::ToObject(Environment* env) const { return scope.Escape(result); } -// Removes space characters (spaces, tabs and newlin...
diff --git a/src/node_dotenv.cc b/src/node_dotenv.cc index dd660058115ddb..d5f14fa92e2694 100644 --- a/src/node_dotenv.cc +++ b/src/node_dotenv.cc @@ -102,8 +102,11 @@ MaybeLocal<Object> Dotenv::ToObject(Environment* env) const { return scope.Escape(result); -// Removes space characters (spaces, tabs and newlines) f...
[ "-// the start and end of a given input string", "- auto newline = content.find('\\n');", "+ // If no newline is found, clear the content", "- break;", "+ // Remove export prefix from key and ensure proper spacing.", "+ // Trim spaces after removing export prefix to handle cases l...
[ 9, 33, 40, 82, 91, 95, 123, 157, 233, 234 ]
{ "additions": 116, "author": "AugustinMauroy", "deletions": 34, "html_url": "https://github.com/nodejs/node/pull/57798", "issue_id": 57798, "merged_at": "2025-04-21T06:46:45Z", "omission_probability": 0.1, "pr_number": 57798, "repo": "nodejs/node", "title": "util: fix parseEnv handling of invalid l...
850
diff --git a/Makefile b/Makefile index 69c026755bf230..36e79eb99de38d 100644 --- a/Makefile +++ b/Makefile @@ -809,7 +809,7 @@ doc: $(NODE_EXE) doc-only ## Build Node.js, and then build the documentation wit out/doc: mkdir -p $@ - cp doc/node_config_json_schema.json $@ + cp doc/node-config-schema.json $@ # If i...
diff --git a/Makefile b/Makefile index 69c026755bf230..36e79eb99de38d 100644 --- a/Makefile +++ b/Makefile @@ -809,7 +809,7 @@ doc: $(NODE_EXE) doc-only ## Build Node.js, and then build the documentation wit out/doc: mkdir -p $@ - cp doc/node_config_json_schema.json $@ # If it's a source tarball, doc/api already co...
[ "+\tcp doc/node-config-schema.json $@", "+It is possible to use the [official JSON schema](../node-config-schema.json)", "+### `--experimental-default-config-file`", "+If the `--experimental-default-config-file` flag is present, Node.js will look for a", "+`node.config.json` file in the current working dire...
[ 9, 60, 77, 85, 86, 152, 177, 178, 192, 227, 288, 290 ]
{ "additions": 114, "author": "marco-ippolito", "deletions": 22, "html_url": "https://github.com/nodejs/node/pull/57171", "issue_id": 57171, "merged_at": "2025-02-27T21:02:10Z", "omission_probability": 0.1, "pr_number": 57171, "repo": "nodejs/node", "title": "src: set default config as node.config.j...
851
diff --git a/src/api/encoding.cc b/src/api/encoding.cc index 52f41980507bcb..215db8882bf1ee 100644 --- a/src/api/encoding.cc +++ b/src/api/encoding.cc @@ -144,7 +144,7 @@ MaybeLocal<Value> TryEncode(Isolate* isolate, } MaybeLocal<Value> TryEncode(Isolate* isolate, const uint16_t* buf, size_t len) { - return String...
diff --git a/src/api/encoding.cc b/src/api/encoding.cc index 52f41980507bcb..215db8882bf1ee 100644 --- a/src/api/encoding.cc +++ b/src/api/encoding.cc @@ -144,7 +144,7 @@ MaybeLocal<Value> TryEncode(Isolate* isolate, MaybeLocal<Value> TryEncode(Isolate* isolate, const uint16_t* buf, size_t len) { - return StringBytes...
[ "+ int value_int = UV_EPROTO;", "+ if (!Buffer::Copy(env(), bufs[i].base, bufs[i].len).ToLocal(&bufs_arr[i])) {", "+ args.GetReturnValue().Set(res);" ]
[ 39, 45, 89 ]
{ "additions": 42, "author": "jasnell", "deletions": 21, "html_url": "https://github.com/nodejs/node/pull/57852", "issue_id": 57852, "merged_at": "2025-04-21T03:01:30Z", "omission_probability": 0.1, "pr_number": 57852, "repo": "nodejs/node", "title": "src: fixup errorhandling more in various places"...
852
diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md index 1edea0afdf372a..0f077ed7981484 100644 --- a/doc/api/sqlite.md +++ b/doc/api/sqlite.md @@ -291,6 +291,15 @@ added: v23.11.0 * {boolean} Whether the database is currently open or not. +### `database.isTransaction` + +<!-- YAML +added: REPLACEME +--> + +* {bool...
diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md index 1edea0afdf372a..0f077ed7981484 100644 --- a/doc/api/sqlite.md +++ b/doc/api/sqlite.md @@ -291,6 +291,15 @@ added: v23.11.0 * {boolean} Whether the database is currently open or not. +### `database.isTransaction` +<!-- YAML +added: REPLACEME +--> +* {boolean} Whe...
[ "+ const FunctionCallbackInfo<Value>& args) {", "+ ASSIGN_OR_RETURN_UNWRAP(&db, args.This());", "+ Environment* env = Environment::GetCurrent(args);", "+ args.GetReturnValue().Set(sqlite3_get_autocommit(db->connection_) == 0);", "+ t.assert.throws(() => {" ]
[ 37, 39, 40, 42, 109 ]
{ "additions": 62, "author": "cjihrig", "deletions": 0, "html_url": "https://github.com/nodejs/node/pull/57925", "issue_id": 57925, "merged_at": "2025-04-20T15:57:42Z", "omission_probability": 0.1, "pr_number": 57925, "repo": "nodejs/node", "title": "sqlite: add getter to detect transactions", "to...
853
diff --git a/lib/internal/util.js b/lib/internal/util.js index e690d7f4323bcc..7a928adb71c043 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -8,6 +8,7 @@ const { Error, ErrorCaptureStackTrace, FunctionPrototypeCall, + NumberParseInt, ObjectDefineProperties, ObjectDefineProperty, Obje...
diff --git a/lib/internal/util.js b/lib/internal/util.js index e690d7f4323bcc..7a928adb71c043 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -8,6 +8,7 @@ const { Error, ErrorCaptureStackTrace, FunctionPrototypeCall, + NumberParseInt, ObjectDefineProperty, ObjectFreeze, @@ -33,7 +34,9 @@...
[ "+ let ones = 0;", "+ let split = '.';", "+ if (part !== '') {", "+ } else {", "- return ((n + (n >>> 4) & 0xF0F0F0F) * 0x1010101) >>> 24;", "- let lastPos = 0;", "- for (let i = 0; i < netmask.length; i++) {", "+'use strict';" ]
[ 36, 37, 58, 63, 120, 129, 137, 178 ]
{ "additions": 81, "author": "HBSPS", "deletions": 55, "html_url": "https://github.com/nodejs/node/pull/57324", "issue_id": 57324, "merged_at": "2025-04-20T05:54:49Z", "omission_probability": 0.1, "pr_number": 57324, "repo": "nodejs/node", "title": "os: fix netmask format check condition in getCIDR ...
854
diff --git a/src/node_api.cc b/src/node_api.cc index 1638d096969826..5c85ef063ecd77 100644 --- a/src/node_api.cc +++ b/src/node_api.cc @@ -20,6 +20,52 @@ #include <cstring> #include <memory> +namespace v8impl { +static void ThrowNodeApiVersionError(node::Environment* node_env, + ...
diff --git a/src/node_api.cc b/src/node_api.cc index 1638d096969826..5c85ef063ecd77 100644 --- a/src/node_api.cc +++ b/src/node_api.cc @@ -20,6 +20,52 @@ #include <cstring> #include <memory> +namespace v8impl { +static void ThrowNodeApiVersionError(node::Environment* node_env, + co...
[ "+ const std::string& module_filename,", "+ // napi_env when its v8::Context was garbage collected;", "+ static_cast<void*>(result));", "- node::Environment* node_env = node::Environment::GetCurrent(context);", "- ThrowNodeApiVersionError(", "- // For n...
[ 23, 41, 49, 83, 85, 97, 98, 112, 127 ]
{ "additions": 52, "author": "vmoroz", "deletions": 45, "html_url": "https://github.com/nodejs/node/pull/57834", "issue_id": 57834, "merged_at": "2025-04-19T17:03:54Z", "omission_probability": 0.1, "pr_number": 57834, "repo": "nodejs/node", "title": "node-api: convert NewEnv to node_napi_env__::New"...
855
diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md index 07916addeac91a..df472d4c7899e0 100644 --- a/doc/api/sqlite.md +++ b/doc/api/sqlite.md @@ -182,11 +182,14 @@ added: * `useBigIntArguments` {boolean} If `true`, integer arguments to `function` are converted to `BigInt`s. If `false`, integer arguments are pa...
diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md index 07916addeac91a..df472d4c7899e0 100644 --- a/doc/api/sqlite.md +++ b/doc/api/sqlite.md @@ -182,11 +182,14 @@ added: * `useBigIntArguments` {boolean} If `true`, integer arguments to `function` are converted to `BigInt`s. If `false`, integer arguments are pa...
[ "+ arguments (between zero and [`SQLITE_MAX_FUNCTION_ARG`][]). If `false`,", "+ `function` must be invoked with exactly `function.length` arguments." ]
[ 12, 13 ]
{ "additions": 9, "author": "Renegade334", "deletions": 4, "html_url": "https://github.com/nodejs/node/pull/56786", "issue_id": 56786, "merged_at": "2025-01-29T14:21:14Z", "omission_probability": 0.1, "pr_number": 56786, "repo": "nodejs/node", "title": "doc: clarify sqlite user-defined function beha...
856
diff --git a/lib/internal/util/comparisons.js b/lib/internal/util/comparisons.js index 3120c902905f1d..0a7f9af04fb009 100644 --- a/lib/internal/util/comparisons.js +++ b/lib/internal/util/comparisons.js @@ -44,6 +44,7 @@ const { isBooleanObject, isBigIntObject, isSymbolObject, + isFloat16Array, isFloat32Ar...
diff --git a/lib/internal/util/comparisons.js b/lib/internal/util/comparisons.js index 3120c902905f1d..0a7f9af04fb009 100644 --- a/lib/internal/util/comparisons.js +++ b/lib/internal/util/comparisons.js @@ -44,6 +44,7 @@ const { isBooleanObject, isBigIntObject, isSymbolObject, + isFloat16Array, isFloat32Ar...
[ "+ },", "+ [new Float16Array([0.1]), new Float16Array([0.1, 0.2])]," ]
[ 50, 94 ]
{ "additions": 22, "author": "LiviaMedeiros", "deletions": 1, "html_url": "https://github.com/nodejs/node/pull/57881", "issue_id": 57881, "merged_at": "2025-04-19T17:04:04Z", "omission_probability": 0.1, "pr_number": 57881, "repo": "nodejs/node", "title": "assert: support `Float16Array` in loose dee...
857
diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index 554221ac614636..31c3c9e3a4fde5 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -1068,6 +1068,7 @@ function setupHandle(socket, type, options) { if (typeof options.selectPadding === 'function') this[kSelectPadd...
diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index 554221ac614636..31c3c9e3a4fde5 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -1068,6 +1068,7 @@ function setupHandle(socket, type, options) { if (typeof options.selectPadding === 'function') this[kSelectPadd...
[ "+ handle.setGracefulClose();", "+ return;", "+ code: 'ERR_HTTP2_STREAM_ERROR',", "+ assert.strictEqual(headers[':status'], 200);", "+ request.on('end', common.mustCall(function() {", "+ response.on('finish', common.mustCall(function() {" ]
[ 18, 151, 247, 305, 307, 317 ]
{ "additions": 142, "author": "pandeykushagra51", "deletions": 9, "html_url": "https://github.com/nodejs/node/pull/57808", "issue_id": 57808, "merged_at": "2025-04-19T16:36:03Z", "omission_probability": 0.1, "pr_number": 57808, "repo": "nodejs/node", "title": "http2: fix graceful session close", "...
858
diff --git a/test/parallel/test-child-process-bad-stdio.js b/test/parallel/test-child-process-bad-stdio.js index 90e8ddd0215a2b..b612fc832281a6 100644 --- a/test/parallel/test-child-process-bad-stdio.js +++ b/test/parallel/test-child-process-bad-stdio.js @@ -1,21 +1,23 @@ 'use strict'; // Flags: --expose-internals c...
diff --git a/test/parallel/test-child-process-bad-stdio.js b/test/parallel/test-child-process-bad-stdio.js index 90e8ddd0215a2b..b612fc832281a6 100644 --- a/test/parallel/test-child-process-bad-stdio.js +++ b/test/parallel/test-child-process-bad-stdio.js @@ -1,21 +1,23 @@ 'use strict'; // Flags: --expose-internals c...
[ "-const ChildProcess = require('internal/child_process').ChildProcess;" ]
[ 24 ]
{ "additions": 16, "author": "cjihrig", "deletions": 14, "html_url": "https://github.com/nodejs/node/pull/56562", "issue_id": 56562, "merged_at": "2025-01-13T20:51:55Z", "omission_probability": 0.1, "pr_number": 56562, "repo": "nodejs/node", "title": "test: update test-child-process-bad-stdio to use...
859
diff --git a/tools/v8_gypfiles/toolchain.gypi b/tools/v8_gypfiles/toolchain.gypi index a5388783d9b88f..937f3f51976163 100644 --- a/tools/v8_gypfiles/toolchain.gypi +++ b/tools/v8_gypfiles/toolchain.gypi @@ -97,33 +97,6 @@ # Indicates if gcmole tools are downloaded by a hook. 'gcmole%': 0, }, - - # [GYP] t...
diff --git a/tools/v8_gypfiles/toolchain.gypi b/tools/v8_gypfiles/toolchain.gypi index a5388783d9b88f..937f3f51976163 100644 --- a/tools/v8_gypfiles/toolchain.gypi +++ b/tools/v8_gypfiles/toolchain.gypi @@ -97,33 +97,6 @@ # Indicates if gcmole tools are downloaded by a hook. 'gcmole%': 0, }, - - # [GYP] t...
[ "- 'host_cxx_is_biarch%': 0,", "- ['target_arch==\"ia32\" or target_arch==\"x64\" or \\", "- ['(OS==\"linux\" or OS==\"freebsd\" or OS==\"openbsd\" or OS==\"solaris\" \\", "- 'cflags': [ '-m64' ],", "- 'ldflags': [ '-m64' ]," ]
[ 20, 23, 42, 99, 100 ]
{ "additions": 0, "author": "targos", "deletions": 91, "html_url": "https://github.com/nodejs/node/pull/57907", "issue_id": 57907, "merged_at": "2025-04-19T10:22:10Z", "omission_probability": 0.1, "pr_number": 57907, "repo": "nodejs/node", "title": "build: remove redundant `-mXX` flags for V8", "t...
860
diff --git a/deps/zlib/BUILD.gn b/deps/zlib/BUILD.gn index 378bd0df75ca22..2a898d2a60cfa2 100644 --- a/deps/zlib/BUILD.gn +++ b/deps/zlib/BUILD.gn @@ -70,7 +70,7 @@ source_set("zlib_common_headers") { use_arm_neon_optimizations = false if ((current_cpu == "arm" || current_cpu == "arm64") && !(is_win && !is_clang...
diff --git a/deps/zlib/BUILD.gn b/deps/zlib/BUILD.gn index 378bd0df75ca22..2a898d2a60cfa2 100644 --- a/deps/zlib/BUILD.gn +++ b/deps/zlib/BUILD.gn @@ -70,7 +70,7 @@ source_set("zlib_common_headers") { use_arm_neon_optimizations = false if ((current_cpu == "arm" || current_cpu == "arm64") && !(is_win && !is_clang...
[ "- /* Avoid use of unitialized values in the window, see crbug.com/1137613 and", "- zmemzero(s->window, (s->w_size + WINDOW_PADDING) * (2 * sizeof(Byte)));", "+ third_party/zlib/deflate.c | 14 +++++++-------", "+ return Z_MEM_ERROR;", "++ * crbug.com/1144420 */", "++ zmemzero(s->windo...
[ 21, 23, 62, 86, 89, 90, 94 ]
{ "additions": 57, "author": "nodejs-github-bot", "deletions": 9, "html_url": "https://github.com/nodejs/node/pull/57768", "issue_id": 57768, "merged_at": "2025-04-18T13:22:02Z", "omission_probability": 0.1, "pr_number": 57768, "repo": "nodejs/node", "title": "deps: update zlib to 1.3.0.1-motley-780...
861
diff --git a/doc/api/process.md b/doc/api/process.md index 2ba2794cffec94..8fb0e38834b32c 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -3379,7 +3379,7 @@ any exit or close events and without running any cleanup handler. This function will never return, unless an error occurred. -This function is not...
diff --git a/doc/api/process.md b/doc/api/process.md index 2ba2794cffec94..8fb0e38834b32c 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -3379,7 +3379,7 @@ any exit or close events and without running any cleanup handler. This function will never return, unless an error occurred. -This function is not ava...
[ "-const { mustNotCall, skip, isWindows } = require('../common');" ]
[ 86 ]
{ "additions": 28, "author": "abmusse", "deletions": 28, "html_url": "https://github.com/nodejs/node/pull/57883", "issue_id": 57883, "merged_at": "2025-04-18T11:07:51Z", "omission_probability": 0.1, "pr_number": 57883, "repo": "nodejs/node", "title": "process: disable building execve on IBM i", "t...
862
diff --git a/test/fixtures/test-runner/output/coverage-width-80-color.snapshot b/test/fixtures/test-runner/output/coverage-width-80-color.snapshot index eb94b331a18001..8584d608fa43d8 100644 --- a/test/fixtures/test-runner/output/coverage-width-80-color.snapshot +++ b/test/fixtures/test-runner/output/coverage-width-80-...
diff --git a/test/fixtures/test-runner/output/coverage-width-80-color.snapshot b/test/fixtures/test-runner/output/coverage-width-80-color.snapshot index eb94b331a18001..8584d608fa43d8 100644 --- a/test/fixtures/test-runner/output/coverage-width-80-color.snapshot +++ b/test/fixtures/test-runner/output/coverage-width-80-...
[]
[]
{ "additions": 5, "author": "islandryu", "deletions": 5, "html_url": "https://github.com/nodejs/node/pull/57887", "issue_id": 57887, "merged_at": "2025-04-18T11:08:00Z", "omission_probability": 0.1, "pr_number": 57887, "repo": "nodejs/node", "title": "test: Enable skipped colorize test", "total_ch...
863
diff --git a/doc/api/inspector.md b/doc/api/inspector.md index a0852134511151..abb1b81ca699d3 100644 --- a/doc/api/inspector.md +++ b/doc/api/inspector.md @@ -490,6 +490,8 @@ An exception will be thrown if there is no active inspector. ## Integration with DevTools +> Stability: 1.1 - Active development + The `nod...
diff --git a/doc/api/inspector.md b/doc/api/inspector.md index a0852134511151..abb1b81ca699d3 100644 --- a/doc/api/inspector.md +++ b/doc/api/inspector.md @@ -490,6 +490,8 @@ An exception will be thrown if there is no active inspector. ## Integration with DevTools +> Stability: 1.1 - Active development + The `node:in...
[]
[]
{ "additions": 2, "author": "legendecas", "deletions": 8, "html_url": "https://github.com/nodejs/node/pull/57886", "issue_id": 57886, "merged_at": "2025-04-17T19:38:58Z", "omission_probability": 0.1, "pr_number": 57886, "repo": "nodejs/node", "title": "doc: mark devtools integration section as activ...
864
diff --git a/src/api/hooks.cc b/src/api/hooks.cc index 54163a59f2f340..f74950ae3de219 100644 --- a/src/api/hooks.cc +++ b/src/api/hooks.cc @@ -196,6 +196,12 @@ async_id AsyncHooksGetExecutionAsyncId(Isolate* isolate) { return env->execution_async_id(); } +async_id AsyncHooksGetExecutionAsyncId(Local<Context> cont...
diff --git a/src/api/hooks.cc b/src/api/hooks.cc index 54163a59f2f340..f74950ae3de219 100644 --- a/src/api/hooks.cc +++ b/src/api/hooks.cc @@ -196,6 +196,12 @@ async_id AsyncHooksGetExecutionAsyncId(Isolate* isolate) { return env->execution_async_id(); +async_id AsyncHooksGetExecutionAsyncId(Local<Context> context) ...
[ "+ return env->execution_async_id();", "+ * zero then no execution has been set. This will happen if the user handles", "+NODE_EXTERN async_id", "+ NODE_SET_METHOD(exports,", "+ \"getExecutionAsyncIdWithContext\",", "+ GetExecutionAsyncIdWithContext);" ]
[ 11, 26, 28, 54, 55, 56 ]
{ "additions": 28, "author": "szegedi", "deletions": 0, "html_url": "https://github.com/nodejs/node/pull/57820", "issue_id": 57820, "merged_at": "2025-04-17T18:00:07Z", "omission_probability": 0.1, "pr_number": 57820, "repo": "nodejs/node", "title": "src: add ExecutionAsyncId getter for any Context"...
865
diff --git a/lib/internal/abort_controller.js b/lib/internal/abort_controller.js index 8ec9034a4f9352..4fbed3bfa7399a 100644 --- a/lib/internal/abort_controller.js +++ b/lib/internal/abort_controller.js @@ -259,14 +259,30 @@ class AbortSignal extends EventTarget { if (!signalsArray.length) { return resultSi...
diff --git a/lib/internal/abort_controller.js b/lib/internal/abort_controller.js index 8ec9034a4f9352..4fbed3bfa7399a 100644 --- a/lib/internal/abort_controller.js +++ b/lib/internal/abort_controller.js @@ -259,14 +259,30 @@ class AbortSignal extends EventTarget { if (!signalsArray.length) { return resultSi...
[ "+ if (signal[kTimeout]) {", "+ const sourceSignal = sourceWeakRef.deref();", "+ );", "+ });" ]
[ 19, 78, 118, 119 ]
{ "additions": 67, "author": "gurgunday", "deletions": 0, "html_url": "https://github.com/nodejs/node/pull/57867", "issue_id": 57867, "merged_at": "2025-04-17T14:28:37Z", "omission_probability": 0.1, "pr_number": 57867, "repo": "nodejs/node", "title": "lib: fix AbortSignal.any() with timeout signals...
866
diff --git a/src/node_options.cc b/src/node_options.cc index f96f9d2de9718e..a6dc00d7d7213f 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -53,19 +53,19 @@ void DebugOptions::CheckOptions(std::vector<std::string>* errors, "`node --inspect-brk` instead."); } - using std::strin...
diff --git a/src/node_options.cc b/src/node_options.cc index f96f9d2de9718e..a6dc00d7d7213f 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -53,19 +53,19 @@ void DebugOptions::CheckOptions(std::vector<std::string>* errors, "`node --inspect-brk` instead."); - using std::string_view_...
[ "+ for (const auto& entry : entries) {", "+ [](auto& categories) -> std::set<std::string> {", "- }" ]
[ 16, 39, 80 ]
{ "additions": 11, "author": "anonrig", "deletions": 31, "html_url": "https://github.com/nodejs/node/pull/54990", "issue_id": 54990, "merged_at": "2025-02-10T17:53:12Z", "omission_probability": 0.1, "pr_number": 54990, "repo": "nodejs/node", "title": "src: replace splitstring with built-in", "tota...
867
diff --git a/doc/api/util.md b/doc/api/util.md index d7511bdadfd421..99079a89115ff8 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -436,7 +436,7 @@ corresponding argument. Supported specifiers are: * `%s`: `String` will be used to convert all values except `BigInt`, `Object` and `-0`. `BigInt` values will ...
diff --git a/doc/api/util.md b/doc/api/util.md index d7511bdadfd421..99079a89115ff8 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -436,7 +436,7 @@ corresponding argument. Supported specifiers are: * `%s`: `String` will be used to convert all values except `BigInt`, `Object` and `-0`. `BigInt` values will be...
[ "- // The object has a own `toString` property. Thus it's not not a built-in one.", "+ } else if (typeof value[SymbolToPrimitive] !== 'function') {", "+ } else if (ObjectPrototypeHasOwnProperty(value, SymbolToPrimitive)) {", "+ function hasToStringButNoToPrimitive() {}", "+ hasToStringButNoToPrimitive....
[ 34, 44, 46, 93, 95, 113, 117, 128, 132, 135 ]
{ "additions": 85, "author": "islandryu", "deletions": 14, "html_url": "https://github.com/nodejs/node/pull/57832", "issue_id": 57832, "merged_at": "2025-04-17T13:35:57Z", "omission_probability": 0.1, "pr_number": 57832, "repo": "nodejs/node", "title": "util: fix formatting of objects with built-in ...
868
diff --git a/lib/internal/crypto/random.js b/lib/internal/crypto/random.js index 80cf3224744ec7..a035dd265e05e0 100644 --- a/lib/internal/crypto/random.js +++ b/lib/internal/crypto/random.js @@ -57,6 +57,7 @@ const { isArrayBufferView, isAnyArrayBuffer, isTypedArray, + isFloat16Array, isFloat32Array, is...
diff --git a/lib/internal/crypto/random.js b/lib/internal/crypto/random.js index 80cf3224744ec7..a035dd265e05e0 100644 --- a/lib/internal/crypto/random.js +++ b/lib/internal/crypto/random.js @@ -57,6 +57,7 @@ const { isArrayBufferView, isAnyArrayBuffer, isTypedArray, isFloat32Array, isFloat64Array, } = ...
[ "+ isFloat16Array,", "+ isFloat16Array(data) ||", "- 'getRandomValues.any.js': {" ]
[ 8, 16, 28 ]
{ "additions": 4, "author": "LiviaMedeiros", "deletions": 8, "html_url": "https://github.com/nodejs/node/pull/57880", "issue_id": 57880, "merged_at": "2025-04-17T07:26:53Z", "omission_probability": 0.1, "pr_number": 57880, "repo": "nodejs/node", "title": "crypto: forbid passing `Float16Array` to `ge...
869
diff --git a/doc/api/util.md b/doc/api/util.md index 5c8fd8a074c878..ef11b744c5db12 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -3102,6 +3102,23 @@ types.isExternal(new String('foo')); // returns false For further information on `napi_create_external`, refer to [`napi_create_external()`][]. +### `util.typ...
diff --git a/doc/api/util.md b/doc/api/util.md index 5c8fd8a074c878..ef11b744c5db12 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -3102,6 +3102,23 @@ types.isExternal(new String('foo')); // returns false For further information on `napi_create_external`, refer to [`napi_create_external()`][]. +### `util.types...
[ "+// TODO(LiviaMedeiros): once `Float16Array` is unflagged in v8, remove `--js-float16array` above", "+ const stealthyFloat16Array =", "+ ]," ]
[ 58, 110, 147 ]
{ "additions": 44, "author": "LiviaMedeiros", "deletions": 2, "html_url": "https://github.com/nodejs/node/pull/57879", "issue_id": 57879, "merged_at": "2025-04-16T22:09:03Z", "omission_probability": 0.1, "pr_number": 57879, "repo": "nodejs/node", "title": "util: add `types.isFloat16Array()`", "tot...
870
diff --git a/src/node_process_methods.cc b/src/node_process_methods.cc index 3866c612600642..5c3505f25ab94f 100644 --- a/src/node_process_methods.cc +++ b/src/node_process_methods.cc @@ -50,6 +50,7 @@ using v8::HeapStatistics; using v8::Integer; using v8::Isolate; using v8::Local; +using v8::LocalVector; using v8::...
diff --git a/src/node_process_methods.cc b/src/node_process_methods.cc index 3866c612600642..5c3505f25ab94f 100644 --- a/src/node_process_methods.cc +++ b/src/node_process_methods.cc @@ -50,6 +50,7 @@ using v8::HeapStatistics; using v8::Integer; using v8::Isolate; using v8::Local; +using v8::LocalVector; using v8::...
[ "+ LocalVector<Value> handle_v(env->isolate());", "- FIXED_ONE_BYTE_STRING(env->isolate(), \"Immediate\"));", "+ for (uint32_t i = 0; i < env->immediate_info()->ref_count(); ++i) {", "+ resources_info.push_back(immediate_str);" ]
[ 26, 54, 57, 58 ]
{ "additions": 13, "author": "Aditi-1400", "deletions": 9, "html_url": "https://github.com/nodejs/node/pull/57646", "issue_id": 57646, "merged_at": "2025-04-16T16:59:07Z", "omission_probability": 0.1, "pr_number": 57646, "repo": "nodejs/node", "title": "Update std::vector<v8::Local<T>> to use v8::Lo...
871
diff --git a/src/README.md b/src/README.md index c8c647e872da3d..4471dd7721ad8c 100644 --- a/src/README.md +++ b/src/README.md @@ -151,6 +151,25 @@ is done executing. `Local` handles can only be allocated on the C++ stack. Most of the V8 API uses `Local` handles to work with JavaScript values or return them from func...
diff --git a/src/README.md b/src/README.md index c8c647e872da3d..4471dd7721ad8c 100644 --- a/src/README.md +++ b/src/README.md @@ -151,6 +151,25 @@ is done executing. `Local` handles can only be allocated on the C++ stack. Most of the V8 API uses `Local` handles to work with JavaScript values or return them from func...
[ "+ LocalVector<String> result(data->isolate(),", "- std::vector<Local<Object>> context_extensions," ]
[ 82, 98 ]
{ "additions": 57, "author": "Aditi-1400", "deletions": 29, "html_url": "https://github.com/nodejs/node/pull/57642", "issue_id": 57642, "merged_at": "2025-04-16T16:58:56Z", "omission_probability": 0.1, "pr_number": 57642, "repo": "nodejs/node", "title": "Update std::vector<v8::Local<T>> to use v8::L...
872
diff --git a/src/node_builtins.cc b/src/node_builtins.cc index d619379ad07df2..f7a6f84d5758fb 100644 --- a/src/node_builtins.cc +++ b/src/node_builtins.cc @@ -17,6 +17,7 @@ using v8::FunctionCallbackInfo; using v8::IntegrityLevel; using v8::Isolate; using v8::Local; +using v8::LocalVector; using v8::MaybeLocal; us...
diff --git a/src/node_builtins.cc b/src/node_builtins.cc index d619379ad07df2..f7a6f84d5758fb 100644 --- a/src/node_builtins.cc +++ b/src/node_builtins.cc @@ -17,6 +17,7 @@ using v8::FunctionCallbackInfo; using v8::IntegrityLevel; using v8::Isolate; using v8::Local; +using v8::LocalVector; using v8::MaybeLocal; us...
[]
[]
{ "additions": 6, "author": "Aditi-1400", "deletions": 5, "html_url": "https://github.com/nodejs/node/pull/57578", "issue_id": 57578, "merged_at": "2025-04-16T16:58:45Z", "omission_probability": 0.1, "pr_number": 57578, "repo": "nodejs/node", "title": "src: update std::vector<v8::Local<T>> to use v8...
873
diff --git a/lib/internal/test_runner/runner.js b/lib/internal/test_runner/runner.js index 733a745a494162..7943917a08840e 100644 --- a/lib/internal/test_runner/runner.js +++ b/lib/internal/test_runner/runner.js @@ -502,7 +502,10 @@ function watchFiles(testFiles, opts) { return; // Avoid rerunning files when fi...
diff --git a/lib/internal/test_runner/runner.js b/lib/internal/test_runner/runner.js index 733a745a494162..7943917a08840e 100644 --- a/lib/internal/test_runner/runner.js +++ b/lib/internal/test_runner/runner.js @@ -502,7 +502,10 @@ function watchFiles(testFiles, opts) { return; // Avoid rerunning files when fi...
[ "+ const testRuns = await testWatch({ file: 'test.js', fileToUpdate: 'test.js' });" ]
[ 55 ]
{ "additions": 25, "author": "pmarchini", "deletions": 1, "html_url": "https://github.com/nodejs/node/pull/57786", "issue_id": 57786, "merged_at": "2025-04-16T15:38:50Z", "omission_probability": 0.1, "pr_number": 57786, "repo": "nodejs/node", "title": "test_runner: recalculate run duration on watch ...
874
diff --git a/lib/internal/readline/interface.js b/lib/internal/readline/interface.js index fe89598c523da8..429aa41d4bfabf 100644 --- a/lib/internal/readline/interface.js +++ b/lib/internal/readline/interface.js @@ -467,9 +467,15 @@ class Interface extends InterfaceConstructor { } // Convert newlines to a consis...
diff --git a/lib/internal/readline/interface.js b/lib/internal/readline/interface.js index fe89598c523da8..429aa41d4bfabf 100644 --- a/lib/internal/readline/interface.js +++ b/lib/internal/readline/interface.js @@ -467,9 +467,15 @@ class Interface extends InterfaceConstructor { } // Convert newlines to a consiste...
[]
[]
{ "additions": 21, "author": "puskin94", "deletions": 23, "html_url": "https://github.com/nodejs/node/pull/57874", "issue_id": 57874, "merged_at": "2025-04-16T15:01:40Z", "omission_probability": 0.1, "pr_number": 57874, "repo": "nodejs/node", "title": "repl: fix multiline history editing string orde...
875
diff --git a/lib/internal/streams/end-of-stream.js b/lib/internal/streams/end-of-stream.js index c44f99e993ad5b..0db2d463b4c6d6 100644 --- a/lib/internal/streams/end-of-stream.js +++ b/lib/internal/streams/end-of-stream.js @@ -43,6 +43,9 @@ const { willEmitClose: _willEmitClose, kIsClosedPromise, } = require('in...
diff --git a/lib/internal/streams/end-of-stream.js b/lib/internal/streams/end-of-stream.js index c44f99e993ad5b..0db2d463b4c6d6 100644 --- a/lib/internal/streams/end-of-stream.js +++ b/lib/internal/streams/end-of-stream.js @@ -43,6 +43,9 @@ const { willEmitClose: _willEmitClose, kIsClosedPromise, } = require('in...
[ "+const readable = new Readable();" ]
[ 40 ]
{ "additions": 25, "author": "gurgunday", "deletions": 1, "html_url": "https://github.com/nodejs/node/pull/57865", "issue_id": 57865, "merged_at": "2025-04-16T09:27:38Z", "omission_probability": 0.1, "pr_number": 57865, "repo": "nodejs/node", "title": "stream: preserve asynclocalstorage context in f...
876
diff --git a/lib/internal/webidl.js b/lib/internal/webidl.js index 351c1398c6d49c..071e8b9967e03a 100644 --- a/lib/internal/webidl.js +++ b/lib/internal/webidl.js @@ -2,6 +2,7 @@ const { ArrayPrototypePush, + ArrayPrototypeToSorted, MathAbs, MathMax, MathMin, @@ -29,6 +30,15 @@ const { kEmptyObject } = ...
diff --git a/lib/internal/webidl.js b/lib/internal/webidl.js index 351c1398c6d49c..071e8b9967e03a 100644 --- a/lib/internal/webidl.js +++ b/lib/internal/webidl.js @@ -2,6 +2,7 @@ ArrayPrototypePush, + ArrayPrototypeToSorted, MathAbs, MathMax, MathMin, @@ -29,6 +30,15 @@ const { kEmptyObject } = require('in...
[ "-", "+// https://webidl.spec.whatwg.org/#js-dictionary", "+ return 0;", "+ jsMemberValue = undefined;", "+ const memberContext = opts.context ? `${key} in ${opts.context}` : `${key}`;", "+ const converter = member.converter;", "+ const idlMemberValue = converter(", "+...
[ 43, 78, 85, 107, 113, 114, 115, 130, 135, 142, 177, 192, 193, 232, 236 ]
{ "additions": 119, "author": "jazelly", "deletions": 35, "html_url": "https://github.com/nodejs/node/pull/55489", "issue_id": 55489, "merged_at": "2024-11-05T22:55:45Z", "omission_probability": 0.1, "pr_number": 55489, "repo": "nodejs/node", "title": "lib: implement webidl dictionary converter and ...
877
diff --git a/lib/internal/bootstrap/web/exposed-window-or-worker.js b/lib/internal/bootstrap/web/exposed-window-or-worker.js index d5d844b229003d..d7d9b60b1c8e94 100644 --- a/lib/internal/bootstrap/web/exposed-window-or-worker.js +++ b/lib/internal/bootstrap/web/exposed-window-or-worker.js @@ -38,8 +38,11 @@ const { }...
diff --git a/lib/internal/bootstrap/web/exposed-window-or-worker.js b/lib/internal/bootstrap/web/exposed-window-or-worker.js index d5d844b229003d..d7d9b60b1c8e94 100644 --- a/lib/internal/bootstrap/web/exposed-window-or-worker.js +++ b/lib/internal/bootstrap/web/exposed-window-or-worker.js @@ -38,8 +38,11 @@ const { }...
[ "+const {", "+ if (optionsType !== 'Undefined' && optionsType !== 'Null' && optionsType !== 'Object') {", "+ size_t length = arr->Length();", "+ transfer_list.AllocateSufficientStorage(length);", "+ for (const key in value) {", "+ });", "+ for (const key in value) {" ]
[ 90, 120, 184, 185, 222, 227, 228 ]
{ "additions": 89, "author": "jazelly", "deletions": 24, "html_url": "https://github.com/nodejs/node/pull/55317", "issue_id": 55317, "merged_at": "2024-10-13T18:11:21Z", "omission_probability": 0.1, "pr_number": 55317, "repo": "nodejs/node", "title": "lib: convert transfer sequence to array in js", ...
878
diff --git a/src/memory_tracker-inl.h b/src/memory_tracker-inl.h index c99ff8607100ba..31ed6fad98ccc8 100644 --- a/src/memory_tracker-inl.h +++ b/src/memory_tracker-inl.h @@ -297,6 +297,27 @@ void MemoryTracker::TrackInlineField(const MemoryRetainer* retainer, CurrentNode()->size_ -= retainer->SelfSize(); } +temp...
diff --git a/src/memory_tracker-inl.h b/src/memory_tracker-inl.h index c99ff8607100ba..31ed6fad98ccc8 100644 --- a/src/memory_tracker-inl.h +++ b/src/memory_tracker-inl.h @@ -297,6 +297,27 @@ void MemoryTracker::TrackInlineField(const MemoryRetainer* retainer, CurrentNode()->size_ -= retainer->SelfSize(); +inline vo...
[ "+ edge_name);", "+ MemoryRetainerTraits<T>::MemoryInfo(this, retainer);", "+ CurrentNode()->size_ -= MemoryRetainerTraits<T>::SelfSize(retainer);", "+ * static size_t SelfSize(const ExampleRetainer& value) {", "+struct MemoryRetainerTraits {};", "+ tracker->TrackField(\"pattern\", va...
[ 14, 15, 26, 55, 65, 121, 146, 166 ]
{ "additions": 123, "author": "legendecas", "deletions": 7, "html_url": "https://github.com/nodejs/node/pull/56881", "issue_id": 56881, "merged_at": "2025-02-04T17:07:12Z", "omission_probability": 0.1, "pr_number": 56881, "repo": "nodejs/node", "title": "src: add memory retainer traits for external ...
879
diff --git a/test/fixtures/wpt/README.md b/test/fixtures/wpt/README.md index 7b6b8c29ce3d12..0bd606e7223401 100644 --- a/test/fixtures/wpt/README.md +++ b/test/fixtures/wpt/README.md @@ -29,7 +29,7 @@ Last update: - resources: https://github.com/web-platform-tests/wpt/tree/1e140d63ec/resources - streams: https://gith...
diff --git a/test/fixtures/wpt/README.md b/test/fixtures/wpt/README.md index 7b6b8c29ce3d12..0bd606e7223401 100644 --- a/test/fixtures/wpt/README.md +++ b/test/fixtures/wpt/README.md @@ -29,7 +29,7 @@ Last update: - resources: https://github.com/web-platform-tests/wpt/tree/1e140d63ec/resources - streams: https://gith...
[ "+ \"pattern\": [{\"pathname\":\"test/:a\\uD801\\uDC50b\"}],", "+ \"commit\": \"ef6d83d789483763207af8cedcbf1f3c1317b981\"," ]
[ 65, 90 ]
{ "additions": 59, "author": "nodejs-github-bot", "deletions": 2, "html_url": "https://github.com/nodejs/node/pull/56984", "issue_id": 56984, "merged_at": "2025-02-12T00:32:08Z", "omission_probability": 0.1, "pr_number": 56984, "repo": "nodejs/node", "title": "test: update WPT for urlpattern to ef6d...
880
diff --git a/src/node_url_pattern.cc b/src/node_url_pattern.cc index 3d6340565d1e06..cbe1b473f0d54b 100644 --- a/src/node_url_pattern.cc +++ b/src/node_url_pattern.cc @@ -103,13 +103,14 @@ URLPatternRegexProvider::regex_search(std::string_view input, return std::nullopt; } + // V8 checks that the regex...
diff --git a/src/node_url_pattern.cc b/src/node_url_pattern.cc index 3d6340565d1e06..cbe1b473f0d54b 100644 --- a/src/node_url_pattern.cc +++ b/src/node_url_pattern.cc @@ -103,13 +103,14 @@ URLPatternRegexProvider::regex_search(std::string_view input, return std::nullopt; + DCHECK_IMPLIES(!entry->IsUndefined()...
[ "+ // V8 checks that the regexp exec result is one of the correct types.", "+require('../common');", "+throws(() => new URLPattern({}, '', 1), {" ]
[ 8, 39, 58 ]
{ "additions": 51, "author": "jasnell", "deletions": 3, "html_url": "https://github.com/nodejs/node/pull/56878", "issue_id": 56878, "merged_at": "2025-02-04T04:52:39Z", "omission_probability": 0.1, "pr_number": 56878, "repo": "nodejs/node", "title": "src,test: expand test coverage for urlpattern and...
881
diff --git a/benchmark/url/urlpattern-parse.js b/benchmark/url/urlpattern-parse.js new file mode 100644 index 00000000000000..65bfc90613006c --- /dev/null +++ b/benchmark/url/urlpattern-parse.js @@ -0,0 +1,28 @@ +'use strict'; +const common = require('../common.js'); +const { URLPattern } = require('url'); +const { ok ...
diff --git a/benchmark/url/urlpattern-parse.js b/benchmark/url/urlpattern-parse.js index 00000000000000..65bfc90613006c +++ b/benchmark/url/urlpattern-parse.js @@ -0,0 +1,28 @@ +const { ok } = require('assert'); + deadcode = new URLPattern(inputPattern); + ok(deadcode); diff --git a/benchmark/url/urlpattern-test.js...
[]
[]
{ "additions": 58, "author": "jasnell", "deletions": 0, "html_url": "https://github.com/nodejs/node/pull/56882", "issue_id": 56882, "merged_at": "2025-02-04T17:57:46Z", "omission_probability": 0.1, "pr_number": 56882, "repo": "nodejs/node", "title": "benchmarks: add simple parse and test benchmarks ...
882
diff --git a/src/node_url_pattern.cc b/src/node_url_pattern.cc index 3d6340565d1e06..8c09b3fbb6a492 100644 --- a/src/node_url_pattern.cc +++ b/src/node_url_pattern.cc @@ -26,6 +26,7 @@ using v8::Object; using v8::PropertyAttribute; using v8::ReadOnly; using v8::RegExp; +using v8::Signature; using v8::String; using...
diff --git a/src/node_url_pattern.cc b/src/node_url_pattern.cc index 3d6340565d1e06..8c09b3fbb6a492 100644 --- a/src/node_url_pattern.cc +++ b/src/node_url_pattern.cc @@ -26,6 +26,7 @@ using v8::Object; using v8::PropertyAttribute; using v8::ReadOnly; using v8::RegExp; +using v8::Signature; using v8::String; using...
[ "- FunctionTemplate::New(isolate, URLPattern::Pathname),", "+require('../common');", "+const { URLPattern } = require('url');", "+ 'port',", "+ 'hash'," ]
[ 63, 101, 103, 116, 119 ]
{ "additions": 63, "author": "jasnell", "deletions": 9, "html_url": "https://github.com/nodejs/node/pull/56877", "issue_id": 56877, "merged_at": "2025-02-04T03:34:31Z", "omission_probability": 0.1, "pr_number": 56877, "repo": "nodejs/node", "title": "src: prevent URLPattern property getters from cra...
883
diff --git a/deps/ada/ada.cpp b/deps/ada/ada.cpp index c9fa03b1a7b8f0..a60102854930be 100644 --- a/deps/ada/ada.cpp +++ b/deps/ada/ada.cpp @@ -1,4 +1,4 @@ -/* auto-generated on 2025-01-30 18:48:55 -0500. Do not edit! */ +/* auto-generated on 2025-02-11 09:47:50 -0500. Do not edit! */ /* begin file src/ada.cpp */ #inc...
diff --git a/deps/ada/ada.cpp b/deps/ada/ada.cpp index c9fa03b1a7b8f0..a60102854930be 100644 --- a/deps/ada/ada.cpp +++ b/deps/ada/ada.cpp /* begin file src/ada.cpp */ #include "ada.h" /* begin file src/checkers.cpp */ diff --git a/deps/ada/ada.h b/deps/ada/ada.h index c32e3cfaa03201..c997f0981ce36b 100644 --- a/dep...
[ "+// All provided strings must be valid UTF-8.", "+//", "- std::ranges::stable_sort(", "- params, [](const key_value_pair &lhs, const key_value_pair &rhs) {", "+ size_t i = 0, j = 0;", "+ (j < rhs.first.size() || low_surrogate2 != 0)) {", "+ low_surrogate1 = 0;", "+ ...
[ 50, 120, 210, 211, 217, 220, 225, 270, 285, 296 ]
{ "additions": 115, "author": "nodejs-github-bot", "deletions": 10, "html_url": "https://github.com/nodejs/node/pull/57083", "issue_id": 57083, "merged_at": "2025-02-20T18:10:42Z", "omission_probability": 0.1, "pr_number": 57083, "repo": "nodejs/node", "title": "deps: update ada to 3.1.0", "total_...
884
diff --git a/test/fixtures/wpt/README.md b/test/fixtures/wpt/README.md index e464af4932d4a1..a528d2035ccaf5 100644 --- a/test/fixtures/wpt/README.md +++ b/test/fixtures/wpt/README.md @@ -29,7 +29,7 @@ Last update: - resources: https://github.com/web-platform-tests/wpt/tree/1e140d63ec/resources - streams: https://gith...
diff --git a/test/fixtures/wpt/README.md b/test/fixtures/wpt/README.md index e464af4932d4a1..a528d2035ccaf5 100644 --- a/test/fixtures/wpt/README.md +++ b/test/fixtures/wpt/README.md @@ -29,7 +29,7 @@ Last update: - resources: https://github.com/web-platform-tests/wpt/tree/1e140d63ec/resources - streams: https://gith...
[]
[]
{ "additions": 45, "author": "nodejs-github-bot", "deletions": 22, "html_url": "https://github.com/nodejs/node/pull/57377", "issue_id": 57377, "merged_at": "2025-03-10T18:23:54Z", "omission_probability": 0.1, "pr_number": 57377, "repo": "nodejs/node", "title": "test: update WPT for urlpattern to 3b6...
885
diff --git a/doc/api/cli.md b/doc/api/cli.md index 91ab8eb351cb43..c4d3afc71aa24c 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -219,15 +219,8 @@ The initializer module also needs to be allowed. Consider the following example: ```console $ node --experimental-permission t.js -node:internal/modules/cjs/loader:...
diff --git a/doc/api/cli.md b/doc/api/cli.md index 91ab8eb351cb43..c4d3afc71aa24c 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -219,15 +219,8 @@ The initializer module also needs to be allowed. Consider the following example: $ node --experimental-permission t.js -node:internal/modules/cjs/loader:162 - at st...
[ "- at resolveMainPath (node:internal/modules/run_main:15:25)", "- at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:53:24)", "- ^", "+ if (insidePath && curPath && _stat(curPath) < 1) {", "+ fs.readdirSync(blockedFolder, { recursive: true });", "...
[ 15, 16, 45, 99, 143, 147, 192, 204, 205 ]
{ "additions": 93, "author": "RafaelGSS", "deletions": 52, "html_url": "https://github.com/nodejs/node/pull/55797", "issue_id": 55797, "merged_at": "2024-11-11T17:31:44Z", "omission_probability": 0.1, "pr_number": 55797, "repo": "nodejs/node", "title": "lib,permission: ignore internalModuleStat on m...
886
diff --git a/lib/internal/assert/assertion_error.js b/lib/internal/assert/assertion_error.js index ee376899d04d35..dd56811647e5bf 100644 --- a/lib/internal/assert/assertion_error.js +++ b/lib/internal/assert/assertion_error.js @@ -134,7 +134,14 @@ function getStackedDiff(actual, expected) { } function getSimpleDiff...
diff --git a/lib/internal/assert/assertion_error.js b/lib/internal/assert/assertion_error.js index ee376899d04d35..dd56811647e5bf 100644 --- a/lib/internal/assert/assertion_error.js +++ b/lib/internal/assert/assertion_error.js @@ -134,7 +134,14 @@ function getStackedDiff(actual, expected) { } function getSimpleDiff(o...
[ "+ if (typeof originalActual === 'string') {", "- '- false\\n'" ]
[ 11, 89 ]
{ "additions": 31, "author": "puskin94", "deletions": 16, "html_url": "https://github.com/nodejs/node/pull/55474", "issue_id": 55474, "merged_at": "2024-11-02T15:12:13Z", "omission_probability": 0.1, "pr_number": 55474, "repo": "nodejs/node", "title": "assert: fix the string length check for printin...