@kirana-style/webpack 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/src/index.d.ts +0 -2
- package/src/index.js +1 -2
- package/src/loader.d.ts +1 -3
- package/src/loader.js +1 -2
- package/src/next.d.ts +0 -2
- package/src/next.js +1 -2
- package/src/session.d.ts +1 -3
- package/src/session.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/webpack",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Kirana for webpack 5 and Rspack: a loader that compiles modules and a plugin that finishes the stylesheet.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "The Kirana authors",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"./package.json": "./package.json"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@kirana-style/compiler": "0.3.
|
|
37
|
-
"@kirana-style/core": "0.3.
|
|
36
|
+
"@kirana-style/compiler": "0.3.4",
|
|
37
|
+
"@kirana-style/core": "0.3.4"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"webpack": "^5.90.0",
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { KiranaWebpackOptions } from "./session.js";
|
|
2
|
-
//#region src/index.d.ts
|
|
3
2
|
type Asset = {
|
|
4
3
|
name: string;
|
|
5
4
|
source: {
|
|
@@ -61,5 +60,4 @@ export declare class KiranaPlugin {
|
|
|
61
60
|
constructor(options?: KiranaWebpackOptions);
|
|
62
61
|
apply(compiler: Compiler): void;
|
|
63
62
|
}
|
|
64
|
-
//#endregion
|
|
65
63
|
export { KiranaPlugin as default, type KiranaWebpackOptions };
|
package/src/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { readFile, writeFile } from "node:fs/promises";
|
|
|
5
5
|
import { tmpdir } from "node:os";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
|
-
|
|
8
|
+
// src/index.ts
|
|
9
9
|
/**
|
|
10
10
|
* The webpack 5 and Rspack host adapter (KRN-INT-001, KRN-INT-003): a `pre` loader compiles modules,
|
|
11
11
|
* and the plugin finishes the stylesheet entry. Rspack implements webpack's plugin and loader API,
|
|
@@ -99,5 +99,4 @@ var KiranaPlugin = class {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
|
-
//#endregion
|
|
103
102
|
export { KiranaPlugin, KiranaPlugin as default };
|
package/src/loader.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/loader.d.ts
|
|
2
1
|
/** The part of webpack's and Rspack's loader context the loader uses. */
|
|
3
2
|
export type LoaderContext = {
|
|
4
3
|
resourcePath: string;
|
|
@@ -10,5 +9,4 @@ export type LoaderContext = {
|
|
|
10
9
|
addDependency: (file: string) => void;
|
|
11
10
|
emitWarning: (warning: Error) => void;
|
|
12
11
|
};
|
|
13
|
-
export default function kiranaLoader(this: LoaderContext, source: string, map?: unknown): void;
|
|
14
|
-
//#endregion
|
|
12
|
+
export default function kiranaLoader(this: LoaderContext, source: string, map?: unknown): void;
|
package/src/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { sessions } from "./session.js";
|
|
2
2
|
import { PLACEHOLDER, shouldCompile } from "@kirana-style/compiler/host";
|
|
3
|
-
|
|
3
|
+
// src/loader.ts
|
|
4
4
|
/**
|
|
5
5
|
* The loader half of the webpack and Rspack adapter (KRN-INT-001): it compiles one module, or
|
|
6
6
|
* answers the stylesheet entry with the placeholder rule the plugin later replaces. The plugin
|
|
@@ -39,5 +39,4 @@ function kiranaLoader(source, map) {
|
|
|
39
39
|
else callback(null, result.code, result.map && JSON.parse(result.map));
|
|
40
40
|
}).catch((error) => callback(error));
|
|
41
41
|
}
|
|
42
|
-
//#endregion
|
|
43
42
|
export { kiranaLoader as default };
|
package/src/next.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { KiranaWebpackOptions } from "./session.js";
|
|
2
|
-
//#region src/next.d.ts
|
|
3
2
|
type WebpackConfig = {
|
|
4
3
|
plugins?: unknown[];
|
|
5
4
|
};
|
|
@@ -11,5 +10,4 @@ type NextConfig = {
|
|
|
11
10
|
[key: string]: unknown;
|
|
12
11
|
};
|
|
13
12
|
export declare function withKirana<Config extends NextConfig>(nextConfig?: Config, options?: KiranaWebpackOptions): Omit<Config, "webpack"> & Required<Pick<NextConfig, "webpack">>;
|
|
14
|
-
//#endregion
|
|
15
13
|
export {};
|
package/src/next.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KiranaPlugin } from "./index.js";
|
|
2
|
-
|
|
2
|
+
// src/next.ts
|
|
3
3
|
/**
|
|
4
4
|
* Next.js with webpack (`next build --webpack`, KRN-INT-003): `withKirana` adds the plugin to every
|
|
5
5
|
* compiler Next creates — server, client and edge — at the project directory, and keeps any
|
|
@@ -17,5 +17,4 @@ function withKirana(nextConfig = {}, options = {}) {
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { withKirana };
|
package/src/session.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createReporter } from "@kirana-style/compiler/host";
|
|
2
2
|
import { Driver, DriverOptions } from "@kirana-style/compiler";
|
|
3
3
|
import { KiranaConfig } from "@kirana-style/core/config";
|
|
4
|
-
//#region src/session.d.ts
|
|
5
4
|
export type KiranaWebpackOptions = {
|
|
6
5
|
/** The project root: where `kirana.config.*` and `@kirana-style/core` are found. Default: the compiler's context. */
|
|
7
6
|
root?: string;
|
|
@@ -40,5 +39,4 @@ export type Session = {
|
|
|
40
39
|
* duplicated install); every instance must find the same entries.
|
|
41
40
|
*/
|
|
42
41
|
export declare const sessions: Map<string, Session>;
|
|
43
|
-
export declare function createSession(options: KiranaWebpackOptions, root: string, stylesheetFile: string, minify: boolean): string;
|
|
44
|
-
//#endregion
|
|
42
|
+
export declare function createSession(options: KiranaWebpackOptions, root: string, stylesheetFile: string, minify: boolean): string;
|
package/src/session.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createReporter } from "@kirana-style/compiler/host";
|
|
2
2
|
import { Driver } from "@kirana-style/compiler";
|
|
3
|
-
|
|
3
|
+
// src/session.ts
|
|
4
4
|
/**
|
|
5
5
|
* What the plugin and the loader share: one Driver per compiler, found by an id the plugin puts in
|
|
6
6
|
* the loader's options. An id rather than the object, because Rspack hands loader options across its
|
|
@@ -53,5 +53,4 @@ function createSession(options, root, stylesheetFile, minify) {
|
|
|
53
53
|
});
|
|
54
54
|
return id;
|
|
55
55
|
}
|
|
56
|
-
//#endregion
|
|
57
56
|
export { createSession, sessions };
|