obsidian-typings 4.69.0 → 4.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,192 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.3.0
4
+
5
+ - feat: FileSystemWatchHandler
6
+ - feat: DataAdapter.handler/trigger
7
+ - fix: mark created fake file/folder as deleted
8
+ - fix root folder path
9
+ - fix: handle root folder as /
10
+ - feat: PromisedQueue
11
+ - feat: MarkdownFileInfo.metadataEditor
12
+ - fix: ensure style-mod.d.cts is loaded
13
+ - feat: add missing public
14
+ cd59387 feat: add global app
15
+ 3ebddbc chore: ensure formatting doesn't remove vars
16
+ e1b1d6f chore(release): 2.2.1-beta.9
17
+ 1a5ddfb fix: add @deprecated to app
18
+ a3bc2ef chore(release): 2.2.1-beta.10
19
+ ae1786b feat: TFolder.getParentPrefix
20
+ 05820be chore(release): 2.2.1-beta.11
21
+ a52c762 feat: add TFile/TFolder/TAbstractFile methods
22
+ 3894d9e feat: add ShareReceiver
23
+ d2babb8 feat: add all Workspace events
24
+ c8ab72c chore: recover sorting
25
+ 319f22e chore: reformat
26
+ 56fe232 chore: sort method overloads
27
+ 57e5bde chore: apply sorting
28
+ fb0aca4 chore(release): 2.2.1-beta.12
29
+ d24bc71 chore: switch to single quotes
30
+ 71ded19 chore: spellcheck
31
+ 00113a8 chore(release): 2.2.1-beta.13
32
+ 98c199a `getLinkSuggestions()` sometimes has `alias` property
33
+ 06127a7 feat: getLinkSuggestions() sometimes has alias property (#85)
34
+ bab5832 chore: format json
35
+ 42fc080 chore: reformat
36
+ 6339f74 chore: spellcheck
37
+ 291abf4 chore: update node packages
38
+ a8b58d1 chore(release): 2.2.1-beta.14
39
+ f0de557 chore: fix ... in json README
40
+ 613e4d4 Extended typings for MarkdownPreviewRenderer
41
+ f067c49 Merge remote-tracking branch 'upstream/main'
42
+ d00645d fix formatting error in contributing.md
43
+ ab390cf feat: Add typings to MarkdownPreviewRenderer and fix contributing.md formatting (#86)
44
+ 7d0a62d chore: support namespaces
45
+ 53ea089 chore: add @public
46
+ a345e9e Add trailing newline
47
+ bee2289 chore(release): 2.2.1-beta.15
48
+ 5adb556 feat: add more hidden exported types
49
+ a3a25f8 feat: extract CapacitorAdapter...
50
+ 12b7a12 feat: MarkdownPreviewSection
51
+ 17cbd22 feat: add all global variables
52
+ ee68d16 chore(release): 2.2.1-beta.16
53
+ 4ff488b chore: move libs to dependencies
54
+ f8df77f chore(release): 2.2.1-beta.17
55
+ eca21f4 feat: fix getAvailablePathForAttachments signature
56
+ ee7cbd0 chore(release): 2.2.1-beta.18
57
+ 1ba2065 feat: getBacklinksForFile change to return ReferenceCache
58
+ 66b9687 chore(release): 2.2.1-beta.19
59
+ 243175c Updated PropertyRenderContext.onChange
60
+ 10f8326 added remark
61
+ bb329a3 whoops my remark was wrong
62
+ ac4dcfc feat: Updated PropertyRenderContext.onChange (#87)
63
+ 275ad1f chore(release): 2.2.1-beta.20
64
+ e77ee2d chore: update obsidian dep
65
+ 39eca7b fix: separate AppSetting from existing Setting...
66
+ 696fcbe Reformat
67
+ be67985 chore(release): 2.2.1-beta.21
68
+ c74ffe2 fix: add null result
69
+ 524f56c chore(release): 2.2.1-beta.22
70
+ 395d226 fix: getBacklinksForFile accept mandatory TFile
71
+ 1a6443b chore(release): 2.2.1-beta.23
72
+ 16d577a fix: MetadataCache typings
73
+ d903865 chore(release): 2.2.1-beta.24
74
+ 4cdc7db feat: update LinkResolverQueue
75
+ 2b2f657 chore: process files in sorted order
76
+ 0647b24 feat: use posix
77
+ 6e475ad chore(release): 2.2.1-beta.25
78
+ 48ad7ad feat: MetadataCache
79
+ a2ebd6a chore(release): 2.2.1-beta.26
80
+ 2ba9869 feat: MetadataCache
81
+ 96ceb69 chore(release): 2.2.1-beta.27
82
+ 7bdc833 feat: MetadataCache
83
+ 93d0806 chore(release): 2.2.1-beta.28
84
+ 27bf220 feat: Events._
85
+ cf7b9b1 fix: computeMetadataAsync
86
+ 39f2db0 chore(release): 2.2.1-beta.29
87
+ b44588e fix: remove unused Starred plugin
88
+ d7e6a7e feat: add Plugin typings
89
+ 061359a chore: format
90
+ 3fed738 chore: sort interfaces outside of modules
91
+ 1bf65e1 chore: format
92
+ f89f244 chore: switch from lambdas to functions
93
+ 5cc1f64 feat: AudioRecorderPluginInstance
94
+ 7a5f0c1 chore: sort overloads regardless of whitespaces
95
+ 312f983 chore: reformat
96
+ ad46d9b chore: add generateTypes helper
97
+ f73a710 chore: spellcheck
98
+ 625498a chore: update docs
99
+ 714d594 chore: fix link
100
+ 1109a04 chore: spellcheck
101
+ 03aadac chore: generate separate types
102
+ fde1453 chore: remove extra brackets
103
+ 95e9756 chore: include all chain for obsidian types
104
+ 2430d3d chore: add path to the instance in comment
105
+ 39c48d1 chore: get params from fn.length, not via parsing
106
+ 077199d chore: function types in array need more brackets
107
+ 576f5e7 chore: recompile
108
+ 953a6cd chore: reword
109
+ bb3e5f4 feat: add constructors
110
+ 956995d feat: update InternalPlugins
111
+ d46f7d2 chore: generate types only
112
+ b779037 added fileManager.renameProperty()
113
+ 32b3636 chore: refactor to argument object
114
+ dd5afc2 chore: add depth
115
+ 107d681 chore: update depth info
116
+ db68018 chore: format
117
+ 3c17772 chore: don't add extra depth for arrays
118
+ ddff8dd chore: don't cache DepthLimitReached
119
+ c12ad57 chore: reuse types with the same definition
120
+ 252d584 chore: use unique numbers to prevent overrides
121
+ 114d584 chore: ensure types sorted
122
+ 310a49a feat: more internal plugins
123
+ 019391e chore: handle functions with additional properties
124
+ bac7480 chore: reformat
125
+ fb137c5 chore: show paths in the shortest order
126
+ 691fb01 chore: better logs
127
+ 6f50eb0 feat: requestSaveConfig
128
+ 344cbe5 feat: BacklinkPluginInstance
129
+ d90c694 fix: Debouncer signature
130
+ d590375 chore: change type
131
+ 35265a4 feat: bookmarks
132
+ f6a864a chore: build:tools
133
+ 9114909 chore: format
134
+ fce0e2a chore: fix command
135
+ d1ea594 chore: format
136
+ 52e95ec chore: add support for more builtin types...
137
+ 606af6c Avoid duplicating TFile/TFolder
138
+ 82c25ab chore: reformat
139
+ 5b86a6f feat: Bookmark
140
+ a28ed6d feat: added fileManager.renameProperty() (#89)
141
+ 5fcfa0e feat: App
142
+ a4da951 chore: format
143
+ fcb61d1 chore: format json with lf
144
+ 48e9691 chore: exclude dist from cspell
145
+ 987960a chore: support null prototype
146
+ 96e53ae chore: handle constructor names
147
+ b7d904a chore: better check for prototypes
148
+ 5309df5 feat: Bookmark
149
+ 722a9c9 chore: proper exclude tools
150
+ 1d3d4c5 feat: more types
151
+ 707b54e feat: Canvas plugin
152
+ ec426c1 feat: more types
153
+ 90279b7 Added colorPickerEl property to ColorComponent
154
+ 2c73c25 feat: Added colorPickerEl property to ColorComponent (#90)
155
+ 3882497 feat: add ColorComponent functions
156
+ 4176b25 feat: WorkspaceItem / WorkspaceSidedock
157
+ f82edcd chore: fix api extract warnings
158
+ 512043f chore: reformat
159
+ e748f09 chore(release): 2.2.1-beta.30
160
+ 37d8a08 Update Tree.d.ts
161
+ af9a6a6 docs: switch code samples to single quote
162
+ 00ec5ae docs: correct terminology
163
+ 0bbf5dc feat: Update Tree.d.ts (#94)
164
+ f8225b1 fix: use proper typing
165
+ 24b3874 chore: lambdas to functions
166
+ ee3ba1e chore: reformat
167
+ d069c65 chore(release): 2.2.1-beta.31
168
+ ba0c1fd Updated typings for ProgressBarComponent
169
+ e481ce7 feat: Updated typings for ProgressBarComponent (#96)
170
+ 0504897 fix: typo
171
+ 8578d4a feat: add method
172
+ 91e0c61 chore: reformat
173
+ 3b170b5 chore(release): 2.2.1-beta.32
174
+ 708f36e chore: fix Plugin$1 in generated code
175
+ f9ef2e3 chore(release): 2.2.1-beta.33
176
+ 820ef98 fix: changed CustomArrayDict
177
+ d8b11e7 chore(release): 2.2.1-beta.34
178
+ 7d17f54 fix: signature for getBacklinksForFile
179
+ 3f42f5a chore(release): 2.2.1-beta.35
180
+ da7e309 feat: add type guards
181
+ f8c61f3 chore: ignore tsbuildinfo
182
+ 07315c8 chore(release): 2.2.1-beta.36
183
+ a7d765f feat: Update ConfigItems
184
+ 59733a1 chore(release): 2.2.1-beta.37
185
+ 31714c2 fix: CustomArrayDict
186
+ f1de130 chore(release): 2.2.1-beta.38
187
+ 744f471 feat: add debugMode
188
+ 1bac717 chore(release): 2.3.0
189
+
3
190
  ## 2.2.0
4
191
  - Added typings for `LinkUpdateHandler` for `inProgressUpdates` and `runAsyncLinkUpdate` (`FileManager`)
5
192
  - Added typings for `onChange` method (`Vault`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "4.69.0",
3
+ "version": "4.70.0",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",
@@ -135,7 +135,7 @@
135
135
  "dist/",
136
136
  "implementations/",
137
137
  "patches/",
138
- "scripts/postinstall.ts",
138
+ "scripts/postinstall.mjs",
139
139
  "CHANGELOG.md",
140
140
  "LICENSE",
141
141
  "README.md",
@@ -0,0 +1,29 @@
1
+ import { spawnSync } from 'node:child_process';
2
+ import {
3
+ join,
4
+ relative
5
+ } from 'node:path/posix';
6
+ import {
7
+ cwd,
8
+ env
9
+ } from 'node:process';
10
+
11
+ const isGlobalInstall = env.npm_config_global === 'true';
12
+
13
+ if (isGlobalInstall) {
14
+ console.log('Global install detected, skipping patch-package...');
15
+ process.exit(0);
16
+ }
17
+
18
+ let pkgDir = cwd().replace(/\\/g, '/');
19
+ const patchDir = join(pkgDir, 'patches');
20
+ const relativePath = '/node_modules/obsidian-typings';
21
+ if (pkgDir.endsWith(relativePath)) {
22
+ pkgDir = pkgDir.slice(0, -relativePath.length);
23
+ }
24
+
25
+ spawnSync('npx', ['patch-package', '--patch-dir', relative(pkgDir, patchDir)], {
26
+ shell: true,
27
+ stdio: 'inherit',
28
+ cwd: pkgDir
29
+ });