Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 9, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@ts-graphviz/[email protected]

Minor Changes

Patch Changes

@ts-graphviz/[email protected]

Minor Changes

  • #992 391e98e Thanks @kamiazya! - ## @ts-graphviz/react integrate with ts-graphviz monorepo

    Overview

    • Imported source code from @ts-graphviz/react repository and integrated it into the monorepo.
    • Emphasized code quality through component tests and updated function signatures.
      • Renamed functions and types for readability and consistency throughout the ts-graphviz project.

    Dependencies

    • Support React 18 and remove prop-types as a dependency.
      • prop-types is removed because TypeScript can cover the same functionality.
    • Moved react-dom to peerDependencies for streamlined dependency management.
      • Improved file naming conventions for better codebase organization.

    New Features

    New HTMLLike label syntax

    import { Digraph, Node, Edge, render } from "@ts-graphviz/react";
    
    const dot = render(
      <Digraph>
        <Node
          id="A"
          label={
            <dot:table>
              <dot:tr>
                <dot:td>left</dot:td>
                <dot:td>right</dot:td>
              </dot:tr>
            </dot:table>
          }
        />
      </Digraph>
    );

    renderHTMLLike function

    The renderHTMLLike function is introduced for rendering HTML-like labels.

    import { renderHTMLLike } from "@ts-graphviz/react";
    
    const htmlLike = renderHTMLLike(
      <dot:table>
        <dot:tr>
          <dot:td>left</dot:td>
          <dot:td>right</dot:td>
        </dot:tr>
      </dot:table>
    );

    Other Changes

    • Added the provenance flag in package.json for enhanced publishing traceability.

    • Enhanced TypeScript support and type definitions, including moving types to @ts-graphviz/common.

      • Move HTMLLike type to @ts-graphviz/common.
    • Refactor JSX syntax for better compatibility and custom JSX-like syntax for HTMLLike.

Patch Changes

[email protected]

Minor Changes

Patch Changes

@ts-graphviz/[email protected]

Patch Changes

@ts-graphviz/[email protected]

Patch Changes

@ts-graphviz/[email protected]

Patch Changes

Copy link
Contributor

coderabbitai bot commented Mar 9, 2024

Important

Auto Review Skipped

Bot user detected.

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

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>.
    • Generate unit-tests 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 tests 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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 as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

@github-actions github-actions bot force-pushed the changeset-release/main branch 8 times, most recently from d478740 to b94e200 Compare March 15, 2024 14:38
@github-actions github-actions bot force-pushed the changeset-release/main branch 3 times, most recently from 107a5b4 to fe325ba Compare March 17, 2024 13:39
@github-actions github-actions bot force-pushed the changeset-release/main branch from fe325ba to bbdc709 Compare March 17, 2024 15:06
@kamiazya kamiazya added @ts-graphviz/react Graphviz-dot Renderer for React @ts-graphviz/ast Graphviz AST(Abstract Syntax Tree) Utilities @ts-graphviz/adapter Graphviz Runtime adapters for Cross Platform @ts-graphviz/common Graphviz Types and Utilities @ts-graphviz/core Graphviz Models for Object-Oriented Programming ts-graphviz Graphviz library for TypeScript labels Mar 17, 2024
@kamiazya kamiazya merged commit 47f34e5 into main Mar 17, 2024
@kamiazya kamiazya deleted the changeset-release/main branch March 17, 2024 15:08
kamiazya pushed a commit that referenced this pull request Mar 17, 2024
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Update package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@ts-graphviz/adapter Graphviz Runtime adapters for Cross Platform @ts-graphviz/ast Graphviz AST(Abstract Syntax Tree) Utilities @ts-graphviz/common Graphviz Types and Utilities @ts-graphviz/core Graphviz Models for Object-Oriented Programming @ts-graphviz/react Graphviz-dot Renderer for React ts-graphviz Graphviz library for TypeScript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant