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: update docusaurus to 3.6.1 #1378

Closed
wants to merge 2 commits into from
Closed

Conversation

mbacherycz
Copy link
Contributor

@mbacherycz mbacherycz commented Nov 14, 2024

Hva er endret?

Dokumentasjon / Storybook / testdekning

  • Dokumentasjon er oppdatert eller ikke relevant / nødvendig.
  • Ny komponent har en eller flere stories i Storybook, eller så er ikke dette relevant.
  • Det er blitt lagt til nye tester / eksiterende tester er blitt utvidet, eller tester er ikke relevant.

Skjermbilder eller GIFs (valgfritt)

Summary by CodeRabbit

  • Chores
    • Updated dependencies for the documentation package to improve performance and compatibility.
    • Updated the @docusaurus/core dependency for the docusaurus-tldraw-plugin to enhance functionality.

@mbacherycz mbacherycz requested a review from a team as a code owner November 14, 2024 17:27
Copy link

coderabbitai bot commented Nov 14, 2024

📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request introduces updates to the package.json files for two packages: docs and docusaurus-tldraw-plugin. The docs package sees multiple dependencies and devDependencies upgraded from version 3.5.2 to 3.6.1, while the docusaurus-tldraw-plugin updates the @docusaurus/core dependency from 3.1.1 to 3.6.1. The overall structure of both package.json files remains unchanged, with no modifications to scripts or other configurations.

Changes

File Change Summary
packages/docs/package.json Updated dependencies and devDependencies from version 3.5.2 to 3.6.1 for several Docusaurus packages.
packages/docusaurus-tldraw-plugin/package.json Updated @docusaurus/core dependency from version 3.1.1 to 3.6.1.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 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.

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

🧹 Outside diff range and nitpick comments (1)
packages/docs/package.json (1)

35-37: Consider using consistent version specifiers

The version updates for dev dependencies are aligned with the main packages, which is good. However, consider using consistent version specifiers (^ vs exact) across all Docusaurus packages to prevent potential version mismatches during future updates.

-    "@docusaurus/core": "3.6.1",
-    "@docusaurus/preset-classic": "3.6.1",
+    "@docusaurus/core": "^3.6.1",
+    "@docusaurus/preset-classic": "^3.6.1",
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 60ab7a8 and b621c9e.

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

21-24: Verify Docusaurus 3.6.1 release notes and compatibility

The version updates look consistent across core Docusaurus packages. However, we should verify the changelog for any breaking changes or migration steps required.


Line range hint 21-37: Ensure proper testing of documentation site

Since this is a documentation framework update:

  1. Verify the build process works correctly using the build script
  2. Test the documentation site in a staging environment
  3. Check if all existing documentation features (search, mermaid diagrams, etc.) work as expected
  4. Consider updating the Docker build if necessary (Dockerfile is referenced in scripts)

mermaid' -t md


</details>

</details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

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

🧹 Outside diff range and nitpick comments (2)
packages/docusaurus-tldraw-plugin/package.json (2)

Line range hint 6-8: Add test coverage for the plugin

The empty test script suggests missing tests. Consider adding tests to ensure the plugin's functionality with the new Docusaurus version.

Would you like me to help create a basic test suite for the plugin? This could include:

  • Unit tests for the plugin's core functionality
  • Integration tests with Docusaurus 3.6.1

Line range hint 1-4: Enhance plugin documentation

While the description provides a basic overview, consider adding:

  • A README.md with usage instructions
  • Example configurations
  • Compatibility requirements

Would you like me to help create a documentation template for the plugin?

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between b621c9e and 86eaa79.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • packages/docusaurus-tldraw-plugin/package.json (1 hunks)
🔇 Additional comments (1)
packages/docusaurus-tldraw-plugin/package.json (1)

13-13: Verify compatibility with the updated Docusaurus version

The update from 3.1.1 to 3.6.1 is a significant minor version jump. While it should maintain backward compatibility, please verify that:

  1. The plugin continues to function as expected with Docusaurus 3.6.1
  2. The tldraw dependency (2.4.4) is compatible with the new Docusaurus version
✅ Verification successful

Update to Docusaurus 3.6.1 appears safe

The plugin's integration with Docusaurus is minimal and focused on:

  1. Webpack configuration for .tldr files
  2. HTML tag injection for fonts
  3. No direct usage of Docusaurus APIs that could be affected by breaking changes

The 3.6.1 release notes show only bug fixes and maintenance updates, with no breaking changes that would affect this plugin's functionality. The tldraw integration is also straightforward through standard React components.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check for breaking changes in Docusaurus 3.6.1 release notes
gh api repos/facebook/docusaurus/releases | jq -r '.[] | select(.tag_name | contains("3.6.1")) | .body'

# Look for any existing issues related to tldraw compatibility
gh api search/issues -f q='repo:facebook/docusaurus tldraw'

Length of output: 1789


Script:

#!/bin/bash
# Let's check the plugin's implementation to understand its integration points with Docusaurus
fd "index.js|index.ts" packages/docusaurus-tldraw-plugin -x cat {}

# Check if there are any tests
fd "test|spec|__tests__" packages/docusaurus-tldraw-plugin

# Check for any breaking changes in package.json between 3.1.1 and current
rg -A5 -B5 '"@docusaurus/core"' packages/docusaurus-tldraw-plugin/package.json

# Look for any tldraw-related imports or usage
rg "tldraw" packages/docusaurus-tldraw-plugin

Length of output: 2523

@mbacherycz mbacherycz self-assigned this Nov 15, 2024
@mbacherycz mbacherycz added the dev developer task label Nov 15, 2024
@mbacherycz mbacherycz closed this Nov 15, 2024
@mbacherycz
Copy link
Contributor Author

Seems like v.3.6.1 is buggy. The process won't exit even tho it has finished, causing the pipeline to run forever.
I'm closing this PR and we will try with another release in the future.
Screenshot 2024-11-15 at 10 25 03
Screenshot 2024-11-15 at 10 47 34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev developer task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants