Repository navigation
Fixed
- Ship CommonJS declarations for the
requirecondition. The package istype: module, so TypeScript read thedist/index.d.tsthatrequireresolved to as an ES module declaration, and CommonJS consumers compiled withmodule: node16, or withnodenextbefore TypeScript 5.8, failed with TS1479 on everytravelsimport. WithskipLibCheckoff, the same error also appeared inside the declarations of bindings such aszustand-travel.requirenow resolves to.d.ctstwins of the public declarations, which import each other through.cjsspecifiers. The twins add 11 files, 28.1 KiB unpacked and 7.1 KiB packed, and the package size budgets were raised to match.
Full Changelog: v3.0.0...v3.0.1