发布

  • fix(core): resolve lockfile cache regression with keyMap state (#33448)

    frostbyte_neo 发布于 2025-11-11 16:52:05 +00:00

    After PR #33256 split lockfile parsing into separate node and dependency
    caches, a regression occurred where dependencies could be regenerated
    without nodes, leaving a shared module-level variable (keyMap) empty
    and causing incorrect dependency resolution.

    Changes:

    • Serialize keyMap with nodes cache to maintain state between phases
    • Remove module-level shared state from pnpm, npm, and yarn parsers
    • Move keyMap creation inside getNodes functions for better
      encapsulation
    • Update readCachedExternalNodes to deserialize keyMap internally
    下载附件