]> zoso.dev Git - buffer.git/log
buffer.git
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

5 years agoMerge pull request #204 from goto-bus-stop/inspect-symbol
Feross Aboukhadijeh [Tue, 13 Aug 2019 19:55:45 +0000 (12:55 -0700)]
Merge pull request #204 from goto-bus-stop/inspect-symbol

Use `util.inspect.custom` symbol if available.

5 years agoUse nodejs.util.inspect.custom symbol
Renée Kooi [Tue, 13 Aug 2019 08:27:57 +0000 (10:27 +0200)]
Use nodejs.util.inspect.custom symbol

5 years agoMerge branch 'master' into inspect-symbol
Renée Kooi [Tue, 13 Aug 2019 08:24:49 +0000 (10:24 +0200)]
Merge branch 'master' into inspect-symbol

5 years agoadd missing `new`
Feross Aboukhadijeh [Tue, 13 Aug 2019 07:05:56 +0000 (00:05 -0700)]
add missing `new`

5 years agoupdate authors
Feross Aboukhadijeh [Mon, 12 Aug 2019 02:14:00 +0000 (19:14 -0700)]
update authors

5 years ago5.3.0
Feross Aboukhadijeh [Mon, 12 Aug 2019 02:13:59 +0000 (19:13 -0700)]
5.3.0

5 years agoMerge pull request #238 from kumavis/master
Feross Aboukhadijeh [Mon, 12 Aug 2019 02:06:41 +0000 (19:06 -0700)]
Merge pull request #238 from kumavis/master

use "Object.setPrototypeOf" instead of "__proto__"

5 years agouse Object.setPrototypeOf instead of __proto__
kumavis [Sun, 11 Aug 2019 23:22:37 +0000 (07:22 +0800)]
use Object.setPrototypeOf instead of __proto__

5 years agoUpdate FUNDING.yml
Feross Aboukhadijeh [Mon, 5 Aug 2019 23:06:24 +0000 (16:06 -0700)]
Update FUNDING.yml

5 years agoMerge pull request #234 from feross/greenkeeper/airtap-2.0.3
Feross Aboukhadijeh [Fri, 12 Jul 2019 18:09:48 +0000 (11:09 -0700)]
Merge pull request #234 from feross/greenkeeper/airtap-2.0.3

Update airtap to the latest version 🚀

5 years agoUpdate package.json
Feross Aboukhadijeh [Fri, 12 Jul 2019 18:09:04 +0000 (11:09 -0700)]
Update package.json

5 years agochore(package): update airtap to version 2.0.3
greenkeeper[bot] [Fri, 12 Jul 2019 10:02:59 +0000 (10:02 +0000)]
chore(package): update airtap to version 2.0.3

5 years agoUpdate README.md
Feross Aboukhadijeh [Thu, 11 Jul 2019 20:26:48 +0000 (13:26 -0700)]
Update README.md

5 years agofix standalone link
Feross Aboukhadijeh [Thu, 11 Jul 2019 20:19:40 +0000 (13:19 -0700)]
fix standalone link

5 years agostandard
Feross Aboukhadijeh [Fri, 5 Jul 2019 21:44:28 +0000 (14:44 -0700)]
standard

5 years agoMerge pull request #231 from feross/greenkeeper/airtap-2.0.2
Feross Aboukhadijeh [Fri, 5 Jul 2019 18:04:40 +0000 (11:04 -0700)]
Merge pull request #231 from feross/greenkeeper/airtap-2.0.2

chore(package): update airtap to version 2.0.2

5 years agoMerge pull request #232 from feross/greenkeeper/through2-3.0.1
Feross Aboukhadijeh [Fri, 5 Jul 2019 18:04:35 +0000 (11:04 -0700)]
Merge pull request #232 from feross/greenkeeper/through2-3.0.1

chore(package): update through2 to version 3.0.1

5 years agoMerge pull request #225 from feross/greenkeeper/concat-stream-2.0.0
Feross Aboukhadijeh [Fri, 5 Jul 2019 17:49:24 +0000 (10:49 -0700)]
Merge pull request #225 from feross/greenkeeper/concat-stream-2.0.0

Update concat-stream to the latest version 🚀

5 years agoUpdate FUNDING.yml
Feross Aboukhadijeh [Fri, 5 Jul 2019 17:45:30 +0000 (10:45 -0700)]
Update FUNDING.yml

5 years agoadd FUNDING.yml
Feross Aboukhadijeh [Fri, 5 Jul 2019 17:44:58 +0000 (10:44 -0700)]
add FUNDING.yml

5 years agoadd tidelift link
Feross Aboukhadijeh [Tue, 26 Mar 2019 05:14:42 +0000 (22:14 -0700)]
add tidelift link

5 years agochore(package): update through2 to version 3.0.1
greenkeeper[bot] [Fri, 1 Mar 2019 00:56:20 +0000 (00:56 +0000)]
chore(package): update through2 to version 3.0.1

Closes #220

5 years agochore(package): update airtap to version 2.0.2
greenkeeper[bot] [Sat, 23 Feb 2019 09:37:04 +0000 (09:37 +0000)]
chore(package): update airtap to version 2.0.2

Closes #226