Skip to content

Commit

Permalink
Bump version to 1.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopding committed Nov 15, 2020
1 parent 30d2aa2 commit cb1c20c
Show file tree
Hide file tree
Showing 21 changed files with 78 additions and 24 deletions.
20 changes: 20 additions & 0 deletions apps/deno/dummy.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
declare const ParseSpeeds: any;
declare const PDFPage: any;
declare const clip: any;
declare const clipEvenOdd: any;
declare const closePath: any;
declare const cmyk: any;
declare const degrees: any;
declare const drawRectangle: any;
declare const endPath: any;
declare const grayscale: any;
declare const LineCapStyle: any;
declare const LineJoinStyle: any;
declare const typedArrayFor: any;
declare const lineTo: any;
declare const PDFDocument: any;
declare const popGraphicsState: any;
declare const pushGraphicsState: any;
declare const rgb: any;
declare const setLineJoin: any;
declare const StandardFonts: any;
44 changes: 22 additions & 22 deletions apps/deno/index.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
import { dirname } from 'https://deno.land/[email protected]/path/mod.ts';
import { readLines } from 'https://deno.land/[email protected]/io/bufio.ts';
import { sep } from 'https://deno.land/[email protected]/path/mod.ts';

import test1 from './tests/test1.ts';
import test2 from './tests/test2.ts';
import test3 from './tests/test3.ts';
import test4 from './tests/test4.ts';
import test5 from './tests/test5.ts';
import test6 from './tests/test6.ts';
import test7 from './tests/test7.ts';
import test8 from './tests/test8.ts';
import test9 from './tests/test9.ts';
import test10 from './tests/test10.ts';
import test11 from './tests/test11.ts';
import test12 from './tests/test12.ts';
import test13 from './tests/test13.ts';
import test14 from './tests/test14.ts';
import test15 from './tests/test15.ts';
import test16 from './tests/test16.ts';
import test17 from './tests/test17.ts';
import { readLines } from 'https://deno.land/[email protected]/io/bufio.ts';
import { SEP, dirname } from 'https://deno.land/[email protected]/path/mod.ts';

import { default as test1 } from './tests/test1.ts';
import { default as test2 } from './tests/test2.ts';
import { default as test3 } from './tests/test3.ts';
import { default as test4 } from './tests/test4.ts';
import { default as test5 } from './tests/test5.ts';
import { default as test6 } from './tests/test6.ts';
import { default as test7 } from './tests/test7.ts';
import { default as test8 } from './tests/test8.ts';
import { default as test9 } from './tests/test9.ts';
import { default as test10 } from './tests/test10.ts';
import { default as test11 } from './tests/test11.ts';
import { default as test12 } from './tests/test12.ts';
import { default as test13 } from './tests/test13.ts';
import { default as test14 } from './tests/test14.ts';
import { default as test15 } from './tests/test15.ts';
import { default as test16 } from './tests/test16.ts';
import { default as test17 } from './tests/test17.ts';

const promptToContinue = () => {
const prompt = 'Press <enter> to run the next test...';
Expand Down Expand Up @@ -49,7 +48,7 @@ const openPdf = (path: string, reader: string = '') => {
const tempDir = () => dirname(Deno.makeTempDirSync());

const writePdfToTmp = (pdf: Uint8Array) => {
const path = `${tempDir()}${sep}${Date.now()}.pdf`;
const path = `${tempDir()}${SEP}${Date.now()}.pdf`;
Deno.writeFileSync(path, pdf);
return path;
};
Expand Down Expand Up @@ -136,6 +135,7 @@ const assets = {
};

export type Assets = typeof assets;
// export type Assets = any;

// This script can be executed with 0, 1, or 2 CLI arguments:
// $ deno index.ts
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test1.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import fontkit from 'https://cdn.skypack.dev/@pdf-lib/fontkit@^1.0.0?dts';
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
clip,
clipEvenOdd,
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test10.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
PDFDocument,
StandardFonts,
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test11.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import fontkit from 'https://cdn.skypack.dev/@pdf-lib/fontkit@^1.0.0?dts';
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
last,
PDFDocument,
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test12.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
PageSizes,
PDFDocument,
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test13.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import { PDFDocument, rgb } from '../../../dist/pdf-lib.esm.js';

// prettier-ignore
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test14.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
PDFDocument,
values,
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test15.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
PDFDocument,
StandardFonts,
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test16.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import { PDFDocument } from '../../../dist/pdf-lib.esm.js';

const fieldNames = {
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test17.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import fontkit from 'https://cdn.skypack.dev/@pdf-lib/fontkit@^1.0.0?dts';

import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
PDFDocument,
StandardFonts,
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test2.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import fontkit from 'https://cdn.skypack.dev/@pdf-lib/fontkit@^1.0.0?dts';
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
ParseSpeeds,
PDFPage,
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test3.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
degrees,
ParseSpeeds,
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test4.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
ParseSpeeds,
PDFDocument,
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test5.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
ParseSpeeds,
PDFPage,
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test6.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import fontkit from 'https://cdn.skypack.dev/@pdf-lib/fontkit@^1.0.0?dts';
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
degrees,
ParseSpeeds,
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test7.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
degrees,
ParseSpeeds,
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test8.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
ParseSpeeds,
PDFDocument,
Expand Down
2 changes: 2 additions & 0 deletions apps/deno/tests/test9.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import fontkit from 'https://cdn.skypack.dev/@pdf-lib/fontkit@^1.0.0?dts';
import { Assets } from '../index.ts';

// @deno-types="../dummy.d.ts"
import {
ParseSpeeds,
PDFDocument,
Expand Down
2 changes: 1 addition & 1 deletion apps/rn/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4885,7 +4885,7 @@ path-type@^3.0.0:
pify "^3.0.0"

pdf-lib@./../..:
version "1.11.1"
version "1.12.0"
dependencies:
"@pdf-lib/standard-fonts" "^1.0.0"
"@pdf-lib/upng" "^1.0.1"
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.11.2",
"version": "1.12.0",
"description": "Create and modify PDF files with JavaScript",
"author": "Andrew Dillon <[email protected]>",
"contributors": [
Expand Down

0 comments on commit cb1c20c

Please sign in to comment.