Skip to content

Commit

Permalink
Bump version to 1.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopding committed Sep 13, 2020
1 parent 581d87e commit aa457ba
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/rn/src/components/TestLauncher.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default class TestLauncher extends Component {
<TestButton test={[12, test12]} />
<TestButton test={[13, test13]} longRunning />
<TestButton test={[14, test14]} />
<TestButton test={[15, test15]} />
<TestButton test={[15, test15]} longRunning />
<TestButton test={[16, test16]} />
<TestButton test={[17, test17]} />
</ScrollView>
Expand Down
5 changes: 3 additions & 2 deletions apps/rn/src/tests/test17.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
drawEllipse,
PDFWidgetAnnotation,
} from 'pdf-lib';
import fontkit from '@pdf-lib/fontkit';

import { fetchAsset, writePdf } from './assets';

Expand Down Expand Up @@ -138,7 +139,7 @@ export default async () => {
const text = symbol.encodeText('ℑ');
const textW = symbol.widthOfTextAtSize('ℑ', 35);
const textH = symbol.heightAtSize(35);
const symbolText = (font: PDFFont) =>
const symbolText = (font) =>
drawText(text, {
x: width / 2 - textW / 2,
y: height / 2 - textH / 2 + 10,
Expand All @@ -150,7 +151,7 @@ export default async () => {
ySkew: degrees(0),
});

const assert = (condition: boolean, msg = '') => {
const assert = (condition, msg = '') => {
if (!condition) throw new Error(msg || 'Assertion failed');
};

Expand Down
12 changes: 6 additions & 6 deletions apps/rn/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -953,10 +953,10 @@
dependencies:
pako "^1.0.6"

"@pdf-lib/standard-fonts@^1.0.0-rc3":
version "1.0.0-rc3"
resolved "https://registry.yarnpkg.com/@pdf-lib/standard-fonts/-/standard-fonts-1.0.0-rc3.tgz#f7bc2b3c9ad38d08c9831f6430b315d2f829075a"
integrity sha512-uOp1rd7vAWpKrvJaOLWQxuOSr+lRTN4pVf+Tw8gMjSne1nILpZj6teaTClEbjfX0BmEzTyuP65O+6JVrAZ+c2w==
"@pdf-lib/standard-fonts@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@pdf-lib/standard-fonts/-/standard-fonts-1.0.0.tgz#8ba691c4421f71662ed07c9a0294b44528af2d7f"
integrity sha512-hU30BK9IUN/su0Mn9VdlVKsWBS6GyhVfqjwl1FjZN4TxP6cCw0jP2w7V3Hf5uX7M0AZJ16vey9yE0ny7Sa59ZA==
dependencies:
pako "^1.0.6"

Expand Down Expand Up @@ -4885,9 +4885,9 @@ path-type@^3.0.0:
pify "^3.0.0"

pdf-lib@./../..:
version "1.10.0"
version "1.11.0"
dependencies:
"@pdf-lib/standard-fonts" "^1.0.0-rc3"
"@pdf-lib/standard-fonts" "^1.0.0"
"@pdf-lib/upng" "^1.0.1"
pako "^1.0.11"
tslib "^1.11.1"
Expand Down
2 changes: 1 addition & 1 deletion apps/web/test13.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
Prev
</button>
<button onclick="test()">Run Test</button>
<button disabled onclick="window.location.href = '/apps/web/test14.html'">
<button onclick="window.location.href = '/apps/web/test14.html'">
Next
</button>
</div>
Expand Down
4 changes: 2 additions & 2 deletions apps/web/test17.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
const text = symbol.encodeText('ℑ');
const textW = symbol.widthOfTextAtSize('ℑ', 35);
const textH = symbol.heightAtSize(35);
const symbolText = (font: PDFFont) =>
const symbolText = (font) =>
drawText(text, {
x: width / 2 - textW / 2,
y: height / 2 - textH / 2 + 10,
Expand All @@ -200,7 +200,7 @@
ySkew: degrees(0),
});

const assert = (condition: boolean, msg = '') => {
const assert = (condition, msg = '') => {
if (!condition) throw new Error(msg || 'Assertion failed');
};

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": "pdf-lib",
"version": "1.10.0",
"version": "1.11.0",
"description": "Create and modify PDF files with JavaScript",
"author": "Andrew Dillon <[email protected]>",
"contributors": [
Expand Down

0 comments on commit aa457ba

Please sign in to comment.