Skip to content

0.22: replace the plist package with the in-repo XML plist reader #4979

Closed

Description

@thymikee

Part of #4591.

Core bundles plist together with @xmldom/xmldom and xmlbuilder. That is about 350 kB before minification, from the bundle probe on 0.22 at db59d00. Only one function uses them: parseApplePlist in packages/platform-apple/src/core/plist.ts, which lazily imports plist to parse downloaded app metadata on hosts without Apple's plist tools. The same file already reads XML plists with the repo's own @agent-device/xml walker (readXmlPlistString). plist only exposes parse here. Its builder (xmlbuilder) and DOM parser (@xmldom/xmldom) ship anyway.

Goal

Parse XML plists with @agent-device/xml. Read bplist00 binary plists with a small reader, or refuse them with a typed error if no caller needs them. Remove plist from platform-apple.

Acceptance

  • plist, @xmldom/xmldom and xmlbuilder are absent from core's bundle and from the root tsdown.config.ts onlyBundle list.
  • Tests cover the XML and binary (or refused) metadata that parseApplePlist callers use, with fixtures from real .ipa/.app Info.plist files.
  • Report core size before and after (npm pack --dry-run --json --ignore-scripts and the Size Report).

Activity

  1. added this to the 0.22 - lean core milestone on Nov 22, 2026
  2. apex-sentinel-staging commented on Nov 22, 2026

    @apex-sentinel-staging

    Apex Sentinel · Issue review

    Suggested label: feature

    The issue requests replacing the third-party plist parsing dependency with the repo's own XML plist reader and adding tests plus bundle-size verification, rather than reporting broken behavior or asking for help.

  3. thymikee commented on Nov 22, 2026

    @thymikee
    MemberAuthor

    Completed on 0.22 by #4989 (e2a8047). Core is 4.07 MB unpacked and 1.27 MB as a tarball (npm pack), down from 4.22 MB and 1.31 MB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions