long-task-queue-reader 0.7.2 → 0.8.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ # [0.8.0-alpha.1](https://github.com/Parsimotion/long-task-queue-reader/compare/v0.7.2...v0.8.0-alpha.1) (2026-02-27)
2
+
3
+
4
+ ### Features
5
+
6
+ * add once and continuous execution mode ([2893dea](https://github.com/Parsimotion/long-task-queue-reader/commit/2893dea67c6fbef28c257898774a6c173de0b2e9))
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2016 Parsimotion
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2016 Parsimotion
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,35 +1,57 @@
1
- # long-task-queue-reader
2
-
3
- [![NPM version](https://badge.fury.io/js/long-task-queue-reader.png)](http://badge.fury.io/js/long-task-queue-reader)
4
-
5
- Long task Queue reader
6
-
7
-
8
-
9
- ```CoffeeScript
10
-
11
- queueConfig = {
12
- accountName: "ACCOUNT_NAME"
13
- accountKey: "ACCOUNT_KEY"
14
- queueName: "QUEUE_NAME"
15
- waitingTime: 10 # time to sleep when queue is empty (sec)
16
- visibilityTimeout: #time to
17
- }
18
-
19
- loggerConfig = {
20
- accountName: "ACCOUNT_NAME"
21
- accountKey: "ACCOUNT_KEY"
22
- container: "CONTAINER_NAME"
23
- name: "LOG_NAME"
24
- level: "LOG_LEVEL"
25
- }
26
-
27
- new LongTaskQueueBuilder()
28
- .withLogger loggerConfig
29
- .withQueue queueConfig
30
- .withRunner (message) -> new SynchronizationRunner(message).run()
31
- .withMaxRetries(10)
32
- .build()
33
- .then (queueReader) -> queueReader.start()
34
-
35
- ```
1
+ # long-task-queue-reader
2
+
3
+ [![NPM version](https://badge.fury.io/js/long-task-queue-reader.png)](http://badge.fury.io/js/long-task-queue-reader)
4
+
5
+ Long task Queue reader
6
+
7
+
8
+
9
+ ```CoffeeScript
10
+
11
+ queueConfig = {
12
+ accountName: "ACCOUNT_NAME"
13
+ accountKey: "ACCOUNT_KEY"
14
+ queueName: "QUEUE_NAME"
15
+ waitingTime: 10 # time to sleep when queue is empty (sec)
16
+ visibilityTimeout: #time to
17
+ }
18
+
19
+ loggerConfig = {
20
+ accountName: "ACCOUNT_NAME"
21
+ accountKey: "ACCOUNT_KEY"
22
+ container: "CONTAINER_NAME"
23
+ name: "LOG_NAME"
24
+ level: "LOG_LEVEL"
25
+ }
26
+
27
+ new LongTaskQueueBuilder()
28
+ .withLogger loggerConfig
29
+ .withQueue queueConfig
30
+ .withRunner (message) -> new SynchronizationRunner(message).run()
31
+ .withMaxRetries(10)
32
+ .build()
33
+ .then (queueReader) -> queueReader.start()
34
+
35
+ ```
36
+ ## 📦 Publishing a New Version
37
+
38
+ Package publishing is now handled automatically via a GitHub Action triggered on `push` to the `main` or `master` branches.
39
+
40
+ You can also trigger it manually from the **Actions** tab using the `Release` workflow.
41
+
42
+ The workflow supports prerelease versions (e.g., `alpha`, `beta`) through the `prereleaseTag` input.
43
+
44
+ > 🔐 The release process uses the contents of the `lib/` directory generated during build.
45
+
46
+ ## ✅ Commit Message Validation
47
+
48
+ [`commitlint`](https://github.com/conventional-changelog/commitlint) was added to ensure commit messages follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard.
49
+
50
+ Commit messages are automatically validated before each commit using [Husky](https://typicode.github.io/husky/).
51
+
52
+ **Example of a valid commit message:**
53
+
54
+ ```bash
55
+ feat: add login functionality
56
+ ```
57
+ > If the format is invalid, the commit will be blocked.