From fa15986b150ba52750a4166830c85a8206c6774b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Hrivn=C3=A1k?= Date: Sun, 2 Feb 2025 15:58:08 +0100 Subject: [PATCH] Update CHANGELOG.md --- CHANGELOG.md | 29 +++++++++++++++++++ .../pakku/api/export/CfModpackModelTest.kt | 2 +- .../teksturepako/pakku/cli/cmd/ExportTest.kt | 27 ----------------- 3 files changed, 30 insertions(+), 28 deletions(-) delete mode 100644 src/commonTest/kotlin/teksturepako/pakku/cli/cmd/ExportTest.kt diff --git a/CHANGELOG.md b/CHANGELOG.md index c722bac..48f589a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,35 @@ ## Unreleased +## v0.26.0 + +### Highlights + +- Added mod loader and MC version changes to the diff, by @Wxrlds in [#48](https://github.com/juraj-hrivnak/Pakku/pull/48). + - Added sections `# Minecraft` and `# Loaders` to the diff output. + - Added `header-size` option to specify the size of the headers in the markdown. +- Improved already added & replacing project messages. +- Fixed support for CurseForge projects with 7-digit IDs; Fixes [#75](https://github.com/juraj-hrivnak/Pakku/issues/75). +- Fixed the building of Export Profiles when exporting multiple times. +- Created the [`CONTRIBUTING.md`](https://github.com/juraj-hrivnak/Pakku/blob/main/CONTRIBUTING.md). + +### API + +- Implemented `PakkuApi` entry point for initializing the Pakku API. + - Example usage: + ```kt + pakku { + curseForge(apiKey = "") + withUserAgent("") + } + ``` +- Renamed `ExportingScope` to `ExportRuleScope` for better clarity. +- Implemented the `getProjectConfig` function. (Get "projects" configuration from the config file.) + +### Tests + +- Migrated to Strikt assertion library for more readable tests. + ## v0.25.0 ### Highlights diff --git a/src/commonTest/kotlin/teksturepako/pakku/api/export/CfModpackModelTest.kt b/src/commonTest/kotlin/teksturepako/pakku/api/export/CfModpackModelTest.kt index 2f01269..3006723 100644 --- a/src/commonTest/kotlin/teksturepako/pakku/api/export/CfModpackModelTest.kt +++ b/src/commonTest/kotlin/teksturepako/pakku/api/export/CfModpackModelTest.kt @@ -23,7 +23,7 @@ import kotlin.io.path.pathString import kotlin.test.Test import kotlin.test.assertNotNull -class CfModpackModelTest : PakkuTest(teardown = false) +class CfModpackModelTest : PakkuTest() { private val modpackName = "CurseForgeProfileTestModpack" diff --git a/src/commonTest/kotlin/teksturepako/pakku/cli/cmd/ExportTest.kt b/src/commonTest/kotlin/teksturepako/pakku/cli/cmd/ExportTest.kt deleted file mode 100644 index 20cbd07..0000000 --- a/src/commonTest/kotlin/teksturepako/pakku/cli/cmd/ExportTest.kt +++ /dev/null @@ -1,27 +0,0 @@ -package teksturepako.pakku.cli.cmd - -import com.github.ajalt.clikt.testing.test -import com.github.michaelbull.result.runCatching -import teksturepako.pakku.PakkuTest -import teksturepako.pakku.api.data.LockFile -import teksturepako.pakku.api.data.workingPath -import kotlin.io.path.* -import kotlin.test.Test -import kotlin.test.assertContains - -class ExportTest : PakkuTest() -{ - private val testName = "TestModpack" - private val testVersion = "1.0.0" - private val testDescription = "This is a test modpack." - private val testAuthor = "TestAuthor" - - @Test - fun `try without lock file & config file`() - { - val cmd = Export() - val output = cmd.test().output - - assertContains(output, "Could not read '$workingPath/${LockFile.FILE_NAME}'") - } -} \ No newline at end of file