@starci/eslint-canon-fe 9.4.0 → 9.4.1
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,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.4.1 - 2026-10-28
|
|
4
|
+
|
|
5
|
+
- Fixed: `server-module-marks-server-only` exempts every route-tier file (`fe.route`, `fe.source-root-pinned` and the opt-in `fe.route.callback`), so the auth callback route is no longer told to carry the marker route files need not.
|
|
6
|
+
- Changed: the bundled runtime's `repo-identity.mjs` names a repository by its origin remote (hfs 4.9.2); the fixture copy of the callback route template exports an arrow `GET`.
|
|
7
|
+
- Changed: the bundled canon pins follow release D (Grammar family 0.15.1, hfs 4.9.2, canon-fe 9.4.1, canon-be 3.6.1, starci-harness 1.1.0-alpha.2), so an app installs the released versions without pin drift.
|
|
8
|
+
|
|
3
9
|
## 9.4.0 - 2026-10-28
|
|
4
10
|
|
|
5
11
|
- Changed: the package is TypeScript. `src/**/*.ts` (rules, the shared `lib/` readers and every spec) is strict and builds to `dist/` with the `@starci/tsconfig` `package-esm` preset; `main`, `types` and `exports` point at `dist`, keeping `@starci/eslint-canon-fe/lib/*.mjs` (also `lib/*.js`). The fixture tester is `fixtures/typed/tester.ts`. The bundled runtime is read through the package import `#runtime/*`, typed by `src/types/runtime` until the runtime is built from `@starci/hfs`. Rules are typed against typescript-eslint's rule module; `@typescript-eslint/utils` joins the dependencies. No rule changed behaviour in the conversion.
|
package/dist/client-boundary.js
CHANGED
|
@@ -132,8 +132,6 @@ export const clientNoServerImport = defineRule({
|
|
|
132
132
|
},
|
|
133
133
|
});
|
|
134
134
|
// -- FE-CLIENT-2b ----------------------------------------------------------------------------------
|
|
135
|
-
/** The slots whose files are Next route files: server components by construction, so the framework decides, not a marker. */
|
|
136
|
-
const ROUTE_FILE_SLOTS = new Set(["fe.route", "fe.source-root-pinned"]);
|
|
137
135
|
/** True when a statement is `import "server-only"`: an import with no bindings from the marker package. */
|
|
138
136
|
const isMarkerStatement = (statement) => statement?.type === "ImportDeclaration" && statement.specifiers.length === 0 && statement.source.value === "server-only";
|
|
139
137
|
/** True when a TypeScript source file opens with `import "server-only"`. */
|
|
@@ -174,8 +172,9 @@ export const serverModuleMarksServerOnly = defineRule({
|
|
|
174
172
|
},
|
|
175
173
|
},
|
|
176
174
|
create(context) {
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
// A route-tier file (the routes, the auth callback, the pinned source-root files) is a Next route file: a server component
|
|
176
|
+
// by construction, so the framework decides, not a marker.
|
|
177
|
+
if (!slotOfFile(context) || tierOfFile(context) === "route")
|
|
179
178
|
return {};
|
|
180
179
|
// A block or a page is a server or client COMPONENT, not a server module: whether client code reaches the server through it is
|
|
181
180
|
// the machine's multi-hop question (FE_CLIENT_REACHES_SERVER). The marker belongs to the modules that hold server work.
|
package/package.json
CHANGED
|
@@ -30,35 +30,35 @@ pins:
|
|
|
30
30
|
source: packages/event-stream/package.json
|
|
31
31
|
why: 'the one server-sent-events client of every front end (fe-stack event-stream, owner:event-stream-package): the transport client layer (modules/api/sse/clients) creates one instance for the app with the bearer token source and the stream operations follow on it; it carries Last-Event-ID resume, the capped doubling backoff, the heartbeat timeout, the single 401 renewal and the useSWRSubscription adapter, so no app keeps a hand-written reader.'
|
|
32
32
|
'@starci/grammar':
|
|
33
|
-
version: 0.15.
|
|
33
|
+
version: 0.15.1
|
|
34
34
|
group: starci
|
|
35
35
|
install: registry
|
|
36
36
|
side: fe
|
|
37
37
|
source: packages/grammar/package.json
|
|
38
38
|
why: 'the grammar front ends read: the brand layer sets `--font-sans` and `--font-mono` and the grammar reads them; it carries the Input tel kind, the copyable and read-only Input, the IconButton disclosure props and count badge, ChatBubble, FillViewport, Textarea mentions and Enter-to-send, the leading PrimaryRailLayout rail, the plate-less Image, ListRow, the soft Alert, Progress steps, the floating primary IconButton, FlowGraph, the STATE-8 loading views and the bordered selectable TagGroup chips. The runtime source version wins for a @starci package.'
|
|
39
39
|
'@starci/eslint-canon-be':
|
|
40
|
-
version: 3.6.
|
|
40
|
+
version: 3.6.1
|
|
41
41
|
group: starci
|
|
42
42
|
install: registry
|
|
43
43
|
side: be
|
|
44
44
|
source: packages/eslint-canon-be/package.json
|
|
45
45
|
why: 'the back-end ESLint canon: `loadHfs(import.meta.url)` of be/eslint.config.mjs finds the app-root hfs.json (kind app) and gives every linted file the view of the be side, and the project graph is built per side; its bundled runtime copies (slots, canon-pins, failure codes, the architecture machine) put .starcistacks and .sops.yaml at the app root; `starciBeConfig({ hfs: loadHfs(import.meta.url) })` is the typed factory and the BE-CONVENTION laws are its rules.'
|
|
46
46
|
'@starci/eslint-canon-fe':
|
|
47
|
-
version: 9.4.
|
|
47
|
+
version: 9.4.1
|
|
48
48
|
group: starci
|
|
49
49
|
install: registry
|
|
50
50
|
side: fe
|
|
51
51
|
source: packages/eslint-canon-fe/package.json
|
|
52
52
|
why: 'the front-end ESLint canon: `loadHfs(import.meta.url)` of fe/eslint.config.mjs finds the app-root hfs.json (kind app) and gives every linted file the view of the fe side, and the project graph is built per side; its bundled runtime copies (slots, canon-pins, failure codes, the architecture machine) put .starcistacks and .sops.yaml at the app root; the front end has no tests (FE_NO_TESTS R97 in hfs) and no-vietnamese-in-source (R91) applies.'
|
|
53
53
|
'@starci/eslint-grammar-core':
|
|
54
|
-
version: 0.15.
|
|
54
|
+
version: 0.15.1
|
|
55
55
|
group: starci
|
|
56
56
|
install: registry
|
|
57
57
|
side: fe
|
|
58
58
|
source: packages/eslint-grammar-core/package.json
|
|
59
59
|
why: 'the StarCi Grammar component API lint, versioned with @starci/grammar; front ends compose this family package with the universal FE canon.'
|
|
60
60
|
'@starci/eslint-grammar-offset-pop':
|
|
61
|
-
version: 0.15.
|
|
61
|
+
version: 0.15.1
|
|
62
62
|
group: starci
|
|
63
63
|
install: registry
|
|
64
64
|
side: fe
|
|
@@ -105,14 +105,14 @@ pins:
|
|
|
105
105
|
source: packages/ai-router/package.json
|
|
106
106
|
why: 'the AI pool router of a back end: a NestJS module that routes OpenAI-compatible chat, stream and embeddings calls across keys, models and providers, with @starci/ai-router/testing for its specs; @starci/jest-preset compiles it as an ESM-only dependency.'
|
|
107
107
|
'starci-harness':
|
|
108
|
-
version: 1.1.0-alpha.
|
|
108
|
+
version: 1.1.0-alpha.2
|
|
109
109
|
group: starci
|
|
110
110
|
install: registry
|
|
111
111
|
side: both
|
|
112
112
|
source: cli/package.json
|
|
113
113
|
why: 'the one StarCi command line (bins starci and starci-harness): a product repository installs it for starci app, which it runs in-process through its exact @starci/hfs dependency, and its codegen loads starci-harness/input-bounds.'
|
|
114
114
|
'@starci/hfs':
|
|
115
|
-
version: 4.9.
|
|
115
|
+
version: 4.9.2
|
|
116
116
|
group: starci
|
|
117
117
|
install: registry
|
|
118
118
|
side: both
|
|
@@ -42,13 +42,13 @@ function askGit(root) {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* The product repository name: the
|
|
46
|
-
*
|
|
47
|
-
* (a nested product, an example) is named by
|
|
45
|
+
* The product repository name: the origin remote's repository name (one name for every clone and worktree, whatever
|
|
46
|
+
* folder holds it), else the main checkout's folder name (so a worktree and its main checkout agree), else package.json
|
|
47
|
+
* name outside Git, else the folder name. A folder inside a larger repository (a nested product, an example) is named by
|
|
48
|
+
* its own folder.
|
|
48
49
|
*/
|
|
49
50
|
export function repositoryName(root) {
|
|
50
51
|
const { inWorkTree, repositoryRoot, home } = identityOf(root);
|
|
51
|
-
if (home) return path.basename(home);
|
|
52
52
|
if (repositoryRoot) {
|
|
53
53
|
try {
|
|
54
54
|
const remote = trimTrailingSlashes(git(gitRemote, root, ['get-url', 'origin'])).replace(GIT_SUFFIX, '');
|
|
@@ -56,6 +56,7 @@ export function repositoryName(root) {
|
|
|
56
56
|
if (name) return name;
|
|
57
57
|
} catch { /* No origin remote. */ }
|
|
58
58
|
}
|
|
59
|
+
if (home) return path.basename(home);
|
|
59
60
|
if (inWorkTree && !repositoryRoot) return path.basename(root);
|
|
60
61
|
try {
|
|
61
62
|
const pkg = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
|