Skip to content

feature/AB#31755 - Remove jsPDF dependency and update outdated NPM packages#2347

Merged
JamesPasta merged 6 commits into
devfrom
feature/AB#31755-npm-updates-jspdf-remove
Apr 27, 2026
Merged

feature/AB#31755 - Remove jsPDF dependency and update outdated NPM packages#2347
JamesPasta merged 6 commits into
devfrom
feature/AB#31755-npm-updates-jspdf-remove

Conversation

@plavoie-BC
Copy link
Copy Markdown
Contributor

@plavoie-BC plavoie-BC commented Apr 27, 2026

Pull request overview

This PR removes the jsPDF dependency from the Unity.GrantManager web project and refreshes several front-end NPM packages to newer versions.

Changes:

  • Remove jspdf and html2canvas from package.json and stop mapping/loading its assets.
  • Upgrade selected dependencies (notably formiojs, datatables.net-bs5, dompurify, handlebars, tinymce) and update yarn.lock accordingly.
  • Update the Grant Application Details page to no longer load the jsPDF and html2canvas script.

Reviewed changes

File Description
applications/Unity.GrantManager/src/Unity.GrantManager.Web/yarn.lock Updates resolved dependency graph; jsPDF removed; several packages updated.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/package.json Removes jsPDF and bumps a few dependency versions.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/abp.resourcemapping.js Removes jsPDF resource mapping.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/GrantApplications/Details.cshtml Stops loading jsPDF on the details page.

Pacakge updates

Package Severity Current Updated Release Notes
datatables.net-bs5 None 2.3.7 2.3.8 DataTables/Dist-DataTables-Bootstrap5@2.3.8...2.3.7
dompurify Moderate 3.3.1 3.4.1 https://github.com/cure53/DOMPurify/releases/tag/3.4.0 https://github.com/cure53/DOMPurify/releases/tag/3.4.1 https://github.com/cure53/DOMPurify/security/advisories?state=published
handlebars Critical 4.7.8 4.7.9 https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9 https://github.com/handlebars-lang/handlebars.js/security/advisories?state=published
tinymce None 8.3.2 8.4.0 https://www.tiny.cloud/docs/tinymce/latest/8.4.0-release-notes/
formiojs High 4.17.4 4.21.7 https://github.com/formio/formio.js/blob/main/CHANGELOG.md formio/formio.js@v4.21.7...v4.17.4

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the jsPDF dependency from the Unity.GrantManager web project and refreshes several front-end NPM packages to newer versions.

Changes:

  • Remove jspdf from package.json and stop mapping/loading its assets.
  • Upgrade selected dependencies (notably formiojs, datatables.net-bs5, dompurify, handlebars, tinymce) and update yarn.lock accordingly.
  • Update the Grant Application Details page to no longer load the jsPDF script.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
applications/Unity.GrantManager/src/Unity.GrantManager.Web/yarn.lock Updates resolved dependency graph; jsPDF removed; several packages updated.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/package.json Removes jsPDF and bumps a few dependency versions.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/abp.resourcemapping.js Removes jsPDF resource mapping.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/GrantApplications/Details.cshtml Stops loading jsPDF on the details page.
Comments suppressed due to low confidence (1)

applications/Unity.GrantManager/src/Unity.GrantManager.Web/package.json:14

  • datatables.net-bs5 is bumped to ~2.3.8, but yarn.lock still resolves other DataTables consumers (e.g., datatables.net-buttons-bs5 via datatables.net-bs5 "^2") to 2.3.7, which results in multiple DataTables versions being installed. This can cause plugin/extension mismatches at runtime and increases bundle size; consider running a full upgrade/dedupe so all datatables.net* packages resolve to the same 2.3.8 version (or pin via resolutions).
    "datatables.net-bs5": "~2.3.8",
    "datatables.net-buttons-bs5": "~3.2.6",
    "datatables.net-colreorder": "~2.1.1",
    "datatables.net-colreorder-bs5": "~2.1.1",
    "datatables.net-fixedheader": "~4.0.6",

Comment thread applications/Unity.GrantManager/src/Unity.GrantManager.Web/abp.resourcemapping.js Outdated
@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 621
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 621
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 621
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

1 similar comment
@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 621
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated no new comments.

@plavoie-BC plavoie-BC marked this pull request as ready for review April 27, 2026 18:48
@plavoie-BC plavoie-BC requested a review from JamesPasta April 27, 2026 18:48
@JamesPasta JamesPasta merged commit fa34ade into dev Apr 27, 2026
29 checks passed
@JamesPasta JamesPasta deleted the feature/AB#31755-npm-updates-jspdf-remove branch April 27, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants