Commit Graph
244 Commits
Author SHA1 Message Date
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 d9132ab5a1 chore(deps): upgrade project dependencies (#1985) 2026-10-09 09:50:23 +08:00
Libin YANG 9bae922611 chore(deps): bump dependencies to latest compatible versions (#1978)
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.
2026-09-29 17:37:06 +08:00
Libin YANG 2cd2b354e6 chore(deps): bump pnpm, wrangler, CodeMirror, and related packages (#1972) 2026-09-22 19:54:26 +08:00
Libin YANG 8770fde1d2 chore(deps): bump wrangler, CodeMirror, vsce, and related packages (#1964) 2026-09-16 19:27:09 +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 f0d8c6170e chore(deps): bump vite, wrangler, AWS SDK, and related packages (#1960)
Raise the confbox override to 0.3.1 so pkg-types can import confbox/json. Leave prettier, TypeScript, and mermaid on pinned majors.
2026-09-12 16:39:30 +08:00
Libin YANG 2404ebcaa8 chore(skills): track Claude Code skills via git symlinks (#1955)
Replace the post-clone junction linker with per-skill git
symlinks so clones no longer need a setup script.
2026-09-10 19:22:37 +08:00
Libin YANG e14b55645c chore(deps): bump wrangler, vitest, isomorphic-dompurify, and related packages (#1951) 2026-09-10 10:22:35 +08:00
Libin YANG a9d3da04cc chore(deps): bump wrangler, CodeMirror, AWS SDK, and related packages (#1945) 2026-09-05 08:57:08 +08:00
Libin YANG 62cd665b16 chore(deps): bump pnpm, CodeMirror, AWS SDK, and related packages (#1943)
Refresh catalog, security overrides, and CI pnpm pins. Rebase the @codemirror/view patch onto 6.43.10.
2026-09-01 11:42:55 +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 YANG 1c2c2f4139 chore(deps): bump pnpm, wrangler, vue, and related packages (#1934)
Keep Prettier at 2.8.8 and TypeScript at 6.0.3 because vue-tsc still requires the TS 6 compiler API.
2026-08-28 10:19:17 +08:00
Libin YANG 48c6964bc6 chore(deps): bump js-yaml, AWS SDK, and related packages (#1933)
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.
2026-08-25 20:00:43 +08:00
Libin YANG b433d65c0c chore(deps): bump wrangler, eslint, and related packages (#1925)
Keep AWS SDK client and presigner on the same 3.1115.0 patch so @smithy/types stay aligned.
2026-08-22 08:42:16 +08:00
Libin YANG a6c64f2a37 chore(deps): bump pnpm, workers-types, and security overrides (#1917) 2026-08-17 17:31:56 +08:00
Libin YANG 236f2f12a9 chore(deps): bump packages and migrate CI to pnpm/setup (#1911) 2026-08-15 08:52:58 +08:00
Libin YANG 4699016755 chore(deps): upgrade dependencies (#1900)
Bump outdated deps within existing semver ranges and catalog:
@aws-sdk/client-s3 and s3-request-presigner 3.1106.0,
@cloudflare/vite-plugin 1.51.1, @cloudflare/workers-types 5.20260808.1,
@lucide/vue 1.30.0, @types/node 26.2.0, @antfu/eslint-config 9.3.0,
eslint 10.8.1, hono 4.13.1, isomorphic-dompurify 3.22.0, tsx 4.23.11,
vite 8.2.1, wrangler 4.120.0.

Kept: prettier 2.8.8 (pinned), typescript ~6.0.3 (TS 7 major deferred),
@types/vscode 1.120.0 (must not exceed engines.vscode), crypto-js
(deprecated, no successor). Patched deps unchanged; patch files still apply.
2026-08-09 20:08:57 +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 5664b7f1a2 build(deps): bump dependencies to latest compatible versions (#1885)
- npm: aws-sdk 3.1101.0, @cloudflare/vite-plugin 1.50.0, vite 8.2.0,
  wrangler 4.118.0, hono 4.12.33, wxt 0.21.3, vue-tsc 3.3.9,
  lint-staged 17.3.0, isomorphic-dompurify 3.21.0 (incl. vscode
  runtime pin), plus all in-range direct/transitive updates
- ci: pin pnpm 11.18.0 in workflows (pnpm/action-setup#276 fixed);
  all actions verified on their latest majors
- docker: nginx 1.30.4-alpine, golang 1.26.5-alpine, alpine 3.24
- hold prettier 2.8.8 (pinned) and typescript 6.x (ts-loader/vue-tsc
  not yet compatible with the TS 7 native port)
2026-08-02 07:14:27 +08:00
Libin YANG 74b2723d38 build(deps): bump dependencies to latest compatible versions (#1871) 2026-07-29 20:13:51 +08:00
Libin YANG 070ef1f6db build(deps): upgrade minor and patch dependencies (#1857)
Bump eslint, lint-staged, aws-sdk, lucide, vue-i18n, vue-devtools, and Cloudflare workers-types. Keep prettier 2.8.8 and TypeScript 6.
2026-07-27 20:26:06 +08:00
Libin YANG 4b0b232736 build(deps): upgrade minor and patch dependencies (#1852)
Bump eslint-config, lint-staged, AWS SDK, Cloudflare vite-plugin/workers-types, and wrangler; keep Prettier 2.8.8 and TypeScript 6.
2026-07-22 23:07:04 +08:00
Libin YANG cc97c4e652 build(deps): upgrade minor and patch dependencies (#1848) 2026-07-20 15:44:02 +08:00
Libin YANG 20e236eb1f build(deps): add lint-staged, drop unused @types/webpack, bump workers-types (#1817)
Declare lint-staged as a root dependency so pre-commit no longer relies on npx. Remove redundant @types/webpack (webpack 5 ships its own types) and bump @cloudflare/workers-types in the catalog.
2026-07-14 17:00:38 +08:00
Libin YANG 58f09a8897 build: centralize shared deps with pnpm catalog and dedupe (#1791)
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.
2026-07-11 13:38:58 +08:00
Libin YANG c254c00c2a build: bump workspace dependencies to latest patch releases (#1790)
Upgrade hono, AWS SDK, Cloudflare workers-types, eslint, and
@codemirror/lang-yaml; refresh the lockfile. Keep prettier 2.8.8
and TypeScript 6 pinned.
2026-07-11 11:24:03 +08:00
Libin YANG 800e109b32 perf(web): skip unchanged renders and split oversized editor UI (#1786)
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.
2026-07-11 09:37:29 +08:00
Libin YANG 4a39d069ee build(deps): bump @types/node and vue-tsc (#1761) 2026-07-08 19:55:46 +08:00
Libin YANG fda0e100d3 build(deps): upgrade @codemirror/state to 6.7.1 and @codemirror/view to 6.43.6 (#1756) 2026-07-07 20:31:33 +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 79f8ce27f0 build(deps): upgrade project dependencies (#1738)
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.
2026-06-29 08:29:02 +08:00
Libin YANG 02f39e9bb6 build(deps): upgrade project dependencies (#1729)
Bump vue, wrangler, mermaid, webpack, codemirror and related
transitive deps. Sync @codemirror/view patch to 6.43.3.
2026-06-26 08:12:48 +08:00
Libin YANG a545cb5976 build(deps): upgrade project dependencies (#1727)
Bump @types/node to 26.0.1 and @cloudflare/workers-types to 4.20260625.1.
Keep prettier pinned at 2.8.8 per project policy.
2026-06-25 10:38:24 +08:00
Libin YANG 9762249dde build(deps): upgrade eslint-config and workers-types (#1725) 2026-06-24 19:33:44 +08:00
Libin YANG 1ee3c52c6a build(deps): upgrade vite 8.1 and migrate to rolldownOptions (#1720)
- Bump vite, wrangler, wxt, @cloudflare/vite-plugin, and CodeMirror packages
- Migrate build.rollupOptions to build.rolldownOptions (Vite 8)
- Retarget @codemirror/view patch to 6.43.2
2026-06-24 08:45:14 +08:00
Libin YANG c60097c256 feat(web): add editor keyboard navigation and unit tests (#1711)
Add go-to-line (Mod-g), heading navigation (Mod-Alt-arrows), and outline panel keyboard support. Extract navigation helpers with vitest coverage for @md/web.
2026-06-23 08:35:58 +08:00
Libin YANG ac03473b1c ci: add type-check and vitest jobs for core package (#1706)
Add parallel type-check and test jobs to GitHub Actions, expand root type-check to web and workspace packages, and introduce Vitest tests for @md/core renderer and utilities.
2026-06-20 19:28:28 +08:00
Libin YANG 5852da6159 build(deps): upgrade dependencies except prettier (#1701)
Bump @aws-sdk, @cloudflare/*, @lucide/vue, isomorphic-dompurify,
wrangler, and @types/node to latest versions.
2026-06-19 21:33:34 +08:00
Libin YANG e465bc618b fix(web): persist post delete and tidy project dependencies (#1686)
Persist document deletes to IndexedDB immediately instead of relying on debounced saveAll, and push sync tombstones before pull so deleted posts are not restored on refresh.

Also remove unused dependencies, relocate build script deps to @md/web, migrate tailwindcss-animate to tw-animate-css for Tailwind 4, and trim stale pnpm-workspace config.
2026-06-15 16:59:07 +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 b6ead11dd8 feat(web): add global account login and refactor cloud sync UI (#1657)
Introduce shared md-api account layer decoupled from sync, split account and sync dialogs in the footer, restrict free tier to manual sync, and enable account/sync UI in production builds.
2026-06-11 21:40:16 +08:00
Libin YANG a7dcfd11e8 feat(sync): add cloud sync with worker backend and status UI (#1654)
Introduce Cloudflare Workers sync service and web client for cross-device document and settings sync. Footer icon reflects synced, pending, syncing, and error states. Image hosting and AI keys remain local.
2026-06-11 11:52:09 +08:00
Libin YANGandCursor 8a20da94a5 chore(deps): upgrade dependencies and fix security alerts (#1652)
Bump direct and transitive deps to latest versions while keeping Prettier pinned at 2.8.8. Force shell-quote to 1.8.4 to resolve CVE-2026-9277 and add SECURITY.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-10 13:44:29 +08:00
Libin YANG 5051e90db9 fix(vscode): defer renderer load and enable self-contained vsix packaging (#1649)
Split preview rendering into a lazy-loaded module so activate() registers the sidebar and commands before heavy deps load. Copy isomorphic-dompurify runtime deps for --no-dependencies vsix installs, guard navigator in shared shortcut-key config, and add smoke/activate/preview packaging tests plus F5 debug docs.
2026-06-10 10:12:44 +08:00
Libin YANG 330ebe7d95 docs: add cross-agent skills infrastructure (#1644) 2026-06-09 12:45:28 +08:00
Libin YANGandClaude Opus 4.8 34f95b1bed chore(deps): upgrade workspace dependencies (#1633)
- @types/node: ^25.9.1 → ^25.9.2
- @aws-sdk/client-s3: ^3.1062.0 → ^3.1063.0
- @aws-sdk/s3-request-presigner: ^3.1062.0 → ^3.1063.0
- isomorphic-dompurify: ^3.15.0 → ^3.16.0 (core, web, vscode)
- @cloudflare/workers-types: ^4.20260605.1 → ^4.20260606.1

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-07 22:29:00 +08:00
Libin YANG a27f3c8220 chore(deps): upgrade workspace dependencies (#1610) 2026-06-01 08:27:26 +08:00
Libin YANG 85a551b504 chore: upgrade dependencies (#1569)
- npm-run-all2: 9.0.0 -> 9.0.1
- reka-ui: 2.9.7 -> 2.9.8
- vite: 8.0.13 -> 8.0.14
- @aws-sdk/client-s3: 3.1050.0 -> 3.1053.0
- @aws-sdk/s3-request-presigner: 3.1050.0 -> 3.1053.0
- @cloudflare/vite-plugin: 1.37.2 -> 1.38.0
- @cloudflare/workers-types: 4.20260520.1 -> 4.20260523.1
- wrangler: 4.93.0 -> 4.94.0
2026-05-25 08:45:36 +08:00