Commit graph

270 commits

Author SHA1 Message Date
Michael Naumov
d9c177d97f chore: update libs 2026-06-24 19:22:21 -06:00
Michael Naumov
3f9c757446 chore: update overexposed scripts 2026-06-24 19:03:40 -06:00
Michael Naumov
0983bbe718 chore: honor NANO_STAGED opt-out in nano-staged config 2026-06-24 19:03:36 -06:00
Michael Naumov
d29e0110a2 chore: release 1.9.15 2026-06-24 18:14:40 -06:00
Michael Naumov
f882c6c421 chore: update libs 2026-06-24 17:53:22 -06:00
Michael Naumov
5cf57118db chore: update libs 2026-06-24 15:15:51 -06:00
Michael Naumov
7f7110a29d chore: overexposed 2026-06-24 00:26:34 -06:00
Michael Naumov
a4c090324c refactor: test 2026-06-24 00:12:24 -06:00
Michael Naumov
00c3365aba chore: find-overexposed 2026-06-24 00:05:27 -06:00
Michael Naumov
5951fe41f0 chore: update libs 2026-06-24 00:00:20 -06:00
Michael Naumov
e23f4d846e chore: update libs 2026-06-23 12:17:24 -06:00
Michael Naumov
25ca91cce6 refactor: use sleep helper instead of inline setTimeout
Replace inline setTimeout-Promise delay patterns with the sleep helper.
The unit test now imports sleep from obsidian-dev-utils/async; the
integration-test closure uses the Obsidian runtime global sleep.
2026-06-21 22:31:43 -06:00
Michael Naumov
a440713471 refactor: use sleep helper instead of inline setTimeout 2026-06-21 22:23:44 -06:00
Michael Naumov
0919ab18e0 chore: update libs
Bump obsidian-dev-utils 75.0.0 -> 76.1.0 and obsidian-integration-testing 4.3.0 -> 4.4.0.

The new obsidian-dev-utils/params-options-name-match ESLint rule now checks param-bag names on
all members. Rename the AddLongStackTracesPatchComponent private param-bag interfaces to be
class-qualified, and add a scoped eslint-disable for afterPatchAddEventListener whose param must
remain the shared AfterPatchParams (it implements the AfterPatchFn callback signature).
2026-06-21 21:45:45 -06:00
Michael Naumov
6ff4e7033f chore: update libs
Bump obsidian-dev-utils ^74.2.0 -> ^75.0.0 (major: renamed the test-setup
endpoints) and obsidian-test-mocks ^3.2.0 -> ^3.3.0.

Replace the removed unit-test setup file
obsidian-dev-utils/setup/async-operation-tracking-vitest-setup with the new
consolidated obsidian-dev-utils/vitest-setup endpoint, which resets shared
state on globalThis.__obsidianDevUtils and enables async tracking.
2026-06-21 14:37:53 -06:00
Michael Naumov
75489fbb01 test: adopt async-operation tracking for fire-and-forget assertions
Wire obsidian-dev-utils/setup/async-operation-tracking-vitest-setup into the unit-tests
vitest project and replace the flaky setTimeout(0) settle-waits after the convertAsyncToSync
toggle onChange handlers with await waitForAllAsyncOperations().
2026-06-21 13:08:18 -06:00
Michael Naumov
5251fcf19e fix: type the long-stack-traces patch obj as a plain-method record
dev-utils 74.2.0 distinguishes methods from function-like values: registerMethodPatch
now constrains methodName to MethodKeys<Obj>, which excludes callables carrying extra
members. Because GenericFunction adds an optional originalFn, Record<string, GenericFunction>
has no method keys, so AddLongStackTracesPatchComponent failed to compile (methodName: never).

Add GenericMethod (a bare callable) and GenericMethodObject (a record of them) and type the
patched obj as GenericMethodObject so methodName resolves to string. Extract the originalFn
carrier into a named interface to satisfy the no-anonymous-inline-object-types rule.
2026-06-21 13:07:46 -06:00
Michael Naumov
dff1f58166 chore: release 1.9.14 2026-06-21 02:55:05 -06:00
Michael Naumov
8fa5d820b5 refactor: monkey around 2026-06-21 02:54:38 -06:00
Michael Naumov
e28465cf57 test: refactor 2026-06-21 01:15:45 -06:00
Michael Naumov
1fc822fd9d chore: update libs 2026-06-21 01:15:00 -06:00
Michael Naumov
97e06bea7c chore: unify tsconfig 2026-06-20 23:57:24 -06:00
Michael Naumov
b3ae6f7ee5 test(plugin): fix onload mock to invoke onloadImpl
The template refactor renamed Plugin.onload() to Plugin.onloadImpl(),
so the real PluginBase.onload now wraps onloadImpl. The test mock still
returned noopAsync() directly and never invoked onloadImpl, so onload
added zero child components instead of seven and the test failed.

Mirror the real base: MockPluginBase.onload now calls this.onloadImpl()
(with a noop base placeholder the Plugin subclass overrides).
2026-06-19 18:57:52 -06:00
Michael Naumov
c01486065d refactor: patches 2026-06-19 18:30:44 -06:00
Michael Naumov
16a451189f fix: api 2026-06-18 15:34:50 -06:00
Michael Naumov
fc892a3651 chore: release 1.9.13 2026-06-18 14:04:16 -06:00
Michael Naumov
e7b896a28b chore: update template 2026-06-18 14:04:00 -06:00
Michael Naumov
067a1831d9 chore: release 1.9.12 2026-06-18 07:48:03 -06:00
Michael Naumov
be6da15d34 test(plugin): cover onload to reach 100% coverage
Mock PluginBase and the component dependencies so plugin.onload() can be
exercised in a unit test, covering the previously untested onload body.
2026-06-17 19:17:19 -06:00
Michael Naumov
eb5c66de8f chore: update libs 2026-06-17 19:04:01 -06:00
Michael Naumov
116985280a chore: new template 2026-06-16 22:50:43 -06:00
Michael Naumov
d767dd2a7b refactor: new template 2026-06-15 18:08:53 -06:00
Michael Naumov
ded19d6b4b chore: update version script 2026-06-11 13:34:56 -06:00
Michael Naumov
2fe39e7108 chore: release 1.9.10 2026-06-11 02:44:00 -06:00
Michael Naumov
e8d7067a34 chore: update libs 2026-06-11 02:37:58 -06:00
Michael Naumov
d3b5377e28 chore: release 1.9.9 2026-06-09 00:30:35 -06:00
Michael Naumov
cf9c2cf8ca chore: update libs 2026-06-09 00:17:26 -06:00
Michael Naumov
5795856f0c chore: release 1.9.8 2026-06-05 10:00:22 -06:00
Michael Naumov
2fe0cb558a chore: update libs 2026-06-05 09:26:24 -06:00
Michael Naumov
3b7341e260 chore: lint 2026-06-04 18:48:58 -06:00
Michael Naumov
ac1eefc832 chore: update libs 2026-06-04 18:17:46 -06:00
Michael Naumov
4175a66316 chore: add typescript as explicit devDependency
Declare typescript directly so the overrides entry can use the
$typescript shorthand instead of duplicating the version literal.
2026-05-28 08:35:44 -06:00
Michael Naumov
c7aaf3be3c chore: remove stale tsconfig include for nonexistent file
The .markdownlint-cli2 entry referenced a .mts path, but the file on
disk is a .mjs jiti shim and never needed to be in tsconfig.
2026-05-28 08:26:23 -06:00
Michael Naumov
54e74161d3 chore: use shorthand version refs in overrides
Reference direct devDeps via $packageName so the override always tracks
the top-level dependency version.
2026-05-28 08:25:47 -06:00
Michael Naumov
2e558e6963 chore: release 1.9.7 2026-05-26 22:50:06 -06:00
Michael Naumov
ec50b4d24e test: fix 2026-05-26 22:46:51 -06:00
Michael Naumov
cd3bfcd7a1 chore: update libs 2026-05-26 22:39:59 -06:00
Michael Naumov
78bf596ee8 refactor: new template 2026-05-26 21:05:40 -06:00
Michael Naumov
55923d47dd fix: compilation 2026-05-26 16:41:52 -06:00
Michael Naumov
d053e718c5 test: increase coverage 2026-05-26 12:22:39 -06:00