Skip to content

fix: Deprecated useAppConfig in favour of getAppConfig#2487

Open
fkatsuhiro wants to merge 2 commits into
wxt-dev:mainfrom
fkatsuhiro:feat/deprecated-useAppConfig
Open

fix: Deprecated useAppConfig in favour of getAppConfig#2487
fkatsuhiro wants to merge 2 commits into
wxt-dev:mainfrom
fkatsuhiro:feat/deprecated-useAppConfig

Conversation

@fkatsuhiro

Copy link
Copy Markdown

Overview

Follow up to #1911. This PR marks the old useAppConfig function as deprecated to prepare for its complete removal in v1.0.

Since getAppConfig has already been introduced as an alias in #2144, this change ensures users are properly warned to migrate their code before the v1.0 major release.

  • Added @deprecated JSDoc tag to useAppConfig to display linting warnings and strikethroughs in IDEs.
  • Added a runtime deprecation warning using console.warn (omitted in production environments).

Manual Testing

  • A warning for the deprecation is displayed in the editer
  • In documentation, add the deprecation item in useAppConfig page
スクリーンショット 2026-07-06 1 29 54

Related Issue

This PR fixes #2145

@fkatsuhiro fkatsuhiro requested a review from aklinker1 as a code owner July 5, 2026 16:31
@netlify

netlify Bot commented Jul 5, 2026

Copy link
Copy Markdown

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 66dbbb9
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6a4a9690e4e2b900084da852
😎 Deploy Preview https://deploy-preview-2487--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the pkg/wxt Includes changes to the `packages/wxt` directory label Jul 5, 2026
@nishu-murmu nishu-murmu changed the title fix: Deprecated useAppConfig in favior of getAppConfig fix: Deprecated useAppConfig in favour of getAppConfig Jul 5, 2026
Updated logger usage to use wxt.logger instead of logger.

@nishu-murmu nishu-murmu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fkatsuhiro
Use wxt logger instead of consola logger.

@codecov

codecov Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 79.43%. Comparing base (40c6c19) to head (66dbbb9).

Files with missing lines Patch % Lines
packages/wxt/src/utils/app-config.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2487      +/-   ##
==========================================
+ Coverage   79.32%   79.43%   +0.10%     
==========================================
  Files         134      134              
  Lines        4005     4006       +1     
  Branches      910      910              
==========================================
+ Hits         3177     3182       +5     
+ Misses        736      734       -2     
+ Partials       92       90       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fkatsuhiro

Copy link
Copy Markdown
Author

@fkatsuhiro Use wxt logger instead of consola logger.

Thank you for your revewing and updating!
Noted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/wxt Includes changes to the `packages/wxt` directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate useAppConfig → getAppConfig

2 participants