Skip to content

Commit 69422ac

Browse files
committed
Release version 2.0.0 with significant updates including multi-runtime support, improved project structure, and enhanced CLI commands. Added new configuration options for contract version, runtime, and CDN handling. Removed deprecated utility-map pipeline and streamlined dependencies. Updated documentation to reflect changes and improved overall performance.
1 parent 973dc75 commit 69422ac

63 files changed

Lines changed: 5832 additions & 3148 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [18, 20, 22]
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
cache: npm
20+
cache-dependency-path: package-lock.json
21+
- run: npm install
22+
- run: npm run type-check
23+
- run: npm test
24+
- run: npm run build
25+
- run: npm run pack:check
26+
- name: Verify bin shebang
27+
run: head -n 1 dist/index.js | grep -q '^#!/usr/bin/env node$'

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ dist/
88
.env.local
99
bun.lock
1010
bun.lockb
11-
package-lock.json
1211
**/*.tsbuildinfo
1312
bash.exe.*
1413
.manual/
15-
.workflow/
14+
.workflow/

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Changelog
22

3+
## [2.0.0] - 2026-08-11
4+
5+
### Breaking
6+
- Multi-runtime contract **2.0.0**: `framework` is `react` | `svelte` | `vue` | `solid` | `templ` | `latte` | `twig` | `none` (no `vite-react`).
7+
- Install root is `dir` + canonical folders (`lib`, `utils`, `components/ui`, …) with optional `paths` remap.
8+
- File install preserves nested `target` / path structure (no basename flatten).
9+
- `init` no longer requires Vite + React; supports `--framework`, `--dir`, `--skip-core`.
10+
11+
### Added
12+
- Config: `contractVersion`, `runtime`, `cdnBaseUrls`, `strictCdn`.
13+
- Registry types: `registry:utils`, `registry:widget`.
14+
- MIT `LICENSE`, publish scripts (`prepublishOnly`, `pack:check`), shebang via tsup banner.
15+
- CDN probe defaults include `index.json` and utils paths.
16+
17+
### Changed
18+
- Package metadata, README, and maintainer scripts aligned for npm publish of the universal CLI.
19+
- Removed utility-map pipeline (`utility-props.map.ts``ui8kit.map.json`) — CLI no longer embeds kit-specific class-map generation.
20+
- Dropped hardcoded `cn`/clsx stub on `init` when registry is unreachable; core files come only from registry items.
21+
- Use Node built-in `fetch` (removed `node-fetch`).
22+
- Slim runtime deps to `commander`, `prompts`, `zod` only; TypeScript moved to `devDependencies`.
23+
- Replaced `chalk` / `ora` / `fs-extra` / `glob` / `execa` / `diff` with Node built-ins + thin `src/utils` helpers (`fs`, `walk`, `logger` Spinner, `diff-utils`).
24+
- `build` is registry artifact assembly only (no schema JSON codegen / AST utility-map side effects).
25+
326
## [1.5.2] - 2026-03-09
427

528
- Updated scripts & cdn link to `raw.githubusercontent.com/ui8kit/core`

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024-2026 ui8kit
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)