v0.2.0
π Release @addon-core/browser v0.4.0 (2025-09-29)
β¨ Features
-
commands: add
onSpecificCommandlistener with tab support (af2aca7)- Introduced a new
onSpecificCommandmethod to handle specific command logic. - Included optional tab parameter to enhance callback functionality.
- Introduced a new
-
commands: fix import order and adjust
onSpecificCommandtyping (a46c703)- Reordered
handleListenerimport for consistency across modules. - Refined
onSpecificCommandtype signature for better readability.
- Reordered
-
migrate to Biome formatter, enhance linting, and setup Husky hooks (57cd2f2)
- Replaced Prettier with Biome for formatting and linting configuration.
- Added Husky hooks (
commit-msg,pre-commit,pre-push) for enhanced Git workflows. - Updated project metadata in
package.json,
including repository details, contributors, and scripts. - Refined dependencies and updated
package-lock.jsonto reflect changes.
-
sidebar: add setIcon and clearBadgeText methods (eed6b3e)
-
tabs: convert promise chains to async/await and add new helper methods (d678a77)
- Refactored
findTabandfindTabByIdto use async/await syntax for improved readability. - Added
findTabByUrlto retrieve the first tab matching a specific URL. - Introduced
openOrCreateTabByUrlto handle opening or creating a tab based on URL presence.
- Refactored
-
userScripts: refine typings and enhance method flexibility (21e4181)
- Added
UserScriptInjectionandInjectionResulttypes for improved type safety. - Introduced
executeUserScriptmethod to simplify script execution handling. - Updated
resetUserScriptsWorldConfigsto accept optionalworldIdfor more flexibility. - Improved filtering logic in
getUserScriptsandunregisterUserScriptsfor better reusability. - Added
isAvailableUserScriptsmethod for checking userScripts API availability.
- Added
-
windows: add windows API (fc64cd1)
π Bug Fixed
-
scripting: remove redundant async keyword in Promise executor (83044d2)
-
update npm publish args for public access (61a0676)
π€ CI
-
add
release-itandrelease-it/conventional-changelog(9897c56)- Introduced
release-itfor automating versioning and publishing workflows. - Added
release-it/conventional-changelogfor generating changelogs using Conventional Commits.
- Introduced
π οΈ Refactoring
-
alarms: simplify alarms typing and update
getAlarmreturn type (725b5d3)- Removed redundant type assertion in
alarmsfunction. - Updated
getAlarmto explicitly returnPromise<Alarm | undefined>.
- Removed redundant type assertion in
-
downloads: reorder imports and update method typings (dd8c27b)
- Adjusted
handleListenerimport order for consistency. - Updated method return types, including
getDownloadFileIconandopenDownload, for better precision. - Added typings refinements, such as template literal types for
getDownloadState. - Reorganized comments to enhance code readability.
- Adjusted
-
fileBrowserHandler: rename
onExecutetoonFileBrowserHandlerExecute(37dcd84) -
history: reorder imports and update type definitions (37f90b1)
- Adjusted
handleListenerimport order for better modularity. - Renamed
Urltype toUrlDetailsfor improved clarity and specificity. - Simplified
historyfunction by removing redundant type assertion.
- Adjusted
-
idle: reorder imports and update method typings (942ce72)
- Adjusted
handleListenerimport order for consistency. - Updated
queryIdleStatereturn type to use template literal type for improved precision. - Simplified the
idlefunction by removing unnecessary type assertion.
- Adjusted
-
notifications: rename
isSupportNotificationstoisAvailableNotifications(93a962a) -
notifications: rename methods for consistency (1067e56)
- Renamed
getAllNotificationtogetAllNotifications. - Renamed
clearAllNotificationtoclearAllNotifications.
- Renamed
-
notifications: reorder imports and optimize clearAllNotification (c2ad5c1)
- Adjusted
handleListenerimport order for consistency across modules. - Optimized
clearAllNotificationlogic by usingPromise.allto handle asynchronous operations.
- Adjusted
-
remove fileBrowserHandler export and related implementation (03fff5c)
-
remove redundant type assertions in API modules (c696ef9)
- Simplified multiple API modules by removing unnecessary type assertions.
- Affected modules include
documentScan,sidebar,contextMenus,browsingData, and others.
-
reorder imports and refine typings (45de7cc)
- Adjusted
safeListenerimport order inwebNavigation.tsandwebRequest.tsfor consistency. - Updated
safeListenerreturn type inutils.tsto useundefinedinstead ofvoid.
- Adjusted
-
replace
@ts-ignorewith@ts-expect-errorand optimize imports (a4df181)- Replaced
@ts-ignorewith@ts-expect-errorinenv.tsfor better type safety. - Optimized import order in multiple modules by reordering
handleListener.
- Replaced
-
runtime: update import and improve type precision (3363c65)
- Changed
FirefoxRuntimeimport to usetypefor better readability and tree-shaking. - Refined
RequestUpdateCheck.statusto use a template literal type for enhanced precision.
- Changed
-
sidebar: improve type safety and simplify API handling (b95cdc5)
- Updated imports to use
typekeyword for better readability and tree-shaking. - Introduced
sidePanelandsidebarActionhelpers to simplify API availability checks. - Replaced redundant function calls with variable assignments for reuse.
- Enhanced error and warning messages for unsupported browser features.
- Streamlined Promise logic by reducing duplicate statements and improving clarity.
- Updated imports to use
-
tabs: update method typings and reorder imports for consistency (fb8a64a)