authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2025-11-06 22:38:54-08:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2025-11-07 00:07:30-08:00
log29751666e4e62269bc3f48767bf726ac5789ced7
tree065e876727e7762ec9dad33abd216fd4fda7233a
parent007faa93832e5bec64a5b9f2fc647902d84d3490
signature Commit is signed but in an unrecognized format.

chore: death to lib's import map

this allows usage of `@clo/lib` via HTTPs imports.

17 files changed, 30 insertions(+), 33 deletions(-)

lib/Lru.test.ts+1-1
...@@ -135,4 +135,4 @@ test("throws on evicting a locked item", () => {...@@ -135,4 +135,4 @@ test("throws on evicting a locked item", () => {
135135
136import assert from "node:assert";136import assert from "node:assert";
137import { test } from "node:test";137import { test } from "node:test";
138import { Lru } from "lib/Lru.ts";138import { Lru } from "./Lru.ts";
lib/Lru.ts+2-2
...@@ -269,5 +269,5 @@ export declare namespace Lru {...@@ -269,5 +269,5 @@ export declare namespace Lru {
269const none: unique symbol = Symbol();269const none: unique symbol = Symbol();
270type none = typeof none;270type none = typeof none;
271271
272import { ASSERT, UNWRAP } from "lib/assert.ts";272import { ASSERT, UNWRAP } from "./assert.ts";
273import * as ts from "lib/ts.ts";273import * as ts from "./ts.ts";
lib/async.ts+1-1
...@@ -204,4 +204,4 @@ export class PromiseAggregator {...@@ -204,4 +204,4 @@ export class PromiseAggregator {
204 }204 }
205}205}
206206
207import { ASSERT } from "lib/assert.ts";207import { ASSERT } from "./assert.ts";
lib/deno.json-2
...@@ -29,7 +29,6 @@...@@ -29,7 +29,6 @@
29 "jsxImportSource": "lib/render"29 "jsxImportSource": "lib/render"
30 },30 },
31 "imports": {31 "imports": {
32 "lib/": "./",
33 "lib/render/jsx-runtime": "./render/jsx-runtime.ts",32 "lib/render/jsx-runtime": "./render/jsx-runtime.ts",
34 "lib/render/jsx-dev-runtime": "./render/jsx-runtime.ts"33 "lib/render/jsx-dev-runtime": "./render/jsx-runtime.ts"
35 },34 },
...@@ -38,4 +37,3 @@...@@ -38,4 +37,3 @@
38 "deno.lock"37 "deno.lock"
39 ]38 ]
40}39}
41
lib/error.ts+1-1
...@@ -47,4 +47,4 @@ export function rethrowWithMetadata(...@@ -47,4 +47,4 @@ export function rethrowWithMetadata(
47 throw error;47 throw error;
48}48}
4949
50import type * as node from "lib/node.ts";50import type * as node from "./node.ts";
lib/log.test.ts+1-1
...@@ -161,4 +161,4 @@ class TestWidgetHost implements headless.WidgetHost {...@@ -161,4 +161,4 @@ class TestWidgetHost implements headless.WidgetHost {
161 }161 }
162}162}
163163
164import * as ansi from "lib/string/ansi.ts";164import * as ansi from "./string/ansi.ts";
lib/log.ts+6-6
...@@ -626,9 +626,9 @@ export interface DispatchFunction {...@@ -626,9 +626,9 @@ export interface DispatchFunction {
626 (message: Message): void;626 (message: Message): void;
627}627}
628628
629import * as ansi from "lib/string/ansi.ts";629import * as ansi from "./string/ansi.ts";
630import * as node from "lib/node.ts";630import * as node from "./node.ts";
631import * as stack from "lib/log/stack.ts";631import * as stack from "./log/stack.ts";
632import * as string from "lib/string.ts";632import * as string from "./string.ts";
633import * as ts from "lib/ts.ts";633import * as ts from "./ts.ts";
634import { UNWRAP } from "lib/assert.ts";634import { UNWRAP } from "./assert.ts";
lib/log/stack.ts+2-2
...@@ -426,5 +426,5 @@ const regexFunctionName = /((.*".+"[^@]*)?[^@]*)(?:@)/;...@@ -426,5 +426,5 @@ const regexFunctionName = /((.*".+"[^@]*)?[^@]*)(?:@)/;
426const regexV8Stack = /^\s*at .*(\S+:\d+|\(native\))/m;426const regexV8Stack = /^\s*at .*(\S+:\d+|\(native\))/m;
427const regexLocation = /(.+?)(?::(\d+))?(?::(\d+))?$/;427const regexLocation = /(.+?)(?::(\d+))?(?::(\d+))?$/;
428428
429import * as ansi from "lib/string/ansi.ts";429import * as ansi from "../string/ansi.ts";
430import * as node from "lib/node.ts";430import * as node from "../node.ts";
lib/progress.ts+4-5
...@@ -407,8 +407,7 @@ export class Headless {...@@ -407,8 +407,7 @@ export class Headless {
407407
408const global = /** @__PURE__ */ new Headless(log);408const global = /** @__PURE__ */ new Headless(log);
409409
410import * as process from "node:process";410import * as log from "./log.ts";
411import * as log from "lib/log.ts";411import * as ansi from "./string/ansi.ts";
412import * as ansi from "lib/string/ansi.ts";412import * as string from "./string.ts";
413import * as string from "lib/string.ts";413import { ASSERT, UNWRAP } from "./assert.ts";
414import { ASSERT, UNWRAP } from "lib/assert.ts";
lib/queue.ts+1-1
...@@ -176,4 +176,4 @@ function insertSorted<T extends { priority: number }>(arr: T[], item: T) {...@@ -176,4 +176,4 @@ function insertSorted<T extends { priority: number }>(arr: T[], item: T) {
176declare var navigator: { hardwareConcurrency: number };176declare var navigator: { hardwareConcurrency: number };
177const global = new PriorityQueue(navigator.hardwareConcurrency);177const global = new PriorityQueue(navigator.hardwareConcurrency);
178178
179import { UNWRAP } from "lib/assert.ts";179import { UNWRAP } from "./assert.ts";
lib/render.ts+1-1
...@@ -464,4 +464,4 @@ const kRaw = Symbol("Raw");...@@ -464,4 +464,4 @@ const kRaw = Symbol("Raw");
464/** secret key to facilitate {@linkcode init} with a `ContextValue[]` */464/** secret key to facilitate {@linkcode init} with a `ContextValue[]` */
465const kContext: unique symbol = Symbol();465const kContext: unique symbol = Symbol();
466466
467import { ASSERT, UNWRAP } from "lib/assert.ts";467import { ASSERT, UNWRAP } from "./assert.ts";
lib/render/jsx-runtime.ts+2-2
...@@ -75,5 +75,5 @@ export type Element = render.Element;...@@ -75,5 +75,5 @@ export type Element = render.Element;
75export type ElementType = keyof IntrinsicElements | render.Component;75export type ElementType = keyof IntrinsicElements | render.Component;
76export type ElementClass = ReturnType<render.Component>;76export type ElementClass = ReturnType<render.Component>;
7777
78import * as render from "lib/render.ts";78import * as render from "../render.ts";
79import { ASSERT } from "lib/assert.ts";79import { ASSERT } from "../assert.ts";
lib/render/meta.test.tsx+1-1
...@@ -46,4 +46,4 @@ test("automatic embed with '{}'", () =>...@@ -46,4 +46,4 @@ test("automatic embed with '{}'", () =>
4646
47import { test } from "node:test";47import { test } from "node:test";
48import assert from "node:assert";48import assert from "node:assert";
49import * as meta from "lib/render/meta.ts";49import * as meta from "./meta.ts";
lib/render/meta.ts+2-2
...@@ -251,5 +251,5 @@ function attr(value: string) {...@@ -251,5 +251,5 @@ function attr(value: string) {
251 return render.quoteIfNeeded(esc(value));251 return render.quoteIfNeeded(esc(value));
252}252}
253253
254import { escapeHtmlContent as esc } from "lib/render.ts";254import { escapeHtmlContent as esc } from "../render.ts";
255import * as render from "lib/render.ts";255import * as render from "../render.ts";
lib/string.test.ts+1-1
...@@ -32,4 +32,4 @@ test("escapeShellArgument", () => {...@@ -32,4 +32,4 @@ test("escapeShellArgument", () => {
3232
33import { test } from "node:test";33import { test } from "node:test";
34import assert from "node:assert";34import assert from "node:assert";
35import * as string from "lib/string.ts";35import * as string from "./string.ts";
lib/string/ansi.ts+2-2
...@@ -378,5 +378,5 @@ function segmentWidth(segment: string) {...@@ -378,5 +378,5 @@ function segmentWidth(segment: string) {
378 );378 );
379}379}
380380
381import * as self from "lib/string/ansi.ts";381import * as self from "./ansi.ts";
382import { UNWRAP } from "lib/assert.ts";382import { UNWRAP } from "../assert.ts";
lib/subprocess/ffmpeg.ts+2-2
...@@ -194,5 +194,5 @@ import * as readline from "node:readline";...@@ -194,5 +194,5 @@ import * as readline from "node:readline";
194import * as process from "node:process";194import * as process from "node:process";
195import events from "node:events";195import events from "node:events";
196import * as path from "node:path";196import * as path from "node:path";
197import type * as progress from "lib/progress.ts";197import type * as progress from "../progress.ts";
198import * as string from "lib/string.ts";198import * as string from "../string.ts";