Skip to content

Releases: wslyhbb/node-ldapjs-promise

3.0.6

03 Dec 15:06
Compare
Choose a tag to compare

Updated dependencies and fixed export of parseDN (#14) .

3.0.5

20 Oct 02:26
Compare
Choose a tag to compare

Updating dependencies.

3.0.4

21 Sep 23:22
Compare
Choose a tag to compare

Updated dependencies and updated @types/ldapjs to v3 to fix #12 .

3.0.3

17 Jun 21:20
Compare
Choose a tag to compare

Updated type definition.
#11 by @tsumo

3.0.2

09 May 17:37
Compare
Choose a tag to compare

Updated type definition.
#10 by @atoy40

3.0.1

25 Mar 19:46
Compare
Choose a tag to compare

Fixes #9.

3.0.0

24 Mar 01:04
Compare
Choose a tag to compare

Updated ldapjs to version 3

ldapjs version 3 made a change to the modification property of Change to require an Attribute. For more information reference Error: modification must be an Attribute #859
ldapjs v2:

const change = new ldap.Change({
    operation: 'add',
    modification: {
        pets: ['cat', 'dog']
    }
});

ldapjs v3:

const change = new ldap.Change({
    operation: 'add',
    modification: new Attribute({
        type: 'pets',
        values: ['cat', 'dog']
    })
});

In node-ldapjs-promise v2 the searchReturnAll method was returning the entry.object result for each entry. In ldapjs v2 they had a .raw property to get the raw entry, and by returning the entry.object the entry.raw was being ignored. The raw property was exposed in release v2.0.2. ldapjs v3 no longer has a .raw property. Binary can be retrieved by appending ;binary to the attribute. See issue: corresponding field in v3 of the raw field in v2 #858.

ldapjs v3 SearchResultEntry syntax has changed. It no longer has a .object property and instead has a .pojo property. For more information see their release notes: ldapjs v3.0.0 release notes.
Given that previously by returning the .object property caused the .raw to be ignored and given that the .pojo object now looks much like the parent entry object, searchReturnAll returns the base SearchResultEntry and does not assume the user wants the .pojo property.
Since the .pojo property no longer provides attributes in an object notation, such as entry.cn or entry.mail more work is needed to get the attributes. See entry received on a searchEntry message does not contain object #841 for more information. Attributes can be accessed by entry.attributes or entry.pojo.attributes.

2.0.2

08 Mar 01:53
Compare
Choose a tag to compare

Added raw data to output for buffer access. Thanks to @christopherpickering.

2.0.1

26 Dec 02:46
Compare
Choose a tag to compare

Added event emitter.

2.0.0

18 Sep 15:19
Compare
Choose a tag to compare

Updated dependent packages.

  • Updated Sinon to 14.0.0.
  • Updated Mocha to 10.0.0.

These packages dropped support for Node < 14, therefore this library also now requires Node >= 14.