Skip to content

Conversation

@johanib
Copy link
Contributor

@johanib johanib commented Sep 30, 2025

Two commits in this PR, advisable to review both commits separate.


Upgrade npm packages, sass, fontawesome

Javascript package maintenance.
Updated some packages.

Most notable, are sass and fontawesome.

Updated sass from 1.66.1 > 1.93.2.
This is the biggest change, specifically:
@import and global built-in functions (i.e. un-namespaced builtins) are deprecated, and Sass is moving toward requiring @use / @forward and module-based builtins.


Fix/rework building of javascript

Prior to this change, in the previous commit, the tinyify package was
upgraded. This package minified the js and css.
However, after the update, the javascript was no longer functioning.
This manifested itself by errors in the browser console.

This had two root causes:

  • The javascript in EB used circular dependencies.
  • Even after fixing that, the tinyify package simply broke the
       javascript by removing functions that could not be removed.

This change reworks the javascript to remove the circular dependencies.
It also replaces the unmaintained tinyify plugin by using the terser directly.

@johanib johanib force-pushed the feature/npm-upgrade branch 3 times, most recently from a46afdf to 58f2133 Compare October 1, 2025 15:21
@johanib johanib changed the title npm upgrade Upgrade sass, fontawesome, remove broken minifier and fix js build Oct 2, 2025
@johanib johanib marked this pull request as ready for review October 2, 2025 06:36
@johanib johanib linked an issue Oct 2, 2025 that may be closed by this pull request
@johanib johanib requested review from MKodde and Stephan-Kok October 2, 2025 06:40
@johanib johanib force-pushed the feature/82_deprecations_upgrade_rebase branch from fff3a32 to d713f7c Compare October 7, 2025 10:10
Javascript package maintenance.
Updated some packages.

Most notable, are sass and fontawesome.

Updated sass from 1.66.1 > 1.93.2.
This is the biggest change, specifically:
`@import and global built-in functions (i.e. un-namespaced builtins) are deprecated, and Sass is moving toward requiring @use / @forward and module-based builtins`.
Prior to this change, in the previous commit, the `tinyify` package was
upgraded. This package minified the js and css.
However, after the update, the javascript was no longer functioning.
This manifested itself by errors in the browser console.

This had two root causes:
 * The javascript in EB used circular dependencies.
 * Even after fixing that, the tinyify package simply broke the
   javascript by removing functions that could not be removed.

This change reworks the javascript to remove the circular dependencies.
It also replaces the unmaintained tinyify plugin by using the `terser` directly.
@johanib johanib force-pushed the feature/npm-upgrade branch from 58f2133 to 8baee1f Compare October 7, 2025 11:19
@johanib johanib changed the base branch from feature/82_deprecations_upgrade_rebase to upgrade October 7, 2025 11:19
@johanib johanib linked an issue Oct 7, 2025 that may be closed by this pull request
@johanib johanib moved this from New to In Progress in PHP development Oct 7, 2025
@johanib johanib mentioned this pull request Oct 7, 2025
5 tasks
@johanib johanib changed the base branch from upgrade to upgrade-84 October 8, 2025 07:33
Copy link
Member

@MKodde MKodde left a comment

Choose a reason for hiding this comment

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

A bit much to take in. I approve this as I do not see any red flags. I trust you that the changes result in a sane build of the EB themes.

Maybe It is useful for other theme builders to post some highlights of what to be aware of when they are patching their own theme?

@johanib johanib merged commit dd8f74d into upgrade-84 Nov 3, 2025
2 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Delivered in PHP development Nov 3, 2025
@johanib johanib deleted the feature/npm-upgrade branch November 3, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Delivered

Development

Successfully merging this pull request may close these issues.

Upgrade to symfony 6.4 Upgrade to php 8.2

3 participants