2026-03-09 17:17:15 +00:00
|
|
|
# Smartbrowser Hints
|
|
|
|
|
|
|
|
|
|
## Dependencies (as of 2026-03-09)
|
|
|
|
|
- `@push.rocks/smartpdf` v4.2.x: Has `SmartPdf.create()` factory method, but `new SmartPdf()` + `start(browser)` still works. Lazy init pattern used.
|
|
|
|
|
- `@push.rocks/smartpuppeteer` v2.x: `getEnvAwareBrowserInstance()` main entry point
|
|
|
|
|
- `@push.rocks/tapbundle` v6.x: No longer exports `expectAsync`, only `tap`, `expect`, `TapWrap`, `webhelpers`
|
|
|
|
|
- `@git.zone/tsbuild` v4.x: No `--allowimplicitany` flag (defaults to `noImplicitAny: false`), `--web` flag still passed but ignored if no ts_web
|
|
|
|
|
- `@git.zone/tstest` v3.3.x: Still supports `--web` flag, file suffix conventions changed (`.chromium.ts` for browser tests)
|
|
|
|
|
- `@types/node` v25.x: Latest Node.js type definitions
|
|
|
|
|
- Puppeteer `page.screenshot({ encoding: 'binary' })` returns `Uint8Array`, not `Buffer` - wrap with `Buffer.from()`
|
|
|
|
|
|
|
|
|
|
## Build
|
|
|
|
|
- `pnpm build` uses `tsbuild --web`
|
|
|
|
|
- `pnpm test` uses `tstest test/ --web`
|
|
|
|
|
- No ts_web directory exists in this project
|
|
|
|
|
- Duplicate dayjs versions in transitive deps cause build errors; fix with `pnpm dedupe`
|