v0.3.0
π Release @addon-core/browser v0.3.0 (2026-02-15)
β¨ Features
- contextMenus: add
createOrUpdateContextMenuand refactor promise logic (f177229)
π Bug Fixed
- browser: correctly return the appropriate WebExtension API (2a6f8fd)
π€ CI
-
release: update release workflow and npm configuration (4d4cebf)
-
remove redundant
NODE_OPTIONSfor tests (63252fa)
π§ͺ Tests
- utils: add comprehensive unit tests for utility functions (2e17708)
π§Ή Chores
-
husky: simplify pre-commit hook and refine npm scripts (bd45e51)
-
husky: update pre-push hook to run full tests instead of CI tests (4007f92)
-
package.json: update description and adjust author metadata (d5f9816)
π οΈ Refactoring
-
replace promise logic with
callWithPromise(f7fb1f4)Refactored repetitive promise implementations in webNavigation, tabs, sidebar,
and scripting modules using thecallWithPromiseutility.
RemovedthrowRuntimeErrorcalls where applicable.
This improves code readability, reduces duplication,
and aligns with ongoing refactoring efforts. -
replace promise logic with
callWithPromise(fad82e4)cookies, downloads, documentScan
-
replace repetitive promise logic with
callWithPromise(ffef103)Replaced custom promise implementations in offscreen, management, history,
notifications, i18n, extension, and idle modules with thecallWithPromiseutility.
This change reduces redundancy, enhances code maintainability, and aligns with
recent refactoring efforts. -
replace repetitive promise logic with
callWithPromise(72f8901)alarms, browsingData, audio, commands
-
utils: consolidate promise-based utility functions across modules (ae5ca3d)
Converted repetitive promise logic to a reusable
callWithPromiseutility,
reducing redundancy and improving maintainability.
Replaced scatteredthrowRuntimeErrorcalls with centralized implementation.
Updated all affected modules. -
utils: enhance
callWithPromiseto support promise-returning executors (f890de4)
π Contributors
- Anjey Tsibylskij (@atldays) β commits: 15
- Addon Stack (@addon-stack) β commits: 2