Releases: joseluisq/printd
Releases · joseluisq/printd
v1.6.0
Features
5fec201 Custom events support for browser beforeprint
and afterprint
events when printing HTML elements (#22). See docs.
v1.5.0
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
Fixes
Refactorings
- 6a7422e - Use
undefined
instead of null
on execCommand
function param.
- f926c62 - Minor code simplifications.
- 43c9cfb - Code styling changes.
v1.4.1
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
Features
- 0f65d47 Prefer one
options
argument in constructor
- 0f65d47 Add the ability to passing
head
and body
elements as options
Fixes
Breaking
v1.3.1
Bug fixes
- Prevent to open Firefox print dialog on load when it creates a new instance of Printd (Fixes #29).
Updates
v1.3.0
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
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