@kirana-style/angular 0.3.2 → 0.3.4
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/CHANGELOG.md +65 -0
- package/package.json +3 -3
- package/schemas/application.json +1 -1
- package/schemas/dev-server.json +2 -2
- package/src/application.js +1 -2
- package/src/builders.d.ts +1 -3
- package/src/builders.js +1 -2
- package/src/dev-server.js +1 -2
- package/src/fesm2022/directive.d.ts +1 -3
- package/src/fesm2022/directive.js +1 -2
- package/src/mirror.d.ts +1 -3
- package/src/mirror.js +1 -2
- package/src/sx.d.ts +1 -3
- package/src/sx.js +1 -2
- package/src/vite.d.ts +0 -2
- package/src/vite.js +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,70 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.4](https://github.com/kirana-style/kirana/compare/v0.3.3...v0.3.4) (2026-10-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* conditions.ownAttributes, attributes exclusiveAcross never takes for a library's ([#147](https://github.com/kirana-style/kirana/pull/147)) ([9785e20](https://github.com/kirana-style/kirana/commit/9785e20ab47efe9f38926dfa6b90ed26c207e2bf))
|
|
9
|
+
* npx @kirana-style/registry starts a project from nothing, and init leaves one that runs ui ([#139](https://github.com/kirana-style/kirana/pull/139)) ([1bc3ee1](https://github.com/kirana-style/kirana/commit/1bc3ee13b8a202a22dc21b7274f75def34f1caa1))
|
|
10
|
+
* relation(name, { optional: true }) for a reader installed without its anchor ([#146](https://github.com/kirana-style/kirana/pull/146)) ([248abd7](https://github.com/kirana-style/kirana/commit/248abd75e9747005037ecd5d3c30e218f4745132))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug fixes
|
|
14
|
+
|
|
15
|
+
* ark ui's orientation keys name horizontal and vertical ([#145](https://github.com/kirana-style/kirana/pull/145)) ([81fcbd2](https://github.com/kirana-style/kirana/commit/81fcbd27210688393ff4c8f10af2df2824bd8063))
|
|
16
|
+
* kirana/diagnostics reads a vue script block under oxlint as its block module ([#136](https://github.com/kirana-style/kirana/pull/136)) ([ad833a2](https://github.com/kirana-style/kirana/commit/ad833a2f7f87db174d519ff83a369289202fd926))
|
|
17
|
+
* style helpers fold optional values, in, token comparisons and default parameters ([#144](https://github.com/kirana-style/kirana/pull/144)) ([bc8041c](https://github.com/kirana-style/kirana/commit/bc8041cd455a549b399bc23cf94981e3895dd24f))
|
|
18
|
+
* type-only imports close no import cycle, and a value cycle is reported ([#143](https://github.com/kirana-style/kirana/pull/143)) ([f7387b4](https://github.com/kirana-style/kirana/commit/f7387b4676000f293d856281e71f51df5308b618))
|
|
19
|
+
* unreachable-entry stays quiet for pairs exclusiveAcross declares ([#137](https://github.com/kirana-style/kirana/pull/137)) ([098ed99](https://github.com/kirana-style/kirana/commit/098ed995cce33e30a0de694365affd4a6dd0a99e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Documentation
|
|
23
|
+
|
|
24
|
+
* take the benchmarks of kirana 0.3.3 from kirana-lab ([#135](https://github.com/kirana-style/kirana/pull/135)) ([cb2f626](https://github.com/kirana-style/kirana/commit/cb2f626fe46cef83c32a49cc6f30008986c0636f))
|
|
25
|
+
* take the benchmarks of kirana 0.3.3 from kirana-lab ([#140](https://github.com/kirana-style/kirana/pull/140)) ([f501a26](https://github.com/kirana-style/kirana/commit/f501a264201a86b3ec79b05a6c8d101892df7623))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Dependencies
|
|
29
|
+
|
|
30
|
+
* angular build 22.2.4, with its option schemas ([#138](https://github.com/kirana-style/kirana/pull/138)) ([2432806](https://github.com/kirana-style/kirana/commit/2432806c8b594e00413c99dea8da0809a450a82a))
|
|
31
|
+
* bump vscode-languageclient from 10.1.2 to 11.0.0 ([#133](https://github.com/kirana-style/kirana/pull/133)) ([32a0374](https://github.com/kirana-style/kirana/commit/32a0374579159b5dc1c05974a98feecf036dd041))
|
|
32
|
+
|
|
33
|
+
## [0.3.3](https://github.com/kirana-style/kirana/compare/v0.3.2...v0.3.3) (2026-10-25)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* a registry base names the items only it needs ([#128](https://github.com/kirana-style/kirana/pull/128)) ([dd557c1](https://github.com/kirana-style/kirana/commit/dd557c158d876a2f1d1ff8f6365a89e3bd42c553))
|
|
39
|
+
* add @kirana-style/registry with the registry format, schemas, and lockfile ([#118](https://github.com/kirana-style/kirana/pull/118)) ([abcf8bc](https://github.com/kirana-style/kirana/commit/abcf8bc81770850ea0eac4503468528cef747e9c))
|
|
40
|
+
* definitions say how each entry was written, with every token it reads ([#117](https://github.com/kirana-style/kirana/pull/117)) ([bcaaf2d](https://github.com/kirana-style/kirana/commit/bcaaf2d66afb4a4c29cb85d342444c28baaa7fc3))
|
|
41
|
+
* flattened builds at install, and kirana-style ui preset ([#130](https://github.com/kirana-style/kirana/pull/130)) ([06baff0](https://github.com/kirana-style/kirana/commit/06baff0f0a2164a50aa3d3fb1ace552ae2bb63d1))
|
|
42
|
+
* kirana-style ui init, add, outdated, diff, update and remove ([#129](https://github.com/kirana-style/kirana/pull/129)) ([2c870d3](https://github.com/kirana-style/kirana/commit/2c870d3af3af26b2065ee48781b1cd42b8fe2a3f))
|
|
43
|
+
* kirana-style ui reads registries: namespaces, urls and headers ([#119](https://github.com/kirana-style/kirana/pull/119)) ([28bd423](https://github.com/kirana-style/kirana/commit/28bd42345622a9a8d7d20b55a59c02eb75c0c88d))
|
|
44
|
+
* kirana-style ui view and search ([#126](https://github.com/kirana-style/kirana/pull/126)) ([8069462](https://github.com/kirana-style/kirana/commit/8069462910fcf853e1eb86e58f68c83f0921640b))
|
|
45
|
+
* parent() ranks with pseudo-classes, and entries no element can match are left out ([#115](https://github.com/kirana-style/kirana/pull/115)) ([1f7b39d](https://github.com/kirana-style/kirana/commit/1f7b39d24b5c62b69de4080e659d728cd6a49fd1))
|
|
46
|
+
* states for bits ui command and scroll area, ark ui field and fieldset ([#114](https://github.com/kirana-style/kirana/pull/114)) ([d3ac169](https://github.com/kirana-style/kirana/commit/d3ac169fcede53e72ff6899c1174c67770b40eca))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Bug fixes
|
|
50
|
+
|
|
51
|
+
* kirana.config.ts loads as written in a commonjs package ([#127](https://github.com/kirana-style/kirana/pull/127)) ([e74902b](https://github.com/kirana-style/kirana/commit/e74902ba33509ea62b6d9b628642c8f91205b05f))
|
|
52
|
+
* relation-unused follows a relation's exported readers, and trace reads one line's sites ([#112](https://github.com/kirana-style/kirana/pull/112)) ([62f02f1](https://github.com/kirana-style/kirana/commit/62f02f17b24de94bd43cdfd6c42ec5c7cb2776b4))
|
|
53
|
+
* the wasi engine loads again, on emnapi 2.0.0-beta.2 ([#120](https://github.com/kirana-style/kirana/pull/120)) ([ab2936a](https://github.com/kirana-style/kirana/commit/ab2936a091b6c6cd7520a7aba21afff06c8a03cf))
|
|
54
|
+
* vue parts lint and type-check with usesx, and astro 7 prerenders compiled ([#113](https://github.com/kirana-style/kirana/pull/113)) ([2f193e2](https://github.com/kirana-style/kirana/commit/2f193e2b0baca4098a76c948d3d85db9a031a100))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Documentation
|
|
58
|
+
|
|
59
|
+
* take the benchmarks of kirana 0.3.2 from kirana-lab ([#110](https://github.com/kirana-style/kirana/pull/110)) ([641a8d9](https://github.com/kirana-style/kirana/commit/641a8d9be61fe344e8d6463629ccd7a0f75e7c97))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Dependencies
|
|
63
|
+
|
|
64
|
+
* bump string_wizard from 1.2.14 to 1.2.15 in /packages/kirana in the minor-and-patch group ([#124](https://github.com/kirana-style/kirana/pull/124)) ([5493e39](https://github.com/kirana-style/kirana/commit/5493e39806b475c4152a35c570bcfbdd21b704eb))
|
|
65
|
+
* oxc 0.155 with lone surrogates kept, and the week's updates ([#131](https://github.com/kirana-style/kirana/pull/131)) ([1d50743](https://github.com/kirana-style/kirana/commit/1d507438bfe9d1c1d9ba397619fc81e94792a627))
|
|
66
|
+
* update phpunit/phpunit requirement from ~13.3.0 to ~13.3.0 || ~13.4.0 in /packages/kirana/helpers/php ([#122](https://github.com/kirana-style/kirana/pull/122)) ([0b61a05](https://github.com/kirana-style/kirana/commit/0b61a05a10c745c9423f7672ccd19bbb4338fbf0))
|
|
67
|
+
|
|
3
68
|
## [0.3.2](https://github.com/kirana-style/kirana/compare/v0.3.1...v0.3.2) (2026-10-24)
|
|
4
69
|
|
|
5
70
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kirana-style/angular",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Kirana for Angular: the [sx] directive, the Analog (Vite) plugin and Angular CLI builders.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "The Kirana authors",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"./builders.json": "./builders.json"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@kirana-style/compiler": "0.3.
|
|
34
|
-
"@kirana-style/core": "0.3.
|
|
33
|
+
"@kirana-style/compiler": "0.3.4",
|
|
34
|
+
"@kirana-style/core": "0.3.4"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@angular/core": ">=20.0.0",
|
package/schemas/application.json
CHANGED
|
@@ -570,7 +570,7 @@
|
|
|
570
570
|
"oneOf": [
|
|
571
571
|
{
|
|
572
572
|
"type": "boolean",
|
|
573
|
-
"description": "Enable
|
|
573
|
+
"description": "Enable prerendering of pages of your application during build time."
|
|
574
574
|
},
|
|
575
575
|
{
|
|
576
576
|
"type": "object",
|
package/schemas/dev-server.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"port": {
|
|
13
13
|
"type": "number",
|
|
14
|
-
"description": "Port to listen on.",
|
|
14
|
+
"description": "Port to listen on. The `PORT` environment variable, when set, takes precedence over this option.",
|
|
15
15
|
"default": 4200
|
|
16
16
|
},
|
|
17
17
|
"host": {
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
"hmr": {
|
|
93
93
|
"type": "boolean",
|
|
94
|
-
"description": "Enable hot module replacement. Defaults to the value of 'liveReload'. Currently,
|
|
94
|
+
"description": "Enable hot module replacement. Defaults to the value of 'liveReload'. Currently, global stylesheets, component stylesheets, and component templates are supported."
|
|
95
95
|
},
|
|
96
96
|
"watch": {
|
|
97
97
|
"type": "boolean",
|
package/src/application.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { applicationBuilder } from "./builders.js";
|
|
2
|
-
|
|
2
|
+
// src/application.ts
|
|
3
3
|
/** `@kirana-style/angular:application`, loaded by the Angular CLI from builders.json. */
|
|
4
4
|
var application_default = applicationBuilder;
|
|
5
|
-
//#endregion
|
|
6
5
|
export { application_default as default };
|
package/src/builders.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Mirror } from "./mirror.js";
|
|
2
2
|
import { Builder, BuilderContext, BuilderOutput } from "@angular-devkit/architect";
|
|
3
3
|
import { ApplicationBuilderOptions, DevServerBuilderOptions } from "@angular/build";
|
|
4
|
-
//#region src/builders.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Application options with the mirror's replacements and the stylesheet added. The entry files
|
|
7
6
|
* (`browser`, `server`) are not replaced: Angular type-checks only the files its tsconfig lists, and
|
|
@@ -17,5 +16,4 @@ export declare function withMirror<Options extends {
|
|
|
17
16
|
export declare function application(options: ApplicationBuilderOptions, context: BuilderContext): AsyncIterable<BuilderOutput>;
|
|
18
17
|
export declare function devServer(options: DevServerBuilderOptions, context: BuilderContext): AsyncIterable<BuilderOutput>;
|
|
19
18
|
export declare const applicationBuilder: Builder;
|
|
20
|
-
export declare const devServerBuilder: Builder;
|
|
21
|
-
//#endregion
|
|
19
|
+
export declare const devServerBuilder: Builder;
|
package/src/builders.js
CHANGED
|
@@ -2,7 +2,7 @@ import { STYLESHEET, createMirror, watchMirror } from "./mirror.js";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { createBuilder } from "@angular-devkit/architect";
|
|
4
4
|
import { buildApplication, executeDevServerBuilder } from "@angular/build";
|
|
5
|
-
|
|
5
|
+
// src/builders.ts
|
|
6
6
|
/**
|
|
7
7
|
* The Angular CLI builders (`@kirana-style/angular:application`, `@kirana-style/angular:dev-server`): Angular's
|
|
8
8
|
* own, given Kirana's mirror (`mirror.ts`) as `fileReplacements` and its stylesheet in `styles`.
|
|
@@ -65,5 +65,4 @@ async function* devServer(options, context) {
|
|
|
65
65
|
}
|
|
66
66
|
const applicationBuilder = createBuilder(application);
|
|
67
67
|
const devServerBuilder = createBuilder(devServer);
|
|
68
|
-
//#endregion
|
|
69
68
|
export { application, applicationBuilder, devServer, devServerBuilder, withMirror };
|
package/src/dev-server.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { devServerBuilder } from "./builders.js";
|
|
2
|
-
|
|
2
|
+
// src/dev-server.ts
|
|
3
3
|
/** `@kirana-style/angular:dev-server`, loaded by the Angular CLI from builders.json. */
|
|
4
4
|
var dev_server_default = devServerBuilder;
|
|
5
|
-
//#endregion
|
|
6
5
|
export { dev_server_default as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { Handle } from "@kirana-style/core/internal";
|
|
3
3
|
import { Sx } from "@kirana-style/core";
|
|
4
|
-
//#region src/fesm2022/directive.d.ts
|
|
5
4
|
/** The class-name prefix (`names.prefix`); `k` unless the app provides another (`provideKirana`). */
|
|
6
5
|
export declare const KIRANA_PREFIX: i0.InjectionToken<string>;
|
|
7
6
|
/** Providers for an app whose `kirana.config` sets another class-name prefix. */
|
|
@@ -24,5 +23,4 @@ export declare class SxDirective implements i0.OnChanges {
|
|
|
24
23
|
required: false;
|
|
25
24
|
};
|
|
26
25
|
}, {}, never, never, true, never>;
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
26
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { applySx } from "../sx.js";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
|
|
3
|
+
// src/fesm2022/directive.ts
|
|
4
4
|
/**
|
|
5
5
|
* `[sx]` for Angular templates (D-068). A template reaches only its component's members, so `sx`
|
|
6
6
|
* cannot be compiled away there as it is in JSX and in Vue, Svelte or Astro templates: this
|
|
@@ -62,5 +62,4 @@ var SxDirective = class SxDirective {
|
|
|
62
62
|
ngImport: i0
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
|
-
//#endregion
|
|
66
65
|
export { KIRANA_PREFIX, SxDirective, provideKirana };
|
package/src/mirror.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { watch } from "node:fs";
|
|
2
|
-
//#region src/mirror.d.ts
|
|
3
2
|
/** Where the mirror lives, under the workspace root. */
|
|
4
3
|
export declare const MIRROR = ".kirana";
|
|
5
4
|
/** The stylesheet the builders add to `styles`. */
|
|
@@ -24,5 +23,4 @@ export declare function createMirror(root: string, sourceRoot: string, options?:
|
|
|
24
23
|
/** Mirrors every change under the source folder until closed (watch builds and the dev server). */
|
|
25
24
|
export declare function watchMirror(root: string, sourceRoot: string, mirror: Mirror, onUpdate: () => void, watch?: typeof watch): {
|
|
26
25
|
close: () => void;
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
26
|
+
};
|
package/src/mirror.js
CHANGED
|
@@ -2,7 +2,7 @@ import path from "node:path";
|
|
|
2
2
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, watch, writeFileSync } from "node:fs";
|
|
3
3
|
import { Driver, formatDiagnostic } from "@kirana-style/compiler";
|
|
4
4
|
import { SKIPPED, shouldCompile } from "@kirana-style/compiler/host";
|
|
5
|
-
|
|
5
|
+
// src/mirror.ts
|
|
6
6
|
/**
|
|
7
7
|
* Kirana for the Angular CLI (D-068, `design-notes/angular.md`). Angular's application builder
|
|
8
8
|
* compiles TypeScript from its own program and offers no hook to change a source first, but it
|
|
@@ -94,5 +94,4 @@ function watchMirror(root, sourceRoot, mirror, onUpdate, watch$1 = watch) {
|
|
|
94
94
|
onUpdate();
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
|
-
//#endregion
|
|
98
97
|
export { MIRROR, STYLESHEET, createMirror, walk, watchMirror };
|
package/src/sx.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { runtime } from "@kirana-style/core/internal";
|
|
2
|
-
//#region src/sx.d.ts
|
|
3
2
|
/** The part of Angular's `Renderer2` this needs. */
|
|
4
3
|
export type Renderer = {
|
|
5
4
|
addClass: (element: unknown, name: string) => void;
|
|
@@ -17,5 +16,4 @@ export declare const DASH_CASE = 2;
|
|
|
17
16
|
/** One runtime per class-name prefix, as each compiled module creates one. */
|
|
18
17
|
export declare function runtimeFor(prefix: string): ReturnType<typeof runtime>;
|
|
19
18
|
/** Applies `value` (a handle, or an array of handles and falsy guards); returns what is applied now. */
|
|
20
|
-
export declare function applySx(renderer: Renderer, element: unknown, previous: Applied, value: unknown, prefix: string): Applied;
|
|
21
|
-
//#endregion
|
|
19
|
+
export declare function applySx(renderer: Renderer, element: unknown, previous: Applied, value: unknown, prefix: string): Applied;
|
package/src/sx.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { runtime } from "@kirana-style/core/internal";
|
|
2
|
-
|
|
2
|
+
// src/sx.ts
|
|
3
3
|
/**
|
|
4
4
|
* What `[sx]` does to an element, without Angular: merge the handles with Kirana's runtime (the same
|
|
5
5
|
* one compiled modules call), then bring the element's classes and custom properties from what the
|
|
@@ -33,5 +33,4 @@ function applySx(renderer, element, previous, value, prefix) {
|
|
|
33
33
|
styles: new Set(Object.keys(styles))
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
//#endregion
|
|
37
36
|
export { DASH_CASE, applySx, runtimeFor };
|
package/src/vite.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { KiranaViteOptions } from "@kirana-style/vite";
|
|
2
2
|
import { Plugin } from "vite";
|
|
3
|
-
//#region src/vite.d.ts
|
|
4
3
|
export declare function kiranaAngular(options?: KiranaViteOptions): Plugin[];
|
|
5
|
-
//#endregion
|
|
6
4
|
export { type KiranaViteOptions as KiranaAngularOptions, kiranaAngular as default };
|
package/src/vite.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import kirana from "@kirana-style/vite";
|
|
2
|
-
|
|
2
|
+
// src/vite.ts
|
|
3
3
|
/**
|
|
4
4
|
* Kirana for Analog, Angular on Vite (D-068). Angular compiles each TypeScript file from its own
|
|
5
5
|
* program on disk, so a plugin that ran first would change nothing it reads. This is Kirana's Vite
|
|
@@ -16,5 +16,4 @@ function kiranaAngular(options = {}) {
|
|
|
16
16
|
enforce: "post"
|
|
17
17
|
}, late];
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { kiranaAngular as default, kiranaAngular };
|