Migration Guide: TypeScript v2.18.x → v2.19.0¶
Breaking Change: Scoped npm Packages¶
In v2.19.0, npm packages were moved to the @kreuzberg scope to align with the Kreuzberg.dev organization.
Package Installation Update¶
Before (v2.18.x):
After (v2.19.0+):
Import Statement Update¶
Before:
After:
import { convert } from '@kreuzberg/html-to-markdown-node';
import { convert } from '@kreuzberg/html-to-markdown-wasm';
TypeScript Declaration Update¶
Update your TypeScript configuration if you have imports from the old package name:
Before (tsconfig.json or import aliases):
After:
{
"compilerOptions": {
"paths": {
"@kreuzberg/html-to-markdown": ["node_modules/@kreuzberg/html-to-markdown-node"]
}
}
}
Deno Update¶
Before:
After:
Summary of Changes¶
- All npm packages now use
@kreuzbergscope html-to-markdown-node→@kreuzberg/html-to-markdown-nodehtml-to-markdown-wasm→@kreuzberg/html-to-markdown-wasm- TypeScript types and APIs are identical
- No functional changes to the library