Skip to content

Releases: grimmer0125/d4c-queue

Add option dropWhenReachLimit for better throtting effect.

15 Nov 15:25
de9cae0
Compare
Choose a tag to compare

Update README. Fix potential security vulnerabilities in dependencies and gh-pages publishing.

15 Nov 15:24
Compare
Choose a tag to compare

Update README and fix potential security vulnerabilities in dependencies

13 Jul 15:43
Compare
Choose a tag to compare

Update README and fix potential security vulnerabilities in dependencies

14 Jun 12:40
Compare
Choose a tag to compare

@concurrent decorator concurrency mode is added

14 May 20:01
Compare
Choose a tag to compare

1.6.0 (2021-05-07)

⭐ Decorator concurrency mode ⭐ is added.

@QConcurrency([
  { limit: 100, isStatic: true },
  { limit: 50, tag: '2' },
])
class TestController {
  @concurrent
  static async fetchData(url: string) {}

⚠ BREAKING CHANGES

// orig: only setup one queue, omitting tag will apply default queue and new tag queue
d4c = new D4C({ concurrency: { limit: 100 } });
d4c.setConcurrency({ limit: 10 });

// new. to setup multiple queue, omitting tag will only for deafult queue and not apply on new tag queue
d4c = new D4C([{ concurrency: { limit: 100 } }]);
d4c.setConcurrency([{ limit: 10 }]);

⚠ BREAKING CHANGES

12 May 08:12
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

/** orig */
d4c.setQueue({ concurrency: 10 });

/** new, rename parameter */
d4c.setQueue({ limit: 10 });

API change

07 May 15:32
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

const d4c = new D4C(100);

To

const d4c = new D4C({ concurrency: 100 });

concurrency mode support

07 May 12:38
207dd5a
Compare
Choose a tag to compare

⭐ New API ⭐ & minor bug fixes

Add concurrency mode support for D4C instance usage. Previously it only supports synchronization mode (concurrency = 1).

const d4c = new D4C(100);
d4c.setQueue({ concurrency: 10 }); // change default concurrency from 1 to 10
d4c.setQueue({ concurrency: 10, tag: 'queue2' }); // concurrency for queue2

Remove reflect-metadata need

06 May 18:14
Compare
Choose a tag to compare

Remove @injectQ decorator usage, no need anymore

05 May 04:42
883c180
Compare
Choose a tag to compare