Repository navigation
Use _mdbase settings and metadata folders (model rc.22) - #28
Merged
Merged
Conversation
Use _mdbase metadata folders for new collections and share legacy-aware settings path resolution. Vendor tasknotes.task rc.21 with retained contracts, settings resources and seed upgrade history.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_mdbase/settings/<app>.mdfor new settings records. ExportLEGACY_APP_SETTINGS_FOLDER,legacyAppSettingsPath(app)andresolveAppSettingsPath(app, { currentExists, legacyExists })from the root and settings subpath. Current wins, then legacy, then current for creation; clients never move records.settings_versionat 1; bump the settings type to 2 and contracts tomdbase.app-settings2.0.0 /tasknotes.settings1.1.0._mdbase/typesand_mdbase/contracts. Put support schemas under the contracts folder's parent. Explicit existing layouts remain supported; existing-config spec defaults remain_types/_contracts.dist/packs/tasknotes.task/0.3.0-rc.21.jsonfrom Add TaskNotes rc.21 with settings under _mdbase mdbase-dev/mdbase-contracts#23, headc50a6d08d975b02891fdb8f9c9f08011179efd51. Preserve support document bytes, retained contracts/schemas, and seed upgrade history. Add a repeatablesync:mdbase-packscript.@tasknotes/modelfrom rc.21 to rc.22 after checking origin/main and npm versions. Update the changelog and consumer guidance.Consumer-visible changes
APP_SETTINGS_FOLDER,appSettingsPathandTASKNOTES_SETTINGS_PATHnow name_mdbase/settings. Consumers must check both candidate paths with the resolver and save the chosen record, not blindly create at the new path.providescan includetasknotes.settingsandmdbase.app-settings, not onlytasknotes.task; consumers must not assume four resources or one provided contract.Validation
npm test— all 141 tests passed (includes build).npm run typecheck.npm run test:package— installed-package ESM/CJS settings exports and TypeScript node-resolution checks; existing calendar checks retain node and NodeNext coverage.git diff --check.e86a5af51a278d08da5ea9c3e64d9d1b22aaaa14. New settings TypeScript smoke coverage uses the existing supported node resolver; no existing test was removed or weakened.No merge, tag or publish performed. Publishing remains the maintainer's tag-triggered step.