fix: suppress error message in non-development environments#69
Merged
Harshi-Shah-CS merged 1 commit intodevelopmentfrom Nov 5, 2025
Merged
fix: suppress error message in non-development environments#69Harshi-Shah-CS merged 1 commit intodevelopmentfrom
Harshi-Shah-CS merged 1 commit intodevelopmentfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades Apollo Client from v3.11.8 to v3.14.0 and implements console suppression for Apollo-related errors and warnings in non-development environments. The changes help reduce noise in production logs by filtering out Apollo Client internal warnings while preserving application-level logging.
- Upgraded @apollo/client dependency to version 3.14.0
- Added console suppression logic for Apollo-related messages in non-development environments
- Introduced
withDeprecationsDisabledhelper method to handle deprecation warnings during watchQuery operations
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Updates @apollo/client dependency from ^3.11.8 to ^3.14.0 |
| package-lock.json | Reflects the updated @apollo/client version and integrity hash |
| src/util/apollo-client.ts | Adds console suppression logic and exports isNotDevelopment flag |
| src/util/logs-polling-utilities.ts | Implements withDeprecationsDisabled wrapper for watchQuery calls to suppress deprecation warnings |
| test/unit/util/apollo-client.test.ts | Adds comprehensive tests for console suppression behavior |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dhruvparekh12
previously approved these changes
Nov 5, 2025
0202733 to
3050b9f
Compare
3050b9f to
df7a271
Compare
Chhavi-Mandowara
approved these changes
Nov 5, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix: suppress error message in non-development environments