Page MenuHomePhabricator

Wikimedia-MinifyComponent
ActivePublic

Members

  • This project does not have any members.
  • View All

Details

Description

The wikimedia/minify PHP library for minification of JavaScript code and CSS stylesheets.

Recent Activity

Mon, Dec 23

Krinkle added a comment to T381477: Mangle/obfuscate identifiers for smaller bundles.

JavaScript is a highly dynamic language. To safely mangle executable code without breaking runtime execution for arbitrary code, one generally has to have awareness of all code that will be served and awareness of the complete application. This is common for "finished" products, single-page apps, and small projects. This is however not the case for a platform like MediaWiki, where extensibility and collaboration between multiple tennants are key design requirements. For example, extensions and gadgets can define and load additional code at any time, which has to work independently from what loaded before and what will load next.

Mon, Dec 23, 4:59 PM · MediaWiki-Platform-Team, Wikimedia-Minify

Thu, Dec 19

Jdforrester-WMF removed a subtask for T277675: Add native support for ES2016-ES2020 or higher versions to the minifier: T382291: ES7 class properties minification bug.
Thu, Dec 19, 6:23 PM · MediaWiki-Platform-Team, Wikimedia-Minify, JavaScript, MediaWiki-ResourceLoader
Jdforrester-WMF removed a parent task for T382291: ES7 class properties minification bug: T277675: Add native support for ES2016-ES2020 or higher versions to the minifier.
Thu, Dec 19, 6:23 PM · MediaWiki-Platform-Team, Wikimedia-Minify

Tue, Dec 17

Novem_Linguae added a comment to T382291: ES7 class properties minification bug.

Hmm. The list of features by JS version I was consulting had class properties as part of ES7. I guess it was inaccurate though. I'll try switching to this reference. Thanks for catching.

Tue, Dec 17, 9:22 PM · MediaWiki-Platform-Team, Wikimedia-Minify
Bugreporter merged T382291: ES7 class properties minification bug into T317502: Support minification of ES2022 Class fields syntax.
Tue, Dec 17, 4:58 PM · MediaWiki-Platform-Team (Radar), patch-welcome, Wikimedia-Minify
Bugreporter merged task T382291: ES7 class properties minification bug into T317502: Support minification of ES2022 Class fields syntax.
Tue, Dec 17, 4:58 PM · MediaWiki-Platform-Team, Wikimedia-Minify
SD0001 removed a parent task for T382291: ES7 class properties minification bug: T381537: Raise Grade A JavaScript requirement from ES6 (2015) to ES7 (2016).
Tue, Dec 17, 4:32 PM · MediaWiki-Platform-Team, Wikimedia-Minify
SD0001 added a comment to T382291: ES7 class properties minification bug.

Class properties are from ES2022.

Tue, Dec 17, 4:32 PM · MediaWiki-Platform-Team, Wikimedia-Minify
SD0001 added a subtask for T277675: Add native support for ES2016-ES2020 or higher versions to the minifier: T382291: ES7 class properties minification bug.
Tue, Dec 17, 4:27 PM · MediaWiki-Platform-Team, Wikimedia-Minify, JavaScript, MediaWiki-ResourceLoader
SD0001 added a parent task for T382291: ES7 class properties minification bug: T277675: Add native support for ES2016-ES2020 or higher versions to the minifier.
Tue, Dec 17, 4:27 PM · MediaWiki-Platform-Team, Wikimedia-Minify
Novem_Linguae added a comment to T382291: ES7 class properties minification bug.

Unit test I started writing that ended up catching this. A slimmed down version can be included in the patch if it's helpful.

Tue, Dec 17, 12:36 AM · MediaWiki-Platform-Team, Wikimedia-Minify
Novem_Linguae added a parent task for T382291: ES7 class properties minification bug: T381537: Raise Grade A JavaScript requirement from ES6 (2015) to ES7 (2016).
Tue, Dec 17, 12:33 AM · MediaWiki-Platform-Team, Wikimedia-Minify
Novem_Linguae created T382291: ES7 class properties minification bug.
Tue, Dec 17, 12:32 AM · MediaWiki-Platform-Team, Wikimedia-Minify

Wed, Dec 11

Novem_Linguae updated the task description for T277675: Add native support for ES2016-ES2020 or higher versions to the minifier.
Wed, Dec 11, 4:05 AM · MediaWiki-Platform-Team, Wikimedia-Minify, JavaScript, MediaWiki-ResourceLoader
Novem_Linguae renamed T277675: Add native support for ES2016-ES2020 or higher versions to the minifier from Add native support for ES2016-ES2020 or higher versions to Add native support for ES2016-ES2020 or higher versions to the minifier.
Wed, Dec 11, 3:57 AM · MediaWiki-Platform-Team, Wikimedia-Minify, JavaScript, MediaWiki-ResourceLoader

Thu, Dec 5

Bugreporter added a comment to T277675: Add native support for ES2016-ES2020 or higher versions to the minifier.

After T368204: Consider removing new-line insertion from JavaScriptMinifier Minifier adds no new lines. So this one T277675#10046960 should no longer causes problems. We should focus on when new lines are required but ignored by Minifier.

Thu, Dec 5, 12:39 AM · MediaWiki-Platform-Team, Wikimedia-Minify, JavaScript, MediaWiki-ResourceLoader

Wed, Dec 4

Diskdance created T381477: Mangle/obfuscate identifiers for smaller bundles.
Wed, Dec 4, 10:39 AM · MediaWiki-Platform-Team, Wikimedia-Minify

Nov 18 2024

Hokwelum closed T368204: Consider removing new-line insertion from JavaScriptMinifier as Resolved.
Nov 18 2024, 6:16 PM · MediaWiki-Platform-Team, Wikimedia-Minify

Nov 17 2024

Maintenance_bot removed a project from T368204: Consider removing new-line insertion from JavaScriptMinifier: Patch-For-Review.
Nov 17 2024, 4:30 PM · MediaWiki-Platform-Team, Wikimedia-Minify
gerritbot added a comment to T368204: Consider removing new-line insertion from JavaScriptMinifier.

Change #1084719 merged by jenkins-bot:

[mediawiki/libs/Minify@master] JavaScriptMinifier: Remove new line insertion

https://gerrit.wikimedia.org/r/1084719

Nov 17 2024, 3:37 PM · MediaWiki-Platform-Team, Wikimedia-Minify

Nov 7 2024

gerritbot added a project to T368204: Consider removing new-line insertion from JavaScriptMinifier: Patch-For-Review.
Nov 7 2024, 5:09 PM · MediaWiki-Platform-Team, Wikimedia-Minify
gerritbot added a comment to T368204: Consider removing new-line insertion from JavaScriptMinifier.

Change #1084719 had a related patch set uploaded (by Hokwelum; author: Hokwelum):

[mediawiki/libs/Minify@master] remove new line insertion

https://gerrit.wikimedia.org/r/1084719

Nov 7 2024, 5:09 PM · MediaWiki-Platform-Team, Wikimedia-Minify

Oct 29 2024

Hokwelum changed the status of T368204: Consider removing new-line insertion from JavaScriptMinifier from Open to In Progress.
Oct 29 2024, 11:26 AM · MediaWiki-Platform-Team, Wikimedia-Minify

Oct 28 2024

Krinkle closed T373990: ResourceLoader ignores @nomin pragma for extension provided javascript as Resolved.
Oct 28 2024, 8:37 PM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader
Maintenance_bot removed a project from T373990: ResourceLoader ignores @nomin pragma for extension provided javascript: Patch-For-Review.
Oct 28 2024, 7:30 PM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader
ReleaseTaggerBot added a project to T373990: ResourceLoader ignores @nomin pragma for extension provided javascript: MW-1.44-notes (1.44.0-wmf.1; 2024-10-29).
Oct 28 2024, 7:00 PM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader
gerritbot added a comment to T373990: ResourceLoader ignores @nomin pragma for extension provided javascript.

Change #1080851 merged by jenkins-bot:

[mediawiki/core@master] ResourceLoader: Restore `@nomin` for JavaScript files

https://gerrit.wikimedia.org/r/1080851

Oct 28 2024, 6:57 PM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader

Oct 25 2024

Krinkle edited Description on Wikimedia-Minify.
Oct 25 2024, 3:13 PM
Maintenance_bot removed a project from T371938: yield is not handled correctly when used in an assignment expression: Patch-For-Review.
Oct 25 2024, 2:30 AM · MW-1.43-notes (1.43.0-wmf.21; 2024-09-03), MediaWiki-Platform-Team, Wikimedia-Minify
Od1n added a comment to T277675: Add native support for ES2016-ES2020 or higher versions to the minifier.

T371938 (gerrit 1060177), that you created at the same time, adds (in addition to the previously existing PAREN_EXPRESSION_OP_NO_NL state) EXPRESSION_TERNARY_NO_NL, PAREN_EXPRESSION_NO_NL and PROPERTY_EXPRESSION_NO_NL states. These might help to add support for the remaining async functions.

Oct 25 2024, 2:09 AM · MediaWiki-Platform-Team, Wikimedia-Minify, JavaScript, MediaWiki-ResourceLoader

Oct 22 2024

Krinkle assigned T368204: Consider removing new-line insertion from JavaScriptMinifier to Hokwelum.
Oct 22 2024, 7:16 PM · MediaWiki-Platform-Team, Wikimedia-Minify

Oct 21 2024

Krinkle moved T373990: ResourceLoader ignores @nomin pragma for extension provided javascript from Current Sprint to Blocked/waiting on the MediaWiki-Platform-Team board.
Oct 21 2024, 2:11 PM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader

Oct 17 2024

gerritbot added a project to T373990: ResourceLoader ignores @nomin pragma for extension provided javascript: Patch-For-Review.
Oct 17 2024, 2:09 AM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader
gerritbot added a comment to T373990: ResourceLoader ignores @nomin pragma for extension provided javascript.

Change #1080851 had a related patch set uploaded (by Krinkle; author: Krinkle):

[mediawiki/core@master] ResourceLoader: Restore `@nomin` for JavaScript files

https://gerrit.wikimedia.org/r/1080851

Oct 17 2024, 2:09 AM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader

Oct 16 2024

Krinkle updated the task description for T277675: Add native support for ES2016-ES2020 or higher versions to the minifier.
Oct 16 2024, 7:43 PM · MediaWiki-Platform-Team, Wikimedia-Minify, JavaScript, MediaWiki-ResourceLoader
Krinkle added a comment to T373990: ResourceLoader ignores @nomin pragma for extension provided javascript.

Thanks @Trancesilken, that helps.

Oct 16 2024, 7:42 PM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader

Sep 23 2024

Trancesilken added a comment to T373990: ResourceLoader ignores @nomin pragma for extension provided javascript.

@Krinkle How about the "test case"? Does it fit your needs?

Sep 23 2024, 4:32 PM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader

Sep 15 2024

Trancesilken added a comment to T373990: ResourceLoader ignores @nomin pragma for extension provided javascript.

I have created a test case in form of a composer.json and package.json.

Sep 15 2024, 11:14 AM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader

Sep 13 2024

Krinkle added a comment to T373990: ResourceLoader ignores @nomin pragma for extension provided javascript.

This is a regression that appearss to have slipped in during development for T47514: ResourceLoader: Implement support for Source Maps.

Sep 13 2024, 11:06 PM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader
Krinkle updated the task description for T373990: ResourceLoader ignores @nomin pragma for extension provided javascript.
Sep 13 2024, 10:58 PM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader

Sep 10 2024

Krinkle triaged T373990: ResourceLoader ignores @nomin pragma for extension provided javascript as Medium priority.
Sep 10 2024, 7:00 AM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader

Sep 9 2024

pmiazga assigned T373990: ResourceLoader ignores @nomin pragma for extension provided javascript to Krinkle.
Sep 9 2024, 2:54 PM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader

Sep 5 2024

Trancesilken updated the task description for T373990: ResourceLoader ignores @nomin pragma for extension provided javascript.
Sep 5 2024, 5:35 PM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader
pmiazga updated subscribers of T373990: ResourceLoader ignores @nomin pragma for extension provided javascript.

@Krinkle do you have any thoughts on this one ?

Sep 5 2024, 4:54 PM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader
Trancesilken added a comment to T373990: ResourceLoader ignores @nomin pragma for extension provided javascript.

How about moving the handling of the @nomin pragma into the minifier itself, i.e. into the minify method?

Sep 5 2024, 11:10 AM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader

Sep 4 2024

Trancesilken created T373990: ResourceLoader ignores @nomin pragma for extension provided javascript.
Sep 4 2024, 10:59 AM · MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), MediaWiki-Platform-Team, Wikimedia-Minify, MediaWiki-ResourceLoader

Aug 29 2024

Krinkle closed T371938: yield is not handled correctly when used in an assignment expression as Resolved.
Aug 29 2024, 2:20 PM · MW-1.43-notes (1.43.0-wmf.21; 2024-09-03), MediaWiki-Platform-Team, Wikimedia-Minify
ReleaseTaggerBot added a project to T371938: yield is not handled correctly when used in an assignment expression: MW-1.43-notes (1.43.0-wmf.21; 2024-09-03).
Aug 29 2024, 9:00 AM · MW-1.43-notes (1.43.0-wmf.21; 2024-09-03), MediaWiki-Platform-Team, Wikimedia-Minify
gerritbot added a comment to T371938: yield is not handled correctly when used in an assignment expression.

Change #1065269 merged by jenkins-bot:

[mediawiki/core@master] ResourceLoader: Update wikimedia/minify to 2.8.0

https://gerrit.wikimedia.org/r/1065269

Aug 29 2024, 8:55 AM · MW-1.43-notes (1.43.0-wmf.21; 2024-09-03), MediaWiki-Platform-Team, Wikimedia-Minify
gerritbot added a comment to T371938: yield is not handled correctly when used in an assignment expression.

Change #1065268 merged by jenkins-bot:

[mediawiki/vendor@master] Update wikimedia/minify to 2.8.0

https://gerrit.wikimedia.org/r/1065268

Aug 29 2024, 8:03 AM · MW-1.43-notes (1.43.0-wmf.21; 2024-09-03), MediaWiki-Platform-Team, Wikimedia-Minify