Skip to content

Commit

Permalink
Merge pull request #66 from Praxxian/develop
Browse files Browse the repository at this point in the history
Release 4.0.0
  • Loading branch information
Praxxian authored Dec 28, 2024
2 parents df82b15 + f36c41a commit 9e9224e
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 12 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Lava Flow


## Release 4.0.0 (2024-12-27)
- Fixed v12 compatibility issues (permissions, folder creation).

## Release 3.1.0 (2024-04-01)
- Notes can be turned into pages within a single Journal Entry.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ I highly recommend using the latest version of Foundry supported by the module,
| v1.\* | v9 |
| v2.\* | v10 |
| v3.\* | v11 |
| v4.\* | v12 |

## How to Use

Expand Down
Binary file modified bundle/lava-flow.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions bundle/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lava-flow",
"title": "Lava Flow",
"description": "A module for importing Obsidian MD vaults into Foundry VTT as journal entries.",
"version": "3.1.0",
"version": "4.0.0",
"authors": [
{
"name": "Chase Burke"
Expand All @@ -17,8 +17,8 @@
"languages": [{ "lang": "en", "name": "English", "path": "lang/en.json" }],
"url": "https://github.com/Praxxian/lava-flow",
"license": "https://github.com/Praxxian/lava-flow/LICENSE",
"manifest": "https://github.com/Praxxian/lava-flow/releases/download/3.1.0/module.json",
"download": "https://github.com/Praxxian/lava-flow/releases/download/3.1.0/lava-flow.zip",
"manifest": "https://github.com/Praxxian/lava-flow/releases/download/4.0.0/module.json",
"download": "https://github.com/Praxxian/lava-flow/releases/download/4.0.0/lava-flow.zip",
"readme": "https://github.com/Praxxian/lava-flow/README.md",
"changelog": "https://github.com/Praxxian/lava-flow/CHANGELOG.md"
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "lava-flow",
"title": "Lava Flow",
"version": "3.1.0",
"version": "4.0.0",
"description": "A module for importing Obsidian MD vaults into Foundry VTT as journal entries.",
"devDir": "C:\\Users\\cburk\\AppData\\Local\\FoundryVTT\\Data\\modules",
"devDir": "C:\\Users\\Chase\\AppData\\Local\\FoundryVTT\\Data\\modules",
"main": "src/index.ts",
"scripts": {
"lint": "eslint . --ext .ts --quiet --fix",
Expand Down
2 changes: 1 addition & 1 deletion src/lava-flow-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class LavaFlowForm extends FormApplication {
sheetConfig: false,
};

const mergedOptions = mergeObject(defaults, overrides);
const mergedOptions = foundry.utils.mergeObject(defaults, overrides);

return mergedOptions;
}
Expand Down
7 changes: 5 additions & 2 deletions src/lava-flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,11 @@ export default class LavaFlow {
name: journalName,
folder: parentFolder?.id,
};
if (playerObserve && entryData.permission !== undefined && entryData.permission !== null)
entryData.permission.default = CONST.DOCUMENT_PERMISSION_LEVELS.OBSERVER;

if (playerObserve && entryData.permission !== undefined && entryData.permission !== null){
// @ts-expect-error
entryData.permission.default = CONST.DOCUMENT_OWNERSHIP_LEVELS.OBSERVER;
}

const entry = (await JournalEntry.create(entryData)) ?? new JournalEntry();
await entry.setFlag(LavaFlow.FLAGS.SCOPE, LavaFlow.FLAGS.JOURNAL, true);
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function createFolder(folderName: string, parentFolderID: string |
const folder = await Folder.create({
name: folderName,
type: 'JournalEntry',
parent: parentFolderID,
folder: parentFolderID,
});
await folder?.setFlag(LavaFlow.FLAGS.SCOPE, LavaFlow.FLAGS.FOLDER, true);
return folder ?? null;
Expand Down

0 comments on commit 9e9224e

Please sign in to comment.