@absolutejs/absolute 0.19.0-beta.1137 → 0.19.0-beta.1139
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/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +28 -2
- package/dist/build.js.map +3 -3
- package/dist/cli/index.js +62 -16
- package/dist/index.js +35 -3
- package/dist/index.js.map +4 -4
- package/dist/src/cli/scripts/eslint.d.ts +23 -1
- package/dist/src/cli/scripts/eslintChunked.d.ts +7 -0
- package/dist/src/cli/scripts/lintProof.d.ts +5 -4
- package/dist/vue/index.js +15 -3
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +15 -3
- package/dist/vue/server.js.map +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
export declare const getCacheLocation: (args: string[]) => string;
|
|
2
|
+
export declare const findEslintConfigPath: (cwd?: string) => string | null;
|
|
3
|
+
/**
|
|
4
|
+
* Guards the on-disk ESLint cache. Covers the INSTALLED manifests of every
|
|
5
|
+
* lint-related dependency — plugin and parser implementations are functions,
|
|
6
|
+
* so they vanish from the config object ESLint itself hashes, and an upgrade
|
|
7
|
+
* (or node_modules drifting from the lockfile) would otherwise reuse stale
|
|
8
|
+
* verdicts forever.
|
|
9
|
+
*
|
|
10
|
+
* Deliberately NOT the config file's text. ESLint already stores a hash of
|
|
11
|
+
* each file's *calculated* config in its own cache entry, so editing one
|
|
12
|
+
* `files:` override re-lints exactly the files whose computed config changed
|
|
13
|
+
* and leaves the rest hot. Mixing config text in here dropped every cached
|
|
14
|
+
* verdict in the repo for a one-line edit. The config's import list still
|
|
15
|
+
* feeds `lintDependencyNames`, so adding a plugin does reset the cache.
|
|
16
|
+
*
|
|
17
|
+
* The lint proof must fail closed on any config edit, so it hashes
|
|
18
|
+
* `createEslintConfigDigest` in on top of this.
|
|
19
|
+
*/
|
|
2
20
|
export declare const createEslintCacheFingerprint: (cwd?: string) => string;
|
|
21
|
+
/** Digest of the flat-config file itself, for callers that must invalidate on
|
|
22
|
+
* any config edit rather than defer to ESLint's per-file config hashing. */
|
|
23
|
+
export declare const createEslintConfigDigest: (cwd?: string) => string;
|
|
3
24
|
type EslintCacheOptions = {
|
|
4
25
|
cacheLocation: string;
|
|
5
26
|
cwd?: string;
|
|
@@ -12,7 +33,8 @@ export declare const buildEslintCommand: (args: string[], cacheLocation: string)
|
|
|
12
33
|
*
|
|
13
34
|
* - Caching: enabled by default with ESLint's content strategy, so Git
|
|
14
35
|
* operations that alter mtimes don't make unchanged files expensive.
|
|
15
|
-
* Installed lint-tool
|
|
36
|
+
* Installed lint-tool changes invalidate the cache automatically; config
|
|
37
|
+
* edits are left to ESLint's own per-file config hashing.
|
|
16
38
|
* The cache location is overridable via `ABSOLUTE_ESLINT_CACHE`
|
|
17
39
|
* (default: `.absolutejs/eslint-cache`).
|
|
18
40
|
* - Implicit lint target: `.` is appended only when the user hasn't
|
|
@@ -7,6 +7,13 @@ type ChunkedArgs = {
|
|
|
7
7
|
passthrough: string[];
|
|
8
8
|
shards: number;
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* The exact set of files an `absolute eslint --chunked` invocation lints,
|
|
12
|
+
* resolved through the same glob semantics the run itself uses. `--changed` is
|
|
13
|
+
* deliberately ignored: callers that attest to a run (the lint proof) must
|
|
14
|
+
* cover the whole lint set, not one diff's slice of it.
|
|
15
|
+
*/
|
|
16
|
+
export declare const resolveLintTargets: (args: string[], cwd?: string) => string[];
|
|
10
17
|
export declare const eslintChunked: (args: string[], cwd?: string) => Promise<void>;
|
|
11
18
|
/**
|
|
12
19
|
* Files that differ from `base` plus anything staged/unstaged/untracked —
|
|
@@ -29,11 +29,12 @@ type VerifyLintProofOptions = CreateLintProofOptions & {
|
|
|
29
29
|
trustedKeyLocation?: string;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* Build a Git tree from the
|
|
33
|
-
* index. Ignored files and the proof itself are excluded. Git
|
|
34
|
-
* normal clean filters, so the digest is stable across checkout
|
|
32
|
+
* Build a Git tree from the files the lint command covers, without modifying
|
|
33
|
+
* the real index. Ignored files and the proof itself are excluded. Git
|
|
34
|
+
* performs its normal clean filters, so the digest is stable across checkout
|
|
35
|
+
* platforms.
|
|
35
36
|
*/
|
|
36
|
-
export declare const createLintSourceTree: (cwd?: string, proofLocation?: string) => string;
|
|
37
|
+
export declare const createLintSourceTree: (cwd?: string, proofLocation?: string, command?: string[]) => string;
|
|
37
38
|
export declare const createLintProof: (command: string[], options?: CreateLintProofOptions) => LintProof;
|
|
38
39
|
export declare const writeLintProof: (command: string[], options?: WriteLintProofOptions) => LintProof;
|
|
39
40
|
export declare const verifyLintProof: (command: string[], options?: VerifyLintProofOptions) => ProofResult;
|
package/dist/vue/index.js
CHANGED
|
@@ -5167,7 +5167,7 @@ var handleVuePageRequest = async (input) => {
|
|
|
5167
5167
|
};
|
|
5168
5168
|
const resolvedPage = await resolvePageComponent();
|
|
5169
5169
|
const { createSSRApp } = await import("vue");
|
|
5170
|
-
const { renderToWebStream } = await import("vue/server-renderer");
|
|
5170
|
+
const { renderToString, renderToWebStream } = await import("vue/server-renderer");
|
|
5171
5171
|
const app = createSSRApp(resolvedPage.component, maybeProps ?? null);
|
|
5172
5172
|
let pendingRedirect = null;
|
|
5173
5173
|
let pendingNotFound = false;
|
|
@@ -5214,6 +5214,12 @@ var handleVuePageRequest = async (input) => {
|
|
|
5214
5214
|
headers: { "Content-Type": "text/html" }
|
|
5215
5215
|
});
|
|
5216
5216
|
}
|
|
5217
|
+
if (resolvedOptions?.collectStreamingSlots !== true) {
|
|
5218
|
+
const body = await renderToString(app, ssrContext);
|
|
5219
|
+
return new Response(`${head}${body}${buildTail()}`, {
|
|
5220
|
+
headers: streamingPageHeaders()
|
|
5221
|
+
});
|
|
5222
|
+
}
|
|
5217
5223
|
const bodyStream = renderToWebStream(app, ssrContext);
|
|
5218
5224
|
const { firstChunk, reader } = await primeVueStream(bodyStream);
|
|
5219
5225
|
const stream = new ReadableStream({
|
|
@@ -5228,7 +5234,13 @@ var handleVuePageRequest = async (input) => {
|
|
|
5228
5234
|
return;
|
|
5229
5235
|
}
|
|
5230
5236
|
const pumpLoop = () => {
|
|
5231
|
-
reader.read().then(({ done, value }) => done ? (controller.enqueue(buildTail()), controller.close()) : (controller.enqueue(value), pumpLoop())).catch((err) =>
|
|
5237
|
+
reader.read().then(({ done, value }) => done ? (controller.enqueue(buildTail()), controller.close()) : (controller.enqueue(value), pumpLoop())).catch((err) => {
|
|
5238
|
+
console.error("[SSR] Vue streaming render error:", err);
|
|
5239
|
+
reader.cancel(err).catch(() => {
|
|
5240
|
+
return;
|
|
5241
|
+
});
|
|
5242
|
+
controller.error(err);
|
|
5243
|
+
});
|
|
5232
5244
|
};
|
|
5233
5245
|
pumpLoop();
|
|
5234
5246
|
}
|
|
@@ -5717,5 +5729,5 @@ export {
|
|
|
5717
5729
|
ABSOLUTE_TELEPORT_TARGET
|
|
5718
5730
|
};
|
|
5719
5731
|
|
|
5720
|
-
//# debugId=
|
|
5732
|
+
//# debugId=A1644067FA85247264756E2164756E21
|
|
5721
5733
|
//# sourceMappingURL=index.js.map
|