From fc0f59d25b44c6f971e50c2b4196f466962a9d20 Mon Sep 17 00:00:00 2001 From: Hazmi Alfarizqi Date: Fri, 24 Mar 2023 21:24:28 +0700 Subject: [PATCH 1/3] chore(deps-dev): update dev dependencies --- package.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index a7c9a78..3a2c00f 100644 --- a/package.json +++ b/package.json @@ -13,17 +13,17 @@ "author": "KagChi", "license": "GPL-3.0", "devDependencies": { - "@hazmi35/eslint-config": "^8.7.1", - "@swc/cli": "^0.1.59", - "@swc/core": "^1.3.24", + "@hazmi35/eslint-config": "^9.0.0", + "@swc/cli": "^0.1.62", + "@swc/core": "^1.3.42", "@types/amqplib": "^0.10.1", "@types/bull": "^3.15.9", - "@types/node": "^18.11.18", - "@typescript-eslint/eslint-plugin": "^5.53.0", - "@typescript-eslint/parser": "^5.53.0", - "eslint": "^8.34.0", - "rimraf": "^3.0.2", - "typescript": "^4.9.5" + "@types/node": "^18.15.7", + "@typescript-eslint/eslint-plugin": "^5.56.0", + "@typescript-eslint/parser": "^5.56.0", + "eslint": "^8.36.0", + "rimraf": "^4.4.1", + "typescript": "^5.0.2" }, "eslintConfig": { "parser": "@typescript-eslint/parser", From 02c018f7ed1a1b6cc2be751af014f157f8983132 Mon Sep 17 00:00:00 2001 From: Hazmi Alfarizqi Date: Fri, 24 Mar 2023 21:34:32 +0700 Subject: [PATCH 2/3] ci: update CI deps --- .github/workflows/compile.yml | 6 +++--- .github/workflows/docker.yml | 10 +++++----- .github/workflows/eslint.yml | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index f3059cb..3f16aaf 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -18,10 +18,10 @@ jobs: node-version: [16.x] steps: - - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3 + - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3 + uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3 with: node-version: ${{ matrix.node-version }} - run: npm install - - run: npm run build \ No newline at end of file + - run: npm run build diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 1ad8462..59ee02d 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -17,11 +17,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Check Out Repo - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 + uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325 # v2.2.1 + uses: docker/setup-buildx-action@4b4e9c3e2d4531116a6f8ba8e71fc6e2cb6e6c8c # v2.5.0 - name: Login to GitHub Container Registry uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0 @@ -41,7 +41,7 @@ jobs: run: if [ "${{ github.event_name }}" = "release" ]; then echo ::set-output name=name::; else echo ::set-output name=name::-dev; fi - name: Generate Docker image metadata - uses: docker/metadata-action@57396166ad8aefe6098280995947635806a0e6ea # v4.1.1 + uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96 # v4.3.0 id: img_meta with: flavor: | @@ -53,11 +53,11 @@ jobs: latest - name: Build and push id: docker_build - uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5 # v3.2.0 + uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v4.0.0 with: context: ./ tags: ${{ steps.img_meta.outputs.tags }} labels: ${{ steps.img_meta.outputs.labels }} push: ${{ github.event_name != 'pull_request' }} cache-from: type=gha,mode=max - cache-to: type=gha,mode=max \ No newline at end of file + cache-to: type=gha,mode=max diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 7575f1d..f8df3fa 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -18,10 +18,10 @@ jobs: node-version: [16.x] steps: - - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3 + - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3 + uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3 with: node-version: ${{ matrix.node-version }} - run: npm install - - run: npm run lint \ No newline at end of file + - run: npm run lint From 16d1b8081678a62705149696e02160683bb8c1b8 Mon Sep 17 00:00:00 2001 From: Hazmi Alfarizqi Date: Fri, 24 Mar 2023 21:38:37 +0700 Subject: [PATCH 3/3] feat(deps): update deps --- package.json | 10 +++++----- src/Structures/TaskManager.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 3a2c00f..4720aab 100644 --- a/package.json +++ b/package.json @@ -41,13 +41,13 @@ "rules": {} }, "dependencies": { - "@nezuchan/cordis-brokers": "^1.5.10", - "@sapphire/pieces": "^3.6.0", + "@nezuchan/cordis-brokers": "^2.0.0", + "@sapphire/pieces": "^3.6.1", "@sapphire/result": "^2.6.0", "@sapphire/utilities": "^3.11.0", - "bull": "^4.10.2", + "bull": "^4.10.4", "dotenv": "^16.0.3", - "pino": "^8.8.0", - "pino-pretty": "^9.1.1" + "pino": "^8.11.0", + "pino-pretty": "^10.0.0" } } diff --git a/src/Structures/TaskManager.ts b/src/Structures/TaskManager.ts index be8868a..2497885 100644 --- a/src/Structures/TaskManager.ts +++ b/src/Structures/TaskManager.ts @@ -80,7 +80,7 @@ export class TaskManager extends EventEmitter { public async initialize(): Promise { container.manager = this; this.logger.info(`Initializing Scheduled Tasks cluster ${this.clusterId}`); - void this.bull.process("*", job => this.amqpSender.publish(job.name, typeof job.data === "object" ? job.data : JSON.stringify(job.data))); + void this.bull.process("*", job => this.amqpSender.publish("", job.name, typeof job.data === "object" ? job.data : JSON.stringify(job.data))); const { channel } = await createAmqp(process.env.AMQP_HOST!); this.amqpSender = new RoutingPublisher(channel); this.amqpReceiver = new RpcSubscriber(channel);