1 Commits
Author SHA1 Message Date
chrnx d276e3d278 fix(app): an empty mountpoint mounts at the root again (GitHub #31)
CI / dco (pull_request) Successful in 4s
CI / runtimes (bun) (pull_request) Failing after 21s
CI / build (pull_request) Successful in 29s
CI / runtimes (edge) (pull_request) Successful in 19s
CI / runtimes (deno) (pull_request) Successful in 33s
GitHub #32 (merged from contrib) made `createApp` fail with a message
naming the module when its `@Module` metadata has no `mountpoint`,
instead of a TypeError from `joinPath`. The check tested falsiness, so
it also refused `mountpoint: ''`, which the type allows and which has
always mounted at the root (`joinPath('', '/hi')` is `/hi`).

Test for `typeof … !== 'string'` instead: a missing or non-string
mountpoint still fails with the new message, and `''` boots as before.
The CHANGELOG entry for #31 that #32 did not add is included.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-10-24 15:52:32 -05:00
+1 -1
View File
@@ -260,7 +260,7 @@ npm treats versions as semver and semver forbids leading zeros.
### Fixed
- **A `@Module` without a `mountpoint` names itself at boot** (GitHub #31). The type
- **A `@Module` without a `mountpoint` names itself at boot** (GitHub #31, thanks @otrumb). The type
requires it, but JavaScript or transpile-only code could still omit it, and `createApp` failed
with `Cannot read properties of undefined (reading 'replace')` from inside the path helper. It now
fails with `<Module> @Module metadata is missing mountpoint`. `mountpoint: ''` still mounts at the