ChangelogVersion 4.8
Types package: Node ESM compatibility (1.64.0)
Types package: Node ESM compatibility (1.64.0)
The npm package @vonq/hapi-elements-types is now 1.64.0. This release improves Node.js ESM compatibility while keeping the same root import for most use cases.
What changed
- Browser and bundlers (Vite, webpack, Next.js client, and similar) keep using the full barrel: import from
@vonq/hapi-elements-types. Tools that set thebrowserexport condition use the full published entry; otherwise the defaultimportentry is still the full surface (including_window/window.hapitypings). - Node (scripts, CLIs, tooling) should also import from
@vonq/hapi-elements-types. Node applies thenodeexport condition and loads a Node-specific build of the package so native ESM resolution works. That build exposes the same module list except that_windowis re-exported as types only at the package entry (export type *), not as runtime values from the barrel. - Explicit Node entry: you may import
@vonq/hapi-elements-types/nodeif you want the same module as thenodecondition without relying on conditional exports.
No change is required for typical front-end or bundled code that already uses named imports from the package root. Optional /node is only relevant for Node-side TypeScript or JavaScript that benefits from the Node-specific build.
References
- npm: the
@vonq/hapi-elements-typespackage page and its README describe import patterns (browser vs Node,/node).
Version
@vonq/hapi-elements-types: 1.64.0