Skip to content

Commit f61946d

Browse files
feat(NODE-7099): deprecate BSON binary subtype 2 constant (#812)
1 parent 8da59c3 commit f61946d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/binary.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ export class Binary extends BSONValue {
4545
static readonly SUBTYPE_DEFAULT = 0;
4646
/** Function BSON type */
4747
static readonly SUBTYPE_FUNCTION = 1;
48-
/** Byte Array BSON type */
48+
/**
49+
* Legacy default BSON Binary type
50+
* @deprecated BSON Binary subtype 2 is deprecated in the BSON specification
51+
*/
4952
static readonly SUBTYPE_BYTE_ARRAY = 2;
5053
/** Deprecated UUID BSON type @deprecated Please use SUBTYPE_UUID */
5154
static readonly SUBTYPE_UUID_OLD = 3;

0 commit comments

Comments
 (0)