Update dependency obsidian to v1.7.2 #83
Merged
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.
This PR contains the following updates:
1.6.6
->1.7.2
Release Notes
obsidianmd/obsidian-api (obsidian)
v1.7.2
Compare Source
Workspace changes
Plugin#onUserEnable
gives you a place to performance one-time initialize after the user installs and enables your plugin. If your plugin has a custom view, this is a good place to initialize it rather than recreating the view inPlugin#onload
.Workspace#ensureSideLeaf
is now public. This function is a shorthand way to create a leaf in the sidebar if one does not already exist.WorkspaceLeaf#isDeferred
andWorkspaceLeaf#loadIfDeferred
. As of Obsidian v1.7.2, Obsidian will now defer tabs by default. We published a guide on how to handle deferred views in the developer docs.Housekeeping
We've updated the API to prefer
unknown
toany
. Usingany
causes Typescript to disable typechecking entirely on the returned value, so this change could uncover some hidden typing issues.We also removed
prepareQuery
,fuzzySearch
, andPreparedQuery
from the API. If your plugin is using one of these functions, you should migrate toprepareFuzzySearch
.Misc
Plugin#removeCommand
is now available if your plugin needs to dynamically remove commands (for example, if your plugin allows for user-created commands).SuggestModal#selectActiveSuggestion
is now public. This is useful to provide an alternative hotkey to your SuggestModal that still triggers the selected item.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.