Bump direct dependencies, catalog pins, and security overrides to the latest
versions the toolchain accepts, and refresh the lockfile. Retarget the
@codemirror/view patch to 6.44.2 and the Mermaid patch to 12.4.0.
Keep Prettier at 2.8.8 and TypeScript at 6.0.3. @typescript-eslint still
requires typescript < 6.1.0. Follow Vite 8.4's dev.sourcemap.css option.
Bump direct dependencies, catalog pins, and security overrides to the latest
versions the toolchain accepts, and refresh the lockfile. Retarget the
@codemirror/view patch to 6.44.0 (MeasureRequest export and macOS Alt+Shift).
Keep Prettier at 2.8.8 and TypeScript at 6.0.3 (@typescript-eslint still requires
typescript < 6.1.0). Leave the Mermaid patch unchanged.
Bump direct dependencies, catalog pins, and security overrides to the latest
versions the toolchain accepts, and refresh the lockfile. Move pnpm to 12.23.0
and wrangler to 4.167.0 now that workerd postinstall matches the published binary.
Keep Prettier at 2.8.8 and TypeScript at 6.0.3 (@typescript-eslint still requires
typescript < 6.1.0). Leave CodeMirror and Mermaid patches unchanged.
Bump direct dependencies, catalog pins, and security overrides to the latest versions the toolchain accepts, and refresh the lockfile. Move pnpm to 12.21.0.
Keep Prettier at 2.8.8 and TypeScript at 6.0.3. Pin wrangler at 4.163.0 because 4.164.0 ships a workerd binary whose postinstall rejects itself.
Bump direct dependencies to the latest versions the toolchain accepts, including entities 9 and jsdom 31. Keep Prettier at 2.8.8 and TypeScript at 6.0.3.
Upgrade pnpm to 12.6.0 and refresh direct packages, including VueUse 15,
Mermaid 12, and juice 12.2.0. Keep Prettier 2.8.8, TypeScript 6.0.3, and
the wrangler 4.134.0 preview-deploy pin.
Clipboard screenshots without a filename were rejected as invalid images.
Cancelling GitHub login from md-cli left a JSON error page, and drafts
could be lost because IndexedDB writes may not finish on unload.
Closes#1969Closes#1970
Upgrade catalog workers-types, marked, and isomorphic-dompurify. Treat empty YAML front matter as an empty mapping for js-yaml 5. Keep prettier 2.8.8 and typescript ~6.0.3.
Lazy-load @md/core on the web app to shrink the initial bundle. Reject oversized sync pushes with plan quotas, client-side batches, and D1-safe row limits.
* fix(web): fix post search misses and history restore timestamp
- extract search logic to lib/search-posts with a 250ms debounce; count matches via String.match (avoids stale-lastIndex misses of a reused global RegExp across posts) in a single scan for results and totals together
- render search results and history version entries as real buttons; make the history list width responsive on narrow screens
- bump post.updateDatetime on history restore so restored content is picked up by update-time sorting and cloud sync
Co-authored-by: Cursor <cursoragent@cursor.com>
* perf(web): replace deep post watches with signature watchers
- watch per-post signatures (id/title/content length/updateDatetime ms/parent/history length/collapsed) instead of deep-traversing every post on each editor commit; the old deep watch compared identical object identities and never persisted edits
- collect dirty post ids in a set and flush once per debounce window, so rapid edits across different posts are all saved (shared single-argument debounce used to drop earlier posts)
- inject heading anchor ids during render instead of assigning output twice, avoiding a second preview DOM rebuild
Co-authored-by: Cursor <cursoragent@cursor.com>
* refactor: dedupe escapeHtml/delay helpers and remove dead code
- share one escapeHtml in apps/api share pages and reuse @md/core's in the formula dialog
- centralize the delay() helper used by preview boot, PNG export and the editor header
- drop unused createTable/checkImage utilities and a stale debug comment
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(web): improve keyboard accessibility across editor UI
- make drag-drop upload areas, syntax help cards, JSON preview expanders and the footer line/col indicator keyboard-operable (real buttons or role/tabindex + Enter/Space)
- reveal hover-only controls (post item menu, table cell delete buttons) on keyboard focus via focus-visible
- add missing aria-labels to icon-only buttons, role=tablist to the CSS editor tabs, role=checkbox to multi-select, and move the collapse toggle out of the post row button to avoid nested interactives
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(core): add render tests for footnote, toc, ruby, markup, slider and alert extensions
Co-authored-by: Cursor <cursoragent@cursor.com>
* ci: unify web type-check with build and include @md/shared in tests
- run the package's own vue-tsc --build --force for type-check:web so CI catches the same errors as pnpm web build
- add @md/shared tests to the root test script
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(ci): commit generated auto-import/components dts for type-check job
vue-tsc --build --force builds the referenced tsconfig.app.json, which includes auto-imports.d.ts and components.d.ts. Both were gitignored, so the CI type-check job (no prior vite build to regenerate them) failed with TS2304 for every auto-imported global (ref, useDark, useToggle, ...).
The previous vue-tsc --noEmit ran on the solution-style root tsconfig (files: [] + references) and checked zero files, which is why CI was green while real errors slipped through.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(web): guard zero-width search matches and clean up a11y semantics
- ignore zero-width regex matches when counting, highlighting and snippeting so empty-matching patterns (a*, ^, \b) neither match every post nor inflate counts to O(content length); replace skips zero-width positions and inserts the replacement literally
- give the multi-select checkbox an accessible name (new common.selectPost message)
- move the CSS tab more-actions button out of the role=tab element so each tab is a single focus stop
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
Persist post history timestamps in a locale-independent form and render
them with the current UI locale so switching language no longer leaves
mixed date formats in the history list.
Closes#1838
Ship theme publish/review/install with sample markdown preview, admin moderation,
and system notifications (footer bell) for pending/approve/reject without email.
Move cross-package toolchain versions into a workspace catalog, declare
CodeMirror where it is imported, unify typescript-eslint via overrides,
and run pnpm dedupe to shrink the lockfile.
Translate valuable Chinese comments and remove noise that only restates the next line. Document the English-comment convention in AGENTS.md and CONTRIBUTING.md. Leave i18n and user-facing strings unchanged.
Add debounce+max-wait preview scheduling and fingerprint skip in renderStore.
Extract scroll-sync/post-tree helpers with tests; cover API origin/sanitize.
Extend type-check to vscode/mcp; split Footer and CustomComponent form panels.
Bump @cloudflare/workers-types and tighten security overrides for bn.js, js-yaml, markdown-it, qs, semver, shell-quote, and tmp. Keep prettier@2.8.8 and TypeScript ~6.x for Vue/vue-tsc compatibility.
Bump hono, wrangler, vitest, AWS SDK, Cloudflare workers-types, and refresh the lockfile. Remove mathjax from @md/web; uTools builds now download MathJax es5 assets from CDN at bundle time.
* Upgrade @codemirror/view, Cloudflare tooling, AWS SDK, Vite, Wrangler,
webpack, and related packages. Regenerate the CodeMirror patch for 6.43.5.
Keep prettier pinned at 2.8.8 and mathjax at 3.x.
* Downgrade @cloudflare/workers-types from v5 to 4.20260702.1 to satisfy
wrangler@4.107.0 peer requirement (^4.20260701.1) and clear pnpm peer warnings.
Bump direct dependencies including @codemirror/view, eslint, es-toolkit, reka-ui, @lucide/vue, @cloudflare/workers-types, vite-plugin-vue-devtools, webpack, and webpack-cli.
Migrate @codemirror/view patch from 6.43.3 to 6.43.4 and refresh transitive dependencies in the lockfile.
Bump hono, @aws-sdk/client-s3, @aws-sdk/s3-request-presigner, and
@cloudflare/workers-types to latest patch versions. Prettier remains
pinned at 2.8.8 per project policy.