Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 06 Oct 21:01
· 71 commits to main since this release

πŸš€ Release @addon-core/browser v0.4.0 (2025-09-29)

✨ Features

  • commands: add onSpecificCommand listener with tab support (af2aca7)

    • Introduced a new onSpecificCommand method to handle specific command logic.
    • Included optional tab parameter to enhance callback functionality.
  • commands: fix import order and adjust onSpecificCommand typing (a46c703)

    • Reordered handleListener import for consistency across modules.
    • Refined onSpecificCommand type signature for better readability.
  • 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.json to reflect changes.
  • sidebar: add setIcon and clearBadgeText methods (eed6b3e)

  • tabs: convert promise chains to async/await and add new helper methods (d678a77)

    • Refactored findTab and findTabById to use async/await syntax for improved readability.
    • Added findTabByUrl to retrieve the first tab matching a specific URL.
    • Introduced openOrCreateTabByUrl to handle opening or creating a tab based on URL presence.
  • userScripts: refine typings and enhance method flexibility (21e4181)

    • Added UserScriptInjection and InjectionResult types for improved type safety.
    • Introduced executeUserScript method to simplify script execution handling.
    • Updated resetUserScriptsWorldConfigs to accept optional worldId for more flexibility.
    • Improved filtering logic in getUserScripts and unregisterUserScripts for better reusability.
    • Added isAvailableUserScripts method for checking userScripts API availability.
  • 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-it and release-it/conventional-changelog (9897c56)

    • Introduced release-it for automating versioning and publishing workflows.
    • Added release-it/conventional-changelog for generating changelogs using Conventional Commits.

πŸ› οΈ Refactoring

  • alarms: simplify alarms typing and update getAlarm return type (725b5d3)

    • Removed redundant type assertion in alarms function.
    • Updated getAlarm to explicitly return Promise<Alarm | undefined>.
  • downloads: reorder imports and update method typings (dd8c27b)

    • Adjusted handleListener import order for consistency.
    • Updated method return types, including getDownloadFileIcon and openDownload, for better precision.
    • Added typings refinements, such as template literal types for getDownloadState.
    • Reorganized comments to enhance code readability.
  • fileBrowserHandler: rename onExecute to onFileBrowserHandlerExecute (37dcd84)

  • history: reorder imports and update type definitions (37f90b1)

    • Adjusted handleListener import order for better modularity.
    • Renamed Url type to UrlDetails for improved clarity and specificity.
    • Simplified history function by removing redundant type assertion.
  • idle: reorder imports and update method typings (942ce72)

    • Adjusted handleListener import order for consistency.
    • Updated queryIdleState return type to use template literal type for improved precision.
    • Simplified the idle function by removing unnecessary type assertion.
  • notifications: rename isSupportNotifications to isAvailableNotifications (93a962a)

  • notifications: rename methods for consistency (1067e56)

    • Renamed getAllNotification to getAllNotifications.
    • Renamed clearAllNotification to clearAllNotifications.
  • notifications: reorder imports and optimize clearAllNotification (c2ad5c1)

    • Adjusted handleListener import order for consistency across modules.
    • Optimized clearAllNotification logic by using Promise.all to handle asynchronous operations.
  • 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 safeListener import order in webNavigation.ts and webRequest.ts for consistency.
    • Updated safeListener return type in utils.ts to use undefined instead of void.
  • replace @ts-ignore with @ts-expect-error and optimize imports (a4df181)

    • Replaced @ts-ignore with @ts-expect-error in env.ts for better type safety.
    • Optimized import order in multiple modules by reordering handleListener.
  • runtime: update import and improve type precision (3363c65)

    • Changed FirefoxRuntime import to use type for better readability and tree-shaking.
    • Refined RequestUpdateCheck.status to use a template literal type for enhanced precision.
  • sidebar: improve type safety and simplify API handling (b95cdc5)

    • Updated imports to use type keyword for better readability and tree-shaking.
    • Introduced sidePanel and sidebarAction helpers 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.
  • tabs: update method typings and reorder imports for consistency (fb8a64a)