chore(deps-dev): bump typescript from 5.7.2 to 5.8.2 by tbouffard · Pull Request #711 · maxGraph/maxGraph · GitHub
Skip to content

chore(deps-dev): bump typescript from 5.7.2 to 5.8.2#711

Merged
tbouffard merged 2 commits into
mainfrom
chore/bump_ts_5.8
Mar 5, 2025
Merged

chore(deps-dev): bump typescript from 5.7.2 to 5.8.2#711
tbouffard merged 2 commits into
mainfrom
chore/bump_ts_5.8

Conversation

@tbouffard

@tbouffard tbouffard commented Mar 5, 2025

Copy link
Copy Markdown
Member

Fix new TSC errors now detected by TypeScript.

Summary by CodeRabbit

  • Chores

    • Upgraded the TypeScript dependency to version ~5.8.2 for improved development reliability.
  • Refactor

    • Streamlined the handling of request status and refined related documentation for enhanced clarity.

Fix new TSC errors now detected by TypeScript.
@tbouffard tbouffard added dependencies skip-changelog Do not include in Changelog and Release Notes javascript Pull requests that update Javascript code labels Mar 5, 2025
@coderabbitai

coderabbitai Bot commented Mar 5, 2025

Copy link
Copy Markdown

@tbouffard tbouffard marked this pull request as ready for review March 5, 2025 10:54

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (4)
packages/core/src/util/MaxXmlRequest.ts (4)

226-226: Improved code readability with optional chaining.

The implementation of the getStatus() method has been updated to use optional chaining, which makes the code more concise and readable while maintaining the same behavior.

This modern JavaScript feature is a good improvement. For complete consistency, consider also updating similar patterns elsewhere in the codebase.


232-232: Better type safety with specific return type.

Changing the return type from any to XMLHttpRequest improves type safety and makes the API contract more clear.

This change improves type safety and aligns with TypeScript best practices. Consider reviewing other methods in the class that might still be using any types.


152-152: Improve type safety for the request property.

The request property is typed as any but is used as an XMLHttpRequest throughout the class. Consider updating its type definition to be more specific.

- request: any = null;
+ request: XMLHttpRequest | null = null;

311-311: Update parameter types for setRequestHeaders method.

The setRequestHeaders method uses any types for its parameters, but they could be more strongly typed for better type safety.

- setRequestHeaders(request: any, params: any): void {
+ setRequestHeaders(request: XMLHttpRequest, params: string | null): void {
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 497f1a6 and 1c95f9f.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • package.json (1 hunks)
  • packages/core/src/util/MaxXmlRequest.ts (1 hunks)
🔇 Additional comments (2)
packages/core/src/util/MaxXmlRequest.ts (1)

223-223: Documentation typo fixed.

The documentation comment has been corrected from "cought" to "caught".

package.json (1)

31-31:

Details

❓ Verification inconclusive

Version upgrade of TypeScript dependency.

Upgrading from TypeScript 5.7.2 to 5.8.2 ensures the project benefits from the latest features, bug fixes, and performance improvements in TypeScript.

Let's verify if there are any breaking changes or significant new features in TypeScript 5.8:


🌐 Web query:

What are the new features and breaking changes in TypeScript 5.8 compared to 5.7?

Error during web search


TypeScript 5.8.2 Upgrade – Manual Verification of Release Notes Recommended

The dependency update in package.json to "typescript": "~5.8.2" is intended to introduce the improvements, fixes, and enhancements provided in the latest release. Notably, while upgrading from TypeScript 5.7.2 to 5.8.2 should yield benefits, our automated web query to extract details on new features and any breaking changes did not return the expected information.

Next steps:

  • Manual Check: Please review the official TypeScript 5.8 release notes to confirm there are no breaking changes that might affect our project.
  • Validation: Ensure that the project’s build and existing tests pass under the new TypeScript version.
  • Documentation: If any adjustments need to be made in code based on release note findings, document the required changes accordingly.

Comment thread packages/core/src/util/MaxXmlRequest.ts Outdated
@sonarqubecloud

sonarqubecloud Bot commented Mar 5, 2025

Copy link
Copy Markdown

@tbouffard tbouffard merged commit a5e0e91 into main Mar 5, 2025
@tbouffard tbouffard deleted the chore/bump_ts_5.8 branch March 5, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies javascript Pull requests that update Javascript code skip-changelog Do not include in Changelog and Release Notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant