pdfkit 0.20.1 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +35 -0
  2. package/js/pdfkit.browser.mjs +2418 -436
  3. package/js/pdfkit.browser.mjs.map +1 -1
  4. package/js/pdfkit.js +2460 -456
  5. package/js/pdfkit.js.map +1 -1
  6. package/js/pdfkit.node.mjs +2452 -452
  7. package/js/pdfkit.node.mjs.map +1 -1
  8. package/js/pdfkit.standalone.js +21578 -32704
  9. package/js/standard-fonts/Symbol.cjs +4 -3
  10. package/js/standard-fonts/Symbol.mjs +4 -3
  11. package/js/standard-fonts/ZapfDingbats.cjs +4 -3
  12. package/js/standard-fonts/ZapfDingbats.mjs +4 -3
  13. package/package.json +23 -23
  14. package/.yarn/install-state.gz +0 -0
  15. package/.yarn/releases/yarn-4.16.0.cjs +0 -944
  16. package/.yarnrc.yml +0 -10
  17. package/CHANGELOG.md +0 -192
  18. package/js/data/Courier-Bold.afm +0 -342
  19. package/js/data/Courier-BoldOblique.afm +0 -342
  20. package/js/data/Courier-Oblique.afm +0 -342
  21. package/js/data/Courier.afm +0 -342
  22. package/js/data/Helvetica-Bold.afm +0 -2827
  23. package/js/data/Helvetica-BoldOblique.afm +0 -2827
  24. package/js/data/Helvetica-Oblique.afm +0 -3051
  25. package/js/data/Helvetica.afm +0 -3051
  26. package/js/data/Symbol.afm +0 -213
  27. package/js/data/Times-Bold.afm +0 -2588
  28. package/js/data/Times-BoldItalic.afm +0 -2384
  29. package/js/data/Times-Italic.afm +0 -2667
  30. package/js/data/Times-Roman.afm +0 -2419
  31. package/js/data/ZapfDingbats.afm +0 -225
  32. package/js/pdfkit.browser.js +0 -7524
  33. package/js/pdfkit.browser.js.map +0 -1
  34. package/js/pdfkit.browser.old.js +0 -7517
  35. package/js/pdfkit.browser.old.mjs +0 -7342
  36. package/js/pdfkit.old.js +0 -7276
  37. package/jsconfig.json +0 -13
  38. package/rollup.config.mjs +0 -193
  39. package/tools/README.md +0 -124
  40. package/tools/afm-converter.js +0 -317
  41. package/tools/asset-plugin.mjs +0 -17
  42. package/tools/binary-plugin.mjs +0 -18
  43. package/tools/convert-afm-parsed.js +0 -8
  44. package/tools/convert-afm-runtime.js +0 -8
  45. package/types/jest.custom-matchers.d.ts +0 -28
  46. package/vitest.config.js +0 -13
@@ -1,28 +0,0 @@
1
- // Ambient typings to make custom Vitest matchers available to the TS language server in tests.
2
- // No external @types packages required.
3
-
4
- type PartialExceptTheseRequired<T, K extends keyof T> = Partial<T> &
5
- Pick<Required<T>, K>;
6
-
7
- declare global {
8
- // Minimal shape of a TextStream used by tests' helpers
9
- interface TextStream {
10
- text: string;
11
- font: string;
12
- fontSize: number;
13
- }
14
-
15
- type TextStreamMatcher = PartialExceptTheseRequired<TextStream, 'text'>;
16
- }
17
-
18
- declare module 'vitest' {
19
- interface Matchers<R> {
20
- // Expect the PDF data array to contain a specific chunk sequence
21
- toContainChunk(chunk: Array<string | RegExp>): R;
22
-
23
- // Expect the PDF data array to contain a text stream matching the TextStream
24
- toContainText(textStream: TextStreamMatcher): R;
25
- }
26
- }
27
-
28
- export {};
package/vitest.config.js DELETED
@@ -1,13 +0,0 @@
1
- import { defineConfig } from 'vitest/config';
2
- import binary from './tools/binary-plugin.mjs';
3
-
4
- export default defineConfig({
5
- plugins: [binary('.icc')],
6
- test: {
7
- globals: true,
8
- environment: 'node',
9
- include: ['tests/**/*.spec.js'],
10
- exclude: ['**/node_modules/**', 'examples/**'],
11
- setupFiles: ['./tests/unit/setupTests.js'],
12
- },
13
- });