Skip to content

chore(deps): bump vite-plus to v0.2.2#29

Draft
fengmk2 wants to merge 3 commits into
mainfrom
update-vite-plus-prerelease-test-0.2.2
Draft

chore(deps): bump vite-plus to v0.2.2#29
fengmk2 wants to merge 3 commits into
mainfrom
update-vite-plus-prerelease-test-0.2.2

Conversation

@fengmk2

@fengmk2 fengmk2 commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

Bump vite-plus and related packages to the pkg.pr.new prerelease build for v0.2.2 (registry-bridge commit build) to smoke-test the prerelease.

  • vite-plus + vite (alias to @voidzero-dev/vite-plus-core) and vitest pinned to the commit build across deps / overrides / catalogs
  • minimumReleaseAge enabled with the vite-plus / @voidzero-dev/* / oxc / oxlint stack excluded
  • .npmrc (or .yarnrc.yml) points the package manager at the registry bridge (prerelease scaffolding)

Test plan

  • CI passes

Limerio and others added 3 commits July 1, 2026 12:38
…x-dev#2717)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Willow (GHOST) <git@willow.sh>
@fengmk2 fengmk2 self-assigned this Jul 2, 2026
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
i18n/locales/fr-FR.json Localization changed, will be marked as complete.
i18n/locales/nl.json Localization changed, will be marked as complete.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the markdown rendering and sanitization logic by extracting shared utilities into a new mdKit.ts module, introduces a ChangelogSkeleton component for loading states, adds a heading version matcher, and updates dependencies and localizations. Key feedback includes resolving a runtime ReferenceError from using $t in Card.vue's script setup, restoring a guard in usePackageChangelog.ts to prevent invalid API requests, adding a missing :key in Skeleton.vue's v-for loop, removing a leftover console.log and fixing a regex bug in mdKit.ts, and adding mdKit.ts to uno.config.ts to ensure UnoCSS compiles the required icons.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +24 to +30
const { providerIcon, viewOnProvider } = inject<{
providerIcon: MaybeRef<IconClass>
viewOnProvider: MaybeRef<string>
}>('changelog-provider-linkattr', {
providerIcon: 'i-lucide:code',
viewOnProvider: computed(() => $t('common.view_on.git_repo')),
})

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

Using $t directly inside the <script setup> block will throw a ReferenceError: $t is not defined at runtime because global template helpers are not automatically bound to the script scope. Instead, use the useI18n composable to retrieve the t function.

const { t } = useI18n()

const { providerIcon, viewOnProvider } = inject<{
  providerIcon: MaybeRef<IconClass>
  viewOnProvider: MaybeRef<string>
}>('changelog-provider-linkattr', {
  providerIcon: 'i-lucide:code',
  viewOnProvider: computed(() => t('common.view_on.git_repo')),
})

Comment on lines 5 to +24
export function usePackageChangelog(
packageName: MaybeRefOrGetter<string | null | undefined>,
packageName: MaybeRefOrGetter<string>,
version?: MaybeRefOrGetter<string | null | undefined>,
) {
return useLazyFetch<ChangelogInfo | null>(() => {
const name = toValue(packageName)
if (!name) return 'data:application/json,null' // returns null
const ver = toValue(version)
return `/api/changelog/info/${name}/v/${ver || 'latest'}`
})
}

/**
* check whether the current package & version has changelogs
* @param setState with `useState` also set the state of `changelog:info` (currently only for packageHeader)
*/
export function usePackageHasChangelog(
packageName: MaybeRefOrGetter<string>,
version?: MaybeRefOrGetter<string | null | undefined>,
setState?: boolean,
) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

When props.pkg is initially null or loading, packageName can evaluate to an empty string (''). Without a guard, this triggers broken API requests to /api/changelog/info//v/latest. Restoring the !name guard and allowing nullable types prevents these invalid requests.

export function usePackageChangelog(
  packageName: MaybeRefOrGetter<string | null | undefined>,
  version?: MaybeRefOrGetter<string | null | undefined>,
) {
  return useLazyFetch<ChangelogInfo | null>(() => {
    const name = toValue(packageName)
    if (!name) return null
    const ver = toValue(version)
    return '/api/changelog/info/' + name + '/v/' + (ver || 'latest')
  })
}

/**
 * check whether the current package & version has changelogs
 * @param setState with `useState` also set the state of `changelog:info` (currently only for packageHeader)
 */
export function usePackageHasChangelog(
  packageName: MaybeRefOrGetter<string | null | undefined>,
  version?: MaybeRefOrGetter<string | null | undefined>,
  setState?: boolean,
) {

<template>
<SkeletonBlock class="h-8 w-40 rounded" />
<ul class="ms-3 list-disc my-4 ps-6 marker:color-[--border-hover]">
<li class="mb-1" v-for="_n in 5">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Vue requires a :key attribute on v-for elements to track identity and prevent rendering issues or compiler/ESLint warnings.

    <li v-for="_n in 5" :key="_n" class="mb-1">

Comment thread server/utils/mdKit.ts
Comment on lines +169 to +171
if (exemptIssuePr && /^#\d+\b/.test(match[0])) return false

console.log({ match, test: /^#\d+\b/.test(match[0]), exemptIssuePr })

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

There are two issues here:

  1. A leftover debug console.log is present in the production code path.
  2. Testing match[0] with /^#\d+\b/ fails to exempt issues/PRs if there are any leading spaces (since match[0] includes the matched leading spaces from ^ {0,3}). Testing match[1] and match[2] directly is more robust and correctly handles leading spaces.
Suggested change
if (exemptIssuePr && /^#\d+\b/.test(match[0])) return false
console.log({ match, test: /^#\d+\b/.test(match[0]), exemptIssuePr })
if (exemptIssuePr && match[1] === '#' && /^\d+\b/.test(match[2])) return false

Comment thread uno.config.ts
Comment on lines +26 to +30
include: [
/\.(vue|mdx|html)($|\?)/,
// git provider icons composable
'**/composables/useProviderIcon.ts',
],

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Since server/utils/mdKit.ts is not a .vue, .mdx, or .html file, the icons used within it (such as i-lucide:check and i-lucide:copy) will not be scanned or generated by UnoCSS. Adding server/utils/mdKit.ts to the include array ensures these icons are correctly compiled.

      include: [
        /\.(vue|mdx|html)($|\?)/,
        // git provider icons composable
        '**/composables/useProviderIcon.ts',
        // markdown kit utility (contains copy/check icons)
        '**/server/utils/mdKit.ts',
      ]

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

e18e dependency analysis

No dependency warnings found.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants