GeWuYou
c681c4861f
chore(deps): 更新 Mediator.Abstractions 包版本
...
- 将 Mediator.Abstractions 从 3.0.1 升级到 3.0.2 版本
2026-03-27 15:31:32 +08:00
dependabot[bot]
2531235276
Bump Mediator.Abstractions from 3.0.1 to 3.0.2
...
---
updated-dependencies:
- dependency-name: Mediator.Abstractions
dependency-version: 3.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: Mediator.Abstractions
dependency-version: 3.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-03-27 15:19:01 +08:00
dependabot[bot]
f51e2cf741
chore(deps): bump actions/deploy-pages from 4 to 5
...
Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages ) from 4 to 5.
- [Release notes](https://github.com/actions/deploy-pages/releases )
- [Commits](https://github.com/actions/deploy-pages/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/deploy-pages
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-03-27 15:18:06 +08:00
dependabot[bot]
346d2aa2ec
chore(deps): bump dorny/test-reporter from 2 to 3
...
Bumps [dorny/test-reporter](https://github.com/dorny/test-reporter ) from 2 to 3.
- [Release notes](https://github.com/dorny/test-reporter/releases )
- [Changelog](https://github.com/dorny/test-reporter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/dorny/test-reporter/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: dorny/test-reporter
dependency-version: '3'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-03-27 15:17:51 +08:00
dependabot[bot]
66edb1da96
chore(deps): bump trufflesecurity/trufflehog from 3.93.8 to 3.94.1
...
Bumps [trufflesecurity/trufflehog](https://github.com/trufflesecurity/trufflehog ) from 3.93.8 to 3.94.1.
- [Release notes](https://github.com/trufflesecurity/trufflehog/releases )
- [Commits](https://github.com/trufflesecurity/trufflehog/compare/v3.93.8...v3.94.1 )
---
updated-dependencies:
- dependency-name: trufflesecurity/trufflehog
dependency-version: 3.94.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-03-27 15:08:42 +08:00
dependabot[bot]
f4c7b349ea
chore(deps): bump anistark/feluda from 1.11.1 to 1.12.0
...
Bumps [anistark/feluda](https://github.com/anistark/feluda ) from 1.11.1 to 1.12.0.
- [Release notes](https://github.com/anistark/feluda/releases )
- [Commits](https://github.com/anistark/feluda/compare/v1.11.1...v1.12.0 )
---
updated-dependencies:
- dependency-name: anistark/feluda
dependency-version: 1.12.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-03-27 15:08:13 +08:00
dependabot[bot]
9bf7226c0b
Bump Mediator.SourceGenerator from 3.0.1 to 3.0.2
...
---
updated-dependencies:
- dependency-name: Mediator.SourceGenerator
dependency-version: 3.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-03-27 15:07:25 +08:00
dependabot[bot]
3ba85ec297
Bump Meziantou.Analyzer from 3.0.25 to 3.0.27
...
---
updated-dependencies:
- dependency-name: Meziantou.Analyzer
dependency-version: 3.0.27
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: Meziantou.Analyzer
dependency-version: 3.0.27
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: Meziantou.Analyzer
dependency-version: 3.0.27
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: Meziantou.Analyzer
dependency-version: 3.0.27
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: Meziantou.Analyzer
dependency-version: 3.0.27
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-03-27 15:07:12 +08:00
dependabot[bot]
3a56dfb12d
Bump NUnit3TestAdapter from 6.1.0 to 6.2.0
...
---
updated-dependencies:
- dependency-name: NUnit3TestAdapter
dependency-version: 6.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: NUnit3TestAdapter
dependency-version: 6.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: NUnit3TestAdapter
dependency-version: 6.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: NUnit3TestAdapter
dependency-version: 6.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: NUnit3TestAdapter
dependency-version: 6.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-03-27 15:06:56 +08:00
dependabot[bot]
173973e0a6
Bump Scriban from 7.0.0 to 7.0.5
...
---
updated-dependencies:
- dependency-name: Scriban
dependency-version: 7.0.5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-03-27 15:06:25 +08:00
dependabot[bot]
1d81c4de58
Bump the nuget group with 1 update
...
Bumps Scriban from 6.6.0 to 7.0.0
---
updated-dependencies:
- dependency-name: Scriban
dependency-version: 7.0.0
dependency-type: direct:production
dependency-group: nuget
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-03-25 16:37:50 +08:00
gewuyou
b3d52a0865
Merge pull request #135 from GeWuYou/feat/build-modular-global-usings
...
Feat/build modular global usings
v0.0.208
2026-03-24 23:27:17 +08:00
GeWuYou
20f1c987eb
refactor(tests): 优化全局引用测试的命名空间发现机制
...
- 添加基于真实类型的命名空间常量定义,避免硬编码字符串
- 引入 Architecture、Extensions 和 CoroutineExtensions 命名空间自动发现
- 将 FindRepositoryRoot 方法重构为 ResolveRepositoryRoot 并使用 CallerFilePath
- 更新断言逻辑以使用动态命名空间变量而非字面量字符串
- 移除对解决方案文件扫描的依赖,改用相对路径计算仓库根目录
- 添加方法参数验证和异常处理增强代码健壮性
2026-03-24 22:29:45 +08:00
GeWuYou
2d1d1a43b6
chore(build): 移除静态全局using配置并实现自动化生成
...
- 删除所有手动维护的 buildTransitive props 文件
- 从项目文件中移除静态的 global usings 配置
- 删除废弃的 global-usings.modules.json 清单文件
- 移除旧的 TransitiveGlobalUsingsGenerationTests 测试
- 添加新的 TransitiveGlobalUsingsPackagingTests 验证自动化生成
- 在 Directory.Build.targets 中集成 MSBuild 自动化生成任务
- 实现基于源码扫描的动态命名空间发现机制
2026-03-24 22:24:52 +08:00
GeWuYou
b80f46b6fa
feat(build): 添加 GFramework 模块化全局命名空间导入功能
...
- 在 NuGet 包中实现可选的 transitive global usings 功能
- 添加 XML 配置方式启用模块级自动命名空间导入
- 支持通过 GFrameworkExcludedUsing 排除特定命名空间
- 为所有运行时模块生成对应的 buildTransitive props 文件
- 添加 Python 脚本自动生成和验证命名空间配置
- 在文档中添加新的安装配置说明
- 创建单元测试验证生成脚本的同步状态
2026-03-24 21:46:31 +08:00
gewuyou
a9ac8a927c
Merge pull request #134 from GeWuYou/feat/state-history-undo-redo
...
feat(state): 扩展状态管理功能支持历史记录撤销重做和批处理
2026-03-24 19:52:01 +08:00
GeWuYou
e5da5aa801
refactor(state): 将历史快照属性改为方法并优化批处理逻辑
...
- 将 HistoryEntries 属性替换为 GetHistoryEntriesSnapshot() 方法,明确表达会返回集合副本
- 在批处理清理逻辑中添加 else 条件避免无效操作
- 更新测试代码使用新的快照获取方法
- 添加 System.Diagnostics 命名空间引用
- 修复批处理深度为零时的异常处理逻辑
2026-03-24 19:45:59 +08:00
GeWuYou
bd29475748
refactor(store): 添加调试断言确保线程安全
...
- 在 CreateMiddlewareSnapshotCore 方法中添加锁持有检查
- 在 CreateReducerSnapshotCore 方法中添加锁持有检查
- 确保并发安全性避免竞态条件
- 导入 System.Diagnostics 命名空间支持断言功能
2026-03-24 19:39:55 +08:00
GeWuYou
91246ff482
feat(state): 扩展状态管理功能支持历史记录撤销重做和批处理
...
- 新增 RunInBatch() 方法支持批处理通知折叠
- 添加 Undo()/Redo() 基于历史缓冲区的状态回退前进功能
- 实现 TimeTravelTo() 跳转到指定历史索引的能力
- 提供 ClearHistory() 以当前状态重置历史锚点的功能
- 支持可选历史缓冲区、撤销/重做和时间旅行功能
- 添加可选批处理通知折叠机制
- 实现多态 action 匹配(基类/接口)支持
- 在诊断信息中增加历史游标和批处理状态
- StoreBuilder 新增 WithHistoryCapacity() 和 WithActionMatching() 配置方法
- 优化 reducer 注册支持全局序号以实现稳定排序
- 实现多态匹配时的类型继承距离计算
- 添加批处理嵌套支持和状态通知延迟机制
2026-03-24 19:08:03 +08:00
gewuyou
b912e6aa4d
Merge pull request #133 from GeWuYou/feat/state-dynamic-registration
...
feat(state): 添加运行时临时注册与注销功能
2026-03-23 21:18:43 +08:00
GeWuYou
1f1aff5335
refactor(state): 优化状态管理存储的中间件和reducer快照创建
...
- 为CreateMiddlewareSnapshot方法添加状态锁保护
- 为CreateReducerSnapshot方法添加状态锁保护
- 更新方法注释说明锁的安全性保障机制
- 避免调用方需要了解锁顺序的隐式依赖关系
2026-03-23 20:58:03 +08:00
GeWuYou
14849d6761
refactor(GFramework.Core.Tests): 更新全局using引用
...
- 添加GFramework.Core.Abstractions.Property命名空间引用
- 重新排序using语句以优化代码结构
- 保持现有功能不变的同时改进代码组织方式
2026-03-23 20:41:36 +08:00
GeWuYou
2c00070bb1
feat(state): 添加运行时临时注册与注销功能
...
- 实现 RegisterReducerHandle 和 RegisterMiddleware 方法,支持获取注销句柄
- 添加 IUnRegister 接口和 DefaultUnRegister 实现,提供精确注销能力
- 修改内部数据结构,使用 Registration 包装对象确保注销时的身份稳定性
- 实现中间件和 reducer 的快照机制,确保运行中注销不影响当前 dispatch
- 添加相关单元测试验证运行时注册注销的正确性
- 更新文档说明运行时临时注册与注销的使用方式和约束条件
2026-03-23 20:38:46 +08:00
gewuyou
b6ef6278c0
Merge pull request #132 from GeWuYou/feat/state-management-core
...
Feat/state management core
2026-03-23 20:19:53 +08:00
GeWuYou
3d212716d6
refactor(tests): 更新状态管理测试的命名空间引用
...
- 添加了属性抽象层的命名空间引用
- 添加了状态管理抽象层的命名空间引用
- 保持了原有的核心扩展、属性和状态管理命名空间引用
2026-03-23 20:14:23 +08:00
GeWuYou
b7c54743fa
refactor(state): 优化 Store 状态分发的并发控制机制
...
- 将 Store 类标记为 sealed 以防止继承
- 引入独立的 dispatch 门闩锁,将状态锁的保护范围缩小为仅保护临界区访问
- 实现 dispatch 过程中的快照机制,确保中间件和 reducer 在锁外执行稳定的不可变序列
- 重构 ExecuteDispatchPipeline 方法,接受快照参数并改为静态方法
- 添加 CreateReducerSnapshot 方法为每次分发创建 reducer 快照
- 更新 StoreBuilder 和 StoreSelection 类为 sealed
- 新增测试用例验证长时间运行的 middleware 不会阻塞状态读取和订阅操作
- 修复 dispatch 过程中状态锁占用时间过长的问题,提升并发性能
2026-03-23 20:11:10 +08:00
GeWuYou
79cebb95b5
feat(state): 添加 StoreBuilder 配置功能并优化状态管理
...
- 引入 StoreBuilder<TState> 支持模块化配置 reducer 和中间件
- 实现状态选择视图缓存机制提升性能
- 重构订阅管理使用精确订阅对象替代委托链
- 增强 SubscribeWithInitValue 方法防止状态变化遗漏
- 添加完整的状态管理文档示例和测试用例
- 更新接口定义支持新的构建器功能
2026-03-23 19:59:23 +08:00
GeWuYou
79f1240e1d
docs(core): 添加状态管理文档并完善属性绑定指南
...
- 新增 state-management 文档,介绍集中式状态容器方案
- 在 property 文档中补充与 Store 的使用边界说明
- 更新核心功能表格,添加状态管理条目链接
- 在 README 中增加 StateManagement 功能描述
- 添加状态管理相关接口到抽象层文档
- 提供 Store 与 BindableProperty 的选择指导原则
2026-03-23 19:35:01 +08:00
GeWuYou
2b4b87baba
feat(state): 添加状态管理框架核心功能
...
- 实现 Store 类作为集中式状态容器,默认支持状态归约和订阅通知
- 添加 IReadonlyStore、IStore、IReducer 等状态管理相关抽象接口
- 实现 StoreExtensions 扩展方法,提供 Select 和 ToBindableProperty 选择器功能
- 添加 StoreSelection 类,支持从完整状态树中投影局部状态视图
- 实现 StoreDispatchContext 和 StoreDispatchRecord 用于分发过程诊断
- 添加 IStoreMiddleware 中间件接口,支持在分发过程中插入日志和审计逻辑
- 实现完整的状态选择器和绑定属性桥接功能,便于现有 UI 代码复用
- 添加 Store 相关单元测试,覆盖状态归约、订阅通知和选择器桥接场景
2026-03-23 19:34:28 +08:00
deepsource-autofix[bot]
c70728b64e
refactor: simplify lambda
...
This PR refactors a lambda expression that contained unnecessary braces around a single-statement body, converting it into a more concise expression-bodied form to improve readability and maintainability.
- Consider simplifying lambda when its body has a single statement: The original lambda used a block body with braces and a single call to Execute, which is verbose for a one-line operation. We removed the braces and semicolon, converting it into an expression-bodied lambda (`static (spc, pair) => Execute(spc, pair.Left, pair.Right)`) to simplify the code and follow best practices.
> This Autofix was generated by AI. Please review the change before merging.
2026-03-23 08:28:07 +08:00
gewuyou
cf486cbeff
Merge pull request #128 from GeWuYou/feat/get-node-generator
...
feat(godot): 添加 GetNode 源代码生成器功能
v0.0.207
2026-03-22 15:34:00 +08:00
gewuyou
8d656b90a7
Merge pull request #129 from GeWuYou/deepsource-autofix-b7cf8394
...
refactor: simplify single-statement getter
2026-03-22 15:30:07 +08:00
GeWuYou
fc386fb4bc
refactor(generator): 调整项目文件夹结构
...
- 移除 logging 文件夹引用
- 将 diagnostics 文件夹重命名为 Diagnostics
- 更新项目文件中的文件夹路径配置
2026-03-22 15:28:39 +08:00
deepsource-autofix[bot]
bbf1dc8d0c
refactor: simplify single-statement getter
...
This PR refactors properties that contain only a single return statement by converting them to expression-bodied members, reducing boilerplate and improving readability.
- Getters and setters with a single statement in their bodies can be simplified: The `IsDone` property originally used a full getter block to evaluate whether all coroutine handles are inactive. We replaced it with an expression-bodied property (`public bool IsDone => _handles.All(handle => !_scheduler.IsCoroutineAlive(handle));`) and relocated the explanatory comment above it, streamlining the code.
> This Autofix was generated by AI. Please review the change before merging.
2026-03-22 07:24:25 +00:00
GeWuYou
b95c65a30e
refactor(generator): 优化GetNodeGenerator代码结构
...
- 使用语法树遍历替代字符串匹配来检测注入方法调用
- 添加IsGeneratedInjectionInvocation辅助方法提高代码可读性
- 将字段分组逻辑从列表查找改为字典映射提升性能
- 优化GroupByContainingType方法的时间复杂度
2026-03-22 15:23:51 +08:00
GeWuYou
9ab09cf47b
feat(godot): 添加 GetNode 源代码生成器功能
...
- 实现了 [GetNode] 属性用于标记 Godot 节点字段
- 创建了 GetNodeGenerator 源代码生成器自动注入节点获取逻辑
- 添加了节点路径推导和多种查找模式支持
- 集成了生成器到 Godot 脚手架模板中
- 添加了完整的诊断规则和错误提示
- 创建了单元测试验证生成器功能
- 更新了解决方案配置以包含新的测试项目
- 在 README 中添加了详细的使用文档和示例代码
2026-03-22 15:16:24 +08:00
gewuyou
63b1d71a0e
Merge pull request #127 from GeWuYou/feat/async-log-appender-error-handler
...
feat(logging): 添加异步日志输出器的错误处理回调功能
v0.0.206
2026-03-21 22:09:06 +08:00
GeWuYou
cdc49c319a
feat(logging): 添加异步日志输出器功能
...
- 使用 Channel 实现异步日志处理机制
- 解耦调用线程与慢速日志目标
- 添加全局 Channels 命名空间引用
- 完善日志组件的异步处理能力
2026-03-21 22:04:09 +08:00
GeWuYou
d94d8deb29
fix(logging): 修复异步日志追加器中的操作取消异常处理
...
- 添加对 OperationCanceledException 的特殊处理,避免将其报告为后台处理错误
- 在 ReportProcessingError 方法中检查并过滤掉操作取消异常
- 添加单元测试验证当内部追加器抛出 OperationCanceledException 时不报告错误
- 创建 CancellationAppender 测试辅助类来模拟取消异常场景
- 确保取消相关的异常不会触发错误处理逻辑
2026-03-21 21:59:51 +08:00
GeWuYou
49609d3821
feat(logging): 添加异步日志输出器的错误处理回调功能
...
- 在 AsyncLogAppender 构造函数中添加 processingErrorHandler 参数用于处理后台异常
- 实现 ReportProcessingError 方法安全上报后台处理异常而不影响处理循环
- 更新文档注释说明异常处理机制和错误回调用途
- 修改测试用例验证异常处理回调功能的正确性
- 确保错误观察者异常不会终止日志处理线程
- 移除直接写入控制台错误输出的逻辑改为统一回调处理
2026-03-21 21:54:24 +08:00
gewuyou
003fe42ad8
Merge pull request #126 from GeWuYou/refactor/generators-downgrade-to-netstandard20
...
refactor(generators): 将源代码生成器项目目标框架降级至 netstandard2.0
2026-03-21 21:40:43 +08:00
GeWuYou
a42ec0c282
fix(generator): 修复优先级生成器中的部分关键字检查逻辑
...
- 将语法节点的部分关键字检查从 Any 操作改为 All 操作
- 修正了对非部分类的诊断报告条件判断
- 确保只有当所有修饰符都不是部分关键字时才报告错误
2026-03-21 21:31:52 +08:00
GeWuYou
884249649d
chore(build): 配置项目构建属性以支持源代码生成器
...
- 为 GFramework.Godot 项目添加 GodotProjectDir 属性默认值
- 在 GFramework 元包中添加 NoPackageAnalysis 属性配置
- 为不同 .NET 版本添加占位符文件到包输出中
- 确保源代码生成器在标准 SDK 构建中正常运行
2026-03-21 21:30:29 +08:00
GeWuYou
d582dffe40
refactor(generators): 将源代码生成器项目目标框架降级至 netstandard2.0
...
- 将 GFramework.Godot.SourceGenerators 项目的目标框架从 netstandard2.1 更改为 netstandard2.0
- 将 GFramework.SourceGenerators.Abstractions 项目的目标框架从 netstandard2.1 更改为 netstandard2.0
- 将 GFramework.SourceGenerators 项目的目标框架从 netstandard2.1 更改为 netstandard2.0
- 将 GFramework.SourceGenerators.Common 项目的目标框架从 netstandard2.1 更改为 netstandard2.0
- 从 GFramework.SourceGenerators 项目中移除对 GFramework.Core.Abstractions 的引用
- 从 GFramework.SourceGenerators.Abstractions 项目中移除对 GFramework.Core.Abstractions 的引用
- 更新 PriorityGenerator 中的语法检查逻辑,使用 Any 替代 All 进行 partial 关键字检查
- 更新 PriorityAttribute 文档注释中的 cref 格式为 c 标签
2026-03-21 21:20:32 +08:00
GeWuYou
63a6c2e6f0
refactor(abstractions): 移除重复的Key属性声明
...
- 从LockInfo结构体移除StructLayout特性
- 从ISceneBehavior接口移除重复的Key属性声明
- 从IUiPageBehavior接口移除重复的Key属性声明
- 简化LockInfo类定义减少不必要的using引用
2026-03-21 21:13:53 +08:00
GeWuYou
f3d45169cd
refactor(pause): 将暂停状态变化事件改为标准事件模式
...
- 将 OnPauseStateChanged 事件从 Action<PauseGroup, bool> 类型改为 EventHandler<PauseStateChangedEventArgs>
- 添加 PauseStateChangedEventArgs 类来封装事件数据
- 更新所有事件处理方法的签名以匹配新的事件参数
- 修改文档中相关的事件处理代码示例
- 在 PauseStackManager 中添加 RaisePauseStateChanged 方法统一处理事件触发
- 更新测试代码以适应新的事件处理方式
2026-03-21 21:13:53 +08:00
GeWuYou
86645d34cb
fix(generator): 修复诊断消息中的多余句号
...
- 移除了 Priority 特性描述中的多余句号
- 移除了 IPrioritized 接口实现跳过警告中的多余句号
- 移除了 partial 类要求错误中的多余句号
- 移除了 Priority 特性值验证错误中的多余句号
- 移除了嵌套类限制错误中的多余句号
- 移除了服务获取建议信息中的多余句号
2026-03-21 20:51:03 +08:00
GeWuYou
ab04f0ace7
docs(diagnostic): 更新诊断消息描述文本
...
- 为 Priority 特性错误消息添加句号结尾
- 为接口实现警告消息添加句号结尾
- 为 partial 类要求错误消息添加句号结尾
- 为整数值验证错误消息添加句号结尾
- 为嵌套类限制错误消息添加句号结尾
- 为服务获取建议消息添加句号结尾
- 在测试项目配置中添加警告级别设置
2026-03-21 20:51:03 +08:00
gewuyou
51492b1dcd
fix(docs): remove dead ADR references
2026-03-21 15:56:18 +08:00
gewuyou
4caa3c0d71
Merge pull request #122 from GeWuYou/feat/localization-compact-number-formatter
...
Feat/localization compact number formatter
v0.0.205
2026-03-21 15:07:02 +08:00