@happydesigns/ui 0.20.1 → 0.20.2

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/README.md CHANGED
@@ -104,6 +104,22 @@ pnpm build
104
104
 
105
105
  `pnpm dev` starts the playground app. `pnpm build` builds the playground.
106
106
 
107
+ `pnpm consumer:check` installs the packed package in a temporary workspace outside this repository, then typechecks and renders base and Content consumers. It needs registry access; the fixtures use their own dependencies and TypeScript configuration rather than the source checkout's installation.
108
+
109
+ Tests focus on public behavior: schema validation, routing, search loading and recovery, author resolution, and release safety. Build checks cover rendered content, unpublished search exclusions, and documentation endpoints. Avoid assertions on source-code spelling, internal component structure, or documentation copy; package integration is checked by the installed consumer rather than a separate file inventory.
110
+
111
+ Use a Node release supported by the pinned Nuxt development dependency. Development and CI use the Nuxt version declared in `package.json`; the packed-consumer check follows that same version. The published layer's `engines` describe consumer requirements, not every tool in this checkout.
112
+
113
+ ## Releases
114
+
115
+ Use Conventional Commits and run `pnpm release:preview` to review the proposed version and changelog without changing files. From a clean worktree, `pnpm release` prepares the version, `CHANGELOG.md`, release commit and annotated tag locally. It does not push or publish to GitHub or npm. While on v0, compatible changes increment patch; breaking changes increment minor. Prerelease preparation uses `pnpm release:pre`, `pnpm release:alpha` or `pnpm release:beta`.
116
+
117
+ Review the generated release, then push the branch and tag with `git push --follow-tags` only when authorized. Tag CI checks version, release commit and changelog consistency and runs the existing validation pipeline before automatically publishing the GitHub release. Release notes come only from that version's `CHANGELOG.md` section, parsed by Changelogen. Prereleases are not marked Latest; stable versions use GitHub's version-based Latest selection. No additional package archive or checksum is uploaded.
118
+
119
+ npm publication remains a separate, authorized `pnpm publish` step; use `pnpm publish --tag next` for prereleases. GitHub CI uses its temporary repository token and requires no npm credentials. Neither the GitHub release nor npm publication deploys consumer applications.
120
+
121
+ If tag CI fails, fix the cause and rerun it where possible. Never move a published tag or rerun version preparation to retry delivery. Already published GitHub releases are left unchanged; an existing draft for the same tag is published with the verified changelog. If a release's source needs correction, prepare a new version.
122
+
107
123
  ## Product Docs
108
124
 
109
125
  The product docs live in `docs/` and are built with Docus.
@@ -115,6 +131,8 @@ pnpm docs:build
115
131
 
116
132
  `pnpm docs:build` generates a static Docus build in `docs/.output/public`. Use `pnpm docs:build:server` only when the deployment target needs a server-capable Docus build for live MCP support.
117
133
 
134
+ `pnpm docs:typecheck:server` checks the documentation application's own server sources using Nuxt's generated server configuration. `pnpm docs:build` also validates the generated reference API responses, including dynamic component and example routes.
135
+
118
136
  The docs explain how to use the layer, content model, components, composables, variants, and configuration. Component props, slots, examples, variants, and collection tables are generated from the package source where possible.
119
137
 
120
138
  ## Package Scope
@@ -1,5 +1,6 @@
1
1
  import type { ContentNavigationItem } from '@nuxt/content'
2
2
  import type { ContentSearchFile } from '@nuxt/ui'
3
+ import { $fetch } from '#imports'
3
4
  import { createContentSearchLoader } from '../../../app/utils/createContentSearchLoader'
4
5
 
5
6
  export interface ContentSearchDataLoaders {
@@ -1,4 +1,5 @@
1
1
  import { queryCollectionNavigation } from '@nuxt/content/server'
2
+ import { defineEventHandler } from 'h3'
2
3
 
3
4
  export default defineEventHandler(async (event) => {
4
5
  setSearchCacheHeaders(event)
@@ -1,4 +1,5 @@
1
1
  import { queryCollectionSearchSections } from '@nuxt/content/server'
2
+ import { defineEventHandler } from 'h3'
2
3
 
3
4
  export default defineEventHandler(async (event) => {
4
5
  setSearchCacheHeaders(event)
@@ -2,6 +2,7 @@ import type { PageCollections, SQLOperator } from '@nuxt/content'
2
2
  import type { H3Event } from 'h3'
3
3
  import type { SearchCollectionConfig, SearchConfig } from '../../../app/types/config'
4
4
  import type { PageCollectionName } from '../../../app/types/content'
5
+ import { setResponseHeader } from 'h3'
5
6
 
6
7
  interface ConfigurableSearchQuery {
7
8
  where: (field: string, operator: SQLOperator, value?: unknown) => unknown
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@happydesigns/ui",
3
3
  "type": "module",
4
- "version": "0.20.1",
4
+ "version": "0.20.2",
5
5
  "private": false,
6
6
  "description": "A reusable Nuxt foundation for content-driven happydesigns websites and applications.",
7
7
  "author": "happydesigns",
@@ -46,31 +46,35 @@
46
46
  },
47
47
  "peerDependencies": {
48
48
  "tailwindcss": "^4.3.2",
49
- "vue": "^3.5.41"
49
+ "vue": "^3.5.41",
50
+ "vue-router": "^4.6.0 || ^5.0.0"
50
51
  },
51
52
  "dependencies": {
52
53
  "@happydesigns/nuxt-variants": "^0.2.0",
53
54
  "@iconify-json/heroicons": "^1.2.3",
54
- "@iconify-json/lucide": "^1.2.116",
55
- "@iconify-json/simple-icons": "^1.2.89",
56
- "@nuxt/content": "^3.15.0",
57
- "@nuxt/ui": "^4.10.0",
55
+ "@iconify-json/lucide": "^1.2.152",
56
+ "@iconify-json/simple-icons": "^1.2.101",
57
+ "@nuxt/content": "^3.17.0",
58
+ "@nuxt/ui": "^4.12.2",
58
59
  "@vueuse/core": "^14.3.0",
59
60
  "better-sqlite3": "^12.11.1",
60
- "nuxt-studio": "^1.7.0",
61
- "zod": "^4.4.3"
61
+ "h3": "^1.15.11",
62
+ "nuxt-studio": "^1.8.2",
63
+ "zod": "^4.6.7"
62
64
  },
63
65
  "devDependencies": {
64
66
  "@antfu/eslint-config": "^9.1.0",
65
- "@antfu/ni": "^30.2.0",
66
- "@nuxt/eslint-config": "^1.16.0",
67
+ "@antfu/ni": "^30.6.0",
68
+ "@nuxt/eslint-config": "^1.17.0",
69
+ "@takumi-rs/core": "1.8.7",
67
70
  "changelogen": "^0.6.2",
68
71
  "cross-env": "^10.1.0",
69
72
  "docus": "5.12.3",
70
- "eslint": "^10.6.0",
71
- "nuxt": "4.5.1",
73
+ "eslint": "^10.14.0",
74
+ "nuxt": "4.6.4",
72
75
  "typescript": "^6.0.3",
73
76
  "vitest": "^4.1.10",
77
+ "vue-router": "5.4.0",
74
78
  "vue-tsc": "^3.3.7"
75
79
  },
76
80
  "resolutions": {
@@ -81,9 +85,9 @@
81
85
  "docs": "nuxt dev docs",
82
86
  "docs:build": "nuxt generate docs && node scripts/validate-docs-output.mjs",
83
87
  "docs:build:server": "nuxt build docs",
88
+ "docs:typecheck:server": "nuxt prepare docs && tsc --noEmit --project docs/tsconfig.server.json",
84
89
  "build": "nuxt build playground && node scripts/validate-playground-output.mjs",
85
90
  "generate": "nuxt generate playground && node scripts/validate-playground-output.mjs",
86
- "package:check": "node scripts/validate-package.mjs",
87
91
  "consumer:check": "node scripts/validate-consumer.mjs",
88
92
  "preview": "nuxt preview playground",
89
93
  "lint": "eslint .",
@@ -91,9 +95,11 @@
91
95
  "typecheck": "nuxt typecheck && nuxt typecheck playground",
92
96
  "test": "vitest run",
93
97
  "test:watch": "vitest",
94
- "release": "changelogen --release",
95
- "release:pre": "changelogen --release --prerelease",
96
- "release:alpha": "changelogen --release --versionSuffix alpha.0",
97
- "release:beta": "changelogen --release --versionSuffix beta.0"
98
+ "release:preview": "changelogen --no-output",
99
+ "release:check": "node scripts/github-release.mjs --check",
100
+ "release": "changelogen --release --no-github --clean",
101
+ "release:pre": "changelogen --release --prerelease --no-github --clean",
102
+ "release:alpha": "changelogen --release --versionSuffix alpha.0 --no-github --clean",
103
+ "release:beta": "changelogen --release --versionSuffix beta.0 --no-github --clean"
98
104
  }
99
105
  }