Fixed
- Add
.d.ctsfiles for Node16 and NodeNext CommonJS projects. - Route
requiretoindex.cjsand its.d.ctsdeclarations.
Projects can keep legacy imports with this npm alias:
{
"dependencies": {
"duck-duck-scrape": "npm:ddg-kit@0.1.1"
}
}This patch does not add API surfaces. The Web and News P0 boundary remains frozen.
Verification
- Packed alias fixtures cover ESM and CommonJS runtime resolution.
- Packed alias fixtures also cover NodeNext and Node16 TypeScript resolution.
- CI passes on Node 18.17, 20.20, and 22.23.
- A packed candidate builds
jina-ai/node-DeepResearchwithout source changes. - Package-shape checks pass for CommonJS, ESM, and bundler consumers.