Skip to content

PermPacks v0.2 Beta

Pre-release
Pre-release

Choose a tag to compare

@Pectics Pectics released this 26 Sep 17:16
· 5 commits to main since this release

更新内容

新增

  • 英文介绍文档 README-en.md 与两种尺寸的项目 Logo。
  • 在 Iterable<Pack>#toRequest() 中对资源包去重,避免重复发送同一包。
  • S3 文件上传服务(amazon_s3),支持可配置的 endpoint、region、bucket、目录等。
  • 上传服务启动清理逻辑,支持自托管/ S3 中清理未被引用的对象。
  • 多个函数的必要注释与文档化内容。
  • .gitignore 中对 run/ 目录的忽略。

优化

  • UploadService#upload() 支持传入预先计算的哈希以避免重复计算。
  • paper-plugin.yml 的版本变量替换与 build.gradle.kts 的任务结构。
  • PackItem 系列结构,将 hash 上移到父类统一管理;toResourcePackInfo() 的异常抛出与结构更清晰。
  • 资源包清理流程、若干函数命名与注释本地化;Options 字段命名与冗余接口移除。
  • BinaryCache#set() 支持传入 null 即删除;整体代码结构与日志工具函数。
  • 与 CommandAPI 的对接与 PermPacks 中部分函数顺序。

修复

  • FilePackItem 在初始化后未触发上传的问题。
  • URI 序列化问题与 S3 endpoint 缺失 schema 的问题。
  • 部分字符串格式化中误用原始 toString() 的问题。
  • cleanup() 同步修改遗漏导致的逻辑问题。
  • BinaryCache#get() 潜在未处理异常;移除未使用的 BinaryCache#remove()。
  • 移除未使用的 Logger#error() 扩展方法。

文档

  • README.md 调整表格与内容;补充项目概览与多语言说明。

已合并的 PR

  • Fix .gitignore and remove unnecessary tracked files by @Copilot in #1
  • Defer pack loading until upload service ready by @Pectics in #2
  • Initialize file meta repository before options by @Pectics in #3
  • Use reified serializer when caching values by @Pectics in #4
  • docs: rewrite README with full project overview by @Pectics in #5
  • Allow upload services to validate cached URLs by @Pectics in #7
  • Improve readability across plugin configuration and utilities by @Pectics in #6
  • [Add] 添加AGENTS说明 by @Pectics in #8

完整内容: https://github.com/Pectics/PermPacks/commits/v0.2
更新日志: https://github.com/Pectics/PermPacks/blob/main/CHANGELOG.md