From 9adb241e4b569422613983176e86e94dc06c6e0c Mon Sep 17 00:00:00 2001 From: Rebbecca Bishop Date: Thu, 1 Jun 2023 13:46:33 -0500 Subject: [PATCH 1/5] Disabled Feature Request Feature Requests Disabled for Playing Catch-Up --- .github/ISSUE_TEMPLATE/feature-request.yaml | 51 --------------------- 1 file changed, 51 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/feature-request.yaml diff --git a/.github/ISSUE_TEMPLATE/feature-request.yaml b/.github/ISSUE_TEMPLATE/feature-request.yaml deleted file mode 100644 index 9b260392..00000000 --- a/.github/ISSUE_TEMPLATE/feature-request.yaml +++ /dev/null @@ -1,51 +0,0 @@ -name: Feature Request -description: Request a new feature -labels: [ "type: Feature" ] -body: - - type: checkboxes - id: duplicate-issues - attributes: - label: "Please make sure this feature request hasn't been suggested before." - description: "Before submitting a feature request, please check if it has already been suggested in our Discussions or Issues pages. Use the **Label filters** to refine your search. Thank you." - options: - - label: "I searched previous [Statblocks Discussions](https://github.com/javalent/fantasy-statblocks/discussions) and didn't find any similar feature requests." - required: true - - label: "I searched previous [Issues](https://github.com/javalent/fantasy-statblocks/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) and didn't find any similar feature requests." - required: true - - - - type: textarea - id: feature-description - validations: - required: true - attributes: - label: "Feature description" - description: "Please provide a clear and concise description of the feature you're requesting." - placeholder: "I would like to see ..." - - - type: textarea - id: solution - validations: - required: true - attributes: - label: "Solution" - description: "Please describe your proposed solution for this feature request, and explain why it's necessary." - placeholder: "In my use case, it would be helpful to have ..." - - - type: textarea - id: alternatives - validations: - required: true - attributes: - label: "Alternatives" - description: "Please provide any alternative solutions or features you've considered. Be clear and concise." - placeholder: "I have considered ..." - - - type: textarea - id: additional-context - validations: - required: true - attributes: - label: "Additional Information" - description: "If you have any additional context or screenshots related to your feature request, please add them here." - placeholder: "..." From 27cf6498590c714cc8905cbae39e29714571943a Mon Sep 17 00:00:00 2001 From: Thiago Coutinho Date: Wed, 28 Jun 2023 21:03:28 -0300 Subject: [PATCH 2/5] fix: solves the bug that inhibits the property to be fully dice parsed (#237) Co-authored-by: Thiago Coutinho --- src/view/ui/MarkdownHolder.svelte | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/view/ui/MarkdownHolder.svelte b/src/view/ui/MarkdownHolder.svelte index 49467449..1de177d4 100644 --- a/src/view/ui/MarkdownHolder.svelte +++ b/src/view/ui/MarkdownHolder.svelte @@ -61,11 +61,10 @@ } } } - let start = 0; + property = '' for (const dice of split) { if (typeof dice != "string") { - const replacer = dice.original ?? dice.text; let diceString; let diceText = plugin.getRollerString(dice.text); if (dice.original) { @@ -73,15 +72,9 @@ } else { diceString = `\`dice: ${diceText}\``; } - const index = property.slice(start).indexOf(replacer); - property = - property.slice(0, start) + - property.slice(start).replace(replacer, diceString); - - start = - property.slice(0, start).length + index + diceString.length + 1; + property += diceString } else { - start += dice.length; + property += dice } } From e7f983c28fec2232e3358f2d504b68be3a44d6d0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 28 Jun 2023 20:04:39 -0400 Subject: [PATCH 3/5] chore(main): release 3.6.6 (#239) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 7 +++++++ manifest.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a248f24f..06c72a7d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.6.5" + ".": "3.6.6" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f1f9e1f..e48565a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [3.6.6](https://github.com/javalent/fantasy-statblocks/compare/3.6.5...3.6.6) (2023-06-29) + + +### Bug Fixes + +* solves the bug that inhibits the property to be fully dice parsed ([#237](https://github.com/javalent/fantasy-statblocks/issues/237)) ([27cf649](https://github.com/javalent/fantasy-statblocks/commit/27cf6498590c714cc8905cbae39e29714571943a)) + ## [3.6.5](https://github.com/javalent/fantasy-statblocks/compare/3.6.4...3.6.5) (2023-05-13) diff --git a/manifest.json b/manifest.json index b4cc50ee..fc01f40c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-5e-statblocks", "name": "Fantasy Statblocks", - "version": "3.6.5", + "version": "3.6.6", "description": "Create Fantasy Statblocks in Obsidian.md", "minAppVersion": "0.12.0", "author": "Jeremy Valentine", diff --git a/package-lock.json b/package-lock.json index 2c5a6fe6..74956849 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fantasy-statblocks", - "version": "3.6.5", + "version": "3.6.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "fantasy-statblocks", - "version": "3.6.5", + "version": "3.6.6", "license": "MIT", "dependencies": { "yaml": "^2.1.3" diff --git a/package.json b/package.json index 8b6dbde8..752f9832 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fantasy-statblocks", - "version": "3.6.5", + "version": "3.6.6", "description": "Create Fantasy statblocks in Obsidian.md", "scripts": { "dev": "node ./esbuild.config.mjs", From e6e9bb3fde33bad21ef67f90a8433b47535274b2 Mon Sep 17 00:00:00 2001 From: Jeremy Valentine <38669521+valentine195@users.noreply.github.com> Date: Tue, 4 Jul 2023 10:18:35 -0400 Subject: [PATCH 4/5] fix: basic 5e layout now shows 10xp for 0cr creatures --- src/layouts/basic 5e/basic5e.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/basic 5e/basic5e.ts b/src/layouts/basic 5e/basic5e.ts index efce769c..76a69581 100644 --- a/src/layouts/basic 5e/basic5e.ts +++ b/src/layouts/basic 5e/basic5e.ts @@ -186,7 +186,7 @@ export const Statblock5e: StatblockItem[] = [ "0": { cr: "0", value: 0, - xp: 0 + xp: 10 }, "1/8": { cr: "1/8", From 394d0332abedf839a97c4436f7719ec271c601e3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 4 Jul 2023 10:19:29 -0400 Subject: [PATCH 5/5] chore(main): release 3.6.7 (#240) --- .release-please-manifest.json | 2 +- CHANGELOG.md | 7 +++++++ manifest.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 06c72a7d..ce0dc29e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.6.6" + ".": "3.6.7" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e48565a5..8a25d125 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [3.6.7](https://github.com/javalent/fantasy-statblocks/compare/3.6.6...3.6.7) (2023-07-04) + + +### Bug Fixes + +* basic 5e layout now shows 10xp for 0cr creatures ([e6e9bb3](https://github.com/javalent/fantasy-statblocks/commit/e6e9bb3fde33bad21ef67f90a8433b47535274b2)) + ## [3.6.6](https://github.com/javalent/fantasy-statblocks/compare/3.6.5...3.6.6) (2023-06-29) diff --git a/manifest.json b/manifest.json index fc01f40c..a33dd9c5 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-5e-statblocks", "name": "Fantasy Statblocks", - "version": "3.6.6", + "version": "3.6.7", "description": "Create Fantasy Statblocks in Obsidian.md", "minAppVersion": "0.12.0", "author": "Jeremy Valentine", diff --git a/package-lock.json b/package-lock.json index 74956849..c4da0f9b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fantasy-statblocks", - "version": "3.6.6", + "version": "3.6.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "fantasy-statblocks", - "version": "3.6.6", + "version": "3.6.7", "license": "MIT", "dependencies": { "yaml": "^2.1.3" diff --git a/package.json b/package.json index 752f9832..c769904e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fantasy-statblocks", - "version": "3.6.6", + "version": "3.6.7", "description": "Create Fantasy statblocks in Obsidian.md", "scripts": { "dev": "node ./esbuild.config.mjs",