obsidian-dataview-snippets
obsidian-dataview-snippets copied to clipboard
PR 17: Bump obsidian from 1.5.7 to 1.6.6
Bumps obsidian from 1.5.7 to 1.6.6.
Changelog
Sourced from obsidian's changelog.
Changelog
v1.5.11
- Fixed
revealLeaffailing to focus the correct window.- If you are using the
SliderComponentin your app, be aware, the behavior of the component has changed in 1.5.9. Now, instead of updating the value when the slider is dragged, it will only update the value when the slider is released. If your plugin was relying on the old behavior, you will need to update your plugin code to call.setInstant(true)on the slider. Note: BecausesetInstantis a new function, you'll also need to check to see if the function exists before calling it. This will ensure your plugin maintains backwards compatibility when being run on older versions of Obsidian.v.1.5.7
Plugin.onExternalSettingsChangeThere's a new callback function for plugins to react to when plugin settings (
data.json) get changed on disk. This callback can be used to reload settings when they are updated by an external application or when the settings get synced using a file syncing service like Obsidian Sync.New
Vault.getFileByPathandVault.getFolderByPathutility functionsThe
getAbstractFileByPathhas long been a point of confusion with plugin developers. More often than not, you are looking for either a file or a folder. And you know which you want at call-time. Instead of usinggetAbstractFileByPaththen checking if the result is an instance ofTFileorTFolder, now you can just usegetFileByPathorgetFolderByPathto automatically do this check.
View.scopeis now publicFinally
scopeis made public on theViewclass. This means you can assign hotkeys for when your view is active and focused.New
getFrontMatterInfoutilityThere is now a canonical way to find the offsets of where the frontmatter ends and where the content starts in a file.
FileManager.getAvailablePathForAttachmentIf your plugin saves attachments to the vault, you should be using
getAvailablePathForAttachment. It will generate a safe path for you to use that respects the user's settings for file attachments.v1.4.4
We've exposed our helper function for setting tooltips on elements (
setTooltip) as well as added a new progress bar component.The
FileManager.processFrontMatterfunction now also exposes the DataWriteOptions argument to be consistent with the otherprocessandwritefunctions.v1.4.0
We've made some changes to
CachedMetadatato support Properties.FrontMatterCacheis now no longer aCacheItem—meaning that it doesn't have a position. Instead, is it a Reference.Another big change in v.1.4 is that frontmatter now supports wikilinks. If a value in the frontmatter can be interpreted as a link, it will be cached inside
CachedMetadata.frontmatterLinks.v1.1.3
- Updated the Canvas spec to indicate that colors can be stored in 1 or 2 formats:
... (truncated)
Commits
- See full diff in compare view
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 commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)