Skip to content

feat: scope api.remove() to one module's node via an optional apiPath - #318

Closed
cldmv-bot[bot] wants to merge 36 commits into
nextfrom
docs/release-3.15.0
Closed

cldmv-bot[bot] wants to merge 36 commits into
nextfrom
docs/release-3.15.0

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

🐛 Bug Fixes

📦 Dependencies

🔧 Other Changes

👥 Contributors

Shinrai and others added 30 commits August 24, 2026 04:25
A dotted or array mount path passed to api.slothlet.api.add() was split into
segments and written into the api tree without guarding prototype-chain segment
names. A path containing __proto__, constructor, or prototype therefore mutated
Object.prototype / Function.prototype globally instead of the api tree — classic
prototype pollution — with no error raised.

normalizeApiPath now refuses any of these three names in any segment position
(both the dotted-string and array path forms) with INVALID_CONFIG_API_PATH_INVALID
and the new API_PATH_REASON_UNSAFE_SEGMENT reason, mirroring the existing
reserved-name guard. Adds the reason string to all 12 language packs and
coverage for both path forms plus a no-pollution assertion.

This corrects never-intended behavior (a silent global write), so it ships as a
patch — no legitimate consumer mounts at __proto__/constructor/prototype.

Fixes #302
…reload

`:` is slothlet's internal composite "moduleID:apiPath" separator. A user (or
internal) moduleID that itself contained a colon — e.g. a `vine:abc` namespaced
convention — mounted and resolved fine and add() returned the exact id, but the
id could not be removed or reloaded by that id: removeApiComponent split the
argument on `:` and looked up only the first segment, and child wrappers of a
multi-child mount were attributed to the truncated base, so remove() left the
subtree behind. The mount was silently unmanageable.

- removeApiComponent now resolves an exact registered moduleID verbatim before
  falling back to the split-based "<base>_<hash>" / composite heuristic, and the
  no-ownership branch no longer truncates the id on ":".
- Base-id recovery no longer splits the composite: tagSystemMetadata stores the
  raw owning-module id as baseModuleID alongside the composite moduleID, and the
  two unified-wrapper recovery sites (impl:changed event, child attribution) read
  it verbatim. This also corrects internal `versionDispatcher:<path>` base ids,
  which were previously truncated to `versionDispatcher`.

The composite stays the per-path user-metadata key; only the fragile colon-split
recovery is removed. Adds colon-moduleID round-trip coverage (remove, leaves,
reload, reload-then-remove, synthetic, multi-colon, hyphen control).

Fixes #303
…dpoints

The wrapper get trap resolved a property read to `impl[prop]` and, for any
function-valued result, wrapped it as a child endpoint and registered ownership.
On a callable leaf, that meant merely READING an inherited Function.prototype
member — `apply`, `call`, `bind`, `constructor` — (or the non-enumerable own
`prototype` slot) rewrote the leaf's loader record: it flipped from
kind "function" to "namespace" and grew a phantom child (`leaf.apply`, …). A
later leaves() or re-composition then surfaced Function.prototype.apply in place
of the leaf. `leaf.apply(thisArg, args)` — a common forwarding idiom — silently
corrupted the served surface (Reflect.apply was the only safe workaround).

The get trap now returns the function's own built-in members directly instead of
wrapping them: for a function impl, a property that is not a user-added
ENUMERABLE own property is returned as-is. Genuine enumerable own children of a
callable still materialize as endpoints. Covered in eager and lazy modes,
including a callable that carries a real user child.

Fixes #304
The prototype-pollution guard added to normalizeApiPath preempted the dedicated
LOOSE_SET_RESERVED_KEY error that setOwnedProperty raises for `self.<key> = …`
assignments: setOwnedProperty calls normalizeApiPath first, so a
`self.prototype = {}` / `self['__proto__'] = obj` now threw the generic
INVALID_CONFIG_API_PATH_INVALID instead, breaking
runtime/self-assign-prototype-pollution.

Run the reserved-segment check (LOOSE_SET_RESERVED_KEY) before normalizeApiPath
so the self-assign surface keeps its own error while the api.add() mount-path
surface keeps the new unsafe-segment error. Both guards stay reachable and tested.
Address Copilot review on #305:
- The "__-prefixed still accepted" test mounted at "plugins", so it never
  exercised a __-prefixed segment. Mount "__config.value" and a
  ["prototypeName","leaf"] substring path instead, proving the guard matches
  whole segments (only __proto__/constructor/prototype), not prefixes/substrings.
- Capitalize the ru-ru API_PATH_REASON_UNSAFE_SEGMENT string to match that
  locale's sentence-cased sibling messages.
Address Copilot review on #306. The verbatim-first match resolves an exact
registered id, but the fallback still did `pathOrModuleId.split(":")[0]`, which
truncated on ':': `remove("vine:abc")` with only a "vine" module registered
matched "vine" and wrongly removed it (returned true, tore down the wrong mount).

Match the auto-generated "<id>_<hash>" form of the WHOLE id instead of a
':'-truncated prefix, so a colon-containing id never collides with a shorter
base. Adds a regression test asserting remove("vine:abc") leaves a registered
"vine" mount untouched (and the real id still removes it).
remove(id) removes every path a module owns and remove(apiPath) removes that
path's whole subtree regardless of which module owns each node, so neither can
surgically remove a single module's node at a shared path — e.g. two modules
mounted under the same namespace, or one moduleID reused across mounts.

Add an optional second argument: remove(moduleID, apiPath) resolves the first
argument strictly as a moduleID, verifies it owns apiPath, and removes only that
node — sibling modules sharing the mount and the module's other mounts are left
intact. Returns whether anything was removed; the single-argument forms are
unchanged. Routes through the existing single-node removal path.
…port

Address Copilot review on #307: add an afterAll that removes the per-run temp
fixture dir under tmp/ (it was left behind on every run), and drop the unused
`dirname` import.
…dProperty

Address Copilot review on #305: the loose-set prototype-pollution guard
allocated a fresh Set on every call and coerced via a template literal, which
throws a raw TypeError on a Symbol instead of the intended SlothletError path.
Reuse the module-level UNSAFE_PATH_SEGMENTS and coerce with String() — branchless
and Symbol-safe.
…ng on ':'

The previous fallback dropped colon handling entirely to stop remove("vine:abc")
from truncating to a registered "vine". But a leaf's __metadata.moduleID is the
internal composite "<moduleID>:<apiPath-with-slashes>", and remove(meta.moduleID)
is a supported call — dropping the split broke removing a module by that
composite (metadata-collision-modes).

Restore composite resolution safely: match a registered module whose id is the
':'-delimited prefix ONLY when it actually owns the apiPath encoded in the
suffix. That ownership check distinguishes a real composite (base owns the path)
from a bare user id that merely contains ':' (a "vine:abc" whose "abc" no "vine"
owns still resolves to nothing, not to "vine"). Verbatim and "<id>_<hash>"
matches still run first.
…h composite

Replace ':' as slothlet's internal composite separator with a reserved token
(MODULE_ID_SEPARATOR = "__slothlet_sep__"). A ':' is common in real module ids —
a `vine:abc` namespacing convention, the internal `versionDispatcher:<path>` id —
so using it as the splitter made those ids un-round-trippable and forced fragile
disambiguation. With a reserved token no module id may contain, the composite is
always unambiguous to split and ':' (and every other character) is free.

- metadata.mjs builds the composite with MODULE_ID_SEPARATOR (exported).
- add() refuses a moduleID containing the separator (MODULE_ID_RESERVED_SEPARATOR,
  all 12 locales) — the only token a module id may not contain.
- removeApiComponent recovers the base by splitting on the separator: a plain id
  (which cannot contain it) is preserved intact, a composite strips to its base.
  Drops the earlier ':'-specific verbatim/ownership-verified workarounds.
- Update the metadata format tests (system-metadata, user-metadata) that pinned
  the old `prefix:apiPath` shape to the new separator; they now assert structure
  via the imported constant. __metadata.moduleID reads e.g.
  "modm__slothlet_sep__m/leaf".

Fixes #303
…rator)

Address Copilot review on #306. The doc block still described a Promise<void>
return and an underscore-based moduleID heuristic. Document the boolean return,
the options argument (scopedApiPath / recordHistory), and that the argument is
resolved by splitting on the reserved composite separator — matching the current
behavior.
…d separator

Address Copilot review on #306. add() rejected a user-supplied moduleID
containing MODULE_ID_SEPARATOR, but a default moduleID is derived from the
apiPath (buildDefaultModuleId), so mounting at an apiPath whose segment carries
the separator produced an auto-generated id containing it — breaking the "no
moduleID contains the separator" invariant that remove()/metadata splitting rely
on. Check the effective moduleID (user-supplied or auto-generated) once it is
finalized and refuse it with MODULE_ID_RESERVED_SEPARATOR. Adds a regression
test for the no-moduleID (apiPath-carries-separator) case.
…uleID reads

Address a Copilot suppressed-comment finding on #306. Two comments near the
child-attribution and impl:changed baseModuleID reads still described recovering
the base by splitting a "moduleID:apiPath" tag on ':'. The composite now joins
with the reserved MODULE_ID_SEPARATOR and the base is read verbatim from
baseModuleID; reword to match. Comment-only.
Address a Copilot suppressed-comment finding on #306. Scoped removal verified
ownership of only the exact scopedApiPath, then removed that single node — so
scoping to a container the module owns descendants under deleted the container's
subtree from the api tree but left the descendants' ownership records orphaned in
moduleToPath/pathToModule, breaking later reload/remove.

Scoped removal now drops this module's ownership of every descendant path under
the scoped node before removing the node itself (whose deletePath removes the
subtree from the tree in one shot). A leaf scoped path has no descendants, so the
single-node behavior is unchanged; a container removes the module's whole subtree
there while a sibling module sharing the mount is left intact. Adds a container
prefix-removal test asserting no orphaned ownership and sibling survival.
…ot the path

The previous attempt deleted the whole subtree at apiPath, which is wrong: the
two-argument form must remove only THAT module's contribution across the path,
never the entire path (that is what remove(apiPath) is for).

Scoped removal now walks every path the module owns at or under apiPath,
deepest-first, and for each either removes it (when this module was its sole
owner) or reverts it to the module that owned it before (when the node is
shared). A node still holding another module's descendant is left standing —
a container is deleted only once nothing remains under it and it is unowned. So
remove(modA, "svc.a") drops modA's leaf and keeps a sibling's svc.b;
remove(modA, "shop") on a shared container reverts the container and keeps
modB's shop.b; and a module that solely owns a subtree has the whole subtree
removed with no orphaned ownership. Tests cover the leaf, shared-container, and
sole-owned-subtree cases.
…full-path)

Address Copilot review on #306. The scoped remove(moduleID, apiPath) branch
pushed {type:"remove", apiPath} to operationHistory, but reload replay re-runs a
"remove" op as a single-argument removeApiComponent(apiPath) — a whole-path
removal — which would over-delete other modules sharing the path. A module-scoped
replay is not expressible either: replay regenerates moduleIDs, so the original
id could never be matched. Recording a whole-path remove is worse than not
recording, so drop the push (which also stops it from ignoring recordHistory). A
scoped removal therefore does not persist across a reload — documented inline; a
follow-up could add moduleID-stable replay if scoped removals need to survive
reload.
A module's id survives a reload — the "add" op records options.moduleID and
addApiComponent reuses it on re-add (user-supplied and auto-generated
<path>_<hash> ids alike; the "replay_<hash>" param the replay passed was dead,
addApiComponent has no top-level moduleID param). So a scoped removal CAN be
replayed by id, contrary to the earlier assumption.

Record scoped removals as {type:"remove", apiPath, scopedModuleID} (honoring
recordHistory), and replay them via the two-argument
removeApiComponent(scopedModuleID, {scopedApiPath}) so only that module's nodes
go — not the whole path. Verified end-to-end: after a reload, remove(modA,"shop")
keeps modA's subtree gone while modB's survives (no over-delete). Also drop the
dead replay_<hash> param and correct the replay comment. Adds a reload-
persistence test.
…estore revert

Synthetic (in-memory) adds — an inline function, an export map, or a
`{ exports, ...options }` object — now record their original inline value as the
replay folderPath instead of the internal `synthetic:<path>` sentinel, which a
full-instance reload() would otherwise resolve as a filesystem path and fail on.
A synthetic add (and a scoped removal of one) now survives reload(), keeping its
moduleID so it stays removable afterward. restoreApiPath re-adds via the same
recorded folderPath, so ownership rollback of a synthetic mount is consistent too.

Also cover the scoped-removal restore branch that had no test: a shadowed-node
case drives the revert-to-previous-owner path, and the dead else fallback now
uses `/* v8 ignore else */` with an honest unreachability comment (a node whose
removePath returns "restore" always has a concrete current value, so the else
never runs) instead of a `never exercised in tests` justification.
…with honest, reachability-based ones

The removeApiComponent apiPath+moduleID restore path was hidden behind a whole-block
`/* v8 ignore */` labelled "never triggered in tests", but its restore branch IS reachable
and already covered by the stacked-remove-by-apiPath tests — the ignore was burying tested
code. Expose it and ignore only the genuinely-dead parts precisely: `/* v8 ignore else */`
on the always-true action and value checks, and a scoped ignore on the none/return-false
tail that cannot run (in that branch moduleID is always the path's current owner, so
removePath yields "delete" or "restore", never "none").

The apiPath-only restore block and restoreApiPath are genuinely unreachable, but were
justified with "tests never trigger" wording. Restate the real reasons: the apiPath-only
branch runs only when the ownership handler is absent, which forces action "none"; and
restoreApiPath's four call sites are all in unreachable branches (each restore fallback,
which never fires because a restored node always resolves to a concrete value, and the
reload zero-affected-caches path, guarded by an INVALID_API_PATH throw and the always-present
base "." module). Consolidate restoreApiPath's scattered per-line ignores into one honest
whole-body ignore.

No behaviour change; full coverage remains 100% (the exposed restore path is covered).
…ly the moduleID (#306 review)

A user-supplied clean moduleID let a separator-bearing apiPath slip past the moduleID-only
guards, so `add("x__slothlet_sep__y", fn, { moduleID: "clean" })` was accepted and a later
`remove("seg__slothlet_sep__y")` split the argument on the reserved separator and removed the
wrong module ("seg"). Reject an apiPath containing MODULE_ID_SEPARATOR at add-time: when an
explicit moduleID is supplied the offending token is the path itself, so it surfaces as
INVALID_CONFIG_API_PATH_INVALID with a new API_PATH_REASON_RESERVED_SEPARATOR reason (added to
all 12 locales) rather than the moduleID-framed error, which the auto-generated-id guard still
covers for the no-moduleID case. Regression test added.

Also fix the pt-br HINT_MODULE_ID_RESERVED_SEPARATOR, which uniquely began with a lowercase
article ("o slothlet"); drop it so the hint starts with the brand token like the other 11
locales (the fleet convention), rather than capitalizing it.
… reload

A scoped remove(moduleID, apiPath) that empties the module intermittently failed to persist
across a reload under lazy mode: the removed subtree reappeared on next access. Root cause is a
materialization race in the reload replay. When the replayed add re-mounts a directory under
lazy, only the eagerly-known paths register (e.g. shop, shop.a, shop.a.interop and the leaf
branches); a lazy submodule's own leaves (shop.a.interop.interopCjs.*) are not yet registered.
The scoped remove computes its target list from the module's owned paths, then walks it — and
tearing down the lazy shop.a.interop node materializes it, which registers those previously-
unregistered descendants AFTER the target list was fixed. On a reload replay those late
registrations leak back and resurrect the subtree.

Fix: when a scoped removal empties the module (it owns nothing outside the scoped path), block it
from further registration BEFORE the walk via a new ownership.markUnregistered(), so register()
rejects the late materialization-driven registrations. Gated to full removals only: a partial
removal keeps sibling paths outside the scoped node that must still be able to materialize, so it
is not blocked. Reverts of shared nodes use the previous owner's id and are unaffected. Cleared on
the next reload (ownership.clear()), matching the moduleID-only remove's async-race guard.

Verified: the remove-scoped suite is 0/16 across repeated runs (was ~1/12), and a 300-iteration
in-process reload loop is clean across 8 runs (~2400 iterations) where it previously failed within
3-17 iterations every run. Eager was never affected. Full coverage remains 100%.
…non-string moduleID (#306 review)

Both add-time reserved-separator guards were gated on `typeof restOptions.moduleID === "string"`.
add() coerces moduleID with String(...) later, so a non-string truthy moduleID (e.g. a number)
skipped the guards — a separator-bearing apiPath would then slip through and reintroduce the
wrong-module removal on remove(). Coerce to string and gate on presence instead: the moduleID guard
checks String(moduleID).includes(separator) (and reports the coerced value), and the apiPath guard
fires whenever a moduleID is supplied regardless of its type. Regression test added.
Bumps the vitest group with 4 updates: [@vitest/browser](https://github.com/vitest-dev/vitest/tree/HEAD/packages/browser), [@vitest/browser-playwright](https://github.com/vitest-dev/vitest/tree/HEAD/packages/browser-playwright), [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@vitest/browser` from 4.1.10 to 4.1.11
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.11/packages/browser)

Updates `@vitest/browser-playwright` from 4.1.10 to 4.1.11
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.11/packages/browser-playwright)

Updates `@vitest/coverage-v8` from 4.1.10 to 4.1.11
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.11/packages/coverage-v8)

Updates `vitest` from 4.1.10 to 4.1.11
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.11/packages/vitest)

---
updated-dependencies:
- dependency-name: "@vitest/browser"
  dependency-version: 4.1.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vitest
- dependency-name: "@vitest/browser-playwright"
  dependency-version: 4.1.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vitest
- dependency-name: "@vitest/coverage-v8"
  dependency-version: 4.1.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vitest
- dependency-name: vitest
  dependency-version: 4.1.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vitest
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [eslint](https://github.com/eslint/eslint) from 10.8.1 to 10.9.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](eslint/eslint@v10.8.1...v10.9.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 10.9.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [eslint](https://github.com/eslint/eslint) from 10.8.1 to 10.9.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/eslint/eslint/releases">eslint's
releases</a>.</em></p>
<blockquote>
<h2>v10.9.0</h2>
<h2>Features</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/08de88e50294c4e01f6cae97eceeb578da55792b"><code>08de88e</code></a>
feat: handle underflow in no-loss-of-precision (<a
href="https://redirect.github.com/eslint/eslint/issues/21218">#21218</a>)
(Rithish S)</li>
<li><a
href="https://github.com/eslint/eslint/commit/55db4791120ae591d88089c43127b7b0e16866d4"><code>55db479</code></a>
feat: add checkConditionalExpressions to
<code>no-unmodified-loop-condition</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21175">#21175</a>)
(sethamus)</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/2ba302554e7a24e9909bbdd026fd0c2d1d0d8638"><code>2ba3025</code></a>
fix: prevent unsafe <code>no-var</code> autofix with hoisted functions
(<a
href="https://redirect.github.com/eslint/eslint/issues/21213">#21213</a>)
(sethamus)</li>
<li><a
href="https://github.com/eslint/eslint/commit/8e6962219a605c5f5add10953aa31027da839194"><code>8e69622</code></a>
fix: Prevent no-var autofix when var is shadowed by catch parameter (<a
href="https://redirect.github.com/eslint/eslint/issues/21204">#21204</a>)
(Yang Hyeonjong)</li>
<li><a
href="https://github.com/eslint/eslint/commit/684b57972e1ddf25e076fb36189c60bbcacee635"><code>684b579</code></a>
fix: prefer-template invalid autofix creates a tagged template call (<a
href="https://redirect.github.com/eslint/eslint/issues/21207">#21207</a>)
(김채영)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/9ef407a3b051e74f50dc7fb8914e2bd89b3e5e53"><code>9ef407a</code></a>
docs: use eslint.config.* wherever config file names are listed (<a
href="https://redirect.github.com/eslint/eslint/issues/21216">#21216</a>)
(Marry (Subin Yang))</li>
<li><a
href="https://github.com/eslint/eslint/commit/87f66f4435c4df7f4f6815c939d153196ec03e3c"><code>87f66f4</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/585ef37516c0dc29ddb91ce2a2cdcc46fdbbd610"><code>585ef37</code></a>
docs: update architecture documentation (<a
href="https://redirect.github.com/eslint/eslint/issues/21112">#21112</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f3993b0547bace7370e9728ee7408af49d367d76"><code>f3993b0</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/ffc87d6234b2aa4335eec069e5c4d6ac04832b9e"><code>ffc87d6</code></a>
docs: fix broken links in Further Reading sections (<a
href="https://redirect.github.com/eslint/eslint/issues/21203">#21203</a>)
(Minsu)</li>
<li><a
href="https://github.com/eslint/eslint/commit/1a761e1d11b011fcb6bee181231a51010c500e4d"><code>1a761e1</code></a>
docs: update moved JSX specification links (<a
href="https://redirect.github.com/eslint/eslint/issues/21198">#21198</a>)
(Imran Mustafa)</li>
<li><a
href="https://github.com/eslint/eslint/commit/4d00ca4064ae0d1a75b604a16c68ab9f386ad388"><code>4d00ca4</code></a>
docs: update ESLint peer dependency to <code>^10.0.0</code> in shareable
configs (<a
href="https://redirect.github.com/eslint/eslint/issues/21202">#21202</a>)
(lumir)</li>
<li><a
href="https://github.com/eslint/eslint/commit/510d1a2e87bc197219f42e195ddb638d2b183a5a"><code>510d1a2</code></a>
docs: Update README (GitHub Actions Bot)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/899dbf131ce12a194b394bb8d67307df23509d17"><code>899dbf1</code></a>
chore: update github/codeql-action action to v4.37.7 (<a
href="https://redirect.github.com/eslint/eslint/issues/21243">#21243</a>)
(renovate[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/9aa38732177935bd1d7f1493732c0b67666be28a"><code>9aa3873</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/21235">#21235</a>)
(ESLint Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/dc1e7a8416937edefe04cf836ee202a6fc03bedd"><code>dc1e7a8</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/21208">#21208</a>)
(ESLint Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f878d212e9622da9513bcd60d2aedb2e8bb4fc8b"><code>f878d21</code></a>
ci: bump pnpm/action-setup from 6.0.9 to 6.0.10 (<a
href="https://redirect.github.com/eslint/eslint/issues/21200">#21200</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/4891e50aceadb0e886ad7d8ab5ae2beab563de85"><code>4891e50</code></a>
ci: bump github/codeql-action from 4.37.4 to 4.37.6 (<a
href="https://redirect.github.com/eslint/eslint/issues/21199">#21199</a>)
(dependabot[bot])</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/c27bc926e496985eb7911c09eb60914b2e4b5d0f"><code>c27bc92</code></a>
10.9.0</li>
<li><a
href="https://github.com/eslint/eslint/commit/fa831d95b326e6d23671d9b2df1ea5dbc64f6f34"><code>fa831d9</code></a>
Build: changelog update for 10.9.0</li>
<li><a
href="https://github.com/eslint/eslint/commit/899dbf131ce12a194b394bb8d67307df23509d17"><code>899dbf1</code></a>
chore: update github/codeql-action action to v4.37.7 (<a
href="https://redirect.github.com/eslint/eslint/issues/21243">#21243</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/08de88e50294c4e01f6cae97eceeb578da55792b"><code>08de88e</code></a>
feat: handle underflow in no-loss-of-precision (<a
href="https://redirect.github.com/eslint/eslint/issues/21218">#21218</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9ef407a3b051e74f50dc7fb8914e2bd89b3e5e53"><code>9ef407a</code></a>
docs: use eslint.config.* wherever config file names are listed (<a
href="https://redirect.github.com/eslint/eslint/issues/21216">#21216</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9aa38732177935bd1d7f1493732c0b67666be28a"><code>9aa3873</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/21235">#21235</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2ba302554e7a24e9909bbdd026fd0c2d1d0d8638"><code>2ba3025</code></a>
fix: prevent unsafe <code>no-var</code> autofix with hoisted functions
(<a
href="https://redirect.github.com/eslint/eslint/issues/21213">#21213</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/dc1e7a8416937edefe04cf836ee202a6fc03bedd"><code>dc1e7a8</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/21208">#21208</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/87f66f4435c4df7f4f6815c939d153196ec03e3c"><code>87f66f4</code></a>
docs: Update README</li>
<li><a
href="https://github.com/eslint/eslint/commit/8e6962219a605c5f5add10953aa31027da839194"><code>8e69622</code></a>
fix: Prevent no-var autofix when var is shadowed by catch parameter (<a
href="https://redirect.github.com/eslint/eslint/issues/21204">#21204</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/eslint/eslint/compare/v10.8.1...v10.9.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint&package-manager=npm_and_yarn&previous-version=10.8.1&new-version=10.9.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
Shinrai and others added 6 commits August 25, 2026 20:09
…t test header epochs (#306 review)

A scoped remove(moduleID, apiPath) that empties a module marked it unregistered but left its
ownership.moduleEndpoints entry behind — removePath() deletes the emptied moduleToPath set but not
the endpoint, and the moduleID-only unregister() does delete it, so the scoped full-removal leaked a
stale endpoint until the next reload. markUnregistered() now also deletes the endpoint (it is only
called when a module is fully gone). Regression test added.

Also fix the parenthesized epoch in three test-file headers: 1756022400 is 2025-08-24, not the
2026-08-24 ISO shown. (A repo-wide epoch/ISO drift exists across ~49 files; a checker/corrector is
requested upstream in CLDMV/fix-headers#31 and will be swept separately.)
Release docs for v3.15.0 (character-safe moduleIDs + scoped remove(moduleID, apiPath),
prototype-pollution guard on mount paths, callable-leaf built-in-member fix). Documents the
scoped remove form, the reserved internal separator, and scoped/synthetic reload replay in
docs/RELOAD.md; promotes v3.15.0 to the README What's New Latest block.
Left over from before .gitignore covered .github/instructions (committed in v3.9.0).
Removed going forward; git rm records a forward deletion, so history is unchanged.
@cldmv-bot cldmv-bot Bot added ! docs → next v4 flow: docs contributor PR targeting the next integration branch type: feature Implements new functionality — a PR or issue that adds a feature area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure type: config Changes to repository or project configuration files type: dependencies Relates to dependency updates, version bumps, or package management type: documentation Relates to docs, README updates, guides, or inline code comments labels Sep 1, 2026
@cldmv-bot cldmv-bot Bot changed the title docs: add OpenSSF Scorecard badge to README feat: scope api.remove() to one module's node via an optional apiPath Sep 1, 2026
@cldmv-bot

cldmv-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Auto-normalized PR title: rewrote PR title to match the highest-priority commit type (feat).

  • Before: docs: add OpenSSF Scorecard badge to README
  • After: feat: scope api.remove() to one module's node via an optional apiPath

If this isn't what you want, edit the title — the normalizer won't re-fire as long as the title stays conventional.

@Shinrai

Shinrai commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Closing without merging — do not merge this PR.

docs/release-3.15.0 branches from v3.14.0 (3eac962) and carries the individual pre-squash v3.15.0 commits, which already shipped as the squash 2fa21a0 release: v3.15.0 (#308) (now master HEAD). Git doesn't recognize those SHAs in the squash, so this PR lists all of them as "new." The branch is also behind next, so merging would roll next backward — reverting the BOT_NAME/BOT_EMAIL workflow lines, an older README.md/docs/LIFECYCLE.md, and downgrading package.json.

The only genuinely new content here was the OpenSSF Scorecard README badge, which has been re-applied cleanly on a fresh branch off next (docs/scorecard-badge). The stale docs/release-3.15.0 branch can be deleted.

@Shinrai Shinrai closed this Sep 1, 2026
Shinrai added a commit that referenced this pull request Sep 21, 2026
… for #318

The previous commit added a schedule cron as a "guaranteed" fallback,
but that's the wrong tool: a wasteful always-on poll every 10 minutes
forever, papering over the real mechanism instead of fixing it.

The actual cause: GitHub does not deliver check_suite: completed for a
check suite created by GitHub Actions itself — which is every check
this repo's own ci.yml produces, coverage badge and PR-comment jobs
included — only for one created by a third-party App. That's why zero
check_suite-triggered runs of release-merge.yml ever fired for PR
#437's own head branch. workflow_run is GitHub's documented
replacement for "re-run something when this other workflow finishes"
and doesn't have that restriction.

Replace check_suite: completed + schedule with workflow_run, naming
ci.yml by its literal workflow name (required — workflow_run matches
on name, not filename, and can't be templated via an expression in
on:). No change needed in the reusable's own resolution logic
(CLDMV/.github's workflow-release-merge.yml now threads
workflow_run.head_branch through as the primary source, falling back
to check_suite.head_branch) — this repo just needs the trigger swap
once that reaches @v4.
cldmv-bot Bot added a commit that referenced this pull request Sep 21, 2026
…uled…

## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
- #439
  - fix(ci): replace the schedule poll with workflow_run — the actual fix for #318 (3e9a344)
  - fix(ci): guarantee release-merge re-evaluation with a scheduled fallback (47cda9c)

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
_No other changes_



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

---

<!-- coverage-start -->

![coverage](https://img.shields.io/badge/coverage-100.0%25-brightgreen?style=for-the-badge&logo=vitest&logoColor=white)

| Metric | Coverage |
|--------|----------|
| Statements | 100.0% |
| Branches   | 100.0% |
| Functions  | 100.0% |
| Lines      | 100.0% |

*Avg: **100.0%** · `4fd6ed7` · Node lts/**

<!-- coverage-end -->

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure ! docs → next v4 flow: docs contributor PR targeting the next integration branch type: config Changes to repository or project configuration files type: dependencies Relates to dependency updates, version bumps, or package management type: documentation Relates to docs, README updates, guides, or inline code comments type: feature Implements new functionality — a PR or issue that adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants