You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add app metadata system APIs
* fix(#673): bake metadata in JS emit, dedupe perry.toml parse, regen API docs
Address review feedback on PR #703:
- JS emit path (`crates/perry-codegen-js`) now intercepts `getAppVersion` /
`getAppBuildNumber` / `getBundleId` and emits string/number literals from
AppMetadata, instead of falling through to `console.warn('… not available
in browser')`. Web/JS builds now resolve the same values as native.
- `read_app_metadata` takes `Option<&toml::Table>` instead of `Option<&Path>`,
so `perry.toml` is parsed exactly once in `run_with_parse_cache` and
shared with the existing i18n block.
- `CompilationContext.app_metadata` exposes the resolved metadata to all
codegen backends — used by the web/JS target wiring above and available
for future arkts / wasm consumers.
- Tests: add the missing `version` assertion in `cli_bundle_id_overrides_…`
and a new `package_json_bundle_id_falls_back_…` case covering the
package.json fallback branch.
- Regenerate `docs/api/perry.d.ts` and `docs/src/api/reference.md` —
fixes the `api-docs-drift` CI gate that was failing on this PR.
0 commit comments