UNPKG

7.45 kBMarkdownView Raw
1<a name="2.0.3"></a>
2## [2.0.3](https://github.com/mongodb/js-bson/compare/v2.0.2...v2.0.3) (2018-03-12)
3
4
5### Features
6
7* **serialization:** support arbitrary sizes for the internal serialization buffer ([a6bd45c](https://github.com/mongodb/js-bson/commit/a6bd45c))
8
9
10
11<a name="2.0.2"></a>
12## [2.0.2](https://github.com/mongodb/js-bson/compare/v2.0.1...v2.0.2) (2018-03-02)
13
14
15### Bug Fixes
16
17* make sure all functions are named consistently ([6df9022](https://github.com/mongodb/js-bson/commit/6df9022))
18
19
20
21<a name="2.0.1"></a>
22## [2.0.1](https://github.com/mongodb/js-bson/compare/v2.0.0...v2.0.1) (2018-02-28)
23
24
25### Bug Fixes
26
27* **serializer:** ensure RegExp options are alphabetically sorted ([d60659d](https://github.com/mongodb/js-bson/commit/d60659d))
28
29
30### Features
31
32* **db-ref:** support passing a namespace into a DBRef ctor ([604831b](https://github.com/mongodb/js-bson/commit/604831b))
33
34
35
36<a name="2.0.0"></a>
37# 2.0.0 (2018-02-26)
38
39
40### Bug Fixes
41
42* **browser:** fixing browser property in package.json ([095fba9](https://github.com/mongodb/js-bson/commit/095fba9))
43* **dbref:** only upgrade objects with allowed $keys to DBRefs ([98eb9e2](https://github.com/mongodb/js-bson/commit/98eb9e2))
44* **decimal128:** add basic guard against REDOS attacks ([511ecc4](https://github.com/mongodb/js-bson/commit/511ecc4))
45* **Decimal128:** update toString and fromString methods to correctly handle the case of too many significant digits ([25ed43e](https://github.com/mongodb/js-bson/commit/25ed43e))
46* **objectid:** if pid is 1, use random value ([e188ae6](https://github.com/mongodb/js-bson/commit/e188ae6))
47* **serializeWithBufferAndIndex:** write documents to start of intermediate buffer ([b4e4ac5](https://github.com/mongodb/js-bson/commit/b4e4ac5))
48
49
50
511.0.4 2016-01-11
52----------------
53- #204 remove Buffer.from as it's partially broken in early 4.x.x. series of node releases.
54
551.0.3 2016-01-03
56----------------
57- Fixed toString for ObjectId so it will work with inspect.
58
591.0.2 2016-01-02
60----------------
61- Minor optimizations for ObjectID to use Buffer.from where available.
62
631.0.1 2016-12-06
64----------------
65- Reverse behavior for undefined to be serialized as NULL. MongoDB 3.4 does not allow for undefined comparisons.
66
671.0.0 2016-12-06
68----------------
69- Introduced new BSON API and documentation.
70
710.5.7 2016-11-18
72-----------------
73- NODE-848 BSON Regex flags must be alphabetically ordered.
74
750.5.6 2016-10-19
76-----------------
77- NODE-833, Detects cyclic dependencies in documents and throws error if one is found.
78- Fix(deserializer): corrected the check for (size + index) comparison… (Issue #195, https://github.com/JoelParke).
79
800.5.5 2016-09-15
81-----------------
82- Added DBPointer up conversion to DBRef
83
840.5.4 2016-08-23
85-----------------
86- Added promoteValues flag (default to true) allowing user to specify if deserialization should be into wrapper classes only.
87
880.5.3 2016-07-11
89-----------------
90- Throw error if ObjectId is not a string or a buffer.
91
920.5.2 2016-07-11
93-----------------
94- All values encoded big-endian style for ObjectId.
95
960.5.1 2016-07-11
97-----------------
98- Fixed encoding/decoding issue in ObjectId timestamp generation.
99- Removed BinaryParser dependency from the serializer/deserializer.
100
1010.5.0 2016-07-05
102-----------------
103- Added Decimal128 type and extended test suite to include entire bson corpus.
104
1050.4.23 2016-04-08
106-----------------
107- Allow for proper detection of ObjectId or objects that look like ObjectId, improving compatibility across third party libraries.
108- Remove one package from dependency due to having been pulled from NPM.
109
1100.4.22 2016-03-04
111-----------------
112- Fix "TypeError: data.copy is not a function" in Electron (Issue #170, https://github.com/kangas).
113- Fixed issue with undefined type on deserializing.
114
1150.4.21 2016-01-12
116-----------------
117- Minor optimizations to avoid non needed object creation.
118
1190.4.20 2015-10-15
120-----------------
121- Added bower file to repository.
122- Fixed browser pid sometimes set greater than 0xFFFF on browsers (Issue #155, https://github.com/rahatarmanahmed)
123
1240.4.19 2015-10-15
125-----------------
126- Remove all support for bson-ext.
127
1280.4.18 2015-10-15
129-----------------
130- ObjectID equality check should return boolean instead of throwing exception for invalid oid string #139
131- add option for deserializing binary into Buffer object #116
132
1330.4.17 2015-10-15
134-----------------
135- Validate regexp string for null bytes and throw if there is one.
136
1370.4.16 2015-10-07
138-----------------
139- Fixed issue with return statement in Map.js.
140
1410.4.15 2015-10-06
142-----------------
143- Exposed Map correctly via index.js file.
144
1450.4.14 2015-10-06
146-----------------
147- Exposed Map correctly via bson.js file.
148
1490.4.13 2015-10-06
150-----------------
151- Added ES6 Map type serialization as well as a polyfill for ES5.
152
1530.4.12 2015-09-18
154-----------------
155- Made ignore undefined an optional parameter.
156
1570.4.11 2015-08-06
158-----------------
159- Minor fix for invalid key checking.
160
1610.4.10 2015-08-06
162-----------------
163- NODE-38 Added new BSONRegExp type to allow direct serialization to MongoDB type.
164- Some performance improvements by in lining code.
165
1660.4.9 2015-08-06
167----------------
168- Undefined fields are omitted from serialization in objects.
169
1700.4.8 2015-07-14
171----------------
172- Fixed size validation to ensure we can deserialize from dumped files.
173
1740.4.7 2015-06-26
175----------------
176- Added ability to instruct deserializer to return raw BSON buffers for named array fields.
177- Minor deserialization optimization by moving inlined function out.
178
1790.4.6 2015-06-17
180----------------
181- Fixed serializeWithBufferAndIndex bug.
182
1830.4.5 2015-06-17
184----------------
185- Removed any references to the shared buffer to avoid non GC collectible bson instances.
186
1870.4.4 2015-06-17
188----------------
189- Fixed rethrowing of error when not RangeError.
190
1910.4.3 2015-06-17
192----------------
193- Start buffer at 64K and double as needed, meaning we keep a low memory profile until needed.
194
1950.4.2 2015-06-16
196----------------
197- More fixes for corrupt Bson
198
1990.4.1 2015-06-16
200----------------
201- More fixes for corrupt Bson
202
2030.4.0 2015-06-16
204----------------
205- New JS serializer serializing into a single buffer then copying out the new buffer. Performance is similar to current C++ parser.
206- Removed bson-ext extension dependency for now.
207
2080.3.2 2015-03-27
209----------------
210- Removed node-gyp from install script in package.json.
211
2120.3.1 2015-03-27
213----------------
214- Return pure js version on native() call if failed to initialize.
215
2160.3.0 2015-03-26
217----------------
218- Pulled out all C++ code into bson-ext and made it an optional dependency.
219
2200.2.21 2015-03-21
221-----------------
222- Updated Nan to 1.7.0 to support io.js and node 0.12.0
223
2240.2.19 2015-02-16
225-----------------
226- Updated Nan to 1.6.2 to support io.js and node 0.12.0
227
2280.2.18 2015-01-20
229-----------------
230- Updated Nan to 1.5.1 to support io.js
231
2320.2.16 2014-12-17
233-----------------
234- Made pid cycle on 0xffff to avoid weird overflows on creation of ObjectID's
235
2360.2.12 2014-08-24
237-----------------
238- Fixes for fortify review of c++ extension
239- toBSON correctly allows returns of non objects
240
2410.2.3 2013-10-01
242----------------
243- Drying of ObjectId code for generation of id (Issue #54, https://github.com/moredip)
244- Fixed issue where corrupt CString's could cause endless loop
245- Support for Node 0.11.X > (Issue #49, https://github.com/kkoopa)
246
2470.1.4 2012-09-25
248----------------
249- Added precompiled c++ native extensions for win32 ia32 and x64