Skip to content

Commit

Permalink
Updating version from 2.3.0 to 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pipwerks committed Feb 13, 2025
1 parent e94c684 commit 2e3982d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The MIT License (MIT)
Copyright © 2024 Philip Hutchison
Copyright © 2025 Philip Hutchison
https://pipwerks.mit-license.org/

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pdfobject",
"description": "A lightweight JavaScript utility for dynamically embedding PDFs in HTML documents",
"version": "2.3.0",
"version": "2.3.1",
"main": "pdfobject.js",
"moduleType": [
"globals",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pdfobject",
"version": "2.3.0",
"version": "2.3.1",
"description": "A lightweight JavaScript utility for dynamically embedding PDFs in HTML documents",
"main": "pdfobject.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions pdfobject.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* PDFObject v2.3.0
* PDFObject v2.3.1
* https://github.com/pipwerks/PDFObject
* @license
* Copyright (c) 2008-2024 Philip Hutchison
* Copyright (c) 2008-2025 Philip Hutchison
* MIT-style license: http://pipwerks.mit-license.org/
* UMD module pattern from https://github.com/umdjs/umd/blob/master/templates/returnExports.js
*/
Expand Down Expand Up @@ -30,7 +30,7 @@

if(typeof window === "undefined" || window.navigator === undefined || window.navigator.userAgent === undefined){ return false; }

let pdfobjectversion = "2.3.0";
let pdfobjectversion = "2.3.1";
let win = window;
let nav = win.navigator;
let ua = nav.userAgent;
Expand Down
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ Examples and documentation can be found at https://pdfobject.com.

A PDFObject component for Vue.js 3 can be found at https://github.com/pipwerks/pdfobject-vue/

Copyright (c) 2008-2024 Philip Hutchison
Copyright (c) 2008-2025 Philip Hutchison

MIT-style license: http://pipwerks.mit-license.org/

-----

## Changelog

### 2.3.1 (February 2025)
- Added `fallbackFileNameForBase64` option. If the browser doesn't support PDF embeds, and the PDF is a base64 file, this option will enable the developer to specify the filename for the downloaded PDF. Previously, the filename was hardcoded to 'file.pdf'. Thanks to Joshua Newall (@imjosh) for the contribution.

### 2.3 (February 2024)
- Removed `<embed>` in favor of `<iframe>`. PDFObject had previously defaulted to an `<embed>` element, but over time it has become apparent the superior solution is `<iframe>`. It's universally supported, and does not suffer from `<embed>`'s odd quirks and spotty support. This should make PDFObject more consistent and robust across platforms.
- As a result of removing `<embed>` and redefining the detection logic, some PDFObject options have become obsolete. They are safe to keep in your code (will not throw errors), but are no longer used by PDFObject. The deprecated options are: `assumptionMode`, `forceIframe`, and `supportRedirect`.
Expand Down

0 comments on commit 2e3982d

Please sign in to comment.