]> zoso.dev Git - buffer.git/log
buffer.git
13 months agoApply patches from #280 and #281 (#334)
Daniel Cousens [Sat, 14 Oct 2023 01:40:22 +0000 (12:40 +1100)]
Apply patches from #280 and #281 (#334)

Co-authored-by: Andreas Thomas <dev@chronark.com>
14 months agoFix fromHex invalid hex behavior (#303)
Jonathan Underwood [Wed, 11 Oct 2023 04:45:05 +0000 (21:45 -0700)]
Fix fromHex invalid hex behavior (#303)

Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com>
14 months agoadd missing Buffer constants (#312)
Patrick McAndrew [Sun, 8 Oct 2023 12:12:18 +0000 (13:12 +0100)]
add missing Buffer constants (#312)

14 months agoUpdates README.md with more inclusive language (#288)
Rachel Simone Weil [Sun, 8 Oct 2023 02:30:12 +0000 (21:30 -0500)]
Updates README.md with more inclusive language (#288)

This change replaces "a sanity check" with "an additional check."

Justification:

> The phrase sanity check is ableist, and unnecessarily references mental health in our code bases. It denotes that people with mental illnesses are inferior, wrong, or incorrect, and the phrase sanity continues to be used by employers and other individuals to discriminate against these people.

Via [Ableist language](https://gist.github.com/seanmhanson/fe370c2d8bd2b3228680e38899baf5cc#:~:text=The%20phrase%20sanity%20check%20is,to%20discriminate%20against%20these%20people.)

See also: [Google developer documentation style guide: Writing inclusive documentation](https://developers.google.com/style/inclusive-documentation)

14 months agoFix typo (#295)
Dominik Moritz [Sun, 8 Oct 2023 02:29:46 +0000 (22:29 -0400)]
Fix typo (#295)

14 months agoRedefined subarray in index.d.ts to return Buffer (#298)
Bradley Odell [Sun, 8 Oct 2023 02:29:34 +0000 (19:29 -0700)]
Redefined subarray in index.d.ts to return Buffer (#298)

14 months agoUpdate README notice about node.js compatibility (#327)
André Werlang [Sun, 8 Oct 2023 02:28:10 +0000 (23:28 -0300)]
Update README notice about node.js compatibility (#327)

14 months agoAdd node verisons 16, 18 and 20 (#331)
Daniel Cousens [Sun, 8 Oct 2023 02:27:44 +0000 (13:27 +1100)]
Add node verisons 16, 18 and 20 (#331)

3 years agoreadme
Feross Aboukhadijeh [Thu, 11 Feb 2021 18:10:47 +0000 (10:10 -0800)]
readme

3 years agoremove travis; add github actions
Feross Aboukhadijeh [Thu, 11 Feb 2021 03:36:01 +0000 (19:36 -0800)]
remove travis; add github actions

3 years agosmall perf improvement
Feross Aboukhadijeh [Thu, 11 Feb 2021 03:32:36 +0000 (19:32 -0800)]
small perf improvement

4 years agoupdate authors
Feross Aboukhadijeh [Mon, 23 Nov 2020 02:51:19 +0000 (16:51 -1000)]
update authors

4 years ago6.0.3
Feross Aboukhadijeh [Mon, 23 Nov 2020 02:51:19 +0000 (16:51 -1000)]
6.0.3

4 years agoMerge pull request #277 from martinheidegger/patch-1
Feross Aboukhadijeh [Mon, 23 Nov 2020 02:45:12 +0000 (03:45 +0100)]
Merge pull request #277 from martinheidegger/patch-1

Types: Using Uint8Array instead of Buffer

4 years agoTypes: Using Uint8Array instead of Buffer
Martin Heidegger [Sat, 21 Nov 2020 02:05:07 +0000 (11:05 +0900)]
Types: Using Uint8Array instead of Buffer

The API supports at various places to use Uint8Arrays to be used instead of Buffers. This PR loosens the type restrictions on a few instances where I noticed that an Uint8Array would suffice.

4 years agoupdate authors
Feross Aboukhadijeh [Mon, 9 Nov 2020 22:04:31 +0000 (12:04 -1000)]
update authors

4 years ago6.0.2
Feross Aboukhadijeh [Mon, 9 Nov 2020 22:04:31 +0000 (12:04 -1000)]
6.0.2

4 years agoMerge pull request #274 from deklanw/master
Feross Aboukhadijeh [Mon, 9 Nov 2020 20:54:14 +0000 (21:54 +0100)]
Merge pull request #274 from deklanw/master

4 years agoAdd BigInt operations to types
Deklan Webster [Thu, 5 Nov 2020 22:34:10 +0000 (17:34 -0500)]
Add BigInt operations to types

4 years agoupdate authors
Feross Aboukhadijeh [Wed, 4 Nov 2020 21:58:44 +0000 (11:58 -1000)]
update authors

4 years ago6.0.1
Feross Aboukhadijeh [Wed, 4 Nov 2020 21:58:43 +0000 (11:58 -1000)]
6.0.1

4 years agoavoid unnecessary buffer copy
Feross Aboukhadijeh [Wed, 4 Nov 2020 21:17:24 +0000 (11:17 -1000)]
avoid unnecessary buffer copy

4 years agostandard
Feross Aboukhadijeh [Wed, 4 Nov 2020 21:13:45 +0000 (11:13 -1000)]
standard

4 years agoMerge pull request #273 from jkkang-kosac/master
Feross Aboukhadijeh [Wed, 4 Nov 2020 21:13:58 +0000 (22:13 +0100)]
Merge pull request #273 from jkkang-kosac/master

add length check in Buffer.concat

4 years agoadd length check
jkkang [Wed, 4 Nov 2020 10:31:35 +0000 (19:31 +0900)]
add length check

4 years agoupdate authors
Feross Aboukhadijeh [Wed, 4 Nov 2020 09:28:12 +0000 (23:28 -1000)]
update authors

4 years ago6.0.0
Feross Aboukhadijeh [Wed, 4 Nov 2020 09:28:11 +0000 (23:28 -1000)]
6.0.0

4 years agotravis: fix configuration
Feross Aboukhadijeh [Wed, 4 Nov 2020 09:14:25 +0000 (23:14 -1000)]
travis: fix configuration

4 years agotemporarily disable missing safari 14 browser
Feross Aboukhadijeh [Wed, 4 Nov 2020 00:25:42 +0000 (14:25 -1000)]
temporarily disable missing safari 14 browser

4 years agoBREAKING: Drop IE11, Safari 9-10 support
Feross Aboukhadijeh [Wed, 4 Nov 2020 00:21:35 +0000 (14:21 -1000)]
BREAKING: Drop IE11, Safari 9-10 support

Since Buffer now supports the BigInt methods and the code for that uses the exponentiation operator, I'm going to drop support for IE11 and Safari 9-10.

Further changes I needed to make:

- Use consistent shifting to floor the offset numbers, like we do for other methods
- Remove all BigInt literals in favor of using a BigInt constructor – this fixes parse errors in older browsers like Safari 11
- Disable Node tests in Safari 11 and 12 since they use BigInt literal syntax

This commit contains fixes for PR #267

4 years agoMerge branch 'shuse2-rw-bigint'
Feross Aboukhadijeh [Wed, 4 Nov 2020 00:19:07 +0000 (14:19 -1000)]
Merge branch 'shuse2-rw-bigint'

4 years agohandle offset flooring consistently
Feross Aboukhadijeh [Tue, 3 Nov 2020 23:28:20 +0000 (13:28 -1000)]
handle offset flooring consistently

4 years agoMerge branch 'rw-bigint' of https://github.com/shuse2/buffer into shuse2-rw-bigint
Feross Aboukhadijeh [Tue, 3 Nov 2020 23:10:35 +0000 (13:10 -1000)]
Merge branch 'rw-bigint' of https://github.com/shuse2/buffer into shuse2-rw-bigint

4 years agostandard
Feross Aboukhadijeh [Thu, 29 Oct 2020 05:04:55 +0000 (19:04 -1000)]
standard

4 years agostandard
Feross Aboukhadijeh [Thu, 29 Oct 2020 03:38:37 +0000 (17:38 -1000)]
standard

4 years agoupdate authors
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:57:54 +0000 (11:57 -1000)]
update authors

4 years ago5.7.0
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:57:53 +0000 (11:57 -1000)]
5.7.0

4 years agoFixes for PR #253 to increase browser compat
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:51:43 +0000 (11:51 -1000)]
Fixes for PR #253 to increase browser compat

4 years agostandard
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:49:13 +0000 (11:49 -1000)]
standard

4 years agostandard
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:32:54 +0000 (11:32 -1000)]
standard

4 years agoMerge pull request #253 from koush/master
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:48:30 +0000 (22:48 +0100)]
Merge pull request #253 from koush/master

4 years agoMerge pull request #265 from seishun/remove-descending
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:39:36 +0000 (22:39 +0100)]
Merge pull request #265 from seishun/remove-descending

4 years agoMerge pull request #250 from roaringUnicorn/master
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:35:58 +0000 (22:35 +0100)]
Merge pull request #250 from roaringUnicorn/master

4 years agoMerge pull request #270 from mathmakgakpak/patch-1
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:33:31 +0000 (22:33 +0100)]
Merge pull request #270 from mathmakgakpak/patch-1

4 years agoMerge pull request #269 from peternewman/patch-1
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:33:18 +0000 (22:33 +0100)]
Merge pull request #269 from peternewman/patch-1

4 years agoupdate authors
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:30:50 +0000 (11:30 -1000)]
update authors

4 years ago5.6.2
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:30:50 +0000 (11:30 -1000)]
5.6.2

4 years agoMerge pull request #254 from ljharb/patch-1
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:30:49 +0000 (22:30 +0100)]
Merge pull request #254 from ljharb/patch-1

4 years agoDelete codespell.yml
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:26:29 +0000 (14:26 -0700)]
Delete codespell.yml

4 years agoMerge pull request #266 from gyzerok/patch-1
Feross Aboukhadijeh [Tue, 27 Oct 2020 21:24:09 +0000 (22:24 +0100)]
Merge pull request #266 from gyzerok/patch-1

remove redundant latin1Write function

4 years agoUpdate README.md
Feross Aboukhadijeh [Mon, 26 Oct 2020 20:58:03 +0000 (10:58 -1000)]
Update README.md

4 years agopackage metadata
Feross Aboukhadijeh [Fri, 23 Oct 2020 20:45:58 +0000 (10:45 -1000)]
package metadata

4 years ago5.6.1
Feross Aboukhadijeh [Fri, 23 Oct 2020 20:45:57 +0000 (10:45 -1000)]
5.6.1

4 years agofix tests – use same proto
Feross Aboukhadijeh [Fri, 23 Oct 2020 20:39:55 +0000 (10:39 -1000)]
fix tests – use same proto

4 years agothrough2 4
Feross Aboukhadijeh [Fri, 23 Oct 2020 20:37:19 +0000 (10:37 -1000)]
through2 4

4 years agotape 5
Feross Aboukhadijeh [Fri, 23 Oct 2020 20:36:11 +0000 (10:36 -1000)]
tape 5

4 years agobrowserify 17
Feross Aboukhadijeh [Fri, 23 Oct 2020 20:35:41 +0000 (10:35 -1000)]
browserify 17

4 years agobump deps
Feross Aboukhadijeh [Fri, 23 Oct 2020 20:35:30 +0000 (10:35 -1000)]
bump deps

4 years agostandard
Feross Aboukhadijeh [Wed, 21 Oct 2020 23:45:51 +0000 (13:45 -1000)]
standard

4 years agoadd aliases
mathmakgakpak [Sun, 18 Oct 2020 15:28:17 +0000 (17:28 +0200)]
add aliases

4 years agoFix another typo
Peter Newman [Fri, 7 Aug 2020 11:40:35 +0000 (12:40 +0100)]
Fix another typo

4 years agoFix another typo
Peter Newman [Fri, 7 Aug 2020 11:39:49 +0000 (12:39 +0100)]
Fix another typo

4 years agoFix some typos
Peter Newman [Fri, 7 Aug 2020 11:39:12 +0000 (12:39 +0100)]
Fix some typos

4 years agoAdd codespell action
Peter Newman [Fri, 7 Aug 2020 11:36:38 +0000 (12:36 +0100)]
Add codespell action

4 years ago:white_check_mark: Update assertion method to capture error
shuse2 [Sun, 21 Jun 2020 11:25:47 +0000 (13:25 +0200)]
:white_check_mark: Update assertion method to capture error

4 years agoremove redundant latin1Write function
Fedor Nezhivoi [Sat, 20 Jun 2020 01:25:32 +0000 (11:25 +1000)]
remove redundant latin1Write function

4 years agoRemove descending copy from end
Nikolai Vavilov [Fri, 1 May 2020 18:14:40 +0000 (21:14 +0300)]
Remove descending copy from end

Uint8Array.prototype.set handles overlapping ranges on its own.

4 years ago5.6.0
Feross Aboukhadijeh [Wed, 15 Apr 2020 00:02:19 +0000 (17:02 -0700)]
5.6.0

4 years agoMerge pull request #263 from feross/remove-species
Feross Aboukhadijeh [Tue, 14 Apr 2020 23:54:17 +0000 (16:54 -0700)]
Merge pull request #263 from feross/remove-species

Remove unneeded Symbol.species code

4 years agoRemove unneeded Symbol.species code
Feross Aboukhadijeh [Tue, 14 Apr 2020 22:29:46 +0000 (15:29 -0700)]
Remove unneeded Symbol.species code

We now handle calls like:

new Buffer(arraybuffer, 2, 8) so there's no need for this workaround originally implemented in: https://github.com/feross/buffer/pull/97

More info: https://bugs.chromium.org/p/v8/issues/detail?id=4665#c4

Fixes #260. Supersedes #261

4 years agoupdate authors
Feross Aboukhadijeh [Fri, 6 Mar 2020 19:55:36 +0000 (11:55 -0800)]
update authors

4 years ago5.5.0
Feross Aboukhadijeh [Fri, 6 Mar 2020 19:55:36 +0000 (11:55 -0800)]
5.5.0

4 years agoadd back support for browsers without SharedArrayBuffer
Feross Aboukhadijeh [Fri, 6 Mar 2020 19:49:35 +0000 (11:49 -0800)]
add back support for browsers without SharedArrayBuffer

SharedArrayBuffer support originally added in https://github.com/feross/buffer/pull/259

4 years agoMerge pull request #257 from feross/greenkeeper/airtap-3.0.0
Feross Aboukhadijeh [Fri, 6 Mar 2020 19:30:53 +0000 (11:30 -0800)]
Merge pull request #257 from feross/greenkeeper/airtap-3.0.0

Update airtap to the latest version 🚀

4 years agoMerge pull request #259 from mischnic/sharedarraybuffer
Feross Aboukhadijeh [Fri, 6 Mar 2020 19:26:20 +0000 (11:26 -0800)]
Merge pull request #259 from mischnic/sharedarraybuffer

Fix Buffer.from for SharedArrayBuffer

4 years agoFix Buffer.from for SharedArrayBuffer
Niklas Mischkulnig [Tue, 25 Feb 2020 14:01:34 +0000 (15:01 +0100)]
Fix Buffer.from for SharedArrayBuffer

4 years agochore(package): update airtap to version 3.0.0
greenkeeper[bot] [Fri, 17 Jan 2020 10:48:09 +0000 (10:48 +0000)]
chore(package): update airtap to version 3.0.0

4 years agoAdd fast path for Buffer.concat with Uint8Array.
Koushik Dutta [Wed, 8 Jan 2020 21:27:39 +0000 (13:27 -0800)]
Add fast path for Buffer.concat with Uint8Array.

Previous implementation would copy the Uint8Array into a new Buffer object,
and then concatenate it. It is faster to use the Uint8Array.set (which Buffer.copy
uses internally) anyways.

4 years ago[Fix] `Symbol.for` is a syntax error in older browsers
Jordan Harband [Fri, 20 Dec 2019 07:13:14 +0000 (23:13 -0800)]
[Fix] `Symbol.for` is a syntax error in older browsers

For example, Opera 10.6.

Introduced when fixing #241.

5 years agoAdd fromArrayView for TypedArrays and DataViews. Fast path for Uint8Array.
Koushik Dutta [Sat, 7 Dec 2019 00:28:35 +0000 (16:28 -0800)]
Add fromArrayView for TypedArrays and DataViews. Fast path for Uint8Array.

5 years agoIf bytes.length is odd, the last 8 bits must be ignored (same as node.js)
clement [Thu, 24 Oct 2019 14:22:55 +0000 (16:22 +0200)]
If bytes.length is odd, the last 8 bits must be ignored (same as node.js)

5 years agoAdd enterprise language (#249)
Feross Aboukhadijeh [Thu, 17 Oct 2019 03:16:22 +0000 (20:16 -0700)]
Add enterprise language (#249)

Add enterprise language

5 years agoAdd enterprise language
Blaine Bublitz [Thu, 17 Oct 2019 03:12:02 +0000 (21:12 -0600)]
Add enterprise language

5 years agoUpdate README.md
Feross Aboukhadijeh [Thu, 3 Oct 2019 00:22:38 +0000 (17:22 -0700)]
Update README.md

5 years agoadd rw BigInt64 methods
Kirill Fomichev [Thu, 19 Sep 2019 15:03:03 +0000 (18:03 +0300)]
add rw BigInt64 methods

5 years ago5.4.3
Feross Aboukhadijeh [Thu, 12 Sep 2019 02:55:19 +0000 (19:55 -0700)]
5.4.3

5 years agoUse lookup table for faster hex encoding (#245)
Feross Aboukhadijeh [Thu, 12 Sep 2019 02:46:06 +0000 (19:46 -0700)]
Use lookup table for faster hex encoding (#245)

Use lookup table for faster hex encoding

5 years agofix variable name for hexSlice
Kirill Fomichev [Wed, 11 Sep 2019 20:31:07 +0000 (23:31 +0300)]
fix variable name for hexSlice

5 years agoUse lookup table for faster hex encoding
Kirill Fomichev [Wed, 11 Sep 2019 15:58:51 +0000 (18:58 +0300)]
Use lookup table for faster hex encoding

Lookup table faster ~9-12 times than toString('hex') for each byte.
See https://github.com/feross/buffer/issues/219

5 years ago5.4.2
Feross Aboukhadijeh [Tue, 27 Aug 2019 21:48:55 +0000 (14:48 -0700)]
5.4.2

5 years agoCordova support: Check for existence of Symbol.for
Feross Aboukhadijeh [Tue, 27 Aug 2019 21:42:50 +0000 (14:42 -0700)]
Cordova support: Check for existence of Symbol.for

Fixes: https://github.com/feross/buffer/issues/241
See: https://github.com/feross/buffer/pull/204#issuecomment-520986017

5 years agoupdate authors
Feross Aboukhadijeh [Tue, 27 Aug 2019 21:35:15 +0000 (14:35 -0700)]
update authors

5 years ago5.4.1
Feross Aboukhadijeh [Tue, 27 Aug 2019 21:35:14 +0000 (14:35 -0700)]
5.4.1

5 years agoMerge pull request #242 from ukstv/master
Feross Aboukhadijeh [Tue, 27 Aug 2019 21:28:19 +0000 (14:28 -0700)]
Merge pull request #242 from ukstv/master

Add reverse() method, and allow Buffer.from(Uint8Array)

5 years agoMerge pull request #243 from geastwood/fill-boolean
Feross Aboukhadijeh [Tue, 27 Aug 2019 21:23:29 +0000 (14:23 -0700)]
Merge pull request #243 from geastwood/fill-boolean

Boolean as fill using Buffer.alloc

5 years agoBoolean as fill using Buffer.alloc
Fei Liu [Tue, 27 Aug 2019 15:46:39 +0000 (17:46 +0200)]
Boolean as fill using Buffer.alloc

5 years agoAdd reverse() method, and allow Buffer.from(Uint8Array)
Sergey Ukustov [Tue, 27 Aug 2019 12:50:41 +0000 (16:50 +0400)]
Add reverse() method, and allow Buffer.from(Uint8Array)

5 years agoadd security reporting link
Feross Aboukhadijeh [Tue, 20 Aug 2019 02:09:59 +0000 (19:09 -0700)]
add security reporting link

5 years agoupdate authors
Feross Aboukhadijeh [Tue, 13 Aug 2019 20:23:46 +0000 (13:23 -0700)]
update authors

5 years ago5.4.0
Feross Aboukhadijeh [Tue, 13 Aug 2019 20:23:45 +0000 (13:23 -0700)]
5.4.0