@kirana-style/rolldown 0.3.4 → 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 +44 -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,49 @@
|
|
|
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
|
+
|
|
3
47
|
## [0.3.4](https://github.com/kirana-style/kirana/compare/v0.3.3...v0.3.4) (2026-10-27)
|
|
4
48
|
|
|
5
49
|
|
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] },
|