Skip to content

Update#69

Merged
streamich merged 5 commits intomainfrom
update
Apr 27, 2026
Merged

Update#69
streamich merged 5 commits intomainfrom
update

Conversation

@streamich
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 27, 2026 22:16
@streamich streamich merged commit 5e6931b into main Apr 27, 2026
3 checks passed
@streamich streamich deleted the update branch April 27, 2026 22:17
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 3.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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 dependency versions (notably code-colors, nano-theme, and thingies), updates the runtime CDN URL used to load the code-colors bundle, and simplifies/removes some styling behaviors in the default theme/styles.

Changes:

  • Bump code-colors to ^2.5.0 and update the CDN bundle URL accordingly.
  • Remove selection from the exported ColorPalette type and remove related ::selection styling and other token-decoration styles.
  • Re-export util from the package entrypoint and fix a React hook dependency list in Markup.

Reviewed changes

Copilot reviewed 8 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
yarn.lock Lockfile updates for bumped dependencies.
package.json Bumps code-colors, nano-theme, and thingies versions.
src/util.ts Updates bundle CDN URL to code-colors@2.5.0 on jsDelivr.
src/index.ts Exposes util module via public exports.
src/Markup.ts Adds lang to useEffect dependency array.
src/style.ts Removes selection from palette type and drops several styling rules (including ::selection).
src/palettes.ts Removes selection values from light/dark palettes to match updated type.
README.md Minor markdown formatting cleanup.
CHANGELOG.md Markdown list formatting cleanup.
.github/workflows/gh-pages.yml Minor YAML formatting change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/style.ts
Comment on lines 21 to 35
export interface ColorPalette {
mono1: string;
mono2?: string;
mono3?: string;
col1?: string;
col2?: string;
col3?: string;
col4?: string;
col5?: string;
col6?: string;
negative?: string;
positive?: string;
selection: string;
string?: string;
keyword?: string;
builtin?: string;
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

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

Removing the exported selection field from ColorPalette is a breaking TypeScript API change for consumers that construct ColorPalette object literals (it will now fail excess-property checks). If the intent is to stop supporting selection styling, consider keeping selection?: string for backwards compatibility (even if unused), or bump the major version and clearly document the breaking change.

Copilot uses AI. Check for mistakes.
Comment thread src/index.ts
export * from "./palettes";
export * from "./ColorTokens";
export * from "./Markup";
export * from "./util";
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

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

export * from "./util" makes colors()/tokens() part of the library’s public API surface. If that’s not intended, avoid re-exporting this module. If it is intended, consider documenting it (and its CDN/network dependency) as a supported API, since it will be harder to change later without a breaking release.

Suggested change
export * from "./util";

Copilot uses AI. Check for mistakes.
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.

2 participants