@sapphire/plugin-scheduled-tasks 2.3.2 → 2.3.3-next.1e13a35.0

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,102 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [2.3.2](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-scheduled-tasks@2.3.1...@sapphire/plugin-scheduled-tasks@2.3.2) (2022-04-02)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **schedules-tasks:** processor name on bull ([#264](https://github.com/sapphiredev/plugins/issues/264)) ([d0f7d5b](https://github.com/sapphiredev/plugins/commit/d0f7d5ba57131b68216f7c9d2964c49c81ca09d6))
10
+
11
+ ## [2.3.1](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-scheduled-tasks@2.3.0...@sapphire/plugin-scheduled-tasks@2.3.1) (2022-04-01)
12
+
13
+ ### Bug Fixes
14
+
15
+ - **schedules-tasks:** create cron scheduled tasks with unique names to avoid name conflicts, causing tasks to be ignored ([#263](https://github.com/sapphiredev/plugins/issues/263)) ([44c4b94](https://github.com/sapphiredev/plugins/commit/44c4b94b88ad945771df81d1dbb514081606459c))
16
+
17
+ # [2.3.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-scheduled-tasks@2.2.0...@sapphire/plugin-scheduled-tasks@2.3.0) (2022-03-06)
18
+
19
+ ### Bug Fixes
20
+
21
+ - **deps:** update all non-major dependencies ([2016134](https://github.com/sapphiredev/plugins/commit/201613418babe93748e74064cf66d4ea0582725c))
22
+
23
+ ### Features
24
+
25
+ - allow module: NodeNext ([#251](https://github.com/sapphiredev/plugins/issues/251)) ([31bab09](https://github.com/sapphiredev/plugins/commit/31bab09834ebc1bc646e4a2849dbd24c65f08c0e))
26
+
27
+ # [2.2.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-scheduled-tasks@2.1.0...@sapphire/plugin-scheduled-tasks@2.2.0) (2022-01-23)
28
+
29
+ ### Bug Fixes
30
+
31
+ - **scheduled-tasks:** fix the flow of running repeated tasks ([b614a9a](https://github.com/sapphiredev/plugins/commit/b614a9a5664482fae79148162dac4eed9afe0e5a))
32
+
33
+ ### Features
34
+
35
+ - **scheduled-tasks:** make it possible to configure additional Job options when using Redis strategy ([#232](https://github.com/sapphiredev/plugins/issues/232)) ([cb90edc](https://github.com/sapphiredev/plugins/commit/cb90edce16dbff9280e88f6f18a4adf91cef28af))
36
+
37
+ # [2.1.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-scheduled-tasks@2.0.0...@sapphire/plugin-scheduled-tasks@2.1.0) (2022-01-13)
38
+
39
+ ### Bug Fixes
40
+
41
+ - **scheduled-tasks and pattern-commands:** Add params to event typedocs ([#222](https://github.com/sapphiredev/plugins/issues/222)) ([e18509f](https://github.com/sapphiredev/plugins/commit/e18509f2df3d3b1fd146e21c6dc199170d671b15))
42
+
43
+ ### Features
44
+
45
+ - **scheduled-tasks:** add duration to `ScheduledTaskSuccess` event ([#226](https://github.com/sapphiredev/plugins/issues/226)) ([6ab6493](https://github.com/sapphiredev/plugins/commit/6ab6493918bb7979a83d8beefc169329ee0bd5dd))
46
+
47
+ # [2.0.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-scheduled-tasks@1.2.1...@sapphire/plugin-scheduled-tasks@2.0.0) (2022-01-10)
48
+
49
+ ### Bug Fixes
50
+
51
+ - **scheduled-task:** Return result ([#221](https://github.com/sapphiredev/plugins/issues/221)) ([1cf6d92](https://github.com/sapphiredev/plugins/commit/1cf6d92bf90bc74b921aa6445af177632bdde5c6))
52
+
53
+ ### Features
54
+
55
+ - **scheduled-task:** add duration to finished and error events ([#218](https://github.com/sapphiredev/plugins/issues/218)) ([8d7d3a6](https://github.com/sapphiredev/plugins/commit/8d7d3a6a9a8c23963832144d10971133135a035f))
56
+
57
+ ## [1.2.1](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-scheduled-tasks@1.2.0...@sapphire/plugin-scheduled-tasks@1.2.1) (2022-01-09)
58
+
59
+ ### Bug Fixes
60
+
61
+ - **scheduled-task:** SQS type error when using Redis ([#217](https://github.com/sapphiredev/plugins/issues/217)) ([513aee6](https://github.com/sapphiredev/plugins/commit/513aee6520e6f6b322fb85e7cdd36a8ed40aed9d))
62
+
63
+ ### Features
64
+
65
+ - add HMR plugin ([#209](https://github.com/sapphiredev/plugins/issues/209)) ([4a18bb1](https://github.com/sapphiredev/plugins/commit/4a18bb1377a8d506fddc5bb991430503902d393b))
66
+
67
+ # [1.2.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-scheduled-tasks@1.1.1...@sapphire/plugin-scheduled-tasks@1.2.0) (2022-01-06)
68
+
69
+ ### Bug Fixes
70
+
71
+ - **scheduled-tasks:** added tsdoc for `ScheduledTaskEvents` ([17fff64](https://github.com/sapphiredev/plugins/commit/17fff647f3a8613be7750ca62c2675398bf3aa7a))
72
+ - **scheduled-tasks:** fixed export of events enum not being on top level ([caf2d54](https://github.com/sapphiredev/plugins/commit/caf2d5465edbe7466734c283229b78ba2ea715c6))
73
+ - **scheduled-tasks:** fixed the return types for the strategy methods ([3d8ec44](https://github.com/sapphiredev/plugins/commit/3d8ec44ca515b49eac2a1062875bc063a4e62982))
74
+
75
+ ### Features
76
+
77
+ - **scheduled-tasks:** add `delete`, `list`, `listRepeated` & `get` methods ([#207](https://github.com/sapphiredev/plugins/issues/207)) ([13c767b](https://github.com/sapphiredev/plugins/commit/13c767b4f241842f2f759ab0667bec329a6291c3))
78
+ - **scheduled-tasks:** add getter for the client ([878e187](https://github.com/sapphiredev/plugins/commit/878e187241056bfbe8ce53d85dc8fa2f77bcb78c))
79
+
80
+ ## [1.1.1](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-scheduled-tasks@1.1.0...@sapphire/plugin-scheduled-tasks@1.1.1) (2021-12-29)
81
+
82
+ ### Bug Fixes
83
+
84
+ - **scheduled-tasks:** no async/await for connect ([#201](https://github.com/sapphiredev/plugins/issues/201)) ([6c3b9b1](https://github.com/sapphiredev/plugins/commit/6c3b9b1b32fb8aa006e9bc1e88074d17cb315fa1))
85
+
86
+ # [1.1.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-scheduled-tasks@1.0.1...@sapphire/plugin-scheduled-tasks@1.1.0) (2021-12-29)
87
+
88
+ ### Features
89
+
90
+ - **scheduled-tasks:** emit various events in the process of handling scheduled tasks ([#200](https://github.com/sapphiredev/plugins/issues/200)) ([68a5e2a](https://github.com/sapphiredev/plugins/commit/68a5e2a4ca9b806ddbf38cee8b1331fb9aa1b46f))
91
+
92
+ ## [1.0.1](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-scheduled-tasks@1.0.0...@sapphire/plugin-scheduled-tasks@1.0.1) (2021-12-28)
93
+
94
+ ### Bug Fixes
95
+
96
+ - **scheduled-task:** bump `bull` and `@sapphire/time-utilities` dependencies ([f12a285](https://github.com/sapphiredev/plugins/commit/f12a2851bc57b49b5c716d9974e269c1723d8c2d))
97
+
98
+ # 1.0.0 (2021-12-26)
99
+
100
+ ### Features
101
+
102
+ - Scheduled tasks plugin ([#148](https://github.com/sapphiredev/plugins/issues/148)) ([65d5f04](https://github.com/sapphiredev/plugins/commit/65d5f04bdaf9f1b8df0bc3a2ddf0413ca7a4a631))
@@ -1 +1 @@
1
- {"version":3,"file":"ScheduledTaskHandler.js","sourceRoot":"","sources":["../../src/lib/ScheduledTaskHandler.ts"],"names":[],"mappings":";;;AAAA,mDAAkE;AAClE,mDAAgD;AAChD,wFAAqF;AAGrF,qEAAkE;AAIlE,MAAa,oBAAoB;IAGhC,YAAmB,OAA0C;QAF7D;;;;;WAAoD;QAGnD,IAAI,CAAC,QAAQ,GAAG,OAAO,EAAE,QAAQ,IAAI,IAAI,uDAA0B,EAAE,CAAC;QACtE,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;IACzB,CAAC;IAED,IAAW,MAAM;QACh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AE,CAAC;YAEtC,qBAAS,CAAC,MAAM,CAAC,IAAI,CAAC,yCAAmB,CAAC,oBAAoB,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC;YAExG,OAAO,QAAQ,CAAC;QACjB,CAAC,CAAC,CAAC;QAEH,IAAI,IAAA,iBAAK,EAAC,MAAM,CAAC,EAAE;YAClB,qBAAS,CAAC,MAAM,CAAC,IAAI,CAAC,yCAAmB,CAAC,kBAAkB,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;SAC3F;QAED,qBAAS,CAAC,MAAM,CAAC,IAAI,CAAC,yCAAmB,CAAC,qBAAqB,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAE9F,OAAO,MAAM,CAAC,KAAK,CAAC;IACrB,CAAC;IAED,IAAY,KAAK;QAChB,OAAO,qBAAS,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAkC,CAAC;IACxF,CAAC;CACD;AA7FD,oDA6FC"}
package/package.json CHANGED
@@ -1,100 +1,103 @@
1
1
  {
2
- "name": "@sapphire/plugin-scheduled-tasks",
3
- "version": "2.3.2",
4
- "description": "Plugin for @sapphire/framework to have scheduled tasks",
5
- "author": "@sapphire",
6
- "license": "MIT",
7
- "main": "dist/index.js",
8
- "module": "dist/index.mjs",
9
- "types": "dist/index.d.ts",
10
- "typedocMain": "src/index.ts",
11
- "exports": {
12
- ".": {
13
- "import": "./dist/index.mjs",
14
- "require": "./dist/index.js",
15
- "types": "./dist/index.d.ts"
16
- },
17
- "./register-redis": {
18
- "import": "./register-redis.mjs",
19
- "require": "./register-redis.js",
20
- "types": "./register-redis.d.ts"
21
- },
22
- "./register-sqs": {
23
- "import": "./register-sqs.mjs",
24
- "require": "./register-sqs.js",
25
- "types": "./register-sqs.d.ts"
26
- },
27
- "./types-redis": {
28
- "import": "./dist/types-redis.mjs",
29
- "require": "./dist/types-redis.js",
30
- "types": "./dist/types-redis.d.ts"
31
- },
32
- "./types-sqs": {
33
- "import": "./dist/types-sqs.mjs",
34
- "require": "./dist/types-sqs.js",
35
- "types": "./dist/types-sqs.d.ts"
36
- }
37
- },
38
- "sideEffects": [
39
- "./dist/register-redis.js",
40
- "./dist/register-sqs.js",
41
- "./register-redis.js",
42
- "./register-redis.mjs",
43
- "./register-sqs.js",
44
- "./register-sqs.mjs"
45
- ],
46
- "homepage": "https://github.com/sapphiredev/plugins/tree/main/packages/scheduled-tasks",
47
- "scripts": {
48
- "test": "jest",
49
- "lint": "eslint src --ext ts --fix",
50
- "build": "tsc -b src && yarn esm:register-redis && yarn esm:register-sqs && yarn esm:default",
51
- "esm:register-redis": "gen-esm-wrapper dist/register-redis.js dist/register-redis.mjs",
52
- "esm:register-sqs": "gen-esm-wrapper dist/register-sqs.js dist/register-sqs.mjs",
53
- "esm:default": "gen-esm-wrapper dist/index.js dist/index.mjs",
54
- "prepublishOnly": "yarn build"
55
- },
56
- "dependencies": {
57
- "@sapphire/time-utilities": "^1.7.3",
58
- "tslib": "^2.3.1"
59
- },
60
- "devDependencies": {
61
- "@types/bull": "^3.15.8",
62
- "bull": "^4.8.1",
63
- "sqs-consumer": "^5.6.0",
64
- "sqs-producer": "^2.1.0"
65
- },
66
- "repository": {
67
- "type": "git",
68
- "url": "git+https://github.com/sapphiredev/plugins.git",
69
- "directory": "packages/scheduled-tasks"
70
- },
71
- "files": [
72
- "dist",
73
- "!dist/*.tsbuildinfo",
74
- "register-redis.*",
75
- "register-sqs.*",
76
- "types-redis.*",
77
- "types-sqs.*"
78
- ],
79
- "engines": {
80
- "node": ">=v14.18.0",
81
- "npm": ">=7.24.1"
82
- },
83
- "keywords": [
84
- "sapphiredev",
85
- "plugin",
86
- "bot",
87
- "typescript",
88
- "ts",
89
- "yarn",
90
- "discord",
91
- "sapphire"
92
- ],
93
- "bugs": {
94
- "url": "https://github.com/sapphiredev/plugins/issues"
95
- },
96
- "publishConfig": {
97
- "access": "public"
98
- },
99
- "gitHead": "fc47c7dd763094f410628c28b2a6b83331274648"
100
- }
2
+ "name": "@sapphire/plugin-scheduled-tasks",
3
+ "version": "2.3.3-next.1e13a35.0",
4
+ "description": "Plugin for @sapphire/framework to have scheduled tasks",
5
+ "author": "@sapphire",
6
+ "license": "MIT",
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.mjs",
9
+ "types": "dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/index.mjs",
13
+ "require": "./dist/index.js",
14
+ "types": "./dist/index.d.ts"
15
+ },
16
+ "./register-redis": {
17
+ "import": "./register-redis.mjs",
18
+ "require": "./register-redis.js",
19
+ "types": "./register-redis.d.ts"
20
+ },
21
+ "./register-sqs": {
22
+ "import": "./register-sqs.mjs",
23
+ "require": "./register-sqs.js",
24
+ "types": "./register-sqs.d.ts"
25
+ },
26
+ "./types-redis": {
27
+ "import": "./dist/types-redis.mjs",
28
+ "require": "./dist/types-redis.js",
29
+ "types": "./dist/types-redis.d.ts"
30
+ },
31
+ "./types-sqs": {
32
+ "import": "./dist/types-sqs.mjs",
33
+ "require": "./dist/types-sqs.js",
34
+ "types": "./dist/types-sqs.d.ts"
35
+ }
36
+ },
37
+ "sideEffects": [
38
+ "./dist/register-redis.js",
39
+ "./dist/register-sqs.js",
40
+ "./register-redis.js",
41
+ "./register-redis.mjs",
42
+ "./register-sqs.js",
43
+ "./register-sqs.mjs"
44
+ ],
45
+ "homepage": "https://github.com/sapphiredev/plugins/tree/main/packages/scheduled-tasks",
46
+ "scripts": {
47
+ "test": "jest",
48
+ "lint": "eslint src --ext ts --fix",
49
+ "build": "tsc -b src && yarn esm:register-redis && yarn esm:register-sqs && yarn esm:default",
50
+ "esm:register-redis": "gen-esm-wrapper dist/register-redis.js dist/register-redis.mjs",
51
+ "esm:register-sqs": "gen-esm-wrapper dist/register-sqs.js dist/register-sqs.mjs",
52
+ "esm:default": "gen-esm-wrapper dist/index.js dist/index.mjs",
53
+ "prepublish": "yarn build",
54
+ "bump": "cliff-jumper",
55
+ "check-update": "cliff-jumper --dry-run"
56
+ },
57
+ "dependencies": {
58
+ "@sapphire/time-utilities": "^1.7.4",
59
+ "tslib": "^2.3.1"
60
+ },
61
+ "devDependencies": {
62
+ "@types/bull": "^3.15.8",
63
+ "bull": "^4.8.1",
64
+ "gen-esm-wrapper": "^1.1.3",
65
+ "sqs-consumer": "^5.6.0",
66
+ "sqs-producer": "^2.1.0",
67
+ "typescript": "^4.6.3"
68
+ },
69
+ "repository": {
70
+ "type": "git",
71
+ "url": "git+https://github.com/sapphiredev/plugins.git",
72
+ "directory": "packages/scheduled-tasks"
73
+ },
74
+ "files": [
75
+ "dist/**/*.js*",
76
+ "dist/**/*.mjs*",
77
+ "dist/**/*.d*",
78
+ "register-redis.*",
79
+ "register-sqs.*",
80
+ "types-redis.*",
81
+ "types-sqs.*"
82
+ ],
83
+ "engines": {
84
+ "node": ">=v14.18.0",
85
+ "npm": ">=7.24.1"
86
+ },
87
+ "keywords": [
88
+ "sapphiredev",
89
+ "plugin",
90
+ "bot",
91
+ "typescript",
92
+ "ts",
93
+ "yarn",
94
+ "discord",
95
+ "sapphire"
96
+ ],
97
+ "bugs": {
98
+ "url": "https://github.com/sapphiredev/plugins/issues"
99
+ },
100
+ "publishConfig": {
101
+ "access": "public"
102
+ }
103
+ }
@@ -0,0 +1,12 @@
1
+ import type { JobOptions } from 'bull';
2
+ import './index';
3
+ import './register';
4
+
5
+ export * from './lib/strategies/ScheduledTaskRedisStrategy';
6
+
7
+ // @ts-expect-error this will work for end-users but TS doesn't like module augmenting itself
8
+ declare module '@sapphire/plugin-scheduled-tasks' {
9
+ interface ScheduledTaskOptions {
10
+ bullJobOptions?: Omit<JobOptions, 'repeat'>;
11
+ }
12
+ }
@@ -0,0 +1,4 @@
1
+ import './index';
2
+ import './register';
3
+
4
+ export * from './lib/strategies/ScheduledTaskSQSStrategy';
@@ -0,0 +1,8 @@
1
+ export type {
2
+ BullClient,
3
+ ScheduledTaskRedisStrategy,
4
+ ScheduledTaskRedisStrategyJob,
5
+ ScheduledTaskRedisStrategyListOptions,
6
+ ScheduledTaskRedisStrategyListRepeatedOptions,
7
+ ScheduledTaskRedisStrategyOptions
8
+ } from './lib/strategies/ScheduledTaskRedisStrategy';
@@ -0,0 +1 @@
1
+ export type { ScheduledTaskSQSStrategy, ScheduledTaskSQSStrategyMessageBody, SQSClient } from './lib/strategies/ScheduledTaskSQSStrategy';
package/LICENSE.md DELETED
@@ -1,24 +0,0 @@
1
- # The MIT License (MIT)
2
-
3
- Copyright © `2020` `The Sapphire Community and its contributors`
4
-
5
- Permission is hereby granted, free of charge, to any person
6
- obtaining a copy of this software and associated documentation
7
- files (the “Software”), to deal in the Software without
8
- restriction, including without limitation the rights to use,
9
- copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the
11
- Software is furnished to do so, subject to the following
12
- conditions:
13
-
14
- The above copyright notice and this permission notice shall be
15
- included in all copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
18
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24
- OTHER DEALINGS IN THE SOFTWARE.