Skip to content

build(deps): bump sugar-high from 1.3.0 to 2.0.0 - #1277

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/sugar-high-2.0.0
Closed

build(deps): bump sugar-high from 1.3.0 to 2.0.0#1277
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/sugar-high-2.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 13, 2026

Copy link
Copy Markdown
Contributor

Bumps sugar-high from 1.3.0 to 2.0.0.

Release notes

Sourced from sugar-high's releases.

v2.0.0

Sugar High v2 grows from a JavaScript-focused highlighter into a small, composable highlighting toolkit. The default API stays convenient, while new core APIs support editors, renderers, Remark plugins, and custom language composition.

Highlights

  • 25 canonical built-in languages, with related dialects unified rather than duplicated
  • A focused highlight() API for the common path
  • A composable sugar-high/core API built around parse(), generate(), and render()
  • Granular token and line presentation through cx, mark, and markLine
  • Typed generated nodes for integrations that do not render directly to HTML
  • First-party React code-block and editor components
  • A first-party Remark plugin
  • Copyable light and dark themes, CSS-variable recipes, and agent setup guidance
  • Package-boundary consumer tests, bundle-size reporting, and npm provenance through OIDC

Packages

npm install sugar-high@2
npm install @sugar-high/react@1
npm install @sugar-high/remark@1
  • sugar-high@2.0.0
  • @sugar-high/react@1.0.0
  • @sugar-high/remark@1.0.0

Default API

import { highlight } from 'sugar-high'
highlight(source)
highlight(source, { lang: 'python' })
highlight(source, {
lang: 'diff',
cx: token => token.type === 'keyword' ? 'font-bold' : undefined,
mark(token) {
token.properties['data-token'] = token.type
},
markLine(line) {
if (line.annotations.includes('diff-add')) line.className += ' added'
},
})

JavaScript remains the default. Related syntax is intentionally shared: JavaScript includes JSX, TypeScript includes TSX, JSON includes JSONC, Shell covers sh/Bash/zsh aliases, and HCL includes Terraform aliases.

Composable core

... (truncated)

Changelog

Sourced from sugar-high's changelog.

2.0.0

Major Changes

  • 70ddc26: Release Sugar High v2 with canonical multi-language highlighting, a composable core, typed generated nodes, granular token and line styling, first-party React components, Remark integration, themes, and updated documentation.

    The default highlight() API stays focused on common highlighting, while sugar-high/core provides parse(), generate(), and render() for advanced composition. Language aliases are normalized through sugar-high/lang, and related dialects share canonical implementations.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [sugar-high](https://github.com/huozhi/sugar-high/tree/HEAD/packages/sugar-high) from 1.3.0 to 2.0.0.
- [Release notes](https://github.com/huozhi/sugar-high/releases)
- [Changelog](https://github.com/huozhi/sugar-high/blob/main/packages/sugar-high/CHANGELOG.md)
- [Commits](https://github.com/huozhi/sugar-high/commits/v2.0.0/packages/sugar-high)

---
updated-dependencies:
- dependency-name: sugar-high
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Aug 13, 2026
@netlify

netlify Bot commented Aug 13, 2026

Copy link
Copy Markdown

Deploy Preview for adoptium-next ready!

Name Link
🔨 Latest commit 9bd8f57
🔍 Latest deploy log https://app.netlify.com/projects/adoptium-next/deploys/6a7d8f8e455582000955029c
😎 Deploy Preview https://deploy-preview-1277--adoptium-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 13, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
adoptium-net-next 9bd8f57 Commit Preview URL

Branch Preview URL
Aug 13 2026, 09:39 AM

@dependabot @github

dependabot Bot commented on behalf of github Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1287.

@dependabot dependabot Bot closed this Aug 18, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/sugar-high-2.0.0 branch August 18, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants