Skip to content

Releases: joseluisq/printd

v1.6.0

11 Feb 03:10
d8b8e1c
Compare
Choose a tag to compare

Features

5fec201 Custom events support for browser beforeprint and afterprint events when printing HTML elements (#22). See docs.

v1.5.1

10 Mar 16:15
27834cb
Compare
Choose a tag to compare

Fixes

v1.5.0

20 Apr 21:17
Compare
Choose a tag to compare

Refactorings

  • 4418b42 Strict callback type checking for print() and printURL() functions.
  • afc4c3b Remove deprecated style.type on createStyle() function.

Docs

6a1c3a3 Update code examples.

v1.4.2

21 May 06:31
Compare
Choose a tag to compare

Fixes

Refactorings

  • 6a7422e - Use undefined instead of null on execCommand function param.
  • f926c62 - Minor code simplifications.
  • 43c9cfb - Code styling changes.

v1.4.1

19 Sep 22:12
Compare
Choose a tag to compare

Fixes

  • 3c240ac - Fix wrong behaviour when passing list of style urls.

Feature

  • 3cb0994 - Add relative path backwards support. E.g. ../some/path/file.txt

v1.4.0

19 Sep 22:13
Compare
Choose a tag to compare

Features

  • 0f65d47 Prefer one options argument in constructor
  • 0f65d47 Add the ability to passing head and body elements as options

Fixes

  • Fixes #33

Breaking

v1.3.1

19 Sep 22:14
Compare
Choose a tag to compare

Bug fixes

  • Prevent to open Firefox print dialog on load when it creates a new instance of Printd (Fixes #29).

Updates

v1.3.0

19 Sep 22:15
Compare
Choose a tag to compare

Breaking

  • Print function now supports assets loading on demand (string array of styles or scripts). (PR #27)
print (el: HTMLElement, styles?: string[], scripts?: string[], callback?: PrintdCallback)

Features

  • Load styles and scripts on demand (PR #27)

Updates

  • Update code sample
  • Update project docs

v1.2.0

19 Sep 22:15
Compare
Choose a tag to compare

Breaking

  • print() callback arguments: iframe prop instead of contentWindow & contentDocument.

Features

  • Support for external assets loading (resolves: #17 #24)
  • URL printing support (resolves #20)

Updates

  • Update README.md documentation
  • Update code documentation

Add

  • Example directory.