@absolutejs/absolute 0.20.0-beta.182 → 0.20.0-beta.183
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 +14 -0
- package/changelog.json +21 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +177 -37
- package/dist/angular/index.js.map +6 -5
- package/dist/angular/server.js +177 -37
- package/dist/angular/server.js.map +6 -5
- package/dist/build.js +22 -8
- package/dist/build.js.map +5 -5
- package/dist/cli/{build-p3qra1nj.js → build-df81wh71.js} +5 -2
- package/dist/cli/{buildReactServerComponents-vc9hh2rd.js → buildReactServerComponents-k6amghrj.js} +1 -1
- package/dist/cli/config/server.js +19 -1
- package/dist/cli/{index-mmm6d3k5.js → index-3dz754hk.js} +2 -2
- package/dist/cli/{index-7zwzyymv.js → index-pq4qqz0r.js} +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/{typecheck-yjme4fv1.js → typecheck-bvm0ndq4.js} +153 -62
- package/dist/dev/serverBootstrap.js +8 -2
- package/dist/index.js +24 -10
- package/dist/index.js.map +5 -5
- package/dist/react/index.js +10 -2
- package/dist/react/index.js.map +3 -3
- package/dist/react/server.js +10 -2
- package/dist/react/server.js.map +3 -3
- package/dist/src/angular/colocatedRouteMatch.d.ts +23 -0
- package/dist/src/cli/scripts/typecheck.d.ts +1 -0
- package/dist/src/cli/scripts/typecheckDiagnostics.d.ts +41 -0
- package/dist/src/dev/hot/analyze.d.ts +1 -1
- package/dist/src/utils/spaRouteManifest.d.ts +1 -0
- package/dist/svelte/index.js +10 -2
- package/dist/svelte/index.js.map +3 -3
- package/dist/svelte/server.js +10 -2
- package/dist/svelte/server.js.map +3 -3
- package/dist/vue/index.js +10 -2
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +10 -2
- package/dist/vue/server.js.map +3 -3
- package/package.json +1 -1
|
@@ -15,3 +15,44 @@ export declare const withoutReported: (output: string, reported: ReadonlySet<str
|
|
|
15
15
|
output: string;
|
|
16
16
|
remaining: number;
|
|
17
17
|
};
|
|
18
|
+
type SveltePosition = {
|
|
19
|
+
character: number;
|
|
20
|
+
line: number;
|
|
21
|
+
};
|
|
22
|
+
export type SvelteCheckDiagnostic = {
|
|
23
|
+
code?: number | string;
|
|
24
|
+
end: SveltePosition;
|
|
25
|
+
filename: string;
|
|
26
|
+
message: string;
|
|
27
|
+
source?: string;
|
|
28
|
+
start: SveltePosition;
|
|
29
|
+
type: 'ERROR' | 'WARNING';
|
|
30
|
+
};
|
|
31
|
+
/** svelte-check's machine-verbose output: its errors, its failures, and any
|
|
32
|
+
* other line it (or node) printed, kept verbatim. Warnings are dropped:
|
|
33
|
+
* `--threshold error` keeps them out of the output, and this keeps them
|
|
34
|
+
* out of the count if one ever gets through. */
|
|
35
|
+
export declare const parseSvelteCheckOutput: (output: string) => {
|
|
36
|
+
diagnostics: SvelteCheckDiagnostic[];
|
|
37
|
+
failures: string[];
|
|
38
|
+
other: string[];
|
|
39
|
+
};
|
|
40
|
+
/** The `file:line:column:code` key of a TypeScript diagnostic, 1-based like
|
|
41
|
+
* the plain checker's; null for the Svelte compiler's own diagnostics,
|
|
42
|
+
* which no other checker reports. */
|
|
43
|
+
export declare const svelteDiagnosticKey: (diagnostic: SvelteCheckDiagnostic, cwd?: string) => string | null;
|
|
44
|
+
/** svelte-check's errors in tsc's pretty shape: `file:line:col - error
|
|
45
|
+
* TS2322: message`, then the line with the span underlined. */
|
|
46
|
+
export declare const formatSvelteDiagnostics: (diagnostics: readonly SvelteCheckDiagnostic[], readSource: (file: string) => string | null, cwd?: string) => string;
|
|
47
|
+
/**
|
|
48
|
+
* svelte-check's output, read and rendered for people, without the errors
|
|
49
|
+
* the plain checker already reported (`reported`, from diagnosticKeys).
|
|
50
|
+
* A failure or any unrecognised line is kept, and keeps the run failing.
|
|
51
|
+
* `remaining` is 0 when everything svelte-check found is already on screen.
|
|
52
|
+
*/
|
|
53
|
+
export declare const svelteCheckReport: (output: string, reported: ReadonlySet<string>, readSource: (file: string) => string | null, cwd?: string) => {
|
|
54
|
+
dropped: number;
|
|
55
|
+
output: string;
|
|
56
|
+
remaining: number;
|
|
57
|
+
};
|
|
58
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as TS from 'typescript';
|
|
2
|
-
export declare const ANALYZER_VERSION =
|
|
2
|
+
export declare const ANALYZER_VERSION = 3;
|
|
3
3
|
export type ExportKind = 'class' | 'function' | 'live' | 'value';
|
|
4
4
|
export type ImportUse = {
|
|
5
5
|
/** Resolved module path the binding comes from. */
|
|
@@ -9,3 +9,4 @@ export declare const getObservedSpaRoutes: () => RuntimeSpaHost[];
|
|
|
9
9
|
export declare const setObservedSpaRoutes: (hosts: RuntimeSpaHost[]) => void;
|
|
10
10
|
export declare const isKnownSpaRoute: (framework: keyof ConventionsMap, pageName: string, request: Request | undefined) => boolean;
|
|
11
11
|
export declare const renderSpaNotFound: (framework: keyof ConventionsMap, pageName: string, request: Request | undefined) => Promise<Response | null>;
|
|
12
|
+
export declare const renderSpaNotFoundResponse: (request: Request | undefined) => Promise<Response>;
|
package/dist/svelte/index.js
CHANGED
|
@@ -3776,6 +3776,7 @@ var init_resolveConvention = __esm(() => {
|
|
|
3776
3776
|
});
|
|
3777
3777
|
|
|
3778
3778
|
// src/utils/spaRouteManifest.ts
|
|
3779
|
+
import { NotFound } from "elysia";
|
|
3779
3780
|
import { basename as basename3 } from "path";
|
|
3780
3781
|
var SPA_ROUTES_KEY = "__absoluteSpaRoutes", setSpaRouteManifest = (hosts) => {
|
|
3781
3782
|
Reflect.set(globalThis, SPA_ROUTES_KEY, hosts);
|
|
@@ -3840,7 +3841,14 @@ var SPA_ROUTES_KEY = "__absoluteSpaRoutes", setSpaRouteManifest = (hosts) => {
|
|
|
3840
3841
|
}, renderSpaNotFound = async (framework, pageName, request) => {
|
|
3841
3842
|
if (isKnownSpaRoute(framework, pageName, request))
|
|
3842
3843
|
return null;
|
|
3843
|
-
return
|
|
3844
|
+
return renderSpaNotFoundResponse(request);
|
|
3845
|
+
}, renderSpaNotFoundResponse = async (request) => {
|
|
3846
|
+
if (request && !isPageRequest(request)) {
|
|
3847
|
+
return new NotFound().toResponse();
|
|
3848
|
+
}
|
|
3849
|
+
return await renderFirstNotFound({
|
|
3850
|
+
preferHtmx: request?.headers.get("hx-request") === "true"
|
|
3851
|
+
}) ?? new Response("Not found", {
|
|
3844
3852
|
headers: { "Content-Type": "text/plain" },
|
|
3845
3853
|
status: 404
|
|
3846
3854
|
});
|
|
@@ -6501,5 +6509,5 @@ export {
|
|
|
6501
6509
|
useIslandStore
|
|
6502
6510
|
};
|
|
6503
6511
|
|
|
6504
|
-
//# debugId=
|
|
6512
|
+
//# debugId=96AD0B8BB96BAB4564756E2164756E21
|
|
6505
6513
|
//# sourceMappingURL=index.js.map
|