Skip to content

Bring BRP system into FoundryVTT v14 compliance#1

Merged
RevCivic merged 1 commit into
mainfrom
copilot/update-foundryvtt-version-14
Apr 7, 2026
Merged

Bring BRP system into FoundryVTT v14 compliance#1
RevCivic merged 1 commit into
mainfrom
copilot/update-foundryvtt-version-14

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 7, 2026

Summary

Updates the BRP system to be compatible with FoundryVTT Version 14.

Changes

The primary breaking change in FoundryVTT v14 is the removal of jQuery from the framework. All jQuery DOM API calls have been replaced with native browser DOM APIs throughout the codebase.

Files changed

system.json

  • Updated version to 14.1.56
  • Updated compatibility.verified to 14
  • Updated compatibility.maximum to 14

jQuery → native DOM replacements:

  • module/actor/sheets/base-actor-sheet.mjs — 3 jQuery instances ($(el).closest(), .data())
  • module/apps/check.mjs — 1 instance ($(el).closest('.message'))
  • module/actor/actor.mjs — 1 instance ($(el).find(...).css(...))
  • module/item/item.mjs — 1 instance (same pattern)
  • module/item/sheets/profession.mjs — 4 instances
  • module/item/sheets/culture.mjs — 3 instances
  • module/item/sheets/skill.mjs — 2 instances
  • module/item/sheets/personality.mjs — 3 instances
  • module/item/sheets/super.mjs — 2 instances
  • module/brpid/brpid-editor.mjs — 5 instances ($(this).data(), $(target).siblings(), $(el).find(...).css(...))
  • module/hooks/render-dialog.mjs — full rewrite using native DOM
  • module/hooks/render-journal-text-page-sheet.mjs — full rewrite using native DOM
  • module/hooks/render-journal-entry-page-text-sheet.mjs — toggle handler rewritten
  • module/hooks/render-journal-sheet.mjshtml.hasClass/addClass/$(html) replaced

Additional fixes:

  • base-actor-sheet.mjs: CONST.CHAT_MESSAGE_OTHERCONST.CHAT_MESSAGE_STYLES.OTHER
  • brpid-editor.mjs: Removed deprecated { async: true } option from TextEditor.enrichHTML calls (always async in v14)

Agent-Logs-Url: https://github.com/RevCivic/brp/sessions/1123c6c1-0cce-49c9-88c8-3d47a065c85f

Co-authored-by: RevCivic <22403423+RevCivic@users.noreply.github.com>
Copy link
Copy Markdown
Owner

@RevCivic RevCivic left a comment

Choose a reason for hiding this comment

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

Approved

@RevCivic RevCivic marked this pull request as ready for review April 7, 2026 21:42
@RevCivic RevCivic merged commit 21a3858 into main Apr 7, 2026
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.

2 participants