]> zoso.dev Git - buffer.git/log
buffer.git
9 years agorestructure decodeCodePointsArray comment
Daniel Cousens [Sat, 15 Aug 2015 15:52:12 +0000 (01:52 +1000)]
restructure decodeCodePointsArray comment

9 years agoMerge pull request #70 from nolanlawson/69
Daniel Cousens [Sat, 15 Aug 2015 15:44:34 +0000 (01:44 +1000)]
Merge pull request #70 from nolanlawson/69

Fix call stack exceeded in #69

9 years agofix call stack exceeded in #69
Nolan Lawson [Sat, 15 Aug 2015 15:11:02 +0000 (11:11 -0400)]
fix call stack exceeded in #69

9 years agoMerge pull request #68 from LinusU/standard-style
Feross Aboukhadijeh [Fri, 14 Aug 2015 21:37:45 +0000 (23:37 +0200)]
Merge pull request #68 from LinusU/standard-style

adhere to padded-blocks

9 years agoadhere to padded-blocks
Linus Unnebäck [Fri, 14 Aug 2015 20:29:44 +0000 (22:29 +0200)]
adhere to padded-blocks

9 years ago3.4.2
Feross Aboukhadijeh [Thu, 13 Aug 2015 11:17:19 +0000 (13:17 +0200)]
3.4.2

9 years agoinvert logic to decrease branching depth
Daniel Cousens [Tue, 11 Aug 2015 14:33:19 +0000 (00:33 +1000)]
invert logic to decrease branching depth

9 years agodeclare i inline
Daniel Cousens [Tue, 11 Aug 2015 14:29:25 +0000 (00:29 +1000)]
declare i inline

9 years agoMerge pull request #67 from jessetane/utf8-replacement-chars
Daniel Cousens [Tue, 11 Aug 2015 13:15:50 +0000 (23:15 +1000)]
Merge pull request #67 from jessetane/utf8-replacement-chars

Insert replacement characters like node does when converting UTF8 bytes to String

9 years agoreplace unicode in the surrogate pair range the way node@3 does
Jesse Tane [Tue, 11 Aug 2015 04:44:05 +0000 (00:44 -0400)]
replace unicode in the surrogate pair range the way node@3 does

9 years agoadd failing test for missing replacement characters in the surrogate pair range
Jesse Tane [Tue, 11 Aug 2015 04:43:36 +0000 (00:43 -0400)]
add failing test for missing replacement characters in the surrogate pair range

9 years agostandardize
Jesse Tane [Tue, 11 Aug 2015 03:45:07 +0000 (23:45 -0400)]
standardize

9 years agounicode top should be 0x10FFFF
Jesse Tane [Tue, 11 Aug 2015 03:36:15 +0000 (23:36 -0400)]
unicode top should be 0x10FFFF

9 years agodo utf8 -> unicode -> utf16 the way node does
Jesse Tane [Tue, 11 Aug 2015 02:56:19 +0000 (22:56 -0400)]
do utf8 -> unicode -> utf16 the way node does

9 years agoadd readUtf8 benchmark
Jesse Tane [Tue, 11 Aug 2015 02:55:17 +0000 (22:55 -0400)]
add readUtf8 benchmark

9 years agoadd failing toString tests
Jesse Tane [Tue, 11 Aug 2015 02:54:44 +0000 (22:54 -0400)]
add failing toString tests

9 years ago3.4.1
Feross Aboukhadijeh [Thu, 6 Aug 2015 12:26:18 +0000 (14:26 +0200)]
3.4.1

9 years agotests: fix ascending test description
Daniel Cousens [Thu, 6 Aug 2015 12:12:27 +0000 (22:12 +1000)]
tests: fix ascending test description

9 years agosplit ascending/descending copy tests
Daniel Cousens [Thu, 6 Aug 2015 12:11:11 +0000 (22:11 +1000)]
split ascending/descending copy tests

9 years agoMerge pull request #65 from kawanet/descending_copy
Daniel Cousens [Thu, 6 Aug 2015 12:09:23 +0000 (22:09 +1000)]
Merge pull request #65 from kawanet/descending_copy

descending copy from end

9 years agodescending copy from end
kawanet [Thu, 6 Aug 2015 10:13:09 +0000 (19:13 +0900)]
descending copy from end

9 years ago3.4.0
Feross Aboukhadijeh [Wed, 5 Aug 2015 12:49:04 +0000 (14:49 +0200)]
3.4.0

9 years agostandard@5
Feross Aboukhadijeh [Wed, 5 Aug 2015 12:44:55 +0000 (14:44 +0200)]
standard@5

9 years agobrowserify@11
Feross Aboukhadijeh [Wed, 5 Aug 2015 12:44:51 +0000 (14:44 +0200)]
browserify@11

9 years agoArrayBuffer support in Buffer constructor
Feross Aboukhadijeh [Wed, 5 Aug 2015 12:44:46 +0000 (14:44 +0200)]
ArrayBuffer support in Buffer constructor

9 years agotest: run arraybuffer test only with typed array supprot
Feross Aboukhadijeh [Wed, 5 Aug 2015 12:44:13 +0000 (14:44 +0200)]
test: run arraybuffer test only with typed array supprot

9 years agoFixing the special case in Buffer.concat
Feross Aboukhadijeh [Wed, 5 Aug 2015 08:41:09 +0000 (10:41 +0200)]
Fixing the special case in Buffer.concat

See: https://github.com/nodejs/io.js/pull/1937

9 years agotest: update tests for iojs 3.0.0
Feross Aboukhadijeh [Wed, 5 Aug 2015 08:40:33 +0000 (10:40 +0200)]
test: update tests for iojs 3.0.0

9 years ago3.3.2
Feross Aboukhadijeh [Tue, 4 Aug 2015 13:58:58 +0000 (15:58 +0200)]
3.3.2

9 years agofix regression in PR #64
Feross Aboukhadijeh [Tue, 4 Aug 2015 13:42:13 +0000 (15:42 +0200)]
fix regression in PR #64

_ is an allowed character, used in "url safe" base 64, which node
supports

9 years agoMerge branch 'daverayment-master'
Feross Aboukhadijeh [Tue, 4 Aug 2015 13:35:48 +0000 (15:35 +0200)]
Merge branch 'daverayment-master'

9 years agoTest for updated base 64 regex
daverayment [Tue, 4 Aug 2015 10:00:45 +0000 (11:00 +0100)]
Test for updated base 64 regex

Confirm that non-base 64 alphabet characters are correctly stripped out.

9 years agoFix base 64 character exclusion regex
daverayment [Tue, 4 Aug 2015 09:53:47 +0000 (10:53 +0100)]
Fix base 64 character exclusion regex

Using [A-z] in the regex brings in non-alphanumeric characters between the uppercase and lowercase alphabets, meaning the following chars were not correctly stripped from base 64 strings: left and right square bracket, backslash, caret, underline, and backtick. Explicitly separating the uppercase and lowercase letter ranges fixes this.

9 years agotravis: use container builds
Feross Aboukhadijeh [Thu, 30 Jul 2015 08:29:41 +0000 (01:29 -0700)]
travis: use container builds

9 years agomore compact typed array feature detection
Feross Aboukhadijeh [Thu, 30 Jul 2015 07:41:34 +0000 (00:41 -0700)]
more compact typed array feature detection

9 years agofix documentation on typed array detection
Feross Aboukhadijeh [Thu, 30 Jul 2015 07:38:00 +0000 (00:38 -0700)]
fix documentation on typed array detection

9 years agoMerge pull request #62 from Null000/patch-1
Daniel Cousens [Thu, 23 Jul 2015 04:41:47 +0000 (14:41 +1000)]
Merge pull request #62 from Null000/patch-1

Rename the second foo into a bar

9 years agoRename the second foo into a bar
Damjan Košir [Thu, 23 Jul 2015 04:33:28 +0000 (16:33 +1200)]
Rename the second foo into a bar

9 years agotest: saucelabs removed ios 4.3 and 5.0
Feross Aboukhadijeh [Mon, 13 Jul 2015 21:53:56 +0000 (14:53 -0700)]
test: saucelabs removed ios 4.3 and 5.0

9 years ago3.3.1
Feross Aboukhadijeh [Tue, 7 Jul 2015 19:58:18 +0000 (12:58 -0700)]
3.3.1

9 years agostyle
Feross Aboukhadijeh [Tue, 7 Jul 2015 19:49:51 +0000 (12:49 -0700)]
style

9 years agoMerge pull request #61 from parshap/constructor-property
Feross Aboukhadijeh [Tue, 7 Jul 2015 19:49:13 +0000 (12:49 -0700)]
Merge pull request #61 from parshap/constructor-property

Fix issue with setting constructor in Safari 5

9 years agoEnsure typed array constructor property can be set
Parsha Pourkhomami [Tue, 7 Jul 2015 19:08:01 +0000 (12:08 -0700)]
Ensure typed array constructor property can be set

Otherwise set TYPED_ARRAY_SUPPORT to false and fallback to the object
implementation.

9 years agoTest buf.constructor is set to Buffer
Parsha Pourkhomami [Tue, 7 Jul 2015 19:02:07 +0000 (12:02 -0700)]
Test buf.constructor is set to Buffer

Currently fails in Safari 5.1. See https://saucelabs.com/beta/tests/c99d86b2a82944539bbb1fe25a8506d3

9 years agotest android 5.0+
Feross Aboukhadijeh [Wed, 1 Jul 2015 00:02:41 +0000 (17:02 -0700)]
test android 5.0+

the older versions are being flakey on sauce labs

9 years ago3.3.0
Feross Aboukhadijeh [Tue, 30 Jun 2015 23:36:08 +0000 (16:36 -0700)]
3.3.0

9 years agoIncrease max buffer size to 2GB
Feross Aboukhadijeh [Tue, 30 Jun 2015 23:20:18 +0000 (16:20 -0700)]
Increase max buffer size to 2GB

There's no reason to match the limitation in node, plus this limitation
is going away soon with the buffer refactor for V8 4.4.

9 years agooptimize Buffer#toString()
Feross Aboukhadijeh [Tue, 30 Jun 2015 23:04:58 +0000 (16:04 -0700)]
optimize Buffer#toString()

From
https://github.com/nodejs/io.js/commit/8350f3a3a291fcd19df3261c3db3fe07c
7590bb7

9 years agoupdate byteLength impl to pass new node tests
Feross Aboukhadijeh [Tue, 30 Jun 2015 22:52:55 +0000 (15:52 -0700)]
update byteLength impl to pass new node tests

9 years agoexclude node test test-buffer-fakes.js
Feross Aboukhadijeh [Tue, 30 Jun 2015 22:44:11 +0000 (15:44 -0700)]
exclude node test test-buffer-fakes.js

These checks only apply in node, where they're calling into C++ and
need to ensure the prototype can't be faked to prevent crashes.

9 years agoupdate node tests
Feross Aboukhadijeh [Tue, 30 Jun 2015 22:32:53 +0000 (15:32 -0700)]
update node tests

9 years agofix node test downloader
Feross Aboukhadijeh [Tue, 30 Jun 2015 22:32:40 +0000 (15:32 -0700)]
fix node test downloader

9 years agoremove testling boilerplate from package.json
Feross Aboukhadijeh [Wed, 24 Jun 2015 22:43:26 +0000 (15:43 -0700)]
remove testling boilerplate from package.json

9 years agothrough2@2
Feross Aboukhadijeh [Wed, 24 Jun 2015 22:42:24 +0000 (15:42 -0700)]
through2@2

9 years agosplit@1
Feross Aboukhadijeh [Wed, 24 Jun 2015 22:42:18 +0000 (15:42 -0700)]
split@1

9 years agostandard@4
Feross Aboukhadijeh [Wed, 24 Jun 2015 22:41:10 +0000 (15:41 -0700)]
standard@4

9 years ago3.2.2
Feross Aboukhadijeh [Tue, 5 May 2015 02:09:36 +0000 (19:09 -0700)]
3.2.2

9 years agozuul@3
Feross Aboukhadijeh [Tue, 5 May 2015 01:17:38 +0000 (18:17 -0700)]
zuul@3

9 years agobrowserify@10
Feross Aboukhadijeh [Tue, 5 May 2015 01:16:41 +0000 (18:16 -0700)]
browserify@10

9 years agoremove gratipay badge
Feross Aboukhadijeh [Tue, 5 May 2015 01:15:59 +0000 (18:15 -0700)]
remove gratipay badge

9 years agopull latest iojs buffer tests
Feross Aboukhadijeh [Wed, 29 Apr 2015 03:23:58 +0000 (20:23 -0700)]
pull latest iojs buffer tests

9 years agoperf: add iojs benchmarks
Feross Aboukhadijeh [Sun, 26 Apr 2015 02:05:06 +0000 (19:05 -0700)]
perf: add iojs benchmarks

9 years ago3.2.1
Feross Aboukhadijeh [Thu, 23 Apr 2015 00:08:47 +0000 (17:08 -0700)]
3.2.1

9 years agoindex: dont use empty blocks
Daniel Cousens [Wed, 22 Apr 2015 00:41:01 +0000 (10:41 +1000)]
index: dont use empty blocks

9 years agoindex: s/target_start/targetStart
Daniel Cousens [Wed, 22 Apr 2015 00:40:49 +0000 (10:40 +1000)]
index: s/target_start/targetStart

9 years agoindex: avoid double-up of Math.pow
Daniel Cousens [Wed, 22 Apr 2015 00:40:33 +0000 (10:40 +1000)]
index: avoid double-up of Math.pow

9 years agoindex: use consistentyl |0 over >>>0 for asm
Daniel Cousens [Wed, 22 Apr 2015 00:29:27 +0000 (10:29 +1000)]
index: use consistentyl |0 over >>>0 for asm

9 years agoindex: unused result unnecessarily asm'd?
Daniel Cousens [Wed, 22 Apr 2015 00:28:19 +0000 (10:28 +1000)]
index: unused result unnecessarily asm'd?

9 years ago3.2.0
Feross Aboukhadijeh [Tue, 21 Apr 2015 10:37:17 +0000 (03:37 -0700)]
3.2.0

9 years agodon't assume ArrayBuffer will exist
Feross Aboukhadijeh [Tue, 21 Apr 2015 10:17:24 +0000 (03:17 -0700)]
don't assume ArrayBuffer will exist

9 years agohand-optimize Buffer constructor
Feross Aboukhadijeh [Mon, 20 Apr 2015 22:19:52 +0000 (15:19 -0700)]
hand-optimize Buffer constructor

The Buffer constructor is used pervasively throughout io.js, yet it was
one of the most unwieldy functions in core.  This commit breaks up the
constructor into several small functions in a way that makes V8 happy.

About 8-10% CPU time was attributed to the constructor function before
in buffer-heavy benchmarks.  That pretty much drops to zero now because
V8 can now easily inline it at the call site.  It shortens the running
time of the following simple benchmark by about 15%:

    for (var i = 0; i < 25e6; ++i) new Buffer(1);

And about 8% from this benchmark:

    for (var i = 0; i < 1e7; ++i) new Buffer('x', 'ucs2');

From
https://github.com/iojs/io.js/commit/bbf54a554ababa91ced243acb0d2721bc19
eb1dc

9 years agolink to io.js docs
Feross Aboukhadijeh [Mon, 20 Apr 2015 22:19:32 +0000 (15:19 -0700)]
link to io.js docs

9 years agoiojs style
Feross Aboukhadijeh [Mon, 20 Apr 2015 21:29:18 +0000 (14:29 -0700)]
iojs style

9 years agoremove unnecessary intermediate variables
Feross Aboukhadijeh [Mon, 20 Apr 2015 21:28:51 +0000 (14:28 -0700)]
remove unnecessary intermediate variables

9 years agoavoid .toLowerCase() call in Buffer#write()
Feross Aboukhadijeh [Mon, 20 Apr 2015 21:28:41 +0000 (14:28 -0700)]
avoid .toLowerCase() call in Buffer#write()

Avoid a costly String#toLowerCase() call in Buffer#write() in the
common case, i.e., that the string is already lowercase.  Reduces
the running time of the following benchmark by about 40%:

for (var b = Buffer(1), i = 0; i < 25e6; ++i) b.write('x', 'ucs2');

From
https://github.com/iojs/io.js/commit/4ddd6406ce1c474e1a54a5aa9b56f755490
2fd10

9 years agomatch iojs Buffer.concat signature
Feross Aboukhadijeh [Mon, 20 Apr 2015 20:51:00 +0000 (13:51 -0700)]
match iojs Buffer.concat signature

9 years agoimprove Buffer.byteLength(string, encoding)
Feross Aboukhadijeh [Mon, 20 Apr 2015 20:46:41 +0000 (13:46 -0700)]
improve Buffer.byteLength(string, encoding)

From https://github.com/iojs/io.js/pull/1441/files

9 years agostandard@3
Feross Aboukhadijeh [Mon, 20 Apr 2015 20:46:30 +0000 (13:46 -0700)]
standard@3

9 years agotape@4
Feross Aboukhadijeh [Mon, 20 Apr 2015 20:45:01 +0000 (13:45 -0700)]
tape@4

9 years ago3.1.2
Feross Aboukhadijeh [Fri, 20 Mar 2015 23:32:51 +0000 (16:32 -0700)]
3.1.2

9 years agoremove dead code
Feross Aboukhadijeh [Fri, 20 Mar 2015 23:29:42 +0000 (16:29 -0700)]
remove dead code

9 years agostyle
Feross Aboukhadijeh [Fri, 20 Mar 2015 23:29:31 +0000 (16:29 -0700)]
style

9 years ago3.1.1
Feross Aboukhadijeh [Wed, 11 Mar 2015 23:57:21 +0000 (16:57 -0700)]
3.1.1

9 years agobuffer: reword Buffer.concat error message
Feross Aboukhadijeh [Wed, 11 Mar 2015 23:25:37 +0000 (16:25 -0700)]
buffer: reword Buffer.concat error message

https://github.com/iojs/io.js/commit/31421afe897635bd86201c2e677fb881b57
a892c

9 years agoconstructor: remove non-standard noZero param
Feross Aboukhadijeh [Wed, 11 Mar 2015 23:25:04 +0000 (16:25 -0700)]
constructor: remove non-standard noZero param

9 years agozuul: drop IE6-7 tests
Feross Aboukhadijeh [Tue, 10 Mar 2015 19:59:22 +0000 (12:59 -0700)]
zuul: drop IE6-7 tests

IE6 and IE7 tests stopped working at some point, presumably because
some dependency of zuul or browserify added a dangling comma or some
feature that these browsers don't support.

I don't have the time/patience to debug this now. buffer probably works
in IE6-7 still, but I'm dropping the tests for it. If someone wants to
fix the issue and re-enable these tests, you're welcome to :)

9 years agoinclude polyfills for IE8
Feross Aboukhadijeh [Tue, 10 Mar 2015 19:56:52 +0000 (12:56 -0700)]
include polyfills for IE8

The iojs tests use features like Array.forEach, Array.isArray, etc.
that are not available in old IEs.

9 years agotests: don't bundle crypto-browserify (breaks old IEs)
Feross Aboukhadijeh [Tue, 10 Mar 2015 19:35:54 +0000 (12:35 -0700)]
tests: don't bundle crypto-browserify (breaks old IEs)

9 years agoenable accidentally disabled tests
Feross Aboukhadijeh [Tue, 10 Mar 2015 19:35:35 +0000 (12:35 -0700)]
enable accidentally disabled tests

9 years ago3.1.0
Feross Aboukhadijeh [Mon, 9 Mar 2015 22:40:10 +0000 (15:40 -0700)]
3.1.0

9 years agobuffer: add indexOf() method
Feross Aboukhadijeh [Mon, 9 Mar 2015 22:28:41 +0000 (15:28 -0700)]
buffer: add indexOf() method

Add Buffer#indexOf(). Support strings, numbers and other Buffers.

Supported in iojs@1.5.0, see:
https://github.com/iojs/io.js/commit/f212ae702e57f6d6548972e10d4374a000e
53e19

9 years agotest: pull in latest iojs tests
Feross Aboukhadijeh [Mon, 9 Mar 2015 21:35:55 +0000 (14:35 -0700)]
test: pull in latest iojs tests

9 years agoname function expressions for easier debugging
Feross Aboukhadijeh [Mon, 9 Mar 2015 21:22:42 +0000 (14:22 -0700)]
name function expressions for easier debugging

9 years agostyle: always use braces except when single-line
Feross Aboukhadijeh [Sat, 7 Mar 2015 02:11:03 +0000 (18:11 -0800)]
style: always use braces except when single-line

9 years agoMerge pull request #57 from dcousens/patch-1
Feross Aboukhadijeh [Thu, 5 Mar 2015 23:10:04 +0000 (15:10 -0800)]
Merge pull request #57 from dcousens/patch-1

index: don't use reserved keyword "byte"

9 years agoindex: don't use reserved keyword "byte"
Daniel Cousens [Thu, 5 Mar 2015 21:46:01 +0000 (08:46 +1100)]
index: don't use reserved keyword "byte"

9 years agoreadme: add note about `standard`
Feross Aboukhadijeh [Tue, 3 Mar 2015 23:00:49 +0000 (15:00 -0800)]
readme: add note about `standard`

9 years agotest: only test last 2 chrome/firefox versions
Feross Aboukhadijeh [Fri, 27 Feb 2015 16:58:22 +0000 (16:58 +0000)]
test: only test last 2 chrome/firefox versions

9 years agozuul@2
Feross Aboukhadijeh [Fri, 27 Feb 2015 15:48:16 +0000 (15:48 +0000)]
zuul@2

9 years agobrowserify@9
Feross Aboukhadijeh [Fri, 27 Feb 2015 15:48:11 +0000 (15:48 +0000)]
browserify@9