Your message dated Wed, 26 Aug 2026 20:49:33 +0000
with message-id <[email protected]>
and subject line Bug#1144876: fixed in highlight.js 10.7.3+dfsg-6
has caused the Debian Bug report #1144876,
regarding highlight.js: Rollup change breaks hljs.registerLanguage calls
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1144876: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1144876
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: highlight.js
Version: 10.7.3+dfsg-1
Severity: grave
Justification: renders package unusable
Tags: patch
X-Debbugs-Cc: [email protected], [email protected]

Dear Maintainer,

Due to a breaking change in behavior from Rollup 2 to 3, IIFE regex replacement
for `hljs.registerLanguage` calls breaks.

Rollup 2, which this version of hljs targeted, generates this:

var dummyName = (function () { /* ... */ }());

which is replaced by hljs to:

hljs.registerLanguage('${language.name}', function () { /* ... */ }());

while Rollup 3 generates this:

var dummyName = (function () { /* ... */ })();

which is replaced by hljs to:

hljs.registerLanguage('${language.name}', function () { /* ... */ })();

You can see that while the previous replacement calls the function *inside*,
current replacement calls the "result" of the `hljs.registerLanguage` call.

The following patch fixes it by calling `hljs.registerLanguage` in a separate
statement.

Note, it's intended to be in the debian/patches series, not a debdiff.

--- a/tools/lib/language.js
+++ b/tools/lib/language.js
@@ -86,14 +86,14 @@

 async function compileLanguage (language, options) {
   const EXPORT_REGEX = /export default (.*);/;
-  const IIFE_HEADER_REGEX = /^(var dummyName = )?\(function \(\)/;
+  //const IIFE_HEADER_REGEX = /^(var dummyName = )?\(function \(\)/;
 
   // TODO: cant we use the source we already have?
   const input = { ...build_config.rollup.browser.input, input: language.path };
   const output = { ...build_config.rollup.browser.output,  name: `dummyName`, 
file: "out.js" };
   var data = await rollupCode(input, output)
 
-  data = data.replace(IIFE_HEADER_REGEX, 
`hljs.registerLanguage('${language.name}', function ()`)
+  data = `(function() {\n${data}\nhljs.registerLanguage('${language.name}', 
dummyName);\n})();` //data = data.replace(IIFE_HEADER_REGEX, 
`hljs.registerLanguage('${language.name}', function ()`)
 
   var original = data;
   language.module = data;

-- 
    ,Sdrager
Blair Noctis

🇵🇸

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: highlight.js
Source-Version: 10.7.3+dfsg-6
Done: Xavier Guimard <[email protected]>

We believe that the bug you reported is fixed in the latest version of
highlight.js, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Xavier Guimard <[email protected]> (supplier of updated highlight.js package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 26 Aug 2026 22:11:29 +0200
Source: highlight.js
Architecture: source
Version: 10.7.3+dfsg-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers 
<[email protected]>
Changed-By: Xavier Guimard <[email protected]>
Closes: 1144874 1144876
Changes:
 highlight.js (10.7.3+dfsg-6) unstable; urgency=medium
 .
   * Team upload
   * Fix deep-freeze-es6 build module: skip already frozen values
     (Closes: #1144874)
   * Fix language registration with rollup >= 3 (Closes: #1144876)
Checksums-Sha1: 
 f1e96de72ba95f83b03e1c791e0de9d4670695fc 2592 highlight.js_10.7.3+dfsg-6.dsc
 7747068160c11cff4ff03900219929c6efa879af 43632 
highlight.js_10.7.3+dfsg-6.debian.tar.xz
Checksums-Sha256: 
 ca2310b823246b1b6b998bf7934468ac0aa240c0b12da837b1f66fa11b36d6f3 2592 
highlight.js_10.7.3+dfsg-6.dsc
 4e0df470dca43dea18ef142ae4951293da441123241df0ba837745717f910577 43632 
highlight.js_10.7.3+dfsg-6.debian.tar.xz
Files: 
 144faff7cb66fccee7b1147bc69eabaa 2592 javascript optional 
highlight.js_10.7.3+dfsg-6.dsc
 afd8ad954cc592977ff8f2fffa8bebeb 43632 javascript optional 
highlight.js_10.7.3+dfsg-6.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmqPSPQACgkQ9tdMp8mZ
7umuuQ//eI6pYNFy+VYWGuUYXRmjRHqBtsXXDgtw80y2bINMFaetnbqcOnZByjtl
9EpEV5LAGD1JO5AreFC91cyd06RY8cunqV0xViGcojAMyR1/ck5HB2BxfGD7VDia
F97Gr0E4ycOpZwZ1rgXBu37gLUyviTM/BY+rd7w+Hml8n1anBokP7vU5TQDamNj0
Y752NFcliqqkY6XmnpwsXzaX/NwNOHWMCxFIQXJaxV5uKn2k9KFGNq9t86lpQPtA
lTgL2xxXMs8aMRPa+AXsCttPwStM8B3V0GgQA6hhKj+wn71pJT7x//RLJQZWHAK4
ZIeyfdyaWWNAsW5r9PJxKZMNk/r9ElU9EwE/6IuMQA7vKC71xxN76DeESvi1kMQS
PWcrEWAtxOd+B5Rinp21AepZPXj/jtN1n10tdf0HuQsrqRJU5HU57RSlf3Is3uWR
ZOTHSFwhQAhsiLCFnbpYvih89YQM2KiWZ/Nr34I0rqPq7SxlPhW4NTAJDBUhGL8F
45ecZ0Z1WoQ895LG9SnXvEv4W8FvQvg2npRu1gD9lYdTFLJBDiUv7LaSjmpzoTkJ
gmDZBQIk/1H5HASY1Zu/aowslfb7Cwwbog+K682vKvd3NY4cm0WP80xmEu2YRXFf
KWXyJX/9qojrQbW+Zo1KxLvwkGGeVp4O3pYsrYRM+YPnp1kFhx0=
=boHA
-----END PGP SIGNATURE-----

Attachment: pgpU4CdijDnxa.pgp
Description: PGP signature


--- End Message ---

Reply via email to