Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wojtekmaj/react-pdf
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.6.0
Choose a base ref
...
head repository: wojtekmaj/react-pdf
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.7.0
Choose a head ref
  • 20 commits
  • 27 files changed
  • 2 contributors

Commits on Dec 12, 2023

  1. Copy the full SHA
    7979c93 View commit details

Commits on Dec 14, 2023

  1. Copy the full SHA
    3b8b3b7 View commit details

Commits on Dec 19, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4d60dce View commit details

Commits on Dec 20, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    c07fdc3 View commit details
  2. Update dependencies

    wojtekmaj committed Dec 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a73752a View commit details

Commits on Dec 29, 2023

  1. Bump msgpackr from 1.8.5 to 1.10.1 in /sample/parcel2 (#1685)

    Bumps [msgpackr](https://github.com/kriszyp/msgpackr) from 1.8.5 to 1.10.1.
    - [Release notes](https://github.com/kriszyp/msgpackr/releases)
    - [Commits](https://github.com/kriszyp/msgpackr/commits/v1.10.1)
    
    ---
    updated-dependencies:
    - dependency-name: msgpackr
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Dec 29, 2023
    Copy the full SHA
    35d29be View commit details

Commits on Jan 4, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    fbf641a View commit details
  2. Remove useless unit test

    wojtekmaj committed Jan 4, 2024
    Copy the full SHA
    d460425 View commit details
  3. Copy the full SHA
    78e123d View commit details

Commits on Jan 5, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6a748e1 View commit details
  2. Copy the full SHA
    195fe6a View commit details

Commits on Jan 6, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    353e565 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0cbb75a View commit details

Commits on Jan 9, 2024

  1. Normalize repository.url

    wojtekmaj committed Jan 9, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    fdec0e6 View commit details
  2. Update year in LICENSE

    wojtekmaj committed Jan 9, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    26d93d9 View commit details
  3. Bump follow-redirects in /sample/create-react-app-5 (#1694)

    Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4.
    - [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
    - [Commits](follow-redirects/follow-redirects@v1.15.2...v1.15.4)
    
    ---
    updated-dependencies:
    - dependency-name: follow-redirects
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 9, 2024
    Copy the full SHA
    28039b9 View commit details
  4. Bump follow-redirects from 1.15.2 to 1.15.4 in /sample/webpack5 (#1695)

    Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4.
    - [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
    - [Commits](follow-redirects/follow-redirects@v1.15.2...v1.15.4)
    
    ---
    updated-dependencies:
    - dependency-name: follow-redirects
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 9, 2024
    Copy the full SHA
    1f3491a View commit details

Commits on Jan 10, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    290d179 View commit details
  2. Copy the full SHA
    90aadb5 View commit details
  3. v7.7.0

    wojtekmaj committed Jan 10, 2024
    Copy the full SHA
    9365d23 View commit details
2 changes: 1 addition & 1 deletion .yarn/plugins/@yarnpkg/plugin-nolyfill.cjs
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
module.exports = {
name: "@yarnpkg/plugin-nolyfill",
factory: function (require) {
"use strict";var plugin=(()=>{var p=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var n=Object.prototype.hasOwnProperty;var y=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var c=(r,e)=>{for(var t in e)p(r,t,{get:e[t],enumerable:!0})},g=(r,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of l(e))!n.call(r,o)&&o!==t&&p(r,o,{get:()=>e[o],enumerable:!(s=i(e,o))||s.enumerable});return r};var f=r=>g(p({},"__esModule",{value:!0}),r);var j={};c(j,{default:()=>w});var a=y("@yarnpkg/core"),d=[["array-includes"],["array.prototype.findlastindex"],["array.prototype.findlast"],["array.prototype.at"],["string.prototype.at"],["array.prototype.flat"],["array.prototype.flatmap"],["arraybuffer.prototype.slice"],["function.prototype.name"],["has"],["object-keys"],["object.assign"],["object.entries"],["object.fromentries"],["object.hasown"],["object.values"],["string.prototype.trim"],["string.prototype.trimend"],["string.prototype.trimstart"],["string.prototype.trimleft"],["string.prototype.trimright"],["string.prototype.matchall"],["regexp.prototype.flags"],["globalthis"],["array.prototype.tosorted"],["object.groupby"],["array.prototype.find"],["array.from"],["string.prototype.padend"],["string.prototype.padstart"],["object.getownpropertydescriptors"],["array.prototype.reduce"],["object-is"],["reflect.ownkeys"],["string.prototype.replaceall"],["reflect.getprototypeof"],["es-aggregate-error"],["promise.any",{"@nolyfill/es-aggregate-error":"workspace:*"},">=12.4.0"],["promise.allsettled"]],h=[["has-property-descriptors"],["gopd"],["has-proto"],["get-symbol-description",{"@nolyfill/shared":"workspace:*"}],["is-array-buffer",{"@nolyfill/shared":"workspace:*"}],["is-shared-array-buffer",{"@nolyfill/shared":"workspace:*"}],["typed-array-buffer",{"@nolyfill/shared":"workspace:*"}],["typed-array-byte-length",{"@nolyfill/shared":"workspace:*"}],["typed-array-byte-offset",{"@nolyfill/shared":"workspace:*"}],["typed-array-length",{"@nolyfill/shared":"workspace:*"}],["harmony-reflect"],["array-buffer-byte-length",{"@nolyfill/is-array-buffer":"workspace:*","@nolyfill/shared":"workspace:*"}],["iterator.prototype"],["available-typed-arrays"],["which-typed-array",{"@nolyfill/shared":"workspace:*"}],["which-boxed-primitive"],["unbox-primitive"],["is-regex"],["safe-regex-test"],["safe-array-concat"],["asynciterator.prototype"],["is-weakref"],["is-symbol"],["is-string"],["is-date-object"],["es-set-tostringtag"],["define-properties",{"@nolyfill/shared":"workspace:*"}],["deep-equal",{dequal:"2.0.3"}],["is-arguments"],["is-generator-function"],["side-channel"],["internal-slot"]],m=["function-bind","has-tostringtag","has-symbols","es-iterator-helpers"],u=[...m,...d.map(r=>r[0]),...h.map(r=>r[0])].sort(),b=new Map(u.map(r=>[a.structUtils.makeIdent(null,r).identHash,a.structUtils.makeIdent("nolyfill",r)])),k={hooks:{reduceDependency:async r=>{let e=b.get(r.identHash);if(e){let t=a.structUtils.makeDescriptor(e,"latest"),s=a.structUtils.makeRange({protocol:"npm:",source:null,selector:a.structUtils.stringifyDescriptor(t),params:null});return a.structUtils.makeDescriptor(r,s)}return r}}},w=k;return f(j);})();
"use strict";var plugin=(()=>{var p=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var c=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,e)=>(typeof require<"u"?require:r)[e]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var l=(t,r)=>{for(var e in r)p(t,e,{get:r[e],enumerable:!0})},g=(t,r,e,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of n(r))!y.call(t,a)&&a!==e&&p(t,a,{get:()=>r[a],enumerable:!(s=i(r,a))||s.enumerable});return t};var f=t=>g(p({},"__esModule",{value:!0}),t);var b={};l(b,{default:()=>u});var o=c("@yarnpkg/core"),d=["array-buffer-byte-length","array-includes","array.from","array.of","array.prototype.at","array.prototype.every","array.prototype.find","array.prototype.findlast","array.prototype.findlastindex","array.prototype.flat","array.prototype.flatmap","array.prototype.flatmap","array.prototype.foreach","array.prototype.reduce","array.prototype.tosorted","arraybuffer.prototype.slice","assert","asynciterator.prototype","available-typed-arrays","deep-equal","define-properties","es-aggregate-error","es-iterator-helpers","es-set-tostringtag","es6-object-assign","function-bind","function.prototype.name","get-symbol-description","globalthis","gopd","harmony-reflect","has","has-property-descriptors","has-proto","has-symbols","has-tostringtag","hasown","internal-slot","is-arguments","is-array-buffer","is-date-object","is-generator-function","is-nan","is-regex","is-shared-array-buffer","is-string","is-symbol","is-typed-array","is-weakref","isarray","iterator.prototype","jsonify","object-is","object-keys","object.assign","object.entries","object.fromentries","object.getownpropertydescriptors","object.groupby","object.hasown","object.values","promise.allsettled","promise.any","reflect.getprototypeof","reflect.ownkeys","regexp.prototype.flags","safe-array-concat","safe-regex-test","set-function-length","side-channel","string.prototype.at","string.prototype.codepointat","string.prototype.includes","string.prototype.matchall","string.prototype.padend","string.prototype.padstart","string.prototype.repeat","string.prototype.replaceall","string.prototype.split","string.prototype.startswith","string.prototype.trim","string.prototype.trimend","string.prototype.trimleft","string.prototype.trimright","string.prototype.trimstart","typed-array-buffer","typed-array-byte-length","typed-array-byte-offset","typed-array-length","typedarray","unbox-primitive","which-boxed-primitive","which-typed-array"],h=new Map(d.map(t=>[o.structUtils.makeIdent(null,t).identHash,o.structUtils.makeIdent("nolyfill",t)])),m={hooks:{reduceDependency:async t=>{let r=h.get(t.identHash);if(r){let e=o.structUtils.makeDescriptor(r,"latest"),s=o.structUtils.makeRange({protocol:"npm:",source:null,selector:o.structUtils.stringifyDescriptor(e),params:null});return o.structUtils.makeDescriptor(t,s)}return t}}},u=m;return f(b);})();
return plugin;
}
};
4 changes: 2 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -5,6 +5,6 @@ logFilters:
nodeLinker: node-modules

plugins:
- checksum: 04cbf7ea36b0aaedbec723f6f5165e80f817e1ef242a9d811ebca7977ec6b8756811d9406a0ccd2968f9e9768b426b2213a736aa2c6252f2c5631f6d4de2162b
- checksum: e3ca535b4c4288976eebb726082e2e6547c43e0ba1492b3ddbb0cdadc9d61d82ff14307358da06c46a446328345a464364d6c148b2d39fccc18cf6d232291858
path: .yarn/plugins/@yarnpkg/plugin-nolyfill.cjs
spec: 'https://raw.githubusercontent.com/wojtekmaj/yarn-plugin-nolyfill/v0.1.0/bundles/@yarnpkg/plugin-nolyfill.js'
spec: 'https://raw.githubusercontent.com/wojtekmaj/yarn-plugin-nolyfill/v0.1.1/bundles/@yarnpkg/plugin-nolyfill.js'
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017–2023 Wojciech Maj
Copyright (c) 2017–2024 Wojciech Maj

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
},
"devDependencies": {
"husky": "^8.0.0",
"lint-staged": "^14.0.0",
"lint-staged": "^15.0.0",
"prettier": "^3.0.0"
},
"resolutions": {
4 changes: 2 additions & 2 deletions packages/react-pdf/README.md
Original file line number Diff line number Diff line change
@@ -470,7 +470,7 @@ Loads a document passed using `file` prop.
| onSourceError | Function called in case of an error while retrieving document source from `file` prop. | n/a | `(error) => alert('Error while retrieving document source! ' + error.message)` |
| onSourceSuccess | Function called when document source is successfully retrieved from `file` prop. | n/a | `() => alert('Document source retrieved!')` |
| options | An object in which additional parameters to be passed to PDF.js can be defined. Most notably:<ul><li>`cMapUrl`;</li><li>`httpHeaders` - custom request headers, e.g. for authorization);</li><li>`withCredentials` - a boolean to indicate whether or not to include cookies in the request (defaults to `false`)</li></ul>For a full list of possible parameters, check [PDF.js documentation on DocumentInitParameters](https://mozilla.github.io/pdf.js/api/draft/module-pdfjsLib.html#~DocumentInitParameters). **Note**: Make sure to define options object outside of your React component, and use `useMemo` if you can't. | n/a | `{ cMapUrl: '/cmaps/' }` |
| renderMode | Rendering mode of the document. Can be `"canvas"`, `"custom"`, `"none"` or `"svg"`. If set to `"custom"`, `customRenderer` must also be provided.<br />**Warning**: SVG render mode is no longer maintained and may be removed in the future. | `"canvas"` | `"svg"` |
| renderMode | Rendering mode of the document. Can be `"canvas"`, `"custom"`, `"none"` or `"svg"`. If set to `"custom"`, `customRenderer` must also be provided.<br />**Warning**: SVG render mode is deprecated and will be removed in the future. | `"canvas"` | `"custom"` |
| rotate | Rotation of the document in degrees. If provided, will change rotation globally, even for the pages which were given `rotate` prop of their own. `90` = rotated to the right, `180` = upside down, `270` = rotated to the left. | n/a | `90` |

### Page
@@ -512,7 +512,7 @@ Displays a page. Should be placed inside `<Document />`. Alternatively, it can h
| pdf | pdf object obtained from `<Document />`'s `onLoadSuccess` callback function. | (automatically obtained from parent `<Document />`) | `pdf` |
| renderAnnotationLayer | Whether annotations (e.g. links) should be rendered. | `true` | `false` |
| renderForms | Whether forms should be rendered. `renderAnnotationLayer` prop must be set to `true`. | `false` | `true` |
| renderMode | Rendering mode of the document. Can be `"canvas"`, `"custom"`, `"none"` or `"svg"`. If set to `"custom"`, `customRenderer` must also be provided.<br />**Warning**: SVG render mode is no longer maintained and may be removed in the future. | `"canvas"` | `"svg"` |
| renderMode | Rendering mode of the document. Can be `"canvas"`, `"custom"`, `"none"` or `"svg"`. If set to `"custom"`, `customRenderer` must also be provided.<br />**Warning**: SVG render mode is deprecated and will be removed in the future. | `"canvas"` | `"custom"` |
| renderTextLayer | Whether a text layer should be rendered. | `true` | `false` |
| rotate | Rotation of the page in degrees. `90` = rotated to the right, `180` = upside down, `270` = rotated to the left. | Page's default setting, usually `0` | `90` |
| scale | Page scale. | `1` | `0.5` |
Loading