Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ dist
jest.config.js
.eslintrc.js
babel.config.js
scripts
scripts
test-tarball/
docs-site/
examples/
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ module.exports = {
sourceType: "module",
},
plugins: ["react", "@typescript-eslint"],
settings: {
react: {
version: "detect",
},
},
rules: {
"react/no-unescaped-entities": 0,
"@typescript-eslint/no-explicit-any": 0,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [20.x]
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ See https://github.com/parallax/jsPDF/security/advisories/GHSA-9964-cph5-966m fo

- update jspdf to 4, cypress to 15 and use alternative image comparison for e2e (#175) (24fe10e)
- Bump js-yaml from 4.1.0 to 4.1.1 (#171) (ba1326c)
- update release notes script and changelog (c80acd2)
- update release notes script and changelog (c80acd2)


# 2.0.3 (November 25, 2025)
Expand Down
11 changes: 9 additions & 2 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ export default defineConfig({
setupNodeEvents(on) {
on("task", {
async compareFile(filename: string): Promise<ComparisonResult> {
const actualPath = path.join(process.cwd(), "cypress", "downloads", filename);
const actualPath = path.join(
process.cwd(),
"cypress",
"downloads",
filename
);
const snapshotDir = path.join(process.cwd(), "cypress", "baseline");

try {
Expand Down Expand Up @@ -40,7 +45,9 @@ export default defineConfig({
} catch (error) {
return {
status: "failed",
message: `PDF comparison error: ${error instanceof Error ? error.message : String(error)}`,
message: `PDF comparison error: ${
error instanceof Error ? error.message : String(error)
}`,
};
}
},
Expand Down