Skip to content

Commit b04bb29

Browse files
committed
1.0.1
1 parent cb8bcb4 commit b04bb29

5 files changed

Lines changed: 9 additions & 14 deletions

File tree

.eslintrc.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
"globals": {
1111
"$": true,
1212
"Actor": true,
13-
"Adventure": true,
14-
"AdventureImporter": true,
1513
"Application": true,
1614
"Atomics": "readonly",
1715
"Azzu": true,
@@ -27,7 +25,6 @@
2725
"ControlIcon": true,
2826
"Dialog": true,
2927
"DocumentSheetConfig": true,
30-
"FilePicker": true,
3128
"Folder": true,
3229
"ForgeAPI": true,
3330
"ForgeVTT": true,
@@ -38,16 +35,10 @@
3835
"Hooks": true,
3936
"ImagePopout": true,
4037
"io": true,
41-
"Item": true,
42-
"Journal": true,
43-
"JournalEntry": true,
44-
"JournalEntryPage": true,
45-
"JournalSheet": true,
4638
"libWrapper": true,
4739
"loadTexture": true,
4840
"Macro": true,
4941
"NoteConfig": true,
50-
"Playlist": true,
5142
"renderTemplate": true,
5243
"Roll": true,
5344
"RollTable": true,

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.1
2+
3+
- Remove additional deprecation warnings.
4+
15
# 1.0.0
26

37
- v13 support, no v12 support in this version.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "notelicker",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"author": "MrPrimate",
55
"description": "Foundry VTT module for enhancing notes and their icons",
66
"private": true,

src/hooks/noteWrapper.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function noteWrapper() {
2525

2626
if (utils.setting("ENABLE_DYNAMIC_ICONS")) {
2727
/* eslint-disable no-invalid-this */
28-
libWrapper.register(CONSTANTS.FLAG_NAME, 'Note.prototype._draw', async function(wrapped, ...args) {
28+
libWrapper.register(CONSTANTS.FLAG_NAME, 'foundry.canvas.placeables.Note.prototype._draw', async function(wrapped, ...args) {
2929

3030
if (utils.setting("ENABLE_DYNAMIC_ICONS")
3131
&& !Icons.textureExists(this.document?.texture?.src)
@@ -52,7 +52,7 @@ export function noteWrapper() {
5252
) {
5353
/* eslint-disable no-invalid-this */
5454
// eslint-disable-next-line no-unused-vars
55-
libWrapper.register(CONSTANTS.FLAG_NAME, 'Note.prototype._drawControlIcon', function(...args) {
55+
libWrapper.register(CONSTANTS.FLAG_NAME, 'foundry.canvas.placeables.Note.prototype._drawControlIcon', function(...args) {
5656
const IconClass = Icons.keepBorder(this.document)
5757
? ControlIcon
5858
: BorderlessControlIcon;

src/lib/DirectoryPicker.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class DirectoryPicker extends foundry.applications.apps.FilePicker.implem
2121

2222
static async uploadToPath(path, file) {
2323
const options = DirectoryPicker.parse(path);
24-
return FilePicker.upload(options.activeSource, options.current, file, { bucket: options.bucket }, { notify: false });
24+
return foundry.applications.apps.FilePicker.implementation.upload(options.activeSource, options.current, file, { bucket: options.bucket }, { notify: false });
2525
}
2626

2727
// returns the type "Directory" for rendering the SettingsConfig
@@ -123,7 +123,7 @@ export class DirectoryPicker extends foundry.applications.apps.FilePicker.implem
123123
if (typeof ForgeVTT !== "undefined" && ForgeVTT?.usingTheForge) {
124124
return DirectoryPicker.forgeCreateDirectory(target);
125125
}
126-
return FilePicker.createDirectory(source, target, options);
126+
return foundry.applications.apps.FilePicker.implementation.createDirectory(source, target, options);
127127
}
128128

129129
/**

0 commit comments

Comments
 (0)