Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update peerdependency axios to ^0.28.0 [security] #45

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 6, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
axios (source) ^0.27.2 -> ^0.28.0 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2023-45857

An issue discovered in Axios 0.8.1 through 1.5.1 inadvertently reveals the confidential XSRF-TOKEN stored in cookies by including it in the HTTP header X-XSRF-TOKEN for every request made to any host allowing attackers to view sensitive information.


Release Notes

axios/axios (axios)

v0.28.0

Compare Source

Release notes:

Bug Fixes
Backports from v1.x:
  • Allow null indexes on formSerializer and paramsSerializer v0.x (#​4961)
  • Fixing content-type header repeated #​4745
  • Fixed timeout error message for HTTP 4738
  • Added axios.formToJSON method (#​4735)
  • URL params serializer (#​4734)
  • Fixed toFormData Blob issue on node>v17 #​4728
  • Adding types for progress event callbacks #​4675
  • Fixed max body length defaults #​4731
  • Added data URL support for node.js (#​4725)
  • Added isCancel type assert (#​4293)
  • Added the ability for the url-encoded-form serializer to respect the formSerializer config (#​4721)
  • Add string[] to AxiosRequestHeaders type (#​4322)
  • Allow type definition for axios instance methods (#​4224)
  • Fixed AxiosError stack capturing; (#​4718)
  • Fixed AxiosError status code type; (#​4717)
  • Adding Canceler parameters config and request (#​4711)
  • fix(types): allow to specify partial default headers for instance creation (#​4185)
  • Added blob to the list of protocols supported by the browser (#​4678)
  • Fixing Z_BUF_ERROR when no content (#​4701)
  • Fixed race condition on immediate requests cancellation (#​4261)
  • Added a clear() function to the request and response interceptors object so a user can ensure that all interceptors have been removed from an Axios instance https://github.com/axios/axios/pull/4248
  • Added generic AxiosAbortSignal TS interface to avoid importing AbortController polyfill (#​4229)
  • Fix TS definition for AxiosRequestTransformer (#​4201)
  • Use type alias instead of interface for AxiosPromise (#​4505)
  • Include request and config when creating a CanceledError instance (#​4659)
  • Added generic TS types for the exposed toFormData helper (#​4668)
  • Optimized the code that checks cancellation (#​4587)
  • Replaced webpack with rollup (#​4596)
  • Added stack trace to AxiosError (#​4624)
  • Updated AxiosError.config to be optional in the type definition (#​4665)
  • Removed incorrect argument for NetworkError constructor (#​4656)

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies label Aug 6, 2024
Copy link

changeset-bot bot commented Aug 6, 2024

⚠️ No Changeset found

Latest commit: f8cdbca

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

coderabbitai bot commented Aug 6, 2024

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

This update primarily involves an enhancement to the peerDependencies in the package.json file, specifically upgrading the axios package from version ^0.27.2 to ^0.28.0. This change aims to incorporate improvements, bug fixes, or new features provided by the newer version. Overall, the structure and other dependencies in package.json remain unchanged.

Changes

File Change Summary
package.json Updated peerDependencies: axios from ^0.27.2 to ^0.28.0

Poem

🐰 In the garden of code, a change has been made,
Upgrading the axios, a bright new cascade.
With fixes and features, it hops up with glee,
Bringing joy to developers, as happy as me!
Let's dance with the bytes, let the errors take flight,
For a smoother tomorrow, our code shines so bright! ✨


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between a473893 and c2f985c.

Files selected for processing (1)
  • package.json (1 hunks)
Additional comments not posted (1)
package.json (1)

54-55: LGTM! But verify for breaking changes.

The update to axios version ^0.28.0 addresses a security vulnerability and includes several improvements.

However, ensure that this update does not introduce breaking changes in the codebase.

Verification successful

Verification Successful: No Breaking Changes Found

The update to axios version ^0.28.0 does not introduce breaking changes in the codebase. The post method used in the code remains compatible with the new version.

  • test/index.test.js: Mocking axios.post
  • src/index.js: Using axios.post to make a POST request
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the update to axios version ^0.28.0 does not introduce breaking changes.

# Test: Search for axios usage in the codebase. Expect: No breaking changes.
rg --type js --type ts --type vue 'axios'

Length of output: 69


Script:

#!/bin/bash
# Description: Verify that the update to axios version ^0.28.0 does not introduce breaking changes.

# Test: Search for axios usage in the codebase. Expect: No breaking changes.
rg --type js --type ts --type jsx --type tsx 'axios'

Length of output: 80


Script:

#!/bin/bash
# Description: Verify that the update to axios version ^0.28.0 does not introduce breaking changes.

# Test: Search for axios usage in the codebase. Expect: No breaking changes.
rg --type js --type ts 'axios'

Length of output: 174


Script:

#!/bin/bash
# Extract relevant code segments where axios is used for inspection.

# Extract from test/index.test.js
echo "test/index.test.js:"
rg 'axios' test/index.test.js -A 5

# Extract from src/index.js
echo "src/index.js:"
rg 'axios' src/index.js -A 5

Length of output: 656

@renovate renovate bot changed the title chore(deps): update peerdependency axios to ^0.28.0 [security] chore(deps): update peerdependency axios to ^0.28.1 [security] Oct 9, 2024
@renovate renovate bot force-pushed the renovate/npm-axios-vulnerability branch from c2f985c to af47417 Compare October 9, 2024 11:14
@renovate renovate bot changed the title chore(deps): update peerdependency axios to ^0.28.1 [security] chore(deps): update peerdependency axios to ^0.28.0 [security] Oct 9, 2024
@renovate renovate bot force-pushed the renovate/npm-axios-vulnerability branch from af47417 to 2faac7b Compare October 9, 2024 12:38
@renovate renovate bot changed the title chore(deps): update peerdependency axios to ^0.28.0 [security] chore(deps): update peerdependency axios to ^0.28.1 [security] Oct 28, 2024
@renovate renovate bot force-pushed the renovate/npm-axios-vulnerability branch from 2faac7b to f39c25c Compare October 28, 2024 15:05
@renovate renovate bot force-pushed the renovate/npm-axios-vulnerability branch from f39c25c to f8cdbca Compare October 28, 2024 18:32
@renovate renovate bot changed the title chore(deps): update peerdependency axios to ^0.28.1 [security] chore(deps): update peerdependency axios to ^0.28.0 [security] Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants