@kirana-style/angular 0.3.2 → 0.3.3

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 CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.3](https://github.com/kirana-style/kirana/compare/v0.3.2...v0.3.3) (2026-10-25)
4
+
5
+
6
+ ### Features
7
+
8
+ * 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))
9
+ * 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))
10
+ * 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))
11
+ * 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))
12
+ * 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))
13
+ * 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))
14
+ * kirana-style ui view and search ([#126](https://github.com/kirana-style/kirana/pull/126)) ([8069462](https://github.com/kirana-style/kirana/commit/8069462910fcf853e1eb86e58f68c83f0921640b))
15
+ * 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))
16
+ * 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))
17
+
18
+
19
+ ### Bug fixes
20
+
21
+ * 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))
22
+ * 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))
23
+ * 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))
24
+ * 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))
25
+
26
+
27
+ ### Documentation
28
+
29
+ * 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))
30
+
31
+
32
+ ### Dependencies
33
+
34
+ * 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))
35
+ * 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))
36
+ * 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))
37
+
3
38
  ## [0.3.2](https://github.com/kirana-style/kirana/compare/v0.3.1...v0.3.2) (2026-10-24)
4
39
 
5
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kirana-style/angular",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
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.2",
34
- "@kirana-style/core": "0.3.2"
33
+ "@kirana-style/compiler": "0.3.3",
34
+ "@kirana-style/core": "0.3.3"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@angular/core": ">=20.0.0",
@@ -1,6 +1,5 @@
1
1
  import { applicationBuilder } from "./builders.js";
2
- //#region src/application.ts
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
- //#region src/builders.ts
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
- //#region src/dev-server.ts
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
- //#region src/fesm2022/directive.ts
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
- //#region src/mirror.ts
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
- //#region src/sx.ts
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
- //#region src/vite.ts
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 };