Obsidian Typings Changelog
This page documents the changes made to the Obsidian Typings project. For the most up-to-date information, refer to the changelog of the individual releases on the GitHub releases page.
Changelog
2.2.0
- Added typings for
LinkUpdateHandlerforinProgressUpdatesandrunAsyncLinkUpdate(FileManager) - Added typings for
onChangemethod (Vault) - Fix first parameter type of
exists(Vault) - Fix optionality of
getAvailablePathForAttachments(Vault)
2.1.3
- Added initial typings for following views:
AllPropertiesViewAudioViewBacklinkViewBookmarksViewBrowserHistoryViewBrowserViewCanvasViewEmptyViewFilePropertiesViewGraphViewImageViewInfoFileViewLocalGraphViewOutgoingLinkViewOutlineViewPdfViewReleaseNotesViewSearchViewTagViewUnknownViewVideoView
- Add typings for
queuemethod onFileManager
2.0.0
- Split up typings codebase into separate files
- Added
/implementationssubmodule which provides additional code importsInternalPluginNamecreateTFileandcreateTFolderfunctionsCustomArrayDictImpl
- Added typings for:
- Missing
Platformconstants HotkeysSettingTabLinkUpdatersDragManager
- Missing
- Fixed typings for:
enableis async (Plugin)- Return type of
getEnabledPluginById(InternalPlugins) - Return type of
saveAttachment(App) - Return type of
importAttachments(App) - Parameter order of
getAvailablePathForAttachments(Vault)
- Improved compatibility with older and newer Node and TS configurations
1.1.6
- Refactored
InternalPlugininstance structure - Fixed return type of
splitLeafOrActive, returnsWorkspaceLeaf
1.1.5
- DEPRECATED:
app.isMobilewill be removed in a future version, prefer usage ofPlatform.isMobile - DEPRECATED:
app.accounthas been removed - Fix
getFileInfo, returnsundefinedif file does not exist
1.1.4
- NOTE: the global
appvariable has been removed from the official Obsidian API as of 1.6.0, it will not be re-added byobsidian-typings. - DEPRECATED:
loadProgresshas been made inaccessible in version 1.6.0 - DEPRECATED:
collapsed/collapsibleproperties ofTreeItemhave been removed in 1.6.0 showRibbonsetting was addedfootnoteswere added toMetadataCache- Added typings for
DomElementInfoto allow for adding event listeners directly withincreateEl - Added
instancetoInternalPlugindefinitions - New methods/variables added in 1.6.0/1.6.1 have gotten preliminary typings
1.1.3
- Use obsidian as a peer dependency when installing the package
1.1.2
- Renamed
EditortoBaseEditorandExtendedEditortoEditor, as most components and views directly make use of theEditorclass (andBaseEditoris never used directly)
1.1.1
- Fix incorrect return type for
loadLocalStoragefunction
1.1.0
- Add typings for Live Preview Editor instances (
MarkdownView,MarkdownEditView,MarkdownScrollableEditView, …) - Improved typings for
MetadataEditorandPropertyWidgetType - Add basic typings for Vim CM plugin to
@codemirror/viewmodule - Moved all interfaces and classes under the
obsidianmodule - Removed commented trigger functions from
Events-derived classes - Removed duplicated definitions
- Sorted file interfaces alphabetically, applied dprint formatting
1.0.8
- Add
aliaseswidget type toPropertyWidgetType - Allow arbitrary widgets for
PropertyWidgetType
1.0.7
- Fix
setTypeandunsetTypeofapp.metadataTypeManagernot being marked asasync
1.0.6
- Fix unnecessary typings for overridden
triggerfunctions onEvents-derived classes - Fix
revealInFolderfor file-explorer plugin not acceptingTFileinputs
v1.0.5
- Fix some methods on
MenuandMenuItemnot being chainable
v1.0.4
- Added missing EventRef types
- View Registry:
view-registered,view-unregistered,extensions-updated - Metadata Cache:
initialized,finished - Workspace:
hover-link,tab-group-menu,swipe,layout-ready,url-menu,search:results-menu,receive-text-menu,receive-files-menu,canvas:selection-menu,canvas:node-menu,canvas:node-connection-drop-menu,canvas:edge-menu - Workspace Leaf:
history-change,leaf-menu
- View Registry:
- Added missing typings for
MenuandMenuItemclasses - Added missing typings for
TreeandTreeItemclasses (used inOutlineandFileExplorerplugin views) - Set vertical height for a split leaf item via
setDimension - Bumped
electron-typesversion
v1.0.3
- Change
electron-typestypes inclusion - Added note in
README.mdon automatically including new types - Fix lambda definitions and tsc compilation
v1.0.2
- Changed
anytype tounknownto enforcing explicit type casting - Fixed
CONTRIBUTING.mdlink inREADME.md - Added badges to
README.md
v1.0.1
- Automated npm publishing
v1.0.0 (initial npm release)
- Made package installable via npm
- Clarified README, added contribution guidelines