node-llama-cpp breaking changes
node-llama-cpp 3.0.0 (September 24, 2024) is its newest release with breaking changes, 86 of them. The first: Removed AbortError. Every breaking API change we have recorded in node-llama-cpp on npm: 98 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.22.4, released November 25, 2026.
Packages on npm run on Node.js. Node.js end of life dates.
- From 3.0.0-beta.1 to 3.0.0: 96 breaking changes in 4 versions.
node-llama-cpp 3.0.0 breaking changes
- Removed
AbortError
AbortError was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
ChatMLChatPromptWrapper
ChatMLChatPromptWrapper was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
ChatPromptWrapper
ChatPromptWrapper was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
ConversationInteraction
ConversationInteraction was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
EmptyChatPromptWrapper
EmptyChatPromptWrapper was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
FalconChatPromptWrapper
FalconChatPromptWrapper was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
GeneralChatPromptWrapper
GeneralChatPromptWrapper was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
getChatWrapperByBos
getChatWrapperByBos was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
getReleaseInfo
getReleaseInfo was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LLamaChatPromptOptions.grammar
LLamaChatPromptOptions.grammar was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LLamaChatPromptOptions.maxTokens
LLamaChatPromptOptions.maxTokens was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LLamaChatPromptOptions.onToken
LLamaChatPromptOptions.onToken was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LLamaChatPromptOptions.repeatPenalty
LLamaChatPromptOptions.repeatPenalty was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LLamaChatPromptOptions.signal
LLamaChatPromptOptions.signal was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LLamaChatPromptOptions.temperature
LLamaChatPromptOptions.temperature was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LLamaChatPromptOptions.topK
LLamaChatPromptOptions.topK was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LLamaChatPromptOptions.topP
LLamaChatPromptOptions.topP was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LLamaChatPromptOptions.trimWhitespaceSuffix
LLamaChatPromptOptions.trimWhitespaceSuffix was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaChatPromptWrapper
LlamaChatPromptWrapper was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaChatSession.init
LlamaChatSession.init was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaChatSession.initialized
LlamaChatSession.initialized was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaChatSessionOptions.context
LlamaChatSessionOptions.context was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaChatSessionOptions.conversationHistory
LlamaChatSessionOptions.conversationHistory was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaChatSessionOptions.printLLamaSystemInfo
LlamaChatSessionOptions.printLLamaSystemInfo was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaChatSessionOptions.promptWrapper
LlamaChatSessionOptions.promptWrapper was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContext.constructor
new LlamaContext() was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContext.decode
LlamaContext.decode was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContext.encode
LlamaContext.encode was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContext.evaluate
LlamaContext.evaluate was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContext.getBosString
LlamaContext.getBosString was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContext.getBosToken
LlamaContext.getBosToken was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContext.getContextSize
LlamaContext.getContextSize was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContext.getEosString
LlamaContext.getEosString was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContext.getEosToken
LlamaContext.getEosToken was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContext.getNlString
LlamaContext.getNlString was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContext.getNlToken
LlamaContext.getNlToken was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContext.prependBos
LlamaContext.prependBos was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContextOptions.embedding
LlamaContextOptions.embedding was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContextOptions.grammar
LlamaContextOptions.grammar was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContextOptions.logitsAll
LlamaContextOptions.logitsAll was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContextOptions.model
LlamaContextOptions.model was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContextOptions.prependBos
LlamaContextOptions.prependBos was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContextOptions.seed
LlamaContextOptions.seed was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaContextRepeatPenalty
LlamaContextRepeatPenalty was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaGrammar.stopStrings
LlamaGrammar.stopStrings was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaGrammarOptions.printGrammar
LlamaGrammarOptions.printGrammar was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaGrammarOptions.stopStrings
LlamaGrammarOptions.stopStrings was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaModel.constructor
new LlamaModel() was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaModel.systemInfo
LlamaModel.systemInfo was removed in node-llama-cpp 3.0.0 npmjs.com - Removed
LlamaModelOptions.batchSize
LlamaModelOptions.batchSize was removed in node-llama-cpp 3.0.0 npmjs.com
And 36 more in this version. Sign up to see every change
node-llama-cpp 3.0.0-beta.45 breaking changes
- Renamed
build
The build command is now a subcommand of source. Run it as source build. github.com - Renamed
clear
The clear command is now a subcommand of source. Run it as source clear. github.com - Renamed
download
The download command is now a subcommand of source. Run it as source download. github.com - Default changed
autoDisposeSequence
Sequences are no longer disposed automatically by default. Dispose them yourself, or set autoDisposeSequence explicitly to keep the old behavior. github.com - Default changed
threads
The default value for threads changed. Set threads explicitly if you depend on the old default. github.com - Signature changed
LlamaEmbedding
LlamaEmbedding is now an object instead of its previous form, so code that uses it must be updated. github.com - Signature changed
seed
The seed option is now passed at the prompt level rather than where it was before. Update calls that set seed. github.com - Signature changed
TokenBias
The TokenBias API was simplified, so code that builds token biases must be updated to the new form. github.com
node-llama-cpp 3.0.0-beta.39 breaking changes
- Behavior changed
LoRA
LoRA adapters are now used on a context rather than on a model. Code that applies LoRA to a model must move that call to the context. github.com
node-llama-cpp 3.0.0-beta.17 breaking changes
- Behavior changed
model.detokenize
Adds an optional specialTokens parameter; existing calls keep working but special token output may differ. github.com
node-llama-cpp 3.0.0-beta.1 breaking changes
- Removed
The API was completely rewritten, so code written for v2 will not work and must be migrated to the new API; docs were to follow before stable release. github.com - Behavior changed
Batching is now handled automatically, which may change how concurrent requests are processed. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.