@kayjs/kay 1.111.0 → 1.112.0
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/eslint.js +1 -1
- package/editors/zed/extension.toml +2 -2
- package/llms/project-new-and-add.md +1 -1
- package/llms/upgrading.md +6 -0
- package/llms/whats-new.md +4 -0
- package/package.json +6 -6
- package/src/features.ts +1 -1
- package/src/template-styles.ts +2 -2
package/dist/eslint.js
CHANGED
|
@@ -25,7 +25,7 @@ var __esm = (fn, res, err) => () => {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
// package.json
|
|
28
|
-
var version = "1.
|
|
28
|
+
var version = "1.112.0", peerDependencies;
|
|
29
29
|
var init_package = __esm(() => {
|
|
30
30
|
peerDependencies = {
|
|
31
31
|
"@happy-dom/global-registrator": "^20.14.6 || ^21.0.3",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
id = "kay"
|
|
2
2
|
name = "Kay"
|
|
3
3
|
description = "Highlighting and the kay language server for .kay components"
|
|
4
|
-
version = "1.
|
|
4
|
+
version = "1.112.0"
|
|
5
5
|
schema_version = 1
|
|
6
6
|
authors = [ "Kaynooo" ]
|
|
7
7
|
repository = "https://github.com/Kayno0o/kayjs"
|
|
8
8
|
|
|
9
9
|
[grammars.kay]
|
|
10
10
|
repository = "https://github.com/Kayno0o/kayjs"
|
|
11
|
-
rev = "v1.
|
|
11
|
+
rev = "v1.112.0"
|
|
12
12
|
path = "editors/tree-sitter-kay"
|
|
13
13
|
|
|
14
14
|
[language_servers.kay]
|
|
@@ -34,7 +34,7 @@ kay generate resource post title:string body:text published:boolean
|
|
|
34
34
|
|
|
35
35
|
- `kay new <dir> [--kay <dependency>] [--template blank|server|site|app] [--with <features>] [--without <features>] [--forge forgejo|github] [--agents none] [--runner <label>] [--editor helix,zed|none] [-y] [--dry-run] [--format text|json] [--quiet]`:
|
|
36
36
|
- Scaffold a project in an empty directory, or in a fresh clone holding only `.git` and what a new forge repo carries (`README.md`, a `LICENSE` file, `.gitignore`, `.gitattributes`): the `.git` folder and its `origin` stay (the origin picks the CI host), the README, licence and `.gitattributes` are kept, and the template's `.gitignore` replaces the forge's. Any other entry stops it with `kay: <dir> is not empty: <first five entries> in the way`.
|
|
37
|
-
- A project is a set of features: `server` (an Elysia server; off, a static site), `starter` (a header, a skip link, a `_404.kay`, a home page greeting from the server with a counter island), `tailwind` (Tailwind through `bun-plugin-tailwind` over orbit's near-black palette (kayjs-ui's token names: `background`, `foreground`, `border`, `muted`, `accent`) with a hairline on every box, no shadows
|
|
37
|
+
- A project is a set of features: `server` (an Elysia server; off, a static site), `starter` (a header, a skip link, a `_404.kay`, a home page greeting from the server with a counter island), `tailwind` (Tailwind through `bun-plugin-tailwind` over orbit's near-black palette (kayjs-ui's token names: `background`, `foreground`, `border`, `muted`, `accent`) with a hairline on every box, no shadows, with the `.vscode/settings.json` every project gets also pointing Tailwind IntelliSense at the shorthand and `class="..."`; off, the markup carries no classes), `ui` (kayjs-ui: its space skin imported in `app.css`, Space Grotesk and JetBrains Mono served through `fonts`, `ui()` in `kay.config.ts` and the header drawn with `AppHeader`; in every preset, and it needs `tailwind`), `accents` (an accent picker in the header, twelve accents kept in a cookie, `starlight` by default, in no preset: `--with accents` or `kay add accents`, and it needs `starter` and `tailwind`), `eslint`, `tests`, `ci` (the workflow below, Forgejo's or GitHub's), `docker` (the container below; a static site's brings a `_404.kay` when `starter` is off, for its nginx 404), `auth` (kayjs-auth: what `kay add auth` writes, its users in a SQLite file, which needs `server` and `tailwind`), `postgres` (kayjs-auth's users in Postgres instead, with its compose stack and roles, which needs `auth`) and `ws` (the app's API module and websocket island, shown on the home page, which needs `server`).
|
|
38
38
|
- A preset names a set: `blank` none, one layout and one bare page built as a static site; `server`, `site` and `app` as described below.
|
|
39
39
|
- Run in a terminal with none of `--template`, `--with`, `--without` or `-y`, it asks for a preset, then shows its features as a checklist. Checking a feature checks what it needs, and unchecking one unchecks what needs it.
|
|
40
40
|
- Otherwise it takes `--template`, `server` by default, adds the comma-separated `--with` features and drops the `--without` ones, and refuses a feature listed in both, or one missing what it needs (`kay: accents needs tailwind: add --with tailwind, or drop it with --without accents`); when `ci` or `docker` is left out, the next steps name `kay add ci` and `kay add docker`;
|
package/llms/upgrading.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
What each release breaks, and what an app changes to move to it. kay and its libraries share one version, so one section covers them all; a patch breaks nothing, and a version missing here broke nothing. Through 1.x a breaking change ships in a minor; from 2.0.0 it ships in a major, and a minor or a patch breaks nothing.
|
|
4
4
|
|
|
5
|
+
## 1.112.0
|
|
6
|
+
|
|
7
|
+
### kayjs-ui's `starfield` utility is removed
|
|
8
|
+
|
|
9
|
+
`@kayjs/ui/starfield.css`, the `starfield` class and the `--color-star`, `--color-star-cool` and `--color-star-warm` tokens are gone, and the space skin no longer draws stars: its fixed full-viewport layer kept the GPU compositing on every scroll and made pages lag on a machine short of video memory. Tailwind now stops the build with `Cannot apply unknown utility class starfield`: delete the `@import '@kayjs/ui/starfield.css'` line, and replace `starfield` with `bg-background` wherever a class list or an `@apply` names it, such as the `body` rule a `kay new` app with `ui` has in `src/app.css`. The space skin keeps its near-black ground.
|
|
10
|
+
|
|
5
11
|
## 1.111.0
|
|
6
12
|
|
|
7
13
|
### kay needs Bun 1.4.5
|
package/llms/whats-new.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
What each release of kay and its libraries adds, newest first, each feature with where it is documented. kay and its libraries share one version, so one section covers them all; what a release breaks is in [Upgrading](upgrading.md).
|
|
4
4
|
|
|
5
|
+
## 1.112.0
|
|
6
|
+
|
|
7
|
+
- kayjs-ui's `starfield` utility is removed with `@kayjs/ui/starfield.css` and its `--color-star*` tokens, and `kay new` no longer puts stars behind the page: the fixed layer kept the GPU compositing and made pages lag on a machine short of video memory ([upgrading](upgrading.md)).
|
|
8
|
+
|
|
5
9
|
## 1.111.0
|
|
6
10
|
|
|
7
11
|
- kay and its libraries need Bun 1.4.5, a security release for HTTP/3, HTTP/1.1, TLS, DNS and Zstandard, and refuse 1.4.4 with the command that updates it ([project](project.md), [upgrading](upgrading.md)).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kayjs/kay",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.112.0",
|
|
5
5
|
"description": "A Bun web framework: one .kay file per component, pages rendered to plain HTML on the server, interactive islands in the browser",
|
|
6
6
|
"author": "Kaynooo <https://github.com/Kayno0o>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -304,11 +304,11 @@
|
|
|
304
304
|
"@fontsource/inter": "^5.3.0",
|
|
305
305
|
"@happy-dom/global-registrator": "^21.0.4",
|
|
306
306
|
"@iconify-json/tabler": "^1.2.42",
|
|
307
|
-
"@kayjs/ai": "1.
|
|
308
|
-
"@kayjs/auth": "1.
|
|
309
|
-
"@kayjs/cms": "1.
|
|
310
|
-
"@kayjs/mail": "1.
|
|
311
|
-
"@kayjs/ui": "1.
|
|
307
|
+
"@kayjs/ai": "1.112.0",
|
|
308
|
+
"@kayjs/auth": "1.112.0",
|
|
309
|
+
"@kayjs/cms": "1.112.0",
|
|
310
|
+
"@kayjs/mail": "1.112.0",
|
|
311
|
+
"@kayjs/ui": "1.112.0",
|
|
312
312
|
"@kaynooo/eslint": "^8.0.3",
|
|
313
313
|
"@kaynooo/pg-orm": "^9.0.0",
|
|
314
314
|
"@oxc-parser/binding-wasm32-wasip1": "0.155.0",
|
package/src/features.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Feature } from './template-shared'
|
|
|
4
4
|
export const FEATURES: Record<Feature, { description: string, needs: readonly Feature[], packages?: readonly string[], brings?: readonly Feature[], templated?: true }> = {
|
|
5
5
|
server: { description: 'an Elysia server, run in production as one executable; off, a static site built to dist', needs: [] },
|
|
6
6
|
starter: { description: 'a header, a 404 page, and a home page greeting from the server with a counter island', needs: [] },
|
|
7
|
-
tailwind: { description: 'Tailwind over orbit\'s near-black palette
|
|
7
|
+
tailwind: { description: 'Tailwind over orbit\'s near-black palette', needs: [] },
|
|
8
8
|
accents: { description: 'an accent picker in the header, kept in a cookie', needs: ['starter', 'tailwind'] },
|
|
9
9
|
eslint: { description: 'ESLint through @kaynooo/eslint, .kay fences and template expressions included', needs: [] },
|
|
10
10
|
tests: { description: 'kay test through kay/test, with a first test', needs: [] },
|
package/src/template-styles.ts
CHANGED
|
@@ -47,7 +47,7 @@ const ACCENT_COLOURS = {
|
|
|
47
47
|
coral: '#f27b72',
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
// The look of orbit's apps: kayjs-ui's space skin over a near-black palette, a hairline on every box,
|
|
50
|
+
// The look of orbit's apps: kayjs-ui's space skin over a near-black palette, a hairline on every box, and an accent the picker in the header changes.
|
|
51
51
|
// The colours carry kayjs-ui's names (`background`, `foreground`, `border`), none of them one of Tailwind's own utilities such as `text-base`.
|
|
52
52
|
export function tailwindCss({ has }: Setup): string {
|
|
53
53
|
const ui = has('ui')
|
|
@@ -83,7 +83,7 @@ ${has('accents') ? '\n /* The accent picker sets --accent on the page. */\n --
|
|
|
83
83
|
}`,
|
|
84
84
|
`@layer base {
|
|
85
85
|
body {
|
|
86
|
-
@apply
|
|
86
|
+
@apply flex min-h-screen flex-col bg-background font-sans text-foreground;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
a {
|