---
title: "boa_engine 0.22.0 Breaking Changes on crates.io | Since.dev"
description: "What each boa_engine release removed, renamed or changed: 48 breaking changes in 1 version on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/boa_engine
last_updated: 2026-12-04
---

# boa_engine breaking changes

boa_engine 0.22.0 (August 28, 2026) is its newest release with breaking changes, 48 of them. The first: Signature changed boa_engine::class::Class::object_constructor. Every breaking API change we have recorded in boa_engine on crates.io: 48 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.22.0`, released August 28, 2026. [Source repository](https://github.com/boa-dev/boa)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

## boa_engine 0.22.0 breaking changes

boa_engine 0.22.0, released August 28, 2026: 48 breaking changes.

- **Signature changed** `boa_engine::class::Class::object_constructor`  

Was fn object_constructor(instance: &JsObject, args: &\[JsValue\], context: &mut Context) -> JsResult<()>; now fn object_constructor(instance: &JsObject\<Self>, args: &\[JsValue\], context: &mut Context) -> JsResult<()>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::context::Context::get_data`  

Was fn get_data\<T: NativeObject>(&self) -> Option<&T>; now fn get_data\<T: Any>(&self) -> Option<&T>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::context::Context::has_data`  

Was fn has_data\<T: NativeObject>(&self) -> bool; now fn has_data\<T: Any>(&self) -> bool. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::context::Context::insert_data`  

Was fn insert_data\<T: NativeObject>(&mut self, value: T) -> Option\<Box\<T>>; now fn insert_data\<T: Any>(&mut self, value: T) -> Option\<Box\<T>>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::context::Context::remove_data`  

Was fn remove_data\<T: NativeObject>(&mut self) -> Option\<Box\<T>>; now fn remove_data\<T: Any>(&mut self) -> Option\<Box\<T>>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::Context::get_data`  

Was fn get_data\<T: NativeObject>(&self) -> Option<&T>; now fn get_data\<T: Any>(&self) -> Option<&T>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::Context::has_data`  

Was fn has_data\<T: NativeObject>(&self) -> bool; now fn has_data\<T: Any>(&self) -> bool. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::context::HostHooks::call_job_callback`  

Was fn call_job_callback(&self, job: JobCallback, this: &JsValue, args: &\[JsValue\], context: &mut Context) -> JsResult\<JsValue>; now fn call_job_callback(&self, job: &JobCallback, this: &JsValue, args: &\[JsValue\], context: &mut Context) ->... [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::context::HostHooks::promise_rejection_tracker`  

Was fn promise_rejection_tracker(&self, \_promise: &JsObject, \_operation: OperationType, \_context: &mut Context); now fn promise_rejection_tracker(&self, \_promise: &JsObject\<Promise>, \_operation: OperationType, \_context: &mut Context). [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::Context::insert_data`  

Was fn insert_data\<T: NativeObject>(&mut self, value: T) -> Option\<Box\<T>>; now fn insert_data\<T: Any>(&mut self, value: T) -> Option\<Box\<T>>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::Context::remove_data`  

Was fn remove_data\<T: NativeObject>(&mut self) -> Option\<Box\<T>>; now fn remove_data\<T: Any>(&mut self) -> Option\<Box\<T>>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::error::JsNativeError::kind`  

Was kind: JsNativeErrorKind; now fn kind(&self) -> &JsNativeErrorKind. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::HostDefined`  

Was struct HostDefined; now struct HostDefined\<T: ?Sized = dyn NativeObject>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::HostDefined::has`  

Was fn has\<T: NativeObject>(&self) -> bool; now fn has\<U: 'static>(&self) -> bool. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::job::TimeoutJob::call`  

Was fn call(self, context: &mut Context) -> JsResult\<JsValue>; now fn call(mut self, context: &mut Context) -> JsResult\<JsValue>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::JsNativeError::kind`  

Was kind: JsNativeErrorKind; now fn kind(&self) -> &JsNativeErrorKind. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::Module::evaluate`  

Was fn evaluate(&self, context: &mut Context) -> JsPromise; now fn evaluate(&self, context: &mut Context) -> JsResult\<JsPromise>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::module::Module::evaluate`  

Was fn evaluate(&self, context: &mut Context) -> JsPromise; now fn evaluate(&self, context: &mut Context) -> JsResult\<JsPromise>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::module::ModuleLoader::init_import_meta`  

Was fn init_import_meta(self: Rc\<Self>, \_import_meta: &JsObject, \_module: &Module, \_context: &mut Context); now fn init_import_meta(self: Rc\<Self>, import_meta: &JsObject, module: &Module, context: &mut Context). [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::module::ModuleLoader::load_imported_module`  

Was async fn load_imported_module(self: Rc\<Self>, referrer: Referrer, specifier: JsString, context: &RefCell<&mut Context>) -> JsResult\<Module>; now async fn load_imported_module(self: Rc\<Self>, referrer: Referrer, request: ModuleRequest... [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsArray::new`  

Was fn new(context: &mut Context) -> Self; now fn new(context: &mut Context) -> JsResult\<Self>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsPromise::all`  

Was fn all\<I>(promises: I, context: &mut Context) -> Self where I: IntoIterator\<Item = Self>,; now fn all\<I>(promises: I, context: &mut Context) -> JsResult\<Self> where I: IntoIterator\<Item = Self>,. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsPromise::all_settled`  

Was fn all_settled\<I>(promises: I, context: &mut Context) -> Self where I: IntoIterator\<Item = Self>,; now fn all_settled\<I>(promises: I, context: &mut Context) -> JsResult\<Self> where I: IntoIterator\<Item = Self>,. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsPromise::any`  

Was fn any\<I>(promises: I, context: &mut Context) -> Self where I: IntoIterator\<Item = Self>,; now fn any\<I>(promises: I, context: &mut Context) -> JsResult\<Self> where I: IntoIterator\<Item = Self>,. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsPromise::catch`  

Was fn catch(&self, on_rejected: JsFunction, context: &mut Context) -> Self; now fn catch(&self, on_rejected: JsFunction, context: &mut Context) -> JsResult\<Self>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsPromise::finally`  

Was fn finally(&self, on_finally: JsFunction, context: &mut Context) -> Self; now fn finally(&self, on_finally: JsFunction, context: &mut Context) -> JsResult\<Self>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsPromise::from_result`  

Was fn from_result\<V: Into\<JsValue>, E: Into\<JsError>>(value: Result\<V, E>, context: &mut Context) -> Self; now fn from_result\<V: Into\<JsValue>, E: Into\<JsError>>(value: Result\<V, E>, context: &mut Context) -> JsResult\<Self>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsPromise::into_js_future`  

Was fn into_js_future(self, context: &mut Context) -> JsFuture; now fn into_js_future(self, context: &mut Context) -> JsResult\<JsFuture>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsPromise::new`  

Was fn new\<F>(executor: F, context: &mut Context) -> Self where F: FnOnce(&ResolvingFunctions, &mut Context) -> JsResult\<JsValue>,; now fn new\<F>(executor: F, context: &mut Context) -> JsResult\<Self> where F: FnOnce(&ResolvingFunctions... [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsPromise::race`  

Was fn race\<I>(promises: I, context: &mut Context) -> Self where I: IntoIterator\<Item = Self>,; now fn race\<I>(promises: I, context: &mut Context) -> JsResult\<Self> where I: IntoIterator\<Item = Self>,. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsPromise::reject`  

Was fn reject\<E: Into\<JsError>>(error: E, context: &mut Context) -> Self; now fn reject\<E: Into\<JsError>>(error: E, context: &mut Context) -> JsResult\<Self>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsPromise::resolve`  

Was fn resolve\<V: Into\<JsValue>>(value: V, context: &mut Context) -> Self; now fn resolve\<V: Into\<JsValue>>(value: V, context: &mut Context) -> JsResult\<Self>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsPromise::then`  

Was fn then(&self, on_fulfilled: Option\<JsFunction>, on_rejected: Option\<JsFunction>, context: &mut Context) -> Self; now fn then(&self, on_fulfilled: Option\<JsFunction>, on_rejected: Option\<JsFunction>, context: &mut Context) ->... [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsProxyBuilder::build`  

Was fn build(self, context: &mut Context) -> JsProxy; now fn build(self, context: &mut Context) -> JsResult\<JsProxy>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsProxyBuilder::build_revocable`  

Was fn build_revocable(self, context: &mut Context) -> JsRevocableProxy; now fn build_revocable(self, context: &mut Context) -> JsResult\<JsRevocableProxy>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsSet::clear`  

Was fn clear(&self, context: &mut Context) -> JsResult\<JsValue>; now fn clear(&self). [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsSet::delete`  

Was fn delete\<T>(&self, value: T, context: &mut Context) -> JsResult\<bool> where T: Into\<JsValue>,; now fn delete\<T>(&self, value: T) -> bool where T: Into\<JsValue>,. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsSet::from_object`  

Was fn from_object(object: JsObject) -> JsResult\<Self>; now fn from_object(object: JsObject) -> Result\<Self, JsObject>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsSet::has`  

Was fn has\<T>(&self, value: T, context: &mut Context) -> JsResult\<bool> where T: Into\<JsValue>,; now fn has\<T>(&self, value: T) -> bool where T: Into\<JsValue>,. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::object::builtins::JsSet::size`  

Was fn size(&self) -> JsResult\<usize>; now fn size(&self) -> usize. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::prelude::Context::get_data`  

Was fn get_data\<T: NativeObject>(&self) -> Option<&T>; now fn get_data\<T: Any>(&self) -> Option<&T>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::prelude::Context::has_data`  

Was fn has_data\<T: NativeObject>(&self) -> bool; now fn has_data\<T: Any>(&self) -> bool. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::prelude::Context::insert_data`  

Was fn insert_data\<T: NativeObject>(&mut self, value: T) -> Option\<Box\<T>>; now fn insert_data\<T: Any>(&mut self, value: T) -> Option\<Box\<T>>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::prelude::Context::remove_data`  

Was fn remove_data\<T: NativeObject>(&mut self) -> Option\<Box\<T>>; now fn remove_data\<T: Any>(&mut self) -> Option\<Box\<T>>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::prelude::HostDefined`  

Was struct HostDefined; now struct HostDefined\<T: ?Sized = dyn NativeObject>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::prelude::HostDefined::has`  

Was fn has\<T: NativeObject>(&self) -> bool; now fn has\<U: 'static>(&self) -> bool. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::prelude::JsNativeError::kind`  

Was kind: JsNativeErrorKind; now fn kind(&self) -> &JsNativeErrorKind. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)
- **Signature changed** `boa_engine::prelude::Module::evaluate`  

Was fn evaluate(&self, context: &mut Context) -> JsPromise; now fn evaluate(&self, context: &mut Context) -> JsResult\<JsPromise>. [crates.io](https://crates.io/crates/boa%5Fengine/0.22.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
