8000 Renamed distributions to lower case, dropped bufferview support · adon-at-work/bytebuffer.js@53fcc7c · GitHub
[go: up one dir, main page]

Skip to content

Commit 53fcc7c

Browse files
committed
Renamed distributions to lower case, dropped bufferview support
1 parent 64f0e87 commit 53fcc7c

31 files changed

+274
-197
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![ByteBuffer.js - The swiss army knife for binary data in JavaScript.](https://raw.github.com/dcodeIO/ByteBuffer.js/master/ByteBuffer.png)
1+
![ByteBuffer.js - The swiss army knife for binary data in JavaScript.](https://raw.github.com/dcodeIO/ByteBuffer.js/master/bytebuffer.png)
22
======================================
33
A fast and complete ByteBuffer implementation using either ArrayBuffers in the browser or node Buffers under node.js,
44
generated from a single source tree through [MetaScript](https://github.com/dcodeIO/MetaScript).
@@ -9,9 +9,9 @@ generated from a single source tree through [MetaScript](https://github.com/dcod
99
Features
1010
--------
1111
* Three API-compatible versions:
12-
* **ByteBufferNB**   Backing buffer / Accessor: node Buffer
13-
* **ByteBufferAB**   Backing buffer: ArrayBuffer, Accessor: Uint8Array
14-
* **ByteBufferAB_DataView**   Backing buffer: ArrayBuffer, Accessor: DataView
12+
* **bytebuffer**   Backing buffer: ArrayBuffer, Accessor: Uint8Array
13+
* **bytebuffer-dataview**   Backing buffer: ArrayBuffer, Accessor: DataView
14+
* **bytebuffer-node**   Backing buffer / Accessor: node Buffer
1515
* 8, 16, 32 and 64 bit signed and unsigned integers
1616
* 32 and 64 bit floats
1717
* Varints as used in protobuf (32 and 64 bit, zig-zag)
@@ -53,7 +53,7 @@ Downloads
5353

5454
Support for IE<10, FF<15, Chrome<9 etc.
5555
---------------------------------------
56-
* Use ByteBufferAB_DataView with a polyfill ([see](https://github.com/dcodeIO/ByteBuffer.js/tree/master/dist))
56+
* Use bytebuffer-dataview with a polyfill ([see](https://github.com/dcodeIO/ByteBuffer.js/tree/master/dist))
5757

5858
Contributors
5959
------------

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "bytebuffer",
3-
"version": "4.1.0",
3+
"version": "5.0.0",
44
"author": "Daniel Wirtz <dcode@dcode.io>",
55
"description": "A full-featured ByteBuffer implementation using typed arrays.",
6-
"main": "dist/ByteBufferAB.js",
6+
"main": "dist/bytebuffer.js",
77
"keywords": ["net", "array", "buffer", "arraybuffer", "typed array", "bytebuffer", "json", "websocket", "webrtc"],
88
"dependencies": {
99
"long": "latest"

bytebuffer.png

4.28 KB
Loading

dist/ByteBufferAB.min.js.gz

-8.14 KB
Binary file not shown.

dist/ByteBufferAB_DataView.min.js.gz

-7.47 KB
Binary f 2364 ile not shown.

dist/README.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,42 +9,39 @@ ByteBuffer.js uses either ArrayBuffers in the browser or Buffers under node.js.
99

1010
Using Typed Arrays here is pretty much ideal, but it [requires a somewhat recent browser](http://caniuse.com/#feat=typedarrays).
1111

12-
* **[ByteBufferAB.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB.js)**
12+
* **[bytebuffer.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/bytebuffer.js)**
1313
uses an ArrayBuffer as its backing buffer, accessed through an [Uint8Array](https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array).
1414

15-
* **[ByteBufferAB.min.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB.min.js)**
15+
* **[bytebuffer.min.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/bytebuffer.min.js)**
1616
has been compiled with Closure Compiler using advanced optimizations.
1717

18-
* **[ByteBufferAB.min.js.gz](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB.min.js.gz)**
18+
* **[bytebuffer.min.js.gz](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/bytebuffer.min.js.gz)**
1919
has also been gzipped using `-9`.
2020

21-
* **[ByteBufferAB.min.map](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB.min.map)**
21+
* **[bytebuffer.min.map](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/bytebuffer.min.map)**
2222
is the source map generated by Closure Compiler.
2323

2424
##### Accessed through a DataView ([polyfill](https://github.com/inexorabletash/polyfill/blob/master/typedarray.js) compatible)
2525

2626
Using DataViews is [generally slower](https://github.com/dcodeIO/ByteBuffer.js/issues/16) but works well with common polyfills for
2727
older browsers (avoids array access operators on Typed Arrays).
2828

29-
* **[ByteBufferAB_DataView.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB_DataView.js)**
29+
* **[bytebuffer-dataview.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/bytebuffer-dataview.js)**
3030
uses an ArrayBuffer as its backing buffer, accessed through a [DataView](https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/DataView).
3131

32-
* **[ByteBufferAB_DataView.min.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB_DataView.min.js)**
32+
* **[bytebuffer-dataview.min.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/bytebuffer-dataview.min.js)**
3333
has been compiled with Closure Compiler using advanced optimizations.
3434

35-
* **[ByteBufferAB_DataView.min.js.gz](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB_DataView.min.js.gz)**
35+
* **[bytebuffer-dataview.min.js.gz](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/bytebuffer-dataview.min.js.gz)**
3636
has also been gzipped using `-9`.
3737

38-
* **[ByteBufferAB_DataView.min.map](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferAB_DataView.min.map)**
38+
* **[bytebuffer-dataview.min.map](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/bytebuffer-dataview.min.map)**
3939
is the source map generated by Closure Compiler.
4040

4141
### node.js: [Buffer](https://nodejs.org/api/buffer.html)-backed
4242

43-
* **[ByteBufferNB.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/ByteBufferNB.js)**
43+
* **[bytebuffer-node.js](https://raw.githubusercontent.com/dcodeIO/ByteBuffer.js/master/dist/bytebuffer-node.js)**
4444
uses a [node Buffer](https://nodejs.org/api/buffer.html) as its backing buffer and accessor.
4545

4646
Also available as `bytebuffer` on [npm](https://www.npmjs.org/package/bytebuffer) and
4747
[bower](http://bower.io/search/?q=bytebuffer).
48-
49-
When installed as an [npm package](https://www.npmjs.org/package/bytebuffer), both versions are available.
50-
`exports` and `exports.ByteBufferNB` point at ByteBufferNB, `exports.ByteBufferAB` points at ByteBufferAB.

dist/ByteBufferAB_DataView.js renamed to dist/bytebuffer-dataview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
(function(global, factory) {
2424

2525
/* AMD */ if (typeof define === 'function' && define["amd"])
26-
define(["Long"], factory);
26+
define(["long"], factory);
2727
/* CommonJS */ else if (typeof require === 'function' && typeof module === "object" && module && module["exports"])
2828
module['exports'] = (function() {
2929
var Long; try { Long = require("long"); } catch (e) {}
@@ -124,7 +124,7 @@
124124
* @const
125125
* @expose
126126
*/
127-
ByteBuffer.VERSION = "4.1.0";
127+
ByteBuffer.VERSION = "5.0.0";
128128

129129
/**
130130
* Little endian constant that can be used instead of its boolean value. Evaluates to `true`.

dist/ByteBufferAB_DataView.min.js renamed to dist/bytebuffer-dataview.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bytebuffer-dataview.min.js.gz

7.47 KB
Binary file not shown.

dist/ByteBufferAB_DataView.min.map renamed to dist/bytebuffer-dataview.min.map

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/ByteBufferNB.js renamed to dist/bytebuffer-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports = (function() {
110110
* @const
111111
* @expose
112112
*/
113-
ByteBuffer.VERSION = "4.1.0";
113+
ByteBuffer.VERSION = "5.0.0";
114114

115115
/**
116116
* Little endian constant that can be used instead of its boolean value. Evaluates to `true`.

dist/ByteBufferAB.js renamed to dist/bytebuffer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
(function(global, factory) {
2424

2525
/* AMD */ if (typeof define === 'function' && define["amd"])
26-
define(["Long"], factory);
26+
define(["long"], factory);
2727
/* CommonJS */ else if (typeof require === 'function' && typeof module === "object" && module && module["exports"])
2828
module['exports'] = (function() {
2929
var Long; try { Long = require("long"); } catch (e) {}
@@ -124,7 +124,7 @@
124124
* @const
125125
* @expose
126126
*/
127-
ByteBuffer.VERSION = "4.1.0";
127+
ByteBuffer.VERSION = "5.0.0";
128128

129129
/**
130130
* Little endian constant that can be used instead of its boolean value. Evaluates to `true`.

dist/ByteBufferAB.min.js renamed to dist/bytebuffer.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bytebuffer.min.js.gz

8.14 KB
Binary file not shown.

dist/ByteBufferAB.min.map renamed to dist/bytebuffer.min.map

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
0