[Pkg-javascript-commits] [Git][js-team/node-safe-buffer][master] 7 commits: Declare compliance with policy 4.7.4

Yadd (@yadd) gitlab at salsa.debian.org
Mon Jun 22 15:52:34 BST 2026



Yadd pushed to branch master at Debian JavaScript Maintainers / node-safe-buffer


Commits:
df8e39e4 by Xavier Guimard at 2026-06-22T00:52:30+02:00
Declare compliance with policy 4.7.4

- - - - -
6b20ffd7 by Xavier Guimard at 2026-06-22T00:52:30+02:00
Drop "Rules-Requires-Root: no"

- - - - -
6ed6e43d by Xavier Guimard at 2026-06-22T00:52:30+02:00
Drop "Priority: optional"

- - - - -
c38809f2 by Xavier Guimard at 2026-06-22T00:52:37+02:00
debian/watch version 5

- - - - -
da44de96 by Xavier Guimard at 2026-06-22T00:52:37+02:00
Optimize debian/watch

Gbp-Dch: ignore

- - - - -
7288dc41 by Xavier Guimard at 2026-06-22T11:06:32+02:00
Adapt to tap 21

* Link tap into node_modules (debian/nodejs/extlinks)
* Disable coverage in the test run
* Port removed tap assertions (is/isa/isNot/isDeeply)

- - - - -
fce2d7d9 by Xavier Guimard at 2026-06-22T11:09:10+02:00
releasing package node-safe-buffer version 5.2.1+~cs2.1.2-4

- - - - -


7 changed files:

- debian/changelog
- debian/control
- + debian/nodejs/extlinks
- debian/patches/series
- + debian/patches/tap21-asserts.patch
- debian/tests/pkg-js/test
- debian/watch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,14 @@
+node-safe-buffer (5.2.1+~cs2.1.2-4) unstable; urgency=medium
+
+  * Team upload
+  * Declare compliance with policy 4.7.4
+  * Drop "Rules-Requires-Root: no"
+  * Drop "Priority: optional"
+  * debian/watch version 5
+  * Adapt to tap 21
+
+ -- Xavier Guimard <yadd at debian.org>  Mon, 22 Jun 2026 11:09:10 +0200
+
 node-safe-buffer (5.2.1+~cs2.1.2-3) unstable; urgency=medium
 
   * Team upload


=====================================
debian/control
=====================================
@@ -1,18 +1,16 @@
 Source: node-safe-buffer
 Section: javascript
-Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Shirish Togarla <shirishtogarla533 at gmail.com>
 Build-Depends: debhelper-compat (= 13)
  , dh-sequence-nodejs
  , node-tap (>= 10) <!nocheck>
  , node-tape <!nocheck>
-Standards-Version: 4.6.0
+Standards-Version: 4.7.4
 Vcs-Browser: https://salsa.debian.org/js-team/node-safe-buffer
 Vcs-Git: https://salsa.debian.org/js-team/node-safe-buffer.git
 Homepage: https://github.com/feross/safe-buffer
 Testsuite: autopkgtest-pkg-nodejs
-Rules-Requires-Root: no
 
 Package: node-safe-buffer
 Architecture: all


=====================================
debian/nodejs/extlinks
=====================================
@@ -0,0 +1 @@
+tap


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 fix-buffer-usage.diff
 fix-test-for-nodejs-14.patch
+tap21-asserts.patch


=====================================
debian/patches/tap21-asserts.patch
=====================================
@@ -0,0 +1,204 @@
+Description: port removed tap assertions (is/isa/isNot/isDeeply) for tap 21
+Author: Xavier Guimard <yadd at debian.org>
+Forwarded: not-needed
+Last-Update: 2026-06-22
+--- a/safer-buffer/tests.js
++++ b/safer-buffer/tests.js
+@@ -14,8 +14,8 @@
+ 
+ test('Default is Safer', function (t) {
+   t.equal(index, safer)
+-  t.notEqual(safer, dangerous)
+-  t.notEqual(index, dangerous)
++  t.not(safer, dangerous)
++  t.not(index, dangerous)
+   t.end()
+ })
+ 
+@@ -69,7 +69,7 @@
+   ['poolSize', 'isBuffer', 'concat', 'byteLength'].forEach(function (method) {
+     [index, safer, dangerous].forEach(function (impl) {
+       t.equal(impl.Buffer[method], buffer.Buffer[method], method)
+-      t.notEqual(typeof impl.Buffer[method], 'undefined', method)
++      t.not(typeof impl.Buffer[method], 'undefined', method)
+     })
+   })
+   t.end()
+@@ -80,7 +80,7 @@
+     if (method === 'SlowBuffer' || method === 'Buffer') return;
+     [index, safer, dangerous].forEach(function (impl) {
+       t.equal(impl[method], buffer[method], method)
+-      t.notEqual(typeof impl[method], 'undefined', method)
++      t.not(typeof impl[method], 'undefined', method)
+     })
+   })
+   t.end()
+@@ -91,7 +91,7 @@
+     if (method === 'allocUnsafe' || method === 'allocUnsafeSlow') return;
+     [index, safer, dangerous].forEach(function (impl) {
+       t.equal(impl.Buffer[method], buffer.Buffer[method], method)
+-      t.notEqual(typeof impl.Buffer[method], 'undefined', method)
++      t.not(typeof impl.Buffer[method], 'undefined', method)
+     })
+   })
+   t.end()
+@@ -100,7 +100,7 @@
+ test('.prototype property of Buffer is inherited', function (t) {
+   [index, safer, dangerous].forEach(function (impl) {
+     t.equal(impl.Buffer.prototype, buffer.Buffer.prototype, 'prototype')
+-    t.notEqual(typeof impl.Buffer.prototype, 'undefined', 'prototype')
++    t.not(typeof impl.Buffer.prototype, 'undefined', 'prototype')
+   })
+   t.end()
+ })
+@@ -111,14 +111,14 @@
+     [index, safer, dangerous].forEach(function (impl) {
+       t.equal(impl[method], safer[method], method)
+       if (method !== 'kStringMaxLength') {
+-        t.notEqual(typeof impl[method], 'undefined', method)
++        t.not(typeof impl[method], 'undefined', method)
+       }
+     })
+   })
+   Object.keys(safer.Buffer).forEach(function (method) {
+     [index, safer, dangerous].forEach(function (impl) {
+       t.equal(impl.Buffer[method], safer.Buffer[method], method)
+-      t.notEqual(typeof impl.Buffer[method], 'undefined', method)
++      t.not(typeof impl.Buffer[method], 'undefined', method)
+     })
+   })
+   t.end()
+@@ -130,7 +130,7 @@
+     [index, safer, dangerous].forEach(function (impl) {
+       t.equal(impl[method], dangerous[method], method)
+       if (method !== 'kStringMaxLength') {
+-        t.notEqual(typeof impl[method], 'undefined', method)
++        t.not(typeof impl[method], 'undefined', method)
+       }
+     })
+   })
+@@ -138,7 +138,7 @@
+     if (method === 'allocUnsafe' || method === 'allocUnsafeSlow') return;
+     [index, safer, dangerous].forEach(function (impl) {
+       t.equal(impl.Buffer[method], dangerous.Buffer[method], method)
+-      t.notEqual(typeof impl.Buffer[method], 'undefined', method)
++      t.not(typeof impl.Buffer[method], 'undefined', method)
+     })
+   })
+   t.end()
+@@ -362,45 +362,45 @@
+     }
+   }
+   t.ok(ok)
+-  t.deepEqual(index.Buffer.alloc(9, 'a'), index.Buffer.alloc(9, 97))
+-  t.notDeepEqual(index.Buffer.alloc(9, 'a'), index.Buffer.alloc(9, 98))
++  t.same(index.Buffer.alloc(9, 'a'), index.Buffer.alloc(9, 97))
++  t.notSame(index.Buffer.alloc(9, 'a'), index.Buffer.alloc(9, 98))
+ 
+   var tmp = new buffer.Buffer(2)
+   tmp.fill('ok')
+   if (tmp[1] === tmp[0]) {
+     // Outdated Node.js
+-    t.deepEqual(index.Buffer.alloc(5, 'ok'), index.Buffer.from('ooooo'))
++    t.same(index.Buffer.alloc(5, 'ok'), index.Buffer.from('ooooo'))
+   } else {
+-    t.deepEqual(index.Buffer.alloc(5, 'ok'), index.Buffer.from('okoko'))
++    t.same(index.Buffer.alloc(5, 'ok'), index.Buffer.from('okoko'))
+   }
+-  t.notDeepEqual(index.Buffer.alloc(5, 'ok'), index.Buffer.from('kokok'))
++  t.notSame(index.Buffer.alloc(5, 'ok'), index.Buffer.from('kokok'))
+ 
+   t.end()
+ })
+ 
+ test('safer.Buffer.from returns results same as Buffer constructor', function (t) {
+   [index, safer, dangerous].forEach(function (impl) {
+-    t.deepEqual(impl.Buffer.from(''), new buffer.Buffer(''))
+-    t.deepEqual(impl.Buffer.from('string'), new buffer.Buffer('string'))
+-    t.deepEqual(impl.Buffer.from('string', 'utf-8'), new buffer.Buffer('string', 'utf-8'))
+-    t.deepEqual(impl.Buffer.from('b25ldHdvdGhyZWU=', 'base64'), new buffer.Buffer('b25ldHdvdGhyZWU=', 'base64'))
+-    t.deepEqual(impl.Buffer.from([0, 42, 3]), new buffer.Buffer([0, 42, 3]))
+-    t.deepEqual(impl.Buffer.from(new Uint8Array([0, 42, 3])), new buffer.Buffer(new Uint8Array([0, 42, 3])))
+-    t.deepEqual(impl.Buffer.from([]), new buffer.Buffer([]))
++    t.same(impl.Buffer.from(''), new buffer.Buffer(''))
++    t.same(impl.Buffer.from('string'), new buffer.Buffer('string'))
++    t.same(impl.Buffer.from('string', 'utf-8'), new buffer.Buffer('string', 'utf-8'))
++    t.same(impl.Buffer.from('b25ldHdvdGhyZWU=', 'base64'), new buffer.Buffer('b25ldHdvdGhyZWU=', 'base64'))
++    t.same(impl.Buffer.from([0, 42, 3]), new buffer.Buffer([0, 42, 3]))
++    t.same(impl.Buffer.from(new Uint8Array([0, 42, 3])), new buffer.Buffer(new Uint8Array([0, 42, 3])))
++    t.same(impl.Buffer.from([]), new buffer.Buffer([]))
+   })
+   t.end()
+ })
+ 
+ test('safer.Buffer.from returns consistent results', function (t) {
+   [index, safer, dangerous].forEach(function (impl) {
+-    t.deepEqual(impl.Buffer.from(''), impl.Buffer.alloc(0))
+-    t.deepEqual(impl.Buffer.from([]), impl.Buffer.alloc(0))
+-    t.deepEqual(impl.Buffer.from(new Uint8Array([])), impl.Buffer.alloc(0))
+-    t.deepEqual(impl.Buffer.from('string', 'utf-8'), impl.Buffer.from('string'))
+-    t.deepEqual(impl.Buffer.from('string'), impl.Buffer.from([115, 116, 114, 105, 110, 103]))
+-    t.deepEqual(impl.Buffer.from('string'), impl.Buffer.from(impl.Buffer.from('string')))
+-    t.deepEqual(impl.Buffer.from('b25ldHdvdGhyZWU=', 'base64'), impl.Buffer.from('onetwothree'))
+-    t.notDeepEqual(impl.Buffer.from('b25ldHdvdGhyZWU='), impl.Buffer.from('onetwothree'))
++    t.same(impl.Buffer.from(''), impl.Buffer.alloc(0))
++    t.same(impl.Buffer.from([]), impl.Buffer.alloc(0))
++    t.same(impl.Buffer.from(new Uint8Array([])), impl.Buffer.alloc(0))
++    t.same(impl.Buffer.from('string', 'utf-8'), impl.Buffer.from('string'))
++    t.same(impl.Buffer.from('string'), impl.Buffer.from([115, 116, 114, 105, 110, 103]))
++    t.same(impl.Buffer.from('string'), impl.Buffer.from(impl.Buffer.from('string')))
++    t.same(impl.Buffer.from('b25ldHdvdGhyZWU=', 'base64'), impl.Buffer.from('onetwothree'))
++    t.notSame(impl.Buffer.from('b25ldHdvdGhyZWU='), impl.Buffer.from('onetwothree'))
+   })
+   t.end()
+ })
+--- a/test/basic.js
++++ b/test/basic.js
+@@ -4,11 +4,11 @@
+ var SafeBuffer = require('../').Buffer
+ 
+ test('new SafeBuffer(value) works just like Buffer', function (t) {
+-  t.deepEqual(new SafeBuffer('hey'), new Buffer.from('hey'))
+-  t.deepEqual(new SafeBuffer('hey', 'utf8'), new Buffer.from('hey', 'utf8'))
+-  t.deepEqual(new SafeBuffer('686579', 'hex'), new Buffer.from('686579', 'hex'))
+-  t.deepEqual(new SafeBuffer([1, 2, 3]), new Buffer.from([1, 2, 3]))
+-  t.deepEqual(new SafeBuffer(new Uint8Array([1, 2, 3])), new Buffer.from(new Uint8Array([1, 2, 3])))
++  t.same(new SafeBuffer('hey'), new Buffer.from('hey'))
++  t.same(new SafeBuffer('hey', 'utf8'), new Buffer.from('hey', 'utf8'))
++  t.same(new SafeBuffer('686579', 'hex'), new Buffer.from('686579', 'hex'))
++  t.same(new SafeBuffer([1, 2, 3]), new Buffer.from([1, 2, 3]))
++  t.same(new SafeBuffer(new Uint8Array([1, 2, 3])), new Buffer.from(new Uint8Array([1, 2, 3])))
+ 
+   t.equal(typeof SafeBuffer.isBuffer, 'function')
+   t.equal(SafeBuffer.isBuffer(new SafeBuffer('hey')), true)
+@@ -19,11 +19,11 @@
+ })
+ 
+ test('SafeBuffer.from(value) converts to a Buffer', function (t) {
+-  t.deepEqual(SafeBuffer.from('hey'), new Buffer.from('hey'))
+-  t.deepEqual(SafeBuffer.from('hey', 'utf8'), new Buffer.from('hey', 'utf8'))
+-  t.deepEqual(SafeBuffer.from('686579', 'hex'), new Buffer.from('686579', 'hex'))
+-  t.deepEqual(SafeBuffer.from([1, 2, 3]), new Buffer.from([1, 2, 3]))
+-  t.deepEqual(SafeBuffer.from(new Uint8Array([1, 2, 3])), new Buffer.from(new Uint8Array([1, 2, 3])))
++  t.same(SafeBuffer.from('hey'), new Buffer.from('hey'))
++  t.same(SafeBuffer.from('hey', 'utf8'), new Buffer.from('hey', 'utf8'))
++  t.same(SafeBuffer.from('686579', 'hex'), new Buffer.from('686579', 'hex'))
++  t.same(SafeBuffer.from([1, 2, 3]), new Buffer.from([1, 2, 3]))
++  t.same(SafeBuffer.from(new Uint8Array([1, 2, 3])), new Buffer.from(new Uint8Array([1, 2, 3])))
+ 
+   t.end()
+ })
+@@ -32,11 +32,11 @@
+   for (var i = 0; i < 10; i++) {
+     var expected1 = new Buffer.alloc(1000)
+     expected1.fill(0)
+-    t.deepEqual(SafeBuffer.alloc(1000), expected1)
++    t.same(SafeBuffer.alloc(1000), expected1)
+ 
+     var expected2 = new Buffer.alloc(1000 * 1000)
+     expected2.fill(0)
+-    t.deepEqual(SafeBuffer.alloc(1000 * 1000), expected2)
++    t.same(SafeBuffer.alloc(1000 * 1000), expected2)
+   }
+   t.end()
+ })


=====================================
debian/tests/pkg-js/test
=====================================
@@ -1 +1 @@
-tap -R spec --no-cov test/*.js
+tap --disable-coverage -R tap test/*.js


=====================================
debian/watch
=====================================
@@ -1,12 +1,18 @@
-version=4
-opts=\
-dversionmangle=s/@DEB_EXT@//,repacksuffix=+ds\
-filenamemangle=s%(?:.*?/)?v?(@ANY_VERSION@@ARCHIVE_EXT@)%@PACKAGE at -$1/ \
- https://github.com/feross/safe-buffer/tags (?:.*?/)?v?@ANY_VERSION@@ARCHIVE_EXT@ \
- group
+Version: 5
 
-opts="pgpmode=none,ctype=nodejs,component=safer-buffer,\
-      dversionmangle=s/@DEB_EXT@//,repacksuffix=+ds,\
-      filenamemangle=s%(?:.*?/)?v?(@ANY_VERSION@@ARCHIVE_EXT@)$%node-safer-buffer-$1%" \
-	     https://github.com/ChALkeR/safer-buffer/tags \
-	     (?:.*?/?)?v?@ANY_VERSION@@ARCHIVE_EXT@ checksum
+Template: Github
+Owner: feross
+Project: safe-buffer
+Dversionmangle: s/@DEB_EXT@//
+Repacksuffix: +dsfilenamemangle=s%(?:.*?/)?v?(@ANY_VERSION@@ARCHIVE_EXT@)%@PACKAGE at -$1/
+Version-Schema: group
+
+Component: safer-buffer
+Template: Github
+Ctype: nodejs
+Owner: ChALkeR
+Project: safer-buffer
+Dversionmangle: s/@DEB_EXT@//
+Pgpmode: none
+Repacksuffix: +ds
+Version-Schema: checksum



View it on GitLab: https://salsa.debian.org/js-team/node-safe-buffer/-/compare/d1821745b44f73d39e67ceaf1f783a64b807ed21...fce2d7d9385c543cbc8ca4f47e283b148d777c29

-- 
View it on GitLab: https://salsa.debian.org/js-team/node-safe-buffer/-/compare/d1821745b44f73d39e67ceaf1f783a64b807ed21...fce2d7d9385c543cbc8ca4f47e283b148d777c29
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-commits/attachments/20260622/7b440bc2/attachment-0001.htm>


More information about the Pkg-javascript-commits mailing list