Skip to content

Comments

chore(deps): bump wp-model-core from 0.7.2 to 0.8.4#176

Open
dependabot[bot] wants to merge 1 commit intoalphafrom
dependabot/cargo/alpha/wp-model-core-0.8.4
Open

chore(deps): bump wp-model-core from 0.7.2 to 0.8.4#176
dependabot[bot] wants to merge 1 commit intoalphafrom
dependabot/cargo/alpha/wp-model-core-0.8.4

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 16, 2026

Bumps wp-model-core from 0.7.2 to 0.8.4.

Release notes

Sourced from wp-model-core's releases.

v0.8.4

Full Changelog: wp-labs/wp-model-core@v0.8.3...v0.8.4

v0.8.3

Full Changelog: wp-labs/wp-model-core@v0.8.2...v0.8.3

v0.8.2

Full Changelog: wp-labs/wp-model-core@v0.8.1...v0.8.2

v0.8.1

Full Changelog: wp-labs/wp-model-core@v0.8.0...v0.8.1

v0.8.0

Full Changelog: wp-labs/wp-model-core@v0.7.2...v0.8.0

Changelog

Sourced from wp-model-core's changelog.

[0.8.4]

⚠️ BREAKING CHANGES

  • DataRecord 类型变更: Record<Field<Value>>Record<FieldStorage>,支持 Arc 共享与独占混合存储
  • Value::Array 类型变更: Vec<Field<Value>>Vec<FieldStorage>,用 .into_iter().collect() 迁移
  • ObjectValue 内部存储变更: BTreeMap<SmolStr, Field<Value>>BTreeMap<SmolStr, FieldStorage>,通过 From trait 自动转换
  • FieldStorage 重构: enum → struct + ValueStorage enum,不再能用 FieldStorage::Owned(field) / FieldStorage::Shared(arc) 构造,改用 from_owned() / from_shared()
  • FieldStorage::from_shared() 签名变更: from_shared(Field<Value>)from_shared(Arc<Field<Value>>),调用方控制 Arc 创建
  • get_field(usize) 重命名为 field_at(usize)get_field 改为按名称查找
  • DataRecord::get_field() 返回类型变更: Option<&Field<Value>>Option<FieldRef<'_>>,提供 cur_name 感知的零拷贝访问
  • License: Elastic-2.0 → Apache-2.0

Added

FieldStorage 混合存储

  • FieldStorage struct — 支持零拷贝共享与独占所有权的字段存储
    • ValueStorage::Shared(Arc<Field<Value>>) — Arc 共享,clone 仅增引用计数(~5ns)
    • ValueStorage::Owned(Field<Value>) — 独占所有权
  • 核心方法: from_shared(), from_owned(), as_field(), as_field_mut()(clone-on-write), into_owned(), is_shared(), is_owned(), shared_count()
  • Trait 实现: RecordItem, RecordItemFactory, LevelFormatAble, Display, PartialEq, Eq, Serialize, Deserialize

零拷贝 set_name

  • set_name(impl Into<FNameStr>) — 仅修改 cur_name 覆盖层,不 clone 底层 DataField
  • get_name() — 优先级: cur_name > field.name
  • get_value() / get_meta() — 便捷访问器
  • cur_name 类型为 FNameStr(SmolStr),≤22 字节内联存储,零堆分配

FieldRef 零拷贝字段引用

  • FieldRef<'a> — 8 字节零分配包装,提供 cur_name 感知的一致视图
    • get_name() / get_meta() / get_value() — 零拷贝访问,返回 'a 生命周期引用
    • to_owned() — 延迟克隆并应用 cur_name
    • has_name_override() / is_shared() / shared_count()
    • Trait: Debug, Display, PartialEq<Field<Value>>, PartialEq<FieldRef>, Copy, Clone
  • FieldStorage::field_ref() — 获取 FieldRef
  • DataRecord::get_field() — 返回 Option<FieldRef<'_>>(cur_name 感知)
  • DataRecord::get_field_owned() — 获取应用了 cur_name 的拥有字段
  • DataRecord::field_refs() — cur_name 感知的字段迭代器

Record API

  • push_shared(), push_owned() — 按存储类型添加字段
  • field_at(usize) — 按索引访问
  • get_field(name), get_field_mut(name) — 按名称查找
  • fields(), fields_mut() — 字段迭代器(Shared 变体 clone-on-write)
  • storage_stats() — 统计 Shared/Owned 数量
  • into_owned_record() — 转换为 Record<Field<Value>>

... (truncated)

Commits
  • b66cbc2 Update CHANGELOG.md
  • 4b7e12c Bump version to 0.8.4
  • 41fb17a feat(model): add zero-copy FieldRef for cur_name-aware access
  • 6493534 chore: update version to 0.8.3 and sync CHANGELOG
  • a4585fd Update CHANGELOG.md
  • 2a40976 feat(model): add field accessors and construction helpers
  • 4e53cf7 feat(model): extend Record and FieldStorage APIs
  • 553a2fa chore: update changelog and version to 0.8.1
  • 6e3d8ea Apply cargo fmt to model module
  • 7601d96 Update version.txt
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 16, 2026

Labels

The following labels could not be found: alpha, 📦 dependencies. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

Bumps [wp-model-core](https://github.com/wp-labs/wp-model-core) from 0.7.2 to 0.8.4.
- [Release notes](https://github.com/wp-labs/wp-model-core/releases)
- [Changelog](https://github.com/wp-labs/wp-model-core/blob/main/CHANGELOG.md)
- [Commits](wp-labs/wp-model-core@v0.7.2...v0.8.4)

---
updated-dependencies:
- dependency-name: wp-model-core
  dependency-version: 0.8.4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/cargo/alpha/wp-model-core-0.8.4 branch from 5f638dd to 1ae3c71 Compare February 20, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants