]> zoso.dev Git - buffer.git/log
buffer.git
8 years agoAdd Buffer.from, alloc, allocUnsafe, allocUnsafeSlow, swap16, swap32
Feross Aboukhadijeh [Tue, 19 Apr 2016 06:50:48 +0000 (23:50 -0700)]
Add Buffer.from, alloc, allocUnsafe, allocUnsafeSlow, swap16, swap32

Brings buffer up-to-date with node.js commit 6275249 on  Apr 15, 2016.

https://github.com/nodejs/node/blob/e38bade82801645d8cc1010e3f4e98260522
44cb/lib/buffer.js

8 years ago4.5.1
Feross Aboukhadijeh [Thu, 24 Mar 2016 03:01:26 +0000 (20:01 -0700)]
4.5.1

8 years agozuul: only test latest desktop safari
Feross Aboukhadijeh [Thu, 24 Mar 2016 02:58:06 +0000 (19:58 -0700)]
zuul: only test latest desktop safari

8 years agoremove redundant check (fix #110)
Feross Aboukhadijeh [Thu, 24 Mar 2016 02:57:55 +0000 (19:57 -0700)]
remove redundant check (fix #110)

8 years agoFixes to PR #109
Feross Aboukhadijeh [Thu, 24 Mar 2016 02:45:03 +0000 (19:45 -0700)]
Fixes to PR #109

8 years agoMerge pull request #109 from fanatid/feature/compare
Feross Aboukhadijeh [Thu, 24 Mar 2016 02:43:14 +0000 (19:43 -0700)]
Merge pull request #109 from fanatid/feature/compare

more readable Buffer.compare

8 years agomore readable Buffer.compare
Kirill Fomichev [Wed, 23 Mar 2016 09:17:24 +0000 (12:17 +0300)]
more readable Buffer.compare

8 years agoMerge pull request #108 from fanatid/patch-z
Feross Aboukhadijeh [Fri, 11 Mar 2016 05:20:21 +0000 (21:20 -0800)]
Merge pull request #108 from fanatid/patch-z

add new related packages to README.md

8 years agoadd new related packages to README.md
Kirill Fomichev [Fri, 11 Mar 2016 05:03:04 +0000 (08:03 +0300)]
add new related packages to README.md

8 years agoedge version fix
Feross Aboukhadijeh [Fri, 11 Mar 2016 01:02:44 +0000 (17:02 -0800)]
edge version fix

8 years agotest: remove opera; add iphone back
Feross Aboukhadijeh [Fri, 11 Mar 2016 00:54:35 +0000 (16:54 -0800)]
test: remove opera; add iphone back

8 years agozuul: temporarily remove flaky ios tests
Feross Aboukhadijeh [Tue, 1 Mar 2016 21:30:48 +0000 (13:30 -0800)]
zuul: temporarily remove flaky ios tests

8 years agotravis: use latest node
Feross Aboukhadijeh [Tue, 1 Mar 2016 21:30:28 +0000 (13:30 -0800)]
travis: use latest node

8 years ago4.5.0
Feross Aboukhadijeh [Tue, 16 Feb 2016 07:39:42 +0000 (23:39 -0800)]
4.5.0

8 years agoremove typedarray-to-buffer.js tests
Feross Aboukhadijeh [Tue, 16 Feb 2016 07:22:29 +0000 (23:22 -0800)]
remove typedarray-to-buffer.js tests

8 years agoadd explanatory comment for #97
Feross Aboukhadijeh [Tue, 16 Feb 2016 07:11:49 +0000 (23:11 -0800)]
add explanatory comment for #97

8 years agoMerge pull request #97 from littledan/master
Feross Aboukhadijeh [Tue, 16 Feb 2016 07:08:07 +0000 (23:08 -0800)]
Merge pull request #97 from littledan/master

Ensure ES2016 engines construct Uint8Array (not Buffer) from Buffer.p…

8 years agoMerge pull request #101 from feross/greenkeeper-standard-6.0.5
Feross Aboukhadijeh [Fri, 12 Feb 2016 20:51:27 +0000 (12:51 -0800)]
Merge pull request #101 from feross/greenkeeper-standard-6.0.5

Update standard to version 6.0.5 🚀

8 years agochore(package): update standard to version 6.0.5
greenkeeperio-bot [Fri, 12 Feb 2016 18:49:52 +0000 (10:49 -0800)]
chore(package): update standard to version 6.0.5

http://greenkeeper.io/

8 years agostandard 6
Feross Aboukhadijeh [Fri, 5 Feb 2016 22:00:12 +0000 (14:00 -0800)]
standard 6

8 years ago4.4.0
Feross Aboukhadijeh [Thu, 28 Jan 2016 22:33:50 +0000 (23:33 +0100)]
4.4.0

8 years agoMerge pull request #100 from substack/infinity
Daniel Cousens [Thu, 28 Jan 2016 22:08:16 +0000 (09:08 +1100)]
Merge pull request #100 from substack/infinity

truncate toward infinity instead of raising an exception

8 years agodisable value check on floats to match node behavior
James Halliday [Thu, 28 Jan 2016 21:56:12 +0000 (13:56 -0800)]
disable value check on floats to match node behavior

8 years agotests to write {+,-}Infinity to floats, doubles
James Halliday [Thu, 28 Jan 2016 21:54:19 +0000 (13:54 -0800)]
tests to write {+,-}Infinity to floats, doubles

8 years agoEnsure ES2016 engines construct Uint8Array (not Buffer) from Buffer.prototype.slice
Dan Ehrenberg [Thu, 14 Jan 2016 19:53:22 +0000 (11:53 -0800)]
Ensure ES2016 engines construct Uint8Array (not Buffer) from Buffer.prototype.slice

In the ES2016 draft specification, TypedArray methods like
%TypedArray%.prototype.subarray() call out to a constructor for the result
based on the receiver. Ordinarily, the constructor is instance.constructor,
but subclasses can override this using the Symbol.species property on the
constructor.

Buffer.prototype.slice calls out to %TypedArray%.prototype.subarray, which
calls this calculated constructor with three arguments. The argument pattern
doesn't correspond to a constructor for Buffer, so without setting
Symbol.species appropriately, the wrong kind of result is created.

This patch sets Buffer[Symbol.species] to Uint8Array when appropriate, to
address the issue.

8 years ago4.3.1
Feross Aboukhadijeh [Wed, 27 Jan 2016 14:41:32 +0000 (15:41 +0100)]
4.3.1

8 years agoadd back Buffer._augment for one more major version
Feross Aboukhadijeh [Wed, 27 Jan 2016 14:37:50 +0000 (15:37 +0100)]
add back Buffer._augment for one more major version

It’s used by typedarray-to-buffer 3.0.4 and probably others.

8 years agofix comment
Feross Aboukhadijeh [Wed, 27 Jan 2016 14:30:08 +0000 (15:30 +0100)]
fix comment

8 years agoMerge pull request #96 from jscissr/patch-1
Feross Aboukhadijeh [Wed, 13 Jan 2016 20:58:47 +0000 (21:58 +0100)]
Merge pull request #96 from jscissr/patch-1

README: iojs.org -> nodejs.org, http -> https

8 years agoREADME: iojs.org -> nodejs.org, http -> https
Jan Schär [Wed, 13 Jan 2016 20:57:20 +0000 (21:57 +0100)]
README: iojs.org -> nodejs.org, http -> https

8 years agobadges
Feross Aboukhadijeh [Wed, 13 Jan 2016 06:58:47 +0000 (07:58 +0100)]
badges

8 years agobrowserify@13
Feross Aboukhadijeh [Wed, 13 Jan 2016 06:58:43 +0000 (07:58 +0100)]
browserify@13

8 years agoupdate readme
Feross Aboukhadijeh [Tue, 12 Jan 2016 23:24:18 +0000 (00:24 +0100)]
update readme

8 years ago4.3.0
Feross Aboukhadijeh [Tue, 12 Jan 2016 22:59:16 +0000 (23:59 +0100)]
4.3.0

8 years agosauce: drop safari 5.1 from tests
Feross Aboukhadijeh [Tue, 12 Jan 2016 22:07:29 +0000 (23:07 +0100)]
sauce: drop safari 5.1 from tests

8 years agofix tests
Feross Aboukhadijeh [Tue, 12 Jan 2016 21:34:59 +0000 (22:34 +0100)]
fix tests

8 years agosafari 5-7 should use typed array impl
Feross Aboukhadijeh [Tue, 12 Jan 2016 21:30:30 +0000 (22:30 +0100)]
safari 5-7 should use typed array impl

8 years ago4.2.0
Feross Aboukhadijeh [Mon, 11 Jan 2016 15:02:07 +0000 (16:02 +0100)]
4.2.0

8 years agoremove deprecated buffer.get/.set methods
Feross Aboukhadijeh [Mon, 11 Jan 2016 14:56:30 +0000 (15:56 +0100)]
remove deprecated buffer.get/.set methods

Node.js commit:
https://github.com/nodejs/node/commit/101bca988cebce584d5b6098c316a6e7bf
89b69d

These have been deprecated since Apr 27, 2013, and the plan was to
remove them in "node v0.13".

buffer.get(index) is superseded by buffer[index].
buffer.set(index, value) is superseded by buffer[index] = value.

These have never been documented at any point in node's history.

8 years agoRevert "disable test that relies on browserify 13 in zuul"
Feross Aboukhadijeh [Mon, 11 Jan 2016 14:03:11 +0000 (15:03 +0100)]
Revert "disable test that relies on browserify 13 in zuul"

This reverts commit 7d53dc6a3faf4861da8422f87e0dc1f19fab117d.

8 years agodisable test that relies on browserify 13 in zuul
Feross Aboukhadijeh [Sat, 9 Jan 2016 19:00:30 +0000 (20:00 +0100)]
disable test that relies on browserify 13 in zuul

8 years ago4.1.0
Feross Aboukhadijeh [Sat, 9 Jan 2016 17:25:02 +0000 (18:25 +0100)]
4.1.0

8 years agoskip older browsers
Feross Aboukhadijeh [Sat, 9 Jan 2016 17:08:49 +0000 (18:08 +0100)]
skip older browsers

These browsers still work fine, but they don’t work with a new test I
added, and their marketshare is decreasing. Disable them for now.

8 years agotest: run typedarray-to-buffer only in browsers with typed array support
Feross Aboukhadijeh [Sat, 9 Jan 2016 16:41:56 +0000 (17:41 +0100)]
test: run typedarray-to-buffer only in browsers with typed array support

8 years agotest: fix typo
Feross Aboukhadijeh [Sat, 9 Jan 2016 16:24:31 +0000 (17:24 +0100)]
test: fix typo

8 years agofix benchmark for v2
Feross Aboukhadijeh [Sat, 9 Jan 2016 16:21:37 +0000 (17:21 +0100)]
fix benchmark for v2

8 years agobenchmark@2
Feross Aboukhadijeh [Sat, 9 Jan 2016 16:18:50 +0000 (17:18 +0100)]
benchmark@2

8 years agoadd note to readme about perf
Feross Aboukhadijeh [Sat, 9 Jan 2016 16:11:04 +0000 (17:11 +0100)]
add note to readme about perf

8 years agotests
Feross Aboukhadijeh [Sat, 9 Jan 2016 15:29:55 +0000 (16:29 +0100)]
tests

8 years agobase64-js@1
Feross Aboukhadijeh [Sat, 9 Jan 2016 15:27:15 +0000 (16:27 +0100)]
base64-js@1

8 years agoRemove `Buffer._augment` function
Feross Aboukhadijeh [Sat, 9 Jan 2016 15:27:09 +0000 (16:27 +0100)]
Remove `Buffer._augment` function

`typedarray-to-buffer` is changed so it can augment Buffers without
this function, just by changing the __proto__ property.

8 years agoInclude `typedarray-to-buffer` test
Feross Aboukhadijeh [Sat, 9 Jan 2016 15:09:24 +0000 (16:09 +0100)]
Include `typedarray-to-buffer` test

Fixes #93

8 years agoInclude `is-buffer` test
Feross Aboukhadijeh [Sat, 9 Jan 2016 14:44:23 +0000 (15:44 +0100)]
Include `is-buffer` test

For #93

8 years agoreadme: fix link to code
Feross Aboukhadijeh [Sat, 9 Jan 2016 14:28:00 +0000 (15:28 +0100)]
readme: fix link to code

8 years agoadd links to related packages
Feross Aboukhadijeh [Sat, 9 Jan 2016 14:27:52 +0000 (15:27 +0100)]
add links to related packages

8 years agoremove saved _set reference
Feross Aboukhadijeh [Sat, 9 Jan 2016 14:27:42 +0000 (15:27 +0100)]
remove saved _set reference

8 years agofix buf introduced in PR #92
Feross Aboukhadijeh [Sat, 9 Jan 2016 14:27:22 +0000 (15:27 +0100)]
fix buf introduced in PR #92

8 years agotest: add arraybuffer tests
Feross Aboukhadijeh [Sat, 9 Jan 2016 14:27:09 +0000 (15:27 +0100)]
test: add arraybuffer tests

8 years agodetect more invalid arraybuffers
Feross Aboukhadijeh [Sat, 9 Jan 2016 14:26:39 +0000 (15:26 +0100)]
detect more invalid arraybuffers

8 years agoMerge branch 'mtth-master'
Feross Aboukhadijeh [Sat, 9 Jan 2016 14:26:09 +0000 (15:26 +0100)]
Merge branch 'mtth-master'

8 years agoSpeed up buffer creation.
Matthieu Monsch [Fri, 8 Jan 2016 05:28:12 +0000 (21:28 -0800)]
Speed up buffer creation.

Since 1d20f50f8b4c62779c0dbfb1fa401168ab52dce0 (#40), instances already
gained all the `Buffer`'s methods via the prototype re-assignment.
Skipping the `_augment` call yields significant speedups:

~50% faster small buffer creation:

  new(16) before: 595,757 ops/sec ±0.92% (91 runs sampled)
  new(16) after: 894,462 ops/sec ±0.69% (87 runs sampled)

~20% faster slice:

  slice before: 2,176,194 ops/sec ±1.59% (89 runs sampled)
  slice after: 2,624,209 ops/sec ±0.42% (99 runs sampled)

Other benchmarks aren't significantly different.

8 years ago4.0.0
Feross Aboukhadijeh [Sat, 2 Jan 2016 23:19:25 +0000 (00:19 +0100)]
4.0.0

8 years agoMerge pull request #91 from RaulTsc/master
Feross Aboukhadijeh [Sat, 2 Jan 2016 22:43:10 +0000 (23:43 +0100)]
Merge pull request #91 from RaulTsc/master

Removed Buffer.toArrayBuffer(). Fixes #90

8 years agoRemoved Buffer.toArrayBuffer(). Fixes #90
RaulTsc [Sat, 2 Jan 2016 22:31:24 +0000 (00:31 +0200)]
Removed Buffer.toArrayBuffer(). Fixes #90

8 years ago3.6.0
Feross Aboukhadijeh [Fri, 25 Dec 2015 06:37:54 +0000 (15:37 +0900)]
3.6.0

8 years agoMerge pull request #88 from feross/79
Feross Aboukhadijeh [Fri, 25 Dec 2015 06:37:16 +0000 (15:37 +0900)]
Merge pull request #88 from feross/79

Proper strict mode support. Fixes #79

8 years agoMerge pull request #89 from feross/document-testing
Feross Aboukhadijeh [Fri, 25 Dec 2015 06:01:37 +0000 (15:01 +0900)]
Merge pull request #89 from feross/document-testing

Document how to test the project

8 years agoDocument how to test the project
Nolan Lawson [Thu, 24 Dec 2015 21:51:16 +0000 (13:51 -0800)]
Document how to test the project

[skip ci]

8 years agoProper strict mode support. Fixes #79
Nolan Lawson [Thu, 24 Dec 2015 05:37:44 +0000 (21:37 -0800)]
Proper strict mode support. Fixes #79

8 years agoMerge pull request #87 from feross/microsoftedge
Feross Aboukhadijeh [Sun, 20 Dec 2015 21:22:57 +0000 (10:22 +1300)]
Merge pull request #87 from feross/microsoftedge

zuul: test microsoft edge

8 years agozuul: test microsoft edge
Feross Aboukhadijeh [Sun, 20 Dec 2015 00:39:31 +0000 (13:39 +1300)]
zuul: test microsoft edge

9 years ago3.5.5
Feross Aboukhadijeh [Fri, 11 Dec 2015 11:21:45 +0000 (00:21 +1300)]
3.5.5

9 years agoisarray@1
Feross Aboukhadijeh [Fri, 11 Dec 2015 11:21:06 +0000 (00:21 +1300)]
isarray@1

9 years ago3.5.4
Feross Aboukhadijeh [Sun, 6 Dec 2015 03:00:30 +0000 (19:00 -0800)]
3.5.4

9 years agoMerge pull request #85 from jscissr/isarray
Feross Aboukhadijeh [Sun, 6 Dec 2015 02:49:50 +0000 (18:49 -0800)]
Merge pull request #85 from jscissr/isarray

Use isarray instead of is-array

9 years agoUse isarray instead of is-array
Jan Schär [Sat, 5 Dec 2015 16:28:33 +0000 (17:28 +0100)]
Use isarray instead of is-array

Because isarray is 10x more popular

9 years ago3.5.3
Feross Aboukhadijeh [Tue, 1 Dec 2015 00:42:56 +0000 (16:42 -0800)]
3.5.3

9 years agofix test for IE8/9
Feross Aboukhadijeh [Tue, 1 Dec 2015 00:17:09 +0000 (16:17 -0800)]
fix test for IE8/9

9 years agobrowserify@12
Feross Aboukhadijeh [Tue, 1 Dec 2015 00:09:14 +0000 (16:09 -0800)]
browserify@12

9 years agoMerge pull request #84 from guybedford/master
Feross Aboukhadijeh [Mon, 30 Nov 2015 23:29:12 +0000 (15:29 -0800)]
Merge pull request #84 from guybedford/master

jspm configuration support

9 years agojspm configuration support
Guy Bedford [Mon, 30 Nov 2015 15:46:22 +0000 (17:46 +0200)]
jspm configuration support

9 years agoadd test for #83
Feross Aboukhadijeh [Tue, 17 Nov 2015 00:18:21 +0000 (16:18 -0800)]
add test for #83

9 years ago3.5.2
Feross Aboukhadijeh [Sat, 14 Nov 2015 07:13:05 +0000 (23:13 -0800)]
3.5.2

9 years agozuul: change ios 9.0 tests to 9.1
Feross Aboukhadijeh [Sat, 14 Nov 2015 00:48:22 +0000 (16:48 -0800)]
zuul: change ios 9.0 tests to 9.1

9 years agozuul: remove safari 5 test
Feross Aboukhadijeh [Sat, 14 Nov 2015 00:48:04 +0000 (16:48 -0800)]
zuul: remove safari 5 test

I’m attempting to make the zuul browser tests more reliable by removing
browsers that have small marketshare. Safari 5 is < 1%.

9 years agozuul: fix safari version
Feross Aboukhadijeh [Fri, 13 Nov 2015 02:29:49 +0000 (18:29 -0800)]
zuul: fix safari version

9 years agoMerge pull request #82 from hakatashi/codepoint-over-20000
Daniel Cousens [Fri, 13 Nov 2015 01:17:11 +0000 (12:17 +1100)]
Merge pull request #82 from hakatashi/codepoint-over-20000

Fix fatal error of surrogte pair

9 years agoFix fatal error of surrogte pair
Koki Takahashi [Thu, 12 Nov 2015 09:20:25 +0000 (18:20 +0900)]
Fix fatal error of surrogte pair

Current implementation of surrogate pair doesn't take codepoints over
U+20000 into consideration. This is invalid since original specification
of UTF-16 is valid until U+10FFFF.

9 years ago3.5.1
Feross Aboukhadijeh [Wed, 7 Oct 2015 02:30:43 +0000 (19:30 -0700)]
3.5.1

9 years agosauce: skip old point releases of safari
Feross Aboukhadijeh [Wed, 7 Oct 2015 01:42:13 +0000 (18:42 -0700)]
sauce: skip old point releases of safari

9 years agosauce: test latest 3 chrome/firefox versions
Feross Aboukhadijeh [Wed, 7 Oct 2015 01:36:55 +0000 (18:36 -0700)]
sauce: test latest 3 chrome/firefox versions

9 years agotravis: test on node 4
Feross Aboukhadijeh [Wed, 7 Oct 2015 00:11:43 +0000 (17:11 -0700)]
travis: test on node 4

9 years agoMerge pull request #81 from calvinmetcalf/older-android
Daniel Cousens [Tue, 6 Oct 2015 23:29:20 +0000 (10:29 +1100)]
Merge pull request #81 from calvinmetcalf/older-android

fix overflow in older android

9 years agomask values to prevent them from overflowing
Calvin Metcalf [Tue, 6 Oct 2015 22:43:33 +0000 (18:43 -0400)]
mask values to prevent them from overflowing

9 years agofailing test on android
Calvin Metcalf [Tue, 6 Oct 2015 20:16:22 +0000 (16:16 -0400)]
failing test on android

9 years agotest against older android
Calvin Metcalf [Tue, 6 Oct 2015 17:54:17 +0000 (13:54 -0400)]
test against older android

9 years agostandard
Feross Aboukhadijeh [Fri, 18 Sep 2015 22:39:31 +0000 (15:39 -0700)]
standard

9 years agostandard
Feross Aboukhadijeh [Wed, 16 Sep 2015 21:23:13 +0000 (14:23 -0700)]
standard

9 years ago3.5.0
Feross Aboukhadijeh [Wed, 16 Sep 2015 06:30:00 +0000 (23:30 -0700)]
3.5.0

9 years agoreadme
Feross Aboukhadijeh [Wed, 16 Sep 2015 06:04:25 +0000 (23:04 -0700)]
readme