Deprecations
Every compat shim carries a removal release and the test suite enforces it (#515).
from simple_module_core.runtime.deprecation import deprecate, deprecated, deprecated_module
@deprecated(remove_in="0.1.0", use="new_fn()")
def old_fn(): ... # warns on call; classes warn on instantiation
deprecated_module("pkg.old", remove_in="0.1.0", use="pkg.new") # module scope of a shim module
_OLD_FORM = deprecate("old form of X", remove_in="0.1.0", use="new form")
_OLD_FORM.warn() # in the code path kept for old callersAll three register in one registry. host/tests/test_deprecation_expiry.py imports every shim and fails once the installed simple_module_core version reaches any registered remove_in, so a shim cannot silently outlive its date: that release either deletes it or moves the date on purpose. A new shim must be added to that test's import list. Module-layout aliases are discovered automatically. Non-Python fallbacks are registered explicitly by the test.
Layout aliases also feed smpy fix-imports, which rewrites old import paths in an app (docs/guide/upgrading.md). Its table is frozen into framework/cli/simple_module_cli/updates/import_renames.json so the CLI keeps no dependency on core; after adding or updating a layout shim run uv run python scripts/gen_import_renames.py (the expiry test fails while live entries are stale; historical entries are preserved when shims are deleted so smpy fix-imports keeps working after removal).
Removed early (#989)
The shims previously scheduled for 0.1.0 have been removed. Old imports fail; the pre-admin view URL redirects are gone. See the Unreleased Removed section in the changelog for every removed name and its replacement.
- Use framework settings registration/hydration and the settings module's area paths.
- Use
simple_module_hosting.auth.permissions.RequiresPermission: multiple keys have any-of semantics.PermissionService.set_user_permissionsowns invalidation. - Declare anonymous routes through
register_public_routes; providers no longer contributeget_public_paths. - Define
register_event_handlers(self, bus, app)and passappexplicitly. Workers passNone; subscribe durable handlers before anapp is Nonereturn. - Use
optional()for Inertia props,ResourceType.share_rolesfor share roles, andsimple_module_core.web.redirect_safety.safe_nextfor safe redirects.
ModuleMeta.requires_framework=None permanently means no version constraint; only its deprecation was removed. A declared range is still checked at boot.
simple_module_hosting.config.settings.Settings, simple_module_hosting.boot._registrations, simple_module_core.web.public_routes, simple_module_core.modules.versioning and simple_module_core.access.resources are live implementations, not import-path shims. They remain; only their deprecated compatibility paths were removed.