Skip to content

chore(CssBundler): bump version 1.0.1#582

Merged
ArgoZhang merged 3 commits intomasterfrom
chore-tools
Oct 9, 2025
Merged

chore(CssBundler): bump version 1.0.1#582
ArgoZhang merged 3 commits intomasterfrom
chore-tools

Conversation

@ArgoZhang
Copy link
Copy Markdown
Member

@ArgoZhang ArgoZhang commented Oct 9, 2025

Link issues

fixes #581

Summary By Copilot

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Merge the latest code from the main branch

Summary by Sourcery

Enable multi-entry configuration support in the CSS bundler, refactor the execution logic into a separate method, fix output encoding handling, and bump the tool version to 1.0.1

New Features:

  • Support processing multiple bundler configurations from the config file

Bug Fixes:

  • Write bundled files using UTF-8 encoding instead of raw stream copy to ensure correct character handling

Enhancements:

  • Refactor bundling loop into a dedicated DoBundler method and update option variable naming
  • Add System.Text usage for encoding support

Build:

  • Bump CssBundler version to 1.0.1

Copilot AI review requested due to automatic review settings October 9, 2025 08:16
@bb-auto bb-auto Bot added the chore label Oct 9, 2025
@bb-auto bb-auto Bot added this to the v9.2.0 milestone Oct 9, 2025
@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Oct 9, 2025

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR refactors the bundler to process multiple configuration entries, updates the file output to use explicit UTF-8 encoding, and bumps the project version.

Class diagram for updated Bundler and BundlerOptions classes

classDiagram
    class Bundler {
        +static void Run(string[] args)
        +static void BundlerCore(string bundlerFile)
        +static void DoBundler(string bundlerFile, BundlerOptions option)
    }
    class BundlerOptions {
        +string OutputFileName
        +List<string> InputFiles
        +static List<BundlerOptions> LoadFromConfigFile(string configFile)
    }
    BundlerOptions <.. Bundler : uses
Loading

Flow diagram for processing multiple bundler options

flowchart TD
    A["BundlerCore(bundlerFile)"] --> B["LoadFromConfigFile(bundlerFile) returns List<BundlerOptions>"]
    B --> C["For each option in options"]
    C --> D["DoBundler(bundlerFile, option)"]
Loading

File-Level Changes

Change Details Files
Enable processing of multiple bundler configurations
  • Change LoadFromConfigFile to return a list of options
  • Loop over each option in BundlerCore
  • Extract bundling logic into a new DoBundler method
Bundler.cs
BundlerOptions.cs
Switch file output to explicit UTF-8 write
  • Add System.Text import
  • Replace BaseStream.CopyTo with ReadToEnd and Write(Encoding.UTF8)
Bundler.cs
Bump package version
  • Updated version in project file
BootstrapBlazor.CssBundler.csproj

Assessment against linked issues

Issue Objective Addressed Explanation
#581 Bump the version of CssBundler to 1.0.1. There is no evidence in the provided diff that the version number was updated in any project or package file (e.g., .csproj or similar).
#581 Support multiple output in CssBundler.

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the CssBundler tool to version 1.0.1 with enhanced functionality to support processing multiple bundler configurations from a single config file. The change allows the tool to handle an array of bundler options instead of a single configuration.

  • Changed config file loading to support arrays of bundler configurations
  • Refactored bundling logic to process multiple configurations in a loop
  • Updated file writing mechanism to use UTF-8 encoding explicitly

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
BundlerOptions.cs Modified LoadFromConfigFile to return List instead of single instance
Bundler.cs Refactored to process multiple configurations and improved file encoding handling
BootstrapBlazor.CssBundler.csproj Bumped version from 1.0.0 to 1.0.1

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/tools/BootstrapBlazor.CssBundler/Bundler.cs
@ArgoZhang ArgoZhang merged commit 1f42a9d into master Oct 9, 2025
1 of 2 checks passed
@ArgoZhang ArgoZhang deleted the chore-tools branch October 9, 2025 08:17
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(CssBundler): bump version 1.0.1

2 participants