Your message dated Mon, 04 Oct 2021 19:49:21 +0000
with message-id <[email protected]>
and subject line Bug#995702: fixed in node-caniuse-lite 1.0.30001264+dfsg-1
has caused the Debian Bug report #995702,
regarding Broken exports in index.js
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.)


-- 
995702: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995702
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: node-autoprefixer
Version: 10.3.1.0+dfsg1+~cs14.6.19-1
Severity: grave
Justification: renders package unusable

autoprefixer currently does not work because it handles the agents
imported from caniuse-lite wrongly:


  /usr/share/nodejs/autoprefixer/lib/browsers.js:64
      let prefix = data.prefix_exceptions && data.prefix_exceptions[version]
                      ^

  TypeError: Cannot read property 'prefix_exceptions' of undefined
      at Browsers.prefix (/usr/share/nodejs/autoprefixer/lib/browsers.js:64:23)
      at /usr/share/nodejs/autoprefixer/lib/prefixes.js:193:54
      at Array.map (<anonymous>)
      at Prefixes.select (/usr/share/nodejs/autoprefixer/lib/prefixes.js:193:31)
      at new Prefixes (/usr/share/nodejs/autoprefixer/lib/prefixes.js:133:53)
      at loadPrefixes 
(/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:111:22)
      at Object.prepare 
(/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:121:22)
      at /usr/share/nodejs/postcss/lib/lazy-result.js:133:39
      at Array.map (<anonymous>)
      at new LazyResult (/usr/share/nodejs/postcss/lib/lazy-result.js:131:43)


The problem comes from /usr/share/nodejs/autoprefixer/lib/autoprefixer.js:

  let { agents } = require('caniuse-lite')

The object loaded here contains another object called agents. For me, changing 
line 10
fixes the issue:

  - let autoprefixerData = { browsers: agents, prefixes: dataPrefixes }
  + let autoprefixerData = { browsers: agents.agents, prefixes: dataPrefixes }

I have no idea how this problem came to be, and how to properly fix it. Might be
an incompatibility between the versions of autoprefixer and canisue-lite?

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8), 
LANGUAGE=nb_NO:nb:no_NO:no:nn_NO:nn:da:sv
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages node-autoprefixer depends on:
ii  node-browserslist              4.17.0+~cs5.6.76-1
ii  node-caniuse-lite              1.0.30001224+dfsg-2
ii  node-normalize-range           0.1.2-2
ii  node-postcss [node-colorette]  8.2.1+~cs5.3.23-8
ii  node-postcss-value-parser      4.1.0-2
ii  nodejs                         12.22.5~dfsg-5

node-autoprefixer recommends no packages.

node-autoprefixer suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: node-caniuse-lite
Source-Version: 1.0.30001264+dfsg-1
Done: Dominik George <[email protected]>

We believe that the bug you reported is fixed in the latest version of
node-caniuse-lite, 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.
Dominik George <[email protected]> (supplier of updated node-caniuse-lite 
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: Mon, 04 Oct 2021 15:45:12 +0200
Source: node-caniuse-lite
Architecture: source
Version: 1.0.30001264+dfsg-1
Distribution: unstable
Urgency: high
Maintainer: Debian Javascript Maintainers 
<[email protected]>
Changed-By: Dominik George <[email protected]>
Closes: 995702
Changes:
 node-caniuse-lite (1.0.30001264+dfsg-1) unstable; urgency=high
 .
   * Team upload.
   * Update GitHub URLs to new namespace browserslist.
   * New upstream version.
     + Fixes export breakage introduced in 1.0.30001224. (Closes: #995702)
   * Disable colors in build script due to missing build dependency.
   * Do not clean dist/ because new source tarball has code there.
   * Add lintian override for browserVersions.js.
Checksums-Sha1:
 b2591a3bf2a3a4923d654f18b344bcbc42642afd 1768 
node-caniuse-lite_1.0.30001264+dfsg-1.dsc
 309f5f05b3b65c13c7940f3a80ef1df02e50aa63 119248 
node-caniuse-lite_1.0.30001264+dfsg.orig.tar.xz
 c731f42c0768a07990e8995fefcd1a5fce681e8c 9180 
node-caniuse-lite_1.0.30001264+dfsg-1.debian.tar.xz
 ffabd3ac592bcbd0413f92cacf61d37cd01d4d47 15740 
node-caniuse-lite_1.0.30001264+dfsg-1_amd64.buildinfo
Checksums-Sha256:
 d28a0294e1539fc0554f6e9b245f452b2d77fe6321b1d442ad7bbe78cc162777 1768 
node-caniuse-lite_1.0.30001264+dfsg-1.dsc
 b01d8c7c9733790b1245703a03a4ad730fe93bf0e69bc7caa958482e8968e178 119248 
node-caniuse-lite_1.0.30001264+dfsg.orig.tar.xz
 80e50f153183d0dfcfdc955ce7d1ed03613e95ea56f622e1b23945cc56a17878 9180 
node-caniuse-lite_1.0.30001264+dfsg-1.debian.tar.xz
 e114d0d9d5e312cb6800f087038a6785ef80bd49f805c726ac7506e94687ac55 15740 
node-caniuse-lite_1.0.30001264+dfsg-1_amd64.buildinfo
Files:
 9c2d3140e46a272aeff76b4e4c68b8e0 1768 javascript optional 
node-caniuse-lite_1.0.30001264+dfsg-1.dsc
 d1c34b4e5bf338c610a12ae05f373cf8 119248 javascript optional 
node-caniuse-lite_1.0.30001264+dfsg.orig.tar.xz
 4cfad2c1d11bc4277bc11f848ed17ef8 9180 javascript optional 
node-caniuse-lite_1.0.30001264+dfsg-1.debian.tar.xz
 72dfd1b6ef2ed1bffc91a35ab6ddfb9e 15740 javascript optional 
node-caniuse-lite_1.0.30001264+dfsg-1_amd64.buildinfo

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

iKcEARYKAE8WIQSk6zxRYJYchegBkTEK5VTlRg4b3QUCYVtWNjEaaHR0cHM6Ly93
d3cuZG9taW5pay1nZW9yZ2UuZGUvZ3BnLXBvbGljeS50eHQuYXNjAAoJEArlVOVG
DhvdntcA/R/wBuF0GxPReOSzhCgmT9TrPXfIPQGvcsWsR8R//uUNAQDuQDtfsSb6
N0JqhJNyLFILeb0pHATpPZid5RfyQ4/PBw==
=U5cG
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to