@maz-ui/mcp 5.0.0-beta.44 → 5.0.0-beta.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mcp.mjs CHANGED
@@ -7,7 +7,7 @@ import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs';
7
7
  import { resolve, join, dirname } from 'node:path';
8
8
  import { fileURLToPath } from 'node:url';
9
9
 
10
- const version = "5.0.0-beta.42";
10
+ const version = "5.0.0-beta.44";
11
11
 
12
12
  class MetadataExtractor {
13
13
  extract(name, type, content, manualTags = []) {
@@ -85,7 +85,8 @@ The MCP server is read-only — it ships docs, not code edits — so the assista
85
85
  8. **`MazChart`** drops `vue-chartjs` (lighter bundle, no eager registration of unused chart types). The `update-mode` prop now defaults to `'none'` — pass `update-mode="default"` if you want animated data updates.
86
86
  9. **`MazAvatar` size scale fixed.** A CSS-unit `size` now renders at its real value (`size="2rem"` is a 32px avatar, it was ~96px before). Multiply your unit values by 3 to keep the same render, or switch to a `MazSize` keyword (`'mini' | 'xs' | 'sm' | 'md' | 'lg' | 'xl'`). The upgrade tool does the ×3 rewrite for you on static values.
87
87
  10. Rename **`MazPullToRefresh`**'s `on-click` prop to `on-refresh` (handled by the upgrade tool).
88
- 11. That's it for most apps. Everything else is opt-in.
88
+ 11. Replace bare **`from 'maz-ui'`** utility imports with **`from '@maz-ui/utils'`** (the root re-export of utils was removed; handled by the upgrade tool). Components/composables/directives/plugins stay on their subpaths; types remain importable from `maz-ui`.
89
+ 12. That's it for most apps. Everything else is opt-in.
89
90
 
90
91
  ## Prerequisites
91
92
 
@@ -617,6 +618,30 @@ The upgrade tool rewrites this automatically on `<MazPullToRefresh>` tags (both
617
618
  rg "<MazPullToRefresh[^>]*\bon-?[Cc]lick" src/
618
619
  ```
619
620
 
621
+ ### 18. Root `maz-ui` import removed for utilities
622
+
623
+ In v4, the bare `maz-ui` entry re-exported `@maz-ui/utils`, so you could write `import { sleep } from 'maz-ui'`. In v5 that root re-export is gone — import helpers from their package directly:
624
+
625
+ ```ts
626
+ // v4
627
+ import { sleep, formatDate } from 'maz-ui'
628
+
629
+ // v5
630
+ import { sleep, formatDate } from '@maz-ui/utils'
631
+ ```
632
+
633
+ Components, composables, directives and plugins were **already** subpath-only in v4 (`maz-ui/components/MazBtn`, `maz-ui/composables/useToast`, …) and are unchanged. The upgrade tool rewrites the utility imports for you.
634
+
635
+ The `maz-ui` root now exposes **types only** (zero runtime cost), so shared types stay importable from the short path:
636
+
637
+ ```ts
638
+ import type { MazColor, MazSize } from 'maz-ui'
639
+ ```
640
+
641
+ ### 19. ESM-only
642
+
643
+ `maz-ui` and its `@maz-ui/*` packages ship **ESM only** (no CommonJS build). This was already the case in v4, but if you consume the library from a CommonJS context (old Jest without ESM, `require()`), use a bundler/test runner with ESM support (Vitest, Jest ≥ 29 with ESM, or native `import`).
644
+
620
645
  ## Informational changes (probably no action needed)
621
646
 
622
647
  ### Theme colors are now emitted as OKLCh
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maz-ui/mcp",
3
3
  "type": "module",
4
- "version": "5.0.0-beta.44",
4
+ "version": "5.0.0-beta.46",
5
5
  "description": "Maz-UI ModelContextProtocol Client",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",
@@ -41,9 +41,9 @@
41
41
  "docs"
42
42
  ],
43
43
  "dependencies": {
44
- "@maz-ui/utils": "5.0.0-beta.44",
44
+ "@maz-ui/utils": "5.0.0-beta.46",
45
45
  "@modelcontextprotocol/sdk": "^1.30.1",
46
- "maz-ui": "5.0.0-beta.44"
46
+ "maz-ui": "5.0.0-beta.46"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@maz-ui/eslint-config": "5.0.0-beta.44",