The GitHub Actions job "npm_and_yarn in /javascript for ajv - Update 
#1247527464" on fory.git/main has failed.
Run started by GitHub user dependabot[bot] (triggered by dependabot[bot]).

Head commit for run:
3cd75123cf73ddc1d229425debf1ab0c8c831e43 / Shawn Yang <[email protected]>
refactor(dart): register xlang types by Type (#3332)

## Why?

- Dart registration currently requires generated `$TypeName` schema
symbols, which exposes codegen internals and makes usage less ergonomic.
- Cross-language Dart tests relied on a large hand-maintained schema
definition file, which is hard to maintain and easy to drift.
- Some declared-type serializer and type-fingerprint paths need stronger
handling to keep schema behavior consistent.


## What does this PR do?

- Refactors Dart registration APIs to register by `Type` (`register`,
`registerType`, `registerStruct`, `registerEnum`, `registerUnion`)
instead of passing `CustomTypeSpec` directly.
- Adds `SpecLookup` with manual registration plus mirrors/stub lookup so
generated specs can be resolved from `Type` at runtime.
- Adds `ref` support to `@ForyKey` and propagates it through codegen to
field `trackingRef` metadata.
- Updates class/list/map deserialization paths to resolve registered
serializers for declared element/key/value/field types and throw clearer
state errors when declared type metadata is missing.
- Aligns field sorting and struct hash fingerprinting for
`INT32`/`INT64` by mapping them to `VAR_INT32`/`VAR_INT64` IDs.
- Replaces the large manual xlang test schema file with
annotation-driven models and migrates Dart examples/tests/perf usage
from `$TypeName` registration to `Type` registration.


## Related issues



## Does this PR introduce any user-facing change?

- Dart registration usage changes from generated spec symbols (for
example, `$Person`) to Dart types (for example, `Person`).

- [x] Does this PR introduce any public API change?
- [ ] Does this PR introduce any binary protocol compatibility change?

## Benchmark

N/A

Report URL: https://github.com/apache/fory/actions/runs/22125412870

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to