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", () => {
135135
136136import assert from "node:assert";
137137import { 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 {
269269const none: unique symbol = Symbol();
270270type none = typeof none;
271271
272import { ASSERT, UNWRAP } from "lib/assert.ts";
273import * as ts from "lib/ts.ts";
272import { ASSERT, UNWRAP } from "./assert.ts";
273import * as ts from "./ts.ts";
lib/async.ts+1-1
......@@ -204,4 +204,4 @@ export class PromiseAggregator {
204204 }
205205}
206206
207import { ASSERT } from "lib/assert.ts";
207import { ASSERT } from "./assert.ts";
lib/deno.json-2
......@@ -29,7 +29,6 @@
2929 "jsxImportSource": "lib/render"
3030 },
3131 "imports": {
32 "lib/": "./",
3332 "lib/render/jsx-runtime": "./render/jsx-runtime.ts",
3433 "lib/render/jsx-dev-runtime": "./render/jsx-runtime.ts"
3534 },
......@@ -38,4 +37,3 @@
3837 "deno.lock"
3938 ]
4039}
41
lib/error.ts+1-1
......@@ -47,4 +47,4 @@ export function rethrowWithMetadata(
4747 throw error;
4848}
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 {
161161 }
162162}
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 {
626626 (message: Message): void;
627627}
628628
629import * as ansi from "lib/string/ansi.ts";
630import * as node from "lib/node.ts";
631import * as stack from "lib/log/stack.ts";
632import * as string from "lib/string.ts";
633import * as ts from "lib/ts.ts";
634import { UNWRAP } from "lib/assert.ts";
629import * as ansi from "./string/ansi.ts";
630import * as node from "./node.ts";
631import * as stack from "./log/stack.ts";
632import * as string from "./string.ts";
633import * as ts from "./ts.ts";
634import { UNWRAP } from "./assert.ts";
lib/log/stack.ts+2-2
......@@ -426,5 +426,5 @@ const regexFunctionName = /((.*".+"[^@]*)?[^@]*)(?:@)/;
426426const regexV8Stack = /^\s*at .*(\S+:\d+|\(native\))/m;
427427const regexLocation = /(.+?)(?::(\d+))?(?::(\d+))?$/;
428428
429import * as ansi from "lib/string/ansi.ts";
430import * as node from "lib/node.ts";
429import * as ansi from "../string/ansi.ts";
430import * as node from "../node.ts";
lib/progress.ts+4-5
......@@ -407,8 +407,7 @@ export class Headless {
407407
408408const global = /** @__PURE__ */ new Headless(log);
409409
410import * as process from "node:process";
411import * as log from "lib/log.ts";
412import * as ansi from "lib/string/ansi.ts";
413import * as string from "lib/string.ts";
414import { ASSERT, UNWRAP } from "lib/assert.ts";
410import * as log from "./log.ts";
411import * as ansi from "./string/ansi.ts";
412import * as string from "./string.ts";
413import { ASSERT, UNWRAP } from "./assert.ts";
lib/queue.ts+1-1
......@@ -176,4 +176,4 @@ function insertSorted<T extends { priority: number }>(arr: T[], item: T) {
176176declare var navigator: { hardwareConcurrency: number };
177177const 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");
464464/** secret key to facilitate {@linkcode init} with a `ContextValue[]` */
465465const 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;
7575export type ElementType = keyof IntrinsicElements | render.Component;
7676export type ElementClass = ReturnType<render.Component>;
7777
78import * as render from "lib/render.ts";
79import { ASSERT } from "lib/assert.ts";
78import * as render from "../render.ts";
79import { ASSERT } from "../assert.ts";
lib/render/meta.test.tsx+1-1
......@@ -46,4 +46,4 @@ test("automatic embed with '{}'", () =>
4646
4747import { test } from "node:test";
4848import 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) {
251251 return render.quoteIfNeeded(esc(value));
252252}
253253
254import { escapeHtmlContent as esc } from "lib/render.ts";
255import * as render from "lib/render.ts";
254import { escapeHtmlContent as esc } from "../render.ts";
255import * as render from "../render.ts";
lib/string.test.ts+1-1
......@@ -32,4 +32,4 @@ test("escapeShellArgument", () => {
3232
3333import { test } from "node:test";
3434import 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) {
378378 );
379379}
380380
381import * as self from "lib/string/ansi.ts";
382import { UNWRAP } from "lib/assert.ts";
381import * as self from "./ansi.ts";
382import { UNWRAP } from "../assert.ts";
lib/subprocess/ffmpeg.ts+2-2
......@@ -194,5 +194,5 @@ import * as readline from "node:readline";
194194import * as process from "node:process";
195195import events from "node:events";
196196import * as path from "node:path";
197import type * as progress from "lib/progress.ts";
198import * as string from "lib/string.ts";
197import type * as progress from "../progress.ts";
198import * as string from "../string.ts";