Commit Graph

737 Commits

Author SHA1 Message Date
zhaoyunfeng e74ba91238 feat: now search callback response will emit SearchRequest after every search request is sent 2021-05-24 12:34:32 +08:00
James Sumners c2494eca00
Apply suggestions from code review 2021-05-21 08:04:41 -04:00
CoryGH b860932b9b
updated documentation
Updated examples documentation.
2021-05-21 05:08:51 -04:00
CoryGH dede2e6165
addition of example for threading via net server
Addition of working example demonstrating threading via clustering and a net server forwarding socket connections to ldapjs.
2021-05-21 05:01:31 -04:00
CoryGH c97f1becff
adding example for cluster-based multithreading
working example of cluster-based multithreading utilizing connectionRouter override.
2021-05-21 04:53:57 -04:00
CoryGH 91cac2fdaa
linting typos
linting typos fixed
2021-05-20 12:27:10 -04:00
CoryGH 8a791d4bf0
net dependency
net dependency
2021-05-20 10:40:37 -04:00
CoryGH 992be5a557
adding connectionRouter hook
adding connectionRouter hook back in
2021-05-20 10:35:13 -04:00
CoryGH 534e3dd542
test for multithreading support
tests for multithreading support via non-ldapjs-server and via hook into ldapjs server
2021-05-20 10:33:46 -04:00
CoryGH 6cce4f60cc
removing hook while keeping newConnection change
removal of hook while keeping `newConnection` change from private to public for use in multithreaded applications
2021-05-20 07:21:52 -04:00
CoryGH bca931a4cd
connection router to accomodate multithreading
connection router hook added to accommodate multithreaded servers
2021-05-19 14:36:51 -04:00
seewer 137590d293
Merge branch 'master' into fix-paged-concurrent 2021-05-11 08:56:28 +02:00
James Sumners 010b472dd8
Merge pull request #724 from ldapjs/dependabot/npm_and_yarn/tap-15.0.9
Bump tap from 15.0.6 to 15.0.9
2021-05-09 10:30:02 -04:00
dependabot[bot] 61ce19ec49
Bump tap from 15.0.6 to 15.0.9
Bumps [tap](https://github.com/tapjs/node-tap) from 15.0.6 to 15.0.9.
- [Release notes](https://github.com/tapjs/node-tap/releases)
- [Commits](https://github.com/tapjs/node-tap/compare/v15.0.6...v15.0.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-08 07:06:14 +00:00
Philippe Seewer d064b359d3 Run lint.
Signed-off-by: Philippe Seewer <philippe.seewer@bfh.ch>
2021-05-07 15:50:02 +02:00
Philippe Seewer e07656b233 SearchPager: Implement queueing events until a listener appears
This fixes the same problems for paged searches as does
https://github.com/ldapjs/node-ldapjs/pull/610 for unpaged searches.

By passing an EventEmitter via callback there exist cases when events
are emitted before listeners are registered, resulting in missed
events.

The Change turns SearchPager into a CorkedEmitter which is already
used as a solution for non paged searches. Doing so requires the
internal 'search' event to be dropped.

This change adapts a test case originally by László Szűcs (@ifroz).

Signed-off-by: Philippe Seewer <philippe.seewer@bfh.ch>
2021-05-07 14:04:37 +02:00
James Sumners 17d8b4cedf
Merge pull request #720 from ldapjs/dependabot/npm_and_yarn/tap-15.0.6
Bump tap from 15.0.2 to 15.0.6
2021-05-04 08:05:32 -04:00
dependabot[bot] 88bb4c40a5
Bump tap from 15.0.2 to 15.0.6
Bumps [tap](https://github.com/tapjs/node-tap) from 15.0.2 to 15.0.6.
- [Release notes](https://github.com/tapjs/node-tap/releases)
- [Commits](https://github.com/tapjs/node-tap/compare/v15.0.2...v15.0.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-01 07:01:31 +00:00
James Sumners 69a18c7983
Merge pull request #717 from ldapjs/dependabot/npm_and_yarn/tap-15.0.2 2021-04-10 08:19:45 -04:00
dependabot[bot] 24256d2554
Bump tap from 15.0.1 to 15.0.2
Bumps [tap](https://github.com/tapjs/node-tap) from 15.0.1 to 15.0.2.
- [Release notes](https://github.com/tapjs/node-tap/releases)
- [Commits](https://github.com/tapjs/node-tap/compare/v15.0.1...v15.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-10 07:01:42 +00:00
Tony Brix 50ab06f50f
Merge pull request #716 from ldapjs/dependabot/npm_and_yarn/tap-15.0.1 2021-04-05 08:15:51 -05:00
Tony Brix 2a4af7a855 check-coverage: false 2021-04-05 00:38:39 -05:00
Tony Brix a1b4ceed1d fix deprecations 2021-04-05 00:34:59 -05:00
Tony Brix daf1eb8f43 return promises in before/after each 2021-04-05 00:25:32 -05:00
dependabot[bot] f525cebb64
Bump tap from 14.11.0 to 15.0.1
Bumps [tap](https://github.com/tapjs/node-tap) from 14.11.0 to 15.0.1.
- [Release notes](https://github.com/tapjs/node-tap/releases)
- [Commits](https://github.com/tapjs/node-tap/compare/v14.11.0...v15.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-03 07:02:27 +00:00
James Sumners 1570e04952
Merge pull request #709 from ldapjs/dependabot/github_actions/actions/setup-node-v2.1.5
Bump actions/setup-node from v1 to v2.1.5
2021-02-27 07:41:50 -05:00
dependabot[bot] b17973ed41
Bump actions/setup-node from v1 to v2.1.5
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v1 to v2.1.5.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v1...46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-27 08:00:49 +00:00
Tony Brix 1dfc2afbbd
Merge pull request #708 from UziTech/simplify-docs
docs: simplify docs
2021-02-25 23:54:41 -06:00
Tony Brix 7d01d1679c docs: simplify docs 2021-02-25 01:39:35 -06:00
Tony Brix 0b2ac8b23c
Merge pull request #707 from timgates42/bugfix_typos 2021-02-24 22:56:59 -06:00
Tony Brix be2b8757d6
Merge branch 'master' into bugfix_typos 2021-02-24 22:53:58 -06:00
Tim Gates 9fb353c278
Fix a few small typos 2021-02-25 14:27:03 +11:00
Tony Brix 67194694d0
Merge pull request #706 from UziTech/highlight-code-docs 2021-02-24 21:22:39 -06:00
Tony Brix 7a5251b47a add highlight css 2021-02-24 17:02:30 -06:00
Tony Brix b13460e4a9 docs: fix indentation 2021-02-24 16:21:06 -06:00
Tony Brix 2de077d39f docs: highlight code 2021-02-24 16:06:13 -06:00
Tony Brix e4b72cde9b docs: update code 2021-02-24 16:03:35 -06:00
Tony Brix 2ee04b14a3
Merge pull request #705 from ldapjs/v2.2.4
2.2.4
2021-02-24 10:34:50 -06:00
Tony Brix 475faa8981 2.2.4 2021-02-24 10:26:45 -06:00
Tony Brix 4bac9436cd
Merge pull request #700 from ldapjs/dependabot/npm_and_yarn/marked-2.0.0
Bump marked from 1.2.9 to 2.0.0
2021-02-24 08:50:43 -06:00
Tony Brix 1c9643aa3c
Merge branch 'master' into dependabot/npm_and_yarn/marked-2.0.0 2021-02-24 08:47:27 -06:00
Tony Brix f247fba7d3
Merge pull request #704 from UziTech/emitError 2021-02-24 08:46:29 -06:00
Tony Brix 0dab63cef9 docs: add client events table 2021-02-23 22:30:47 -06:00
Tony Brix bb475ab00f fix: emit error event if other error events are not listened to 2021-02-23 17:23:56 -06:00
dependabot[bot] 0379bbb7b0
Bump marked from 1.2.9 to 2.0.0
Bumps [marked](https://github.com/markedjs/marked) from 1.2.9 to 2.0.0.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js)
- [Commits](https://github.com/markedjs/marked/compare/v1.2.9...v2.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-13 08:03:08 +00:00
Tony Brix b83008c717
Merge pull request #696 from UziTech/docs
remove email link from docs
2020-12-13 13:42:27 -06:00
Tony Brix 3ef9a7804e remove email link 2020-12-13 13:05:58 -06:00
Tony Brix d08ad3dd78
Merge pull request #695 from UziTech/cname
add cname to docs
2020-12-13 12:33:43 -06:00
Tony Brix 4a1ac8607a
Merge branch 'master' into cname 2020-12-13 12:29:57 -06:00
Tony Brix 242466f485 add cname to docs 2020-12-13 12:27:09 -06:00