113 Commits

Author SHA1 Message Date
hand-dot
524fc14c36 fix(ci): remove lifecycle script dependencies 2026-04-02 11:50:12 +09:00
hand-dot
cc27790770 Convert CJS helpers to JS 2026-03-24 16:00:44 +09:00
hand-dot
cd3db68070 improve scripts 2026-03-21 10:20:23 +09:00
hand-dot
3d87f977d6 use vp 2026-03-21 09:24:02 +09:00
hand-dot
2dec270bc4 Migrate common and manipulator builds to Vite 2026-03-20 18:29:50 +09:00
hand-dot
45082df08b Add Vitest foundation for common and manipulator 2026-03-20 15:31:31 +09:00
hand-dot
0d0f89f12b Prepare ESM migration groundwork 2026-03-20 14:49:50 +09:00
dependabot[bot]
3943e17574 build(deps): bump acorn from 8.15.0 to 8.16.0 (#1362)
Bumps [acorn](https://github.com/acornjs/acorn) from 8.15.0 to 8.16.0.
- [Commits](https://github.com/acornjs/acorn/compare/8.15.0...8.16.0)

---
updated-dependencies:
- dependency-name: acorn
  dependency-version: 8.16.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-01 15:10:47 +00:00
dependabot[bot]
77c38ad54a build(deps): bump zod from 4.1.13 to 4.3.6 (#1332)
Bumps [zod](https://github.com/colinhacks/zod) from 4.1.13 to 4.3.6.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](https://github.com/colinhacks/zod/compare/v4.1.13...v4.3.6)

---
updated-dependencies:
- dependency-name: zod
  dependency-version: 4.3.6
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-01 15:09:49 +00:00
dependabot[bot]
4b4109f03a build(deps): bump zod from 4.1.12 to 4.1.13 (#1274)
Bumps [zod](https://github.com/colinhacks/zod) from 4.1.12 to 4.1.13.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](https://github.com/colinhacks/zod/compare/v4.1.12...v4.1.13)

---
updated-dependencies:
- dependency-name: zod
  dependency-version: 4.1.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-02 09:24:28 +09:00
ryoppippi
38eeecb3ed chore: replace npm-run-all with npm-run-all2 (#1288)
* chore: replace npm-run-all with npm-run-all2

* chore: replace npm-run-all with npm-run-all2 and use run-p shorthand
2025-12-05 09:42:53 +09:00
dependabot[bot]
b471b47f1d build(deps): Bump zod from 3.25.76 to 4.1.12 in /packages/common (#1226)
* build(deps): Bump zod from 3.25.76 to 4.1.12 in /packages/common

Bumps [zod](https://github.com/colinhacks/zod) from 3.25.76 to 4.1.12.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](https://github.com/colinhacks/zod/compare/v3.25.76...v4.1.12)

---
updated-dependencies:
- dependency-name: zod
  dependency-version: 4.1.12
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix zod v4 API compatibility issues

- Update z.function() usage to z.any() for Plugin schema (zod v4 changed z.function() to a function factory)
- Update z.record() calls to use two arguments (key schema, value schema) as required by zod v4
- Add type assertions for Object.entries() to fix type inference issues
- Update test error message to match zod v4 format

Co-Authored-By: Kyohei Fukuda <kyoheif@wix.com>

* Update test expectations for zod v4 error message format

- Update error messages in common package tests to match zod v4 format
- 'Expected array, received string' → 'Invalid input: expected array, received string'
- 'Array must contain at least 1 element(s)' → 'Too small: expected array to have >=1 items'
- 'Required' → 'Invalid input: expected {type}, received undefined'

Co-Authored-By: Kyohei Fukuda <kyoheif@wix.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Kyohei Fukuda <kyoheif@wix.com>
Co-authored-by: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
2025-11-08 14:52:35 +09:00
dependabot[bot]
d493f0bd8f build(deps): bump zod from 3.25.67 to 4.1.11 (#1210)
* build(deps): bump zod from 3.25.67 to 4.1.11

Bumps [zod](https://github.com/colinhacks/zod) from 3.25.67 to 4.1.11.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](https://github.com/colinhacks/zod/compare/v3.25.67...v4.1.11)

---
updated-dependencies:
- dependency-name: zod
  dependency-version: 4.1.11
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix zod v4 API compatibility issues

- Update z.function() usage to z.any() for Plugin schema (zod v4 changed z.function() to a function factory)
- Update z.record() calls to use two arguments (key schema, value schema) as required by zod v4
- Add type assertions for Object.entries() to fix type inference issues
- Update test error message to match zod v4 format

Co-Authored-By: Kyohei Fukuda <kyoheif@wix.com>

* Update test expectations for zod v4 error message format

- Update error messages in common package tests to match zod v4 format
- 'Expected array, received string' → 'Invalid input: expected array, received string'
- 'Array must contain at least 1 element(s)' → 'Too small: expected array to have >=1 items'
- 'Required' → 'Invalid input: expected {type}, received undefined'

Co-Authored-By: Kyohei Fukuda <kyoheif@wix.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Kyohei Fukuda <kyoheif@wix.com>
Co-authored-by: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
2025-11-08 14:44:27 +09:00
dependabot[bot]
ad24513d4f Bump zod from 3.25.46 to 3.25.67 (#1091)
---
updated-dependencies:
- dependency-name: zod
  dependency-version: 3.25.67
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-26 19:20:22 +09:00
dependabot[bot]
2d1d61309b Bump acorn from 8.14.1 to 8.15.0 (#1093)
---
updated-dependencies:
- dependency-name: acorn
  dependency-version: 8.15.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-26 19:20:02 +09:00
dependabot[bot]
bee725c549 Bump zod from 3.24.4 to 3.25.46 (#1047)
Bumps [zod](https://github.com/colinhacks/zod) from 3.24.4 to 3.25.46.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](https://github.com/colinhacks/zod/compare/v3.24.4...v3.25.46)

---
updated-dependencies:
- dependency-name: zod
  dependency-version: 3.25.46
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-02 09:08:53 +09:00
dependabot[bot]
d5d0682a36 Bump zod from 3.24.2 to 3.24.4 (#970)
Bumps [zod](https://github.com/colinhacks/zod) from 3.24.2 to 3.24.4.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Changelog](https://github.com/colinhacks/zod/blob/main/CHANGELOG.md)
- [Commits](https://github.com/colinhacks/zod/compare/v3.24.2...v3.24.4)

---
updated-dependencies:
- dependency-name: zod
  dependency-version: 3.24.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-09 10:52:52 +09:00
Kyohei Fukuda
9ecd6346a6 Update package dependencies to use local paths for common and converter packages 2025-03-06 10:17:31 +09:00
Kyohei Fukuda
102ca8cc62 Fix eslint (#780)
* Refactor ESLint configuration: remove legacy .eslintrc.cjs files and replace with new .mjs configurations

* Remove unnecessary TypeScript ignore comments and simplify async calls in barcode tests

* Refactor date helper: remove TypeScript ignore comments and simplify AirDatepicker usage

* Enhance date helper: add AirDatepickerDate type and improve type annotations for onSelect callback

* Update TypeScript and ESLint configurations: change module to NodeNext, refine file patterns, and enhance lint command

* Refactor ESLint configuration: remove unnecessary language options for TypeScript files
2025-03-03 10:20:36 +09:00
Kyohei Fukuda
afbfa87674 [WIP] Add pdf2img integration for converting PDF to images in e2e tests (#774)
* Add pdf2img integration for converting PDF to images in e2e tests

* Refactor PDF generation tests to convert PDFs to images and validate against snapshots

* Refactor package.json files to remove "type": "module" and update import statements to CommonJS format

* Fix e2e test

* Add new image snapshots for e2e tests and remove obsolete snapshot
2025-03-01 16:24:01 +09:00
Kyohei Fukuda
b0d980c433 Modification to make the library ESM-based. (#770)
* Remove fast-xml-parser dependency and update vite-tsconfig-paths to 5.1.4

* tmp

* Refactor test files and scripts to use ES modules; remove obsolete files

* Enhance tests with new PDF utilities and update Jest configuration for ESM support
2025-03-01 02:23:24 +09:00
Zin Kyaw Kyaw (AJ)
445d014e70 add sparate build for node in generator, common and schema packages (#722) 2025-02-20 12:18:47 +09:00
Kyohei Fukuda
a2be964653 feat: implement version management script and update constants 2025-01-25 11:41:26 +09:00
Kyohei Fukuda
24a48b2e24 fix: remove pdf support from image schema to decouple schemas from converter 2025-01-24 14:40:36 +09:00
Kyohei Fukuda
82d8019b13 Add converter package (#681)
* TMP

* TMP

* TMP

* Update README.md to provide library description and documentation link

* TMP

* TMP

* TMP

* TMP

* Update package dependencies by adding @pdfme/converter and removing pdfjs-dist

* Remove pdfjs-dist mock and update tests to reflect changes in dependencies

* minor fix and add document for website

* Add documentation for manipulator and optimizer, and organize converter in sidebar

* Refactor package dependencies by removing @pdfme/converter from peerDependencies and reinstating optionalDependencies for canvas in converter package
2025-01-24 11:09:29 +09:00
Zin Kyaw Kyaw (AJ)
abf0e360a3 [630]: Bug fix on basePdf as array buffer (#659)
* [630]: Bug fix on basePdf as array buffer

* Minor fix

* Fix handling of customPdf in getB64BasePdf to ensure proper conversion to Uint8Array

* TMP

* Fix test

---------

Co-authored-by: hand-dot <kyouhei.fukuda0729@gmail.com>
2024-12-14 15:44:42 +09:00
Kyohei Fukuda
2a2323d832 Automatically replace PDFME_VERSION with the latest Git tag during the build process (#641)
* Automatically replace PDFME_VERSION with the latest Git tag during the build process

* Set fetch-depth to 0 in GitHub Actions workflow for full history checkout
2024-11-22 10:57:47 +09:00
Kyohei Fukuda
2ef3f126a7 Enable placement of headers and footers in fixed positions & Use template engine (#620)
* Impl replacePlaceholders

* fix build

* Update replacePlaceholders

* optimize images

* Add doc

* update schema doc

* Fix bug

* add tests

* add security tests for replacePlaceholders to prevent access to prohibited properties and methods

* optimize parseData and evaluatePlaceholders with caching for improved performance

* remove ejs

* add license information for @types/estree and acorn in package-lock.json

* Fix ci

* write doc

* Update website/docs/headers-and-footers.md

Co-authored-by: Peter Ward <pete@pennyblack.io>

* Update playground/src/helper.ts

Co-authored-by: Peter Ward <pete@pennyblack.io>

---------

Co-authored-by: Peter Ward <pete@pennyblack.io>
2024-11-11 19:19:19 +09:00
Sebastian Moßburger
da7f7cfb0b fix(common): Move typing dependencies to peer (#477)
* fix(dep): Remove antd as direct dependency of common

* Move form-render to peer as well

* update esbuild

---------

Co-authored-by: Kyohei Fukuda <kyoheif@wix.com>
2024-06-01 09:11:50 +09:00
Kyohei Fukuda
700a088527 Add ReadOnly Schemas (#386)
* TMP

* IMPL

* Remove console.log statement in imageSize function

* TMP add test

* Update @pdfme/pdf-lib

* Update package-lock.json

* Update snapshot
2023-12-23 17:21:35 +09:00
Kyohei Fukuda
e1ce94c4ec Add SVG Schema (#384)
* TMP

* Impl SVG schema in the schemas package

* Update @pdfme/pdf-lib to version 1.18.1

* Change image schema

* Update devBuild:watch script in package.json
2023-12-22 00:12:12 +09:00
Kyohei Fukuda
6d823cf007 Fix error (#339) 2023-11-27 09:37:25 +09:00
Kyohei Fukuda
c1e24761d2 [WIP] Enhancing the development experience (#327)
* TMP

* TMP

* Fix failing test

* Update ESLint configuration

* Update ESLint configuration
2023-11-22 00:09:00 +09:00
Kyohei Fukuda
66553edf20 Custom Design for UI#243 (#322) 2023-11-19 18:21:41 +09:00
Staffan Enberg
815cbd84b4 Add types to package exports (#316)
Co-authored-by: Staffan Enberg <staffa.enberg@gmail.com>
2023-11-13 20:42:54 +09:00
Kyohei Fukuda
ec7ab807e9 Set type:module for all package, and Update pdfjs-dist at ui 2023-11-10 12:03:49 +09:00
Kyohei Fukuda
45d18a5f1f npm run build command to parallel 2023-11-07 10:52:55 +09:00
Kyohei Fukuda
1fe8a2e008 Change package.json's version 2023-11-03 18:19:06 +09:00
Kyohei Fukuda
7d6434b4c7 Remove beta from package version 2023-11-03 17:33:26 +09:00
Kyohei Fukuda
9b4d1173f8 Update version to 3.0.0-beta.2 2023-10-29 16:43:27 +09:00
Kyohei Fukuda
c9c3afbc70 Update version to 3.0.0-beta.1 2023-10-29 16:26:13 +09:00
Kyohei Fukuda
c2fd0a8fae Add schemas package (#278)
* Add schemas package

* TMP

* TMP

* Fix text pdfRender bug

* move render props type to schema

* update type

* TMP

* remove webpack

* Fix build error

* Add comment

* TMP

* bugfix

* TMP

* Bug fix for dynamicFontSize

* Minor fix

* TMP

* Minor fix

* Fix build error

* Add generics

* add comment

* Minor fix

* Move Plugin type to common from schemas

* TMP Move some pdfme/common functions to pdfme/schemas

* Fix test

* Fix build bug

* Fix build error

* Refactoring

* remove any type

* Fix fail test

* Fix build error

* Minor fix

* Refactoring

* Fix format
2023-10-18 17:29:49 +09:00
Kyohei Fukuda
30a0ce2eda Update version to 2.2.1 2023-09-23 17:12:09 +09:00
Kyohei Fukuda
8d4b9f00f2 Move createBarCode to common 2023-09-12 10:59:40 +09:00
Kyohei Fukuda
f2d81fd538 Update version to 2.2.0 2023-08-27 16:12:07 +09:00
Kyohei Fukuda
4576b243ea Update version to 2.1.0 2023-08-19 15:35:12 +09:00
Kyohei Fukuda
b5c176b498 Update version to 2.0.2 2023-08-04 10:57:55 +09:00
Kyohei Fukuda
f2db4481a1 Update version to 2.0.1 2023-07-31 09:37:53 +09:00
Kyohei Fukuda
0e1ea6b589 Update version to 2.0.0 2023-07-31 09:13:13 +09:00
Kyohei Fukuda
60cee52efc Update version to 1.2.6 2023-06-28 22:14:11 +09:00