Skip to content

build(deps-dev): bump follow-redirects from 1.15.11 to 1.16.0#437

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/follow-redirects-1.16.0
Open

build(deps-dev): bump follow-redirects from 1.15.11 to 1.16.0#437
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/follow-redirects-1.16.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 15, 2026

Bumps follow-redirects from 1.15.11 to 1.16.0.

Commits
  • 0c23a22 Release version 1.16.0 of the npm package.
  • 844c4d3 Add sensitiveHeaders option.
  • 5e8b8d0 ci: add Node.js 24.x to the CI matrix
  • 7953e22 ci: upgrade GitHub Actions to use setup-node@v6 and checkout@v6
  • 86dc1f8 Sanitizing input.
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 15, 2026
@ManiruzzamanAkash ManiruzzamanAkash force-pushed the dependabot/npm_and_yarn/follow-redirects-1.16.0 branch from 6b441ed to 6f068c2 Compare May 14, 2026 03:53
Comment thread .storybook/main.ts
@@ -1,76 +1,76 @@
// This file has been automatically migrated to valid ESM format by Storybook.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: The use of @chromatic-com/storybook as an addon may expose sensitive data if it's not properly configured. Ensure that any environment variables or sensitive configurations are adequately protected.

Why: Any misconfiguration with addons that manage or utilize sensitive data could lead to leaks or security vulnerabilities, especially if this configuration is used in a public environment.

How: Review the documentation for @chromatic-com/storybook to ensure correct usage patterns and see if there are best practices regarding security and sensitive data handling.

Comment thread .storybook/main.ts
});
},
};
export default config;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: The configuration structure appears complex with many dependencies. If possible, consider validating configuration structure and settings within a separate module or file to reduce complexity of the main configuration file.

Why: Keeping configuration management simpler can lead to easier debugging and understanding of the configuration, improving maintainability and reducing the potential for errors.

How: Create a dedicated configuration management utility or set of functions that can abstract complex configuration operations away from this main configuration file.

Comment thread .storybook/main.ts
'vite:dts'
);
}),
];
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: When filtering plugins in the mergeConfig function, ensure that you're not accidentally removing other necessary plugins during the filtering process.

Why: Misfiltering could lead to unintended consequences, such as breaking features or reducing the functionality of Storybook. It’s crucial to ensure all necessary plugins remain intact.

How: Add checks or logging to verify the filtered plugins before applying them, or consider more explicit filtering logic that makes the intentions clear.

Comment thread .storybook/preview.tsx
color: /(background|color)$/i,
date: /Date$/i,
},
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: Disabling color contrast checks may lead to accessibility issues.

Why: It's important to ensure that users with visual impairments can perceive content without significant difficulty. Disabling color contrast checks could violate accessibility standards and negatively affect user experience.

How: Consider setting up an alternative approach to manage color contrast instead of globally disabling it. If certain colors do not meet accessibility standards, ensure there's a plan to address these issues for components either through design or CSS adjustments.

Comment thread .storybook/preview.tsx
@@ -1,30 +1,30 @@
import React from 'react';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: Ensure proper import structure.

Why: Maintaining a consistent import structure aids in readability and maintainability. This should include grouping imports from the same package together.

How: You can structure your imports as follows: 1. Standard react imports. 2. Package imports. 3. Local imports. This practice helps in understanding dependencies quickly.

Comment thread .storybook/preview.tsx
<Story />
</div>
),
],
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: No substantial performance concerns were found, but ensure to monitor the use of decorators.

Why: While decorators provide powerful methods for modifying stories, excessive or inefficient decorators may create performance bottlenecks in large Storybook projects.

How: Evaluate the complexity of the decorators used and ensure they are as efficient as possible. Simplicity may yield better rendering performance.

Comment thread .storybook/test-runner.js
@@ -1,30 +1,30 @@
import { getStoryContext } from '@storybook/test-runner';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: Ensure the dependencies used are up to date, and check versions for security flaws.

Why: Using outdated dependencies may expose the application to known vulnerabilities. It's important to regularly check for security patches in libraries such as '@storybook/test-runner' and 'axe-playwright'.

How: Regularly run security audits using npm audit or similar tools to identify vulnerabilities, and check the changelogs of the libraries you are using.

Comment thread .storybook/test-runner.js
},
async postVisit(page, context) {
// Get the entire context of a story, including parameters, args, argTypes, etc.
const storyContext = await getStoryContext(page, context);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: Consider adding error handling for the asynchronous operations.

Why: In a production environment, failures in API calls or Axe configurations could lead to a complete breakdown of the a11y checks, which may remain unnoticed if not handled gracefully.

How: Wrap the async calls in try-catch blocks and log errors or handle them accordingly:

try {
	await injectAxe(page);
} catch (error) {
	console.error('Error injecting Axe:', error);
}

Comment thread .storybook/test-runner.js
return;
}
const element =
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: The checks for storyContext.parameters?.a11y should be more explicit to enhance clarity and ensure objects are defined before accessing properties.

Why: Using optional chaining (?.) is a good practice, but in complex structures, it may hide deeper issues where parameters are not set, leading to misunderstandings.

How: Consider doing a more thorough check to confirm the structure:

if (storyContext.parameters && storyContext.parameters.a11y) {
	// Proceed with your logic
}

Comment thread .storybook/test-runner.js
});
},
};
import { getStoryContext } from '@storybook/test-runner';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: Ensure that the performance of the a11y checks does not hinder the testing flow.

Why: Using powerful checks on lengthy pages/components might slow down tests significantly, affecting the developer experience and CI/CD pipelines.

How: Profile the a11y checks to find bottlenecks. If performance issues arise, consider restricting checks to specific areas of the DOM where necessary or implementing throttling.

@@ -1,3 +1,3 @@
// Project annotations (decorators, parameters) from preview.tsx are
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: The comments contain carriage return characters which are unnecessary and could lead to inconsistent line endings on different operating systems.

Why: Inconsistent line endings can cause issues when sharing code across different systems or when using version control, potentially complicating merges and diffs. It's generally preferable to maintain a uniform line ending convention (LF or CRLF) throughout the codebase.

How: Consider revising the comments by removing the characters. Ensure that your development environment is configured to use a consistent line ending format for the project (preferably LF for cross-platform compatibility).

@@ -1,3 +1,3 @@
// Project annotations (decorators, parameters) from preview.tsx are
// automatically applied by @storybook/addon-vitest since Storybook 10.3.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: Similar to the first comment, the second comment also includes unnecessary carriage return characters .

Why: Having extra carriage return characters can lead to confusion and make the comments appear cluttered, detracting from code readability.

How: Remove the characters from the second comment to clean up the code and adhere to consistent formatting best practices.

@@ -1,3 +1,3 @@
// Project annotations (decorators, parameters) from preview.tsx are
// automatically applied by @storybook/addon-vitest since Storybook 10.3.
// Add any custom global test setup here if needed.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: The third comment mirrors the same issue with carriage return characters being present.

Why: Consistency in code formatting is key to maintaining readability and hygiene in the codebase. This minor issue could propagate if not corrected.

How: Delete the character from the end of the third comment, ensuring it follows the same line ending style as the rest of the file.

Comment thread component-data.json
"extractedAt": "2025-06-05T10:11:20.250Z",
"componentsWithSubcomponents": 15
}
{
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: The component-data.json file includes a large set of changes, but it's important to ensure no sensitive data is being inadvertently exposed or mishandled in any of these additions.

Why: If sensitive data (like API keys, personal user data, etc.) is accidentally included in JSON files or configuration files, it can lead to serious security vulnerabilities when the code is deployed or shared in public repositories.

How: Please review the additions to ensure no sensitive information is included. If any such information is present, make sure to securely manage it (e.g., using environment variables or secrets management tools).

Comment thread component-data.json
@@ -1,3069 +1,3069 @@
{
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: The change involves a substantial number of additions and deletions (3068 each). This raises concerns about the maintainability and readability of the file due to its size and complexity.

Why: Large JSON files can be difficult to manage, understand, and test, particularly under collaborative settings where multiple contributors are involved. It can also lead to performance issues when loading or parsing the file in applications.

How: Consider breaking down the JSON file into smaller, more manageable sections or modular files. This approach would ease the burden on future developers who need to interact with this data and improve loading times for the application.

Comment thread component-data.json
"required": false,
"description": "Custom class names for additional styling"
},
"disabled": {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: Ensure that the integrity and consistency of the JSON structure remain intact with this significant refactoring. There could be syntax errors or schema issues introduced during the extensive changes.

Why: Invalid JSON structure can lead to runtime errors, which could prevent the application or components using this data from functioning properly. Error handling mechanisms may not catch these during development if not properly validated.

How: Consider running the modified JSON file through a JSON validator or linter tool post-editing before finalizing the commit. It’s also advisable to set up unit tests around components that consume this JSON data to ensure they handle it correctly.

Comment thread component-data.json
"required": true,
"description": "Children components"
},
"type": {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What: The added sensitiveHeaders option should be thoroughly vetted for security implications.

Why: If this option inadvertently exposes headers containing sensitive information in requests or responses, it can lead to data leaks or unauthorized access to services or data endpoints.

How: Review the documentation of the sensitiveHeaders feature from the follow-redirects library to ensure proper implementation. Additionally, implement checks to validate the proper configuration of these headers prior to use.

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

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants