@kirana-style/rolldown 0.3.3 → 0.3.5
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 +74 -0
- package/package.json +3 -3
- package/src/index.d.ts +4 -6
- package/src/index.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.5](https://github.com/kirana-style/kirana/compare/v0.3.4...v0.3.5) (2026-10-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* a part that anchors a relation can read its own kind beside it ([#163](https://github.com/kirana-style/kirana/pull/163)) ([71131ad](https://github.com/kirana-style/kirana/commit/71131adc72d053b547879b1ebaddbc4f22b012bc))
|
|
9
|
+
* add @kirana-style/compiler-browser, the engine in a browser page ([#155](https://github.com/kirana-style/kirana/pull/155)) ([566f300](https://github.com/kirana-style/kirana/commit/566f300bfe33f94f4c51399f1b199b0ae3915b64))
|
|
10
|
+
* angular parts merge sx through partSx beside SxDirective ([#167](https://github.com/kirana-style/kirana/pull/167)) ([0138926](https://github.com/kirana-style/kirana/commit/0138926c8249b337682b84f64d1587fb3e2d1740))
|
|
11
|
+
* font items, imported by ui add and installed by a preset ([#168](https://github.com/kirana-style/kirana/pull/168)) ([e6dc629](https://github.com/kirana-style/kirana/commit/e6dc62989b81038a6110eb731ccf4fc0b8325c12))
|
|
12
|
+
* own() claims an attribute for one component's style ([#169](https://github.com/kirana-style/kirana/pull/169)) ([52f6e52](https://github.com/kirana-style/kirana/commit/52f6e52bb3840521e3fc86ac6b1017aed6a6b8bb))
|
|
13
|
+
* style helpers evaluate object.entries, fromEntries and map ([#160](https://github.com/kirana-style/kirana/pull/160)) ([05421b8](https://github.com/kirana-style/kirana/commit/05421b8cccff73fdc0cf57aa288a2606b200eafd))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug fixes
|
|
17
|
+
|
|
18
|
+
* a relation read compiles in a module that does not import kirana ([#159](https://github.com/kirana-style/kirana/pull/159)) ([cb073a4](https://github.com/kirana-style/kirana/commit/cb073a4aa5f1c5039ed2182a18118d8123d11851))
|
|
19
|
+
* an import no style reads is not reported unresolved or cyclic ([#148](https://github.com/kirana-style/kirana/pull/148)) ([40eff25](https://github.com/kirana-style/kirana/commit/40eff2516620feade8130c8a2cf74b3d1b45fd06))
|
|
20
|
+
* an import of a file created during a watch session resolves ([#164](https://github.com/kirana-style/kirana/pull/164)) ([afdb700](https://github.com/kirana-style/kirana/commit/afdb7007c9908f7c3f3036e6eaec9cb0d2ac197f))
|
|
21
|
+
* angular and ember peer @kirana-style/vite at the release's version ([#157](https://github.com/kirana-style/kirana/pull/157)) ([09d71db](https://github.com/kirana-style/kirana/commit/09d71db1124dc722e54fbcfee70f3a511cfceea4))
|
|
22
|
+
* props() and keyframes() are typed as they compile ([#158](https://github.com/kirana-style/kirana/pull/158)) ([b797caa](https://github.com/kirana-style/kirana/commit/b797caa8f040ffc0e0dccfb513b76ef0517e407b))
|
|
23
|
+
* removing a whole box removes its logical sides too ([#171](https://github.com/kirana-style/kirana/pull/171)) ([f838ff1](https://github.com/kirana-style/kirana/commit/f838ff1de7c7b31c0c576fcda3394fc27abd5cd5))
|
|
24
|
+
* ui init gives a javascript next.js app its tsconfig and typescript ([#149](https://github.com/kirana-style/kirana/pull/149)) ([6eee0fd](https://github.com/kirana-style/kirana/commit/6eee0fdda35deca7ad66721ff12b3791bfba228c))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Performance
|
|
28
|
+
|
|
29
|
+
* a dev server and a watch build reuse unchanged transforms ([#170](https://github.com/kirana-style/kirana/pull/170)) ([3eac1cf](https://github.com/kirana-style/kirana/commit/3eac1cfb6a730fae900d6c81ed86b9b5833baf22))
|
|
30
|
+
* a style written out in full compiles once a session ([#166](https://github.com/kirana-style/kirana/pull/166)) ([ec84bd3](https://github.com/kirana-style/kirana/commit/ec84bd35af1068fbfe0a6aa52972b70ed2eff05f))
|
|
31
|
+
* dense names build the renaming's source map only when the build writes maps ([#161](https://github.com/kirana-style/kirana/pull/161)) ([a655efd](https://github.com/kirana-style/kirana/commit/a655efd0632b97c86190cca95c5ce7b73dd38a88))
|
|
32
|
+
* reading a preset's tokens no longer walks the whole preset ([#165](https://github.com/kirana-style/kirana/pull/165)) ([b92775d](https://github.com/kirana-style/kirana/commit/b92775d74d96b8f4b357616937ddc7921ac1c73a))
|
|
33
|
+
* the engine loader looks up the c library once per process ([#156](https://github.com/kirana-style/kirana/pull/156)) ([344a932](https://github.com/kirana-style/kirana/commit/344a932ed212900c6cdeb980d135d5c248fd93c2))
|
|
34
|
+
* the stylesheet is written from one atom index, not every module's atoms ([#162](https://github.com/kirana-style/kirana/pull/162)) ([6718147](https://github.com/kirana-style/kirana/commit/6718147b0bb444f3d63403047c726d31e823a517))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Documentation
|
|
38
|
+
|
|
39
|
+
* take the benchmarks of kirana 0.3.4 from kirana-lab ([#153](https://github.com/kirana-style/kirana/pull/153)) ([f093aa7](https://github.com/kirana-style/kirana/commit/f093aa7a693e38fcc8d252f9e797c775e2321ca1))
|
|
40
|
+
* the roadmap lists the products planned beside the compiler ([#154](https://github.com/kirana-style/kirana/pull/154)) ([7806842](https://github.com/kirana-style/kirana/commit/7806842cbd7ebf67efa98131f3343891351df01c))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Dependencies
|
|
44
|
+
|
|
45
|
+
* bump the minor-and-patch group with 4 updates ([#151](https://github.com/kirana-style/kirana/pull/151)) ([4bb63be](https://github.com/kirana-style/kirana/commit/4bb63be11279c059c28f33e120b6fc36af06da02))
|
|
46
|
+
|
|
47
|
+
## [0.3.4](https://github.com/kirana-style/kirana/compare/v0.3.3...v0.3.4) (2026-10-27)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Features
|
|
51
|
+
|
|
52
|
+
* 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))
|
|
53
|
+
* 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))
|
|
54
|
+
* 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))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Bug fixes
|
|
58
|
+
|
|
59
|
+
* 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))
|
|
60
|
+
* 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))
|
|
61
|
+
* 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))
|
|
62
|
+
* 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))
|
|
63
|
+
* 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))
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Documentation
|
|
67
|
+
|
|
68
|
+
* 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))
|
|
69
|
+
* 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))
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Dependencies
|
|
73
|
+
|
|
74
|
+
* 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))
|
|
75
|
+
* 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))
|
|
76
|
+
|
|
3
77
|
## [0.3.3](https://github.com/kirana-style/kirana/compare/v0.3.2...v0.3.3) (2026-10-25)
|
|
4
78
|
|
|
5
79
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kirana-style/rolldown",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Kirana for Rolldown: compiles modules and emits the stylesheet.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "The Kirana authors",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@kirana-style/compiler": "0.3.
|
|
29
|
-
"@kirana-style/core": "0.3.
|
|
28
|
+
"@kirana-style/compiler": "0.3.5",
|
|
29
|
+
"@kirana-style/core": "0.3.5"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"rolldown": "^1.2.12"
|
package/src/index.d.ts
CHANGED
|
@@ -48,18 +48,16 @@ export type Host = {
|
|
|
48
48
|
export declare function createKirana(options?: KiranaRolldownOptions, host?: Host): {
|
|
49
49
|
plugin: {
|
|
50
50
|
name: string;
|
|
51
|
-
buildStart(
|
|
52
|
-
meta: {
|
|
53
|
-
watchMode: boolean;
|
|
54
|
-
};
|
|
55
|
-
}): Promise<void>;
|
|
51
|
+
buildStart(): Promise<void>;
|
|
56
52
|
renderChunk(this: {
|
|
57
53
|
error: (message: string) => never;
|
|
58
54
|
}, code: string, chunk: {
|
|
59
55
|
fileName: string;
|
|
56
|
+
}, output: {
|
|
57
|
+
sourcemap?: boolean | "inline" | "hidden" | null;
|
|
60
58
|
}): Promise<{
|
|
61
59
|
code: string;
|
|
62
|
-
map
|
|
60
|
+
map?: import("magic-string").SourceMap;
|
|
63
61
|
} | null>;
|
|
64
62
|
load: {
|
|
65
63
|
filter: {
|
package/src/index.js
CHANGED
|
@@ -52,13 +52,13 @@ function createKirana(options = {}, host = {}) {
|
|
|
52
52
|
name: "kirana",
|
|
53
53
|
async buildStart() {
|
|
54
54
|
const compiler = await session();
|
|
55
|
-
|
|
55
|
+
compiler.reuseTransforms();
|
|
56
56
|
if (dense()) {
|
|
57
57
|
if (compiler.classModules.length > 0) throw new Error("kirana: `names: \"dense\"` cannot be used with a class map (`classes`): server templates read hashed names");
|
|
58
58
|
compiler.markDense();
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
|
-
async renderChunk(code, chunk) {
|
|
61
|
+
async renderChunk(code, chunk, output) {
|
|
62
62
|
if (development()) return null;
|
|
63
63
|
const compiler = await session();
|
|
64
64
|
const names = definitionNames(code, compiler.prefix);
|
|
@@ -72,7 +72,7 @@ function createKirana(options = {}, host = {}) {
|
|
|
72
72
|
if (keyframes.length > 0) this.error(`kirana: ${chunk.fileName} names keyframes the stylesheet left out: ${keyframes.join(", ")}. Nothing the stylesheet's own build bundled named them. Apply them in a style a module of that build compiles (\`animationName\`), so a rule reads them (D-094).`);
|
|
73
73
|
for (const name of names) named.add(name);
|
|
74
74
|
if (!dense()) return null;
|
|
75
|
-
return compiler.dense(code, chunk.fileName) ?? null;
|
|
75
|
+
return compiler.dense(code, chunk.fileName, Boolean(output.sourcemap)) ?? null;
|
|
76
76
|
},
|
|
77
77
|
load: {
|
|
78
78
|
filter: { id: [/stylesheet\.css/, COMPONENT] },
|