@visulima/ono 2.0.0-alpha.14 → 2.0.0-alpha.16

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/error-inspector/page/create-request-context.d.ts +41 -3
  3. package/dist/index.d.ts +34 -18
  4. package/dist/index.js +114 -114
  5. package/dist/packem_shared/types.d-CDlBu_Vx.d.ts +50 -0
  6. package/dist/server/open-in-editor.d.ts +22 -22
  7. package/package.json +22 -22
  8. package/dist/error-inspector/components/causes-viewer/index.d.ts +0 -7
  9. package/dist/error-inspector/components/copy-button.d.ts +0 -8
  10. package/dist/error-inspector/components/copy-dropdown.d.ts +0 -10
  11. package/dist/error-inspector/components/error-card/index.d.ts +0 -13
  12. package/dist/error-inspector/components/error-card/solutions.d.ts +0 -7
  13. package/dist/error-inspector/components/error-card/sticky-header.d.ts +0 -5
  14. package/dist/error-inspector/components/header-bar/editor-selector.d.ts +0 -3
  15. package/dist/error-inspector/components/header-bar/index.d.ts +0 -11
  16. package/dist/error-inspector/components/header-bar/theme-toggle.d.ts +0 -6
  17. package/dist/error-inspector/components/header-tabs.d.ts +0 -10
  18. package/dist/error-inspector/components/raw-stack-trace.d.ts +0 -2
  19. package/dist/error-inspector/components/shortcuts-button.d.ts +0 -5
  20. package/dist/error-inspector/components/stack-trace-viewer/index.d.ts +0 -7
  21. package/dist/error-inspector/components/stack-trace-viewer/types.d.ts +0 -5
  22. package/dist/error-inspector/components/stack-trace-viewer/utils/get-type.d.ts +0 -3
  23. package/dist/error-inspector/components/stack-trace-viewer/utils/group-similar-types.d.ts +0 -4
  24. package/dist/error-inspector/components/tooltip.d.ts +0 -4
  25. package/dist/error-inspector/index.d.ts +0 -6
  26. package/dist/error-inspector/layout.d.ts +0 -12
  27. package/dist/error-inspector/page/stack.d.ts +0 -15
  28. package/dist/error-inspector/page/types.d.ts +0 -62
  29. package/dist/error-inspector/types.d.ts +0 -43
  30. package/dist/error-inspector/utils/cn.d.ts +0 -2
  31. package/dist/error-inspector/utils/sanitize.d.ts +0 -7
  32. package/dist/types.d.ts +0 -1
  33. package/dist/utils/process.d.ts +0 -7
  34. package/dist/utils/revision-hash.d.ts +0 -2
  35. package/dist/utils/runtimes.d.ts +0 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## @visulima/ono [2.0.0-alpha.16](https://github.com/visulima/visulima/compare/@visulima/ono@2.0.0-alpha.15...@visulima/ono@2.0.0-alpha.16) (2026-04-28)
2
+
3
+ ## @visulima/ono [2.0.0-alpha.15](https://github.com/visulima/visulima/compare/@visulima/ono@2.0.0-alpha.14...@visulima/ono@2.0.0-alpha.15) (2026-04-22)
4
+
5
+ ### Bug Fixes
6
+
7
+ * Remove JSR configuration generation script and generated jsr.json files ([#616](https://github.com/visulima/visulima/issues/616)) ([533744b](https://github.com/visulima/visulima/commit/533744b103b74896941db5b727173e617a27a63b))
8
+
9
+
10
+ ### Dependencies
11
+
12
+ * **@visulima/error:** upgraded to 6.0.0-alpha.13
13
+ * **@visulima/path:** upgraded to 3.0.0-alpha.10
14
+
1
15
  ## @visulima/ono [2.0.0-alpha.14](https://github.com/visulima/visulima/compare/@visulima/ono@2.0.0-alpha.13...@visulima/ono@2.0.0-alpha.14) (2026-04-21)
2
16
 
3
17
 
@@ -1,4 +1,42 @@
1
- import type { ContentPage } from "../types.d.ts";
2
- import type { ContextContentOptions, RequestLike } from "./types.d.ts";
1
+ import { C as ContentPage } from "../../packem_shared/types.d-CDlBu_Vx.js";
2
+ import { IncomingMessage } from 'node:http';
3
+ type NativeRequest = typeof globalThis.Request;
4
+ type NativeHeaders = typeof globalThis.Headers;
5
+ interface CustomHeaders {
6
+ entries: () => IterableIterator<[string, string]>;
7
+ forEach: (callback: (value: string, key: string) => void) => void;
8
+ get: (name: string) => string | null;
9
+ }
10
+ interface CustomRequest {
11
+ clone?: () => CustomRequest;
12
+ headers?: Record<string, string | string[]> | CustomHeaders;
13
+ json?: () => Promise<unknown>;
14
+ method?: string;
15
+ text?: () => Promise<string>;
16
+ url?: string;
17
+ }
18
+ type HeadersLike = NativeHeaders | CustomHeaders;
19
+ type RequestLike = NativeRequest | (IncomingMessage & {
20
+ body?: unknown;
21
+ clone?: () => RequestLike;
22
+ json?: () => Promise<unknown>;
23
+ text?: () => Promise<string>;
24
+ }) | CustomRequest | {
25
+ body?: unknown;
26
+ headers?: Record<string, string | string[]> | HeadersLike;
27
+ method?: string;
28
+ off?: (event: string, handler: (chunk: unknown) => void) => void;
29
+ on?: (event: string, handler: (chunk: unknown) => void) => void;
30
+ setEncoding?: (encoding: string) => void;
31
+ url?: string;
32
+ };
33
+ type ContextContentOptions = {
34
+ context?: Record<string, unknown>;
35
+ headerAllowlist?: string[];
36
+ headerDenylist?: string[];
37
+ maskValue?: string;
38
+ previewBytes?: number;
39
+ totalCapBytes?: number;
40
+ };
3
41
  declare const createRequestContext: (request: RequestLike, options: ContextContentOptions) => Promise<ContentPage | undefined>;
4
- export default createRequestContext;
42
+ export { createRequestContext as default };
package/dist/index.d.ts CHANGED
@@ -1,20 +1,36 @@
1
- import type { SolutionFinder } from "@visulima/error/solution";
2
- import type { BaseCliOptions } from "../../../../shared/utils/cli-error-builder.d.ts";
3
- import type { TemplateOptions as BaseTemplateOptions } from "./error-inspector/types.d.ts";
4
- export type TemplateOptions = BaseTemplateOptions & {
5
- solutionFinders?: SolutionFinder[];
1
+ import { SolutionFinder } from '@visulima/error/solution';
2
+ import { RenderErrorOptions } from '@visulima/error/error';
3
+ import { T as TemplateOptions$1 } from "./packem_shared/types.d-CDlBu_Vx.js";
4
+ type ColorizeMethod = (value: string) => string;
5
+ type BaseCliOptions = {
6
+ solutionTitle?: string;
7
+ solutionFinders?: SolutionFinder[];
8
+ debug?: boolean;
9
+ } & Partial<Omit<RenderErrorOptions, "color">> & {
10
+ color?: {
11
+ codeFrame?: RenderErrorOptions["color"];
12
+ boxen?: {
13
+ headerTextColor?: ColorizeMethod;
14
+ textColor?: ColorizeMethod;
15
+ borderColor?: ColorizeMethod;
16
+ };
17
+ };
6
18
  };
7
- export type CliOptions = BaseCliOptions;
8
- export declare class Ono {
9
- /**
10
- * Render error to HTML.
11
- */
12
- toHTML(error: unknown, options?: TemplateOptions): Promise<string>;
13
- /**
14
- * Render error to ANSI output.
15
- */
16
- toANSI(error: unknown, options?: CliOptions): Promise<{
17
- errorAnsi: string;
18
- solutionBox: undefined | string;
19
- }>;
19
+ type TemplateOptions = TemplateOptions$1 & {
20
+ solutionFinders?: SolutionFinder[];
21
+ };
22
+ type CliOptions = BaseCliOptions;
23
+ declare class Ono {
24
+ /**
25
+ * Render error to HTML.
26
+ */
27
+ toHTML(error: unknown, options?: TemplateOptions): Promise<string>;
28
+ /**
29
+ * Render error to ANSI output.
30
+ */
31
+ toANSI(error: unknown, options?: CliOptions): Promise<{
32
+ errorAnsi: string;
33
+ solutionBox: undefined | string;
34
+ }>;
20
35
  }
36
+ export { CliOptions, Ono, TemplateOptions };