Commit Graph
30 Commits
Author SHA1 Message Date
Doocs Bot 516efead5c chore: release CLI (#2003) 2026-10-30 15:54:35 +08:00
ziven 9915a8e89b build(release): automate CLI releases with Changesets (#2001) 2026-10-30 14:04:39 +08:00
Libin YANG f8d9126823 chore(deps): upgrade project dependencies (#1995)
Bump compatible releases, including pnpm 12.14.0 and wrangler 4.151.1, and retarget the Mermaid flowchart label patch to 12.2.0.
2026-10-17 10:12:56 +08:00
Libin YANG a988db7bd2 chore(deps): bump pnpm, wrangler, lucide, and related packages (#1961)
Leave prettier, TypeScript, and mermaid on pinned majors.
2026-09-14 20:11:40 +08:00
Libin YANG 7622b816db chore(deps): bump wrangler, zod, and related packages (#1941)
Refresh catalog entries (@cloudflare/workers-types, wrangler, zod), the
tinyexec override, and direct deps across web, vscode, and md-cli, then
refresh transitive deps via `pnpm update -r` and `pnpm dedupe`.

Keep typescript at ~6.0.3 because @typescript-eslint 8.68.0 declares a
`typescript >=4.8.4 <6.1.0` peer range, so TS 7 would break lint.

Also drop the stale front-matter patch entry from AGENTS.md; that patch
was removed when front-matter was replaced.
2026-08-29 15:42:26 +08:00
Libin YANGandCursor 6ca214b7c3 fix(web): editor search & persistence fixes, keyboard a11y, cleanups (#1896)
* 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>
2026-08-07 14:25:03 +08:00
Libin YANG 22ca9fea7f chore: unify code comments to English (#1789)
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.
2026-07-11 11:01:28 +08:00
Libin YANG 1161620eac feat(i18n): add Traditional Chinese and Japanese locales (#1784) 2026-07-11 08:56:51 +08:00
Libin YANG a83dfb837b build(deps): bump workspace dependencies and refresh lockfile (#1750)
* 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.
2026-07-05 18:47:46 +08:00
Libin YANG aa48249a07 build(deps): upgrade dependencies except prettier (#1688)
Update AWS SDK, juice, and multer to latest versions. Migrate juice patch from 12.1.0 to 12.1.1. Keep prettier pinned at 2.8.8 per project policy.
2026-06-16 08:17:56 +08:00
Libin YANG 2a01ca8601 build(deps): bump axios, vite-plugin-vue-devtools, and related packages (#1682)
Upgrade available dependencies across workspaces while keeping prettier pinned at 2.8.8.
2026-06-15 09:11:00 +08:00
Libin YANG 34f2290b7f build(deps): upgrade all dependencies and fix esbuild CVE (#1666)
Bump workspace packages to latest while keeping prettier at 2.8.8.
Add esbuild override (>=0.28.1) to resolve GHSA-g7r4-m6w7-qqqr.
2026-06-13 11:45:07 +08:00
Libin YANG f3df94aea9 chore(deps): upgrade workspace dependencies (#1634)
- upgrade @cloudflare/workers-types to 4.20260607.1
- upgrade http-proxy-middleware to 4.1.0
- update lock file with latest patch versions
2026-06-08 15:20:27 +08:00
Libin YANG 13aed080af chore: upgrade deps (#1537) 2026-05-12 14:56:03 +08:00
Libin YANG fa5e6c38ce chore: upgrade deps (#1393) 2026-03-24 15:11:52 +08:00
Libin YANG 9c1853d778 chore: update deps (#1352) 2026-03-06 08:03:26 +08:00
Libin YANG bee943e769 chore: upgrade deps version (#1336) 2026-02-24 15:27:02 +08:00
Libin YANG 8e79e22bbd chore: upgrade deps (#1316) 2026-02-06 21:21:37 +08:00
Libin YANG a07922d396 chore: upgrade deps (#1179) 2025-12-02 21:59:22 +08:00
Libin YANG 67e677a00f chore: upgrade deps (#1150) 2025-11-17 20:22:40 +08:00
Libin YANG 0c2689641d chore: update gh actions 2025-10-23 21:50:13 +08:00
Ziven 28939d278d fix: proxy to root path (#1075) 2025-10-18 14:15:25 +08:00
Ziven 7f6d457efc fix(md-cli): proxy error ECONNRESET (#1074) 2025-10-18 13:55:31 +08:00
Libin YANG a59e6f7847 build(cli): release v2.1.0 (#1072) 2025-10-17 22:16:37 +08:00
Libin YANG ee3144522f chore: update cloudflare workers (#1064)
* chore: update workers

* fix: workers
2025-10-17 00:19:12 +08:00
Ziven 6a2e7348d0 chore(md-cli): bump version to 0.1.4 in package.json (#971) 2025-09-08 11:27:25 +08:00
Ziven c7e45cb69e refactor: rewrite md-cli with express (#957)
* refactor: rewrite md-cli with express for mockm's security problem

* refactor: remove useless method

* feat: local upload fallback
2025-09-05 17:26:31 +08:00
dependabot[bot]andZiven 341d5df5a6 build(deps): bump get-port from 5.1.1 to 7.1.0 (#922)
* build(deps): bump get-port from 5.1.1 to 7.1.0

Bumps [get-port](https://github.com/sindresorhus/get-port) from 5.1.1 to 7.1.0.
- [Release notes](https://github.com/sindresorhus/get-port/releases)
- [Commits](https://github.com/sindresorhus/get-port/compare/v5.1.1...v7.1.0)

---
updated-dependencies:
- dependency-name: get-port
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: resolve ES Module and CommonJS mixing

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ziven <wzw15292257101@163.com>
2025-09-01 17:04:23 +08:00
dribble-njr bc438ea9e5 refactor: cleanup/remove root legacy (#913)
* refactor: clean up legacy root-level source code

* chore: clean up dependencies

* chore: lint fix staged files

* fix: es-toolkit version mismatch

* fix: cannot find module marked in shared

* refactor: move functions to apps/web

* chore: remove unused devDeps of apps/web
2025-08-26 07:29:43 +08:00
dribble-njr 3fe7f451cd refactor: switch to pnpm monorepo (#895) 2025-08-22 09:12:52 +08:00