Skip to content

Releases: kevinschaul/depict

v0.2.1

19 Dec 16:36

Choose a tag to compare

v0.2.0

19 Dec 15:55

Choose a tag to compare

Migrate from PhantomJS to Puppeteer with modern CLI
Major rewrite to modernize the library:

  • Replace PhantomJS with Puppeteer for better browser automation
  • Modernize to ES6+ syntax (import, const, template literals, async/await)
  • Update CLI interface:
    • URL is now positional argument
    • Output file uses -o/--output flag (default: screenshot.png)
    • Replace --call-phantom with --wait-for-selector for cleaner API
    • Unified --timeout for both page load and selector waiting
    • Add --verbose flag (silent by default)
    • Add --quality for JPEG output
    • Add --width/--height for viewport control
    • Remove unintuitive shortcuts (keep only -o and -s)
  • Add JPEG output support with quality control
  • Add .gitignore for node_modules and generated images
  • Update README with real-world examples and modern usage