Comparing version 1.0.9 to 1.1.0
@@ -0,1 +1,11 @@ | ||
<a name="1.1.0"></a> | ||
# [1.1.0](https://github.com/mongodb/js-bson/compare/v1.0.9...v1.1.0) (2018-08-13) | ||
### Bug Fixes | ||
* **serializer:** do not use checkKeys for $clusterTime ([573e141](https://github.com/mongodb/js-bson/commit/573e141)) | ||
<a name="1.0.9"></a> | ||
@@ -2,0 +12,0 @@ ## [1.0.9](https://github.com/mongodb/js-bson/compare/v1.0.8...v1.0.9) (2018-06-07) |
@@ -18,2 +18,3 @@ 'use strict'; | ||
var regexp = /\x00/; // eslint-disable-line no-control-regex | ||
var ignoreKeys = ['$db', '$ref', '$id', '$clusterTime']; | ||
@@ -802,3 +803,3 @@ // To ensure that 0.4 of node works correctly | ||
// Check the key and throw error if it's illegal | ||
if (key !== '$db' && key !== '$ref' && key !== '$id') { | ||
if (typeof key === 'string' && ignoreKeys.indexOf(key) === -1) { | ||
if (key.match(regexp) != null) { | ||
@@ -904,3 +905,3 @@ // The BSON spec doesn't allow keys with null bytes because keys are | ||
// Check the key and throw error if it's illegal | ||
if (key !== '$db' && key !== '$ref' && key !== '$id') { | ||
if (typeof key === 'string' && ignoreKeys.indexOf(key) === -1) { | ||
if (key.match(regexp) != null) { | ||
@@ -907,0 +908,0 @@ // The BSON spec doesn't allow keys with null bytes because keys are |
@@ -15,3 +15,3 @@ { | ||
], | ||
"version": "1.0.9", | ||
"version": "1.1.0", | ||
"author": "Christian Amor Kvalheim <christkv@gmail.com>", | ||
@@ -18,0 +18,0 @@ "contributors": [], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
755155
21087