deploy-vir 3.4.0 → 3.4.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/LICENSE-MIT CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 electrovir
3
+ Copyright (c) 2026 electrovir
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/git.js CHANGED
@@ -31,6 +31,7 @@ export async function getGitRemoteName(git, repoConfig) {
31
31
  *
32
32
  * @category Internal
33
33
  */
34
+ // eslint-disable-next-line @virmator/prefer-params-object
34
35
  export async function pushDeploy(git, branchConfig, repoConfig, remoteName, notifications, bypassConfirmation = false, hooks) {
35
36
  const { deployName, branches } = branchConfig;
36
37
  return await awaitedBlockingMap(branches, async ({ fromBranch, toBranch, enableNotifications }) => {
@@ -80,7 +81,7 @@ export async function pushDeploy(git, branchConfig, repoConfig, remoteName, noti
80
81
  default: false,
81
82
  }));
82
83
  if (!shouldPush) {
83
- throw new KnownError(`Deploy aborted.`);
84
+ throw new KnownError('Deploy aborted.');
84
85
  }
85
86
  if (requiresForcePush) {
86
87
  await git.push(remoteName, pushString, ['--force']);
@@ -86,7 +86,7 @@ export async function sendNotificationToSlack({ deployResult: { deployCommits: {
86
86
  type: 'section',
87
87
  text: {
88
88
  type: 'mrkdwn',
89
- text: `\n*Deployed Commits*\n`,
89
+ text: '\n*Deployed Commits*\n',
90
90
  },
91
91
  },
92
92
  ...chunkSectionLines(deployedCommitBulletLines).map((lines) => {
@@ -104,7 +104,7 @@ export async function sendNotificationToSlack({ deployResult: { deployCommits: {
104
104
  type: 'section',
105
105
  text: {
106
106
  type: 'mrkdwn',
107
- text: `\n*Overwritten Commits*\n`,
107
+ text: '\n*Overwritten Commits*\n',
108
108
  },
109
109
  },
110
110
  ...chunkSectionLines(overwrittenCommitBulletLines).map((lines) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deploy-vir",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "Deploy a branch to another branch with notifications.",
5
5
  "keywords": [
6
6
  "deploy",
@@ -15,7 +15,7 @@
15
15
  "type": "git",
16
16
  "url": "git+https://github.com/electrovir/deploy-vir.git"
17
17
  },
18
- "license": "(MIT or CC0 1.0)",
18
+ "license": "(MIT OR CC0-1.0)",
19
19
  "author": {
20
20
  "name": "electrovir",
21
21
  "url": "https://github.com/electrovir"
@@ -41,51 +41,51 @@
41
41
  "test:update": "npm run test update"
42
42
  },
43
43
  "dependencies": {
44
- "@augment-vir/assert": "^31.68.4",
45
- "@augment-vir/common": "^31.68.4",
46
- "@augment-vir/node": "^31.68.4",
47
- "@inquirer/prompts": "^8.4.2",
48
- "@slack/web-api": "^7.15.1",
49
- "cli-vir": "^1.0.3",
44
+ "@augment-vir/assert": "^32.2.1",
45
+ "@augment-vir/common": "^32.2.1",
46
+ "@augment-vir/node": "^32.2.1",
47
+ "@inquirer/prompts": "^8.5.2",
48
+ "@slack/web-api": "^8.0.0",
49
+ "cli-vir": "^1.0.4",
50
50
  "simple-git": "^3.36.0",
51
- "tsx": "^4.21.0",
52
- "url-vir": "^2.1.8"
51
+ "tsx": "^4.23.1",
52
+ "url-vir": "^2.1.10"
53
53
  },
54
54
  "devDependencies": {
55
- "@eslint/eslintrc": "^3.3.5",
56
- "@eslint/js": "^9.39.2",
55
+ "@eslint/eslintrc": "^3.3.6",
56
+ "@eslint/js": "^10.0.1",
57
57
  "@stylistic/eslint-plugin": "^5.10.0",
58
58
  "@stylistic/eslint-plugin-ts": "^4.4.1",
59
- "@types/node": "^25.6.0",
60
- "@typescript-eslint/eslint-plugin": "^8.59.0",
61
- "cspell": "^10.0.0",
62
- "dependency-cruiser": "^17.3.10",
63
- "esbuild": "^0.28.0",
64
- "eslint": "^9.39.2",
59
+ "@types/node": "^26.1.1",
60
+ "@typescript-eslint/eslint-plugin": "^8.65.0",
61
+ "cspell": "^10.0.1",
62
+ "dependency-cruiser": "^18.1.0",
63
+ "esbuild": "^0.28.1",
64
+ "eslint": "^10.8.0",
65
65
  "eslint-config-prettier": "^10.1.8",
66
- "eslint-plugin-jsdoc": "^62.9.0",
66
+ "eslint-plugin-jsdoc": "^63.2.2",
67
67
  "eslint-plugin-monorepo-cop": "^1.0.2",
68
- "eslint-plugin-playwright": "^2.10.2",
69
- "eslint-plugin-prettier": "^5.5.5",
68
+ "eslint-plugin-playwright": "^2.10.5",
69
+ "eslint-plugin-prettier": "^5.5.6",
70
70
  "eslint-plugin-require-extensions": "^0.1.3",
71
- "eslint-plugin-sonarjs": "^4.0.3",
72
- "eslint-plugin-unicorn": "^64.0.0",
71
+ "eslint-plugin-sonarjs": "^4.2.0",
72
+ "eslint-plugin-unicorn": "^72.0.0",
73
73
  "istanbul-smart-text-reporter": "^1.1.5",
74
- "markdown-code-example-inserter": "^3.0.5",
75
- "npm-check-updates": "^21.0.3",
74
+ "markdown-code-example-inserter": "^3.0.6",
75
+ "npm-check-updates": "^22.2.9",
76
76
  "prettier": "~3.3.3",
77
- "prettier-plugin-interpolated-html-tags": "^2.0.1",
78
- "prettier-plugin-jsdoc": "^1.8.0",
79
- "prettier-plugin-multiline-arrays": "^4.1.7",
77
+ "prettier-plugin-interpolated-html-tags": "^2.0.2",
78
+ "prettier-plugin-jsdoc": "^1.8.1",
79
+ "prettier-plugin-multiline-arrays": "^4.1.11",
80
80
  "prettier-plugin-organize-imports": "^4.3.0",
81
81
  "prettier-plugin-packagejson": "^3.0.2",
82
82
  "prettier-plugin-sort-json": "^4.2.0",
83
83
  "prettier-plugin-toml": "^2.0.6",
84
- "runstorm": "^1.0.0",
85
- "typedoc": "^0.28.19",
86
- "typescript": "^5.9.3",
87
- "typescript-eslint": "^8.57.1",
88
- "virmator": "^14.12.2"
84
+ "runstorm": "^1.0.6",
85
+ "typedoc": "^0.28.20",
86
+ "typescript": "^6.0.3",
87
+ "typescript-eslint": "^8.65.0",
88
+ "virmator": "^14.30.1"
89
89
  },
90
90
  "engines": {
91
91
  "node": ">=22"
package/src/git.ts CHANGED
@@ -94,6 +94,7 @@ export type DeployResult = {
94
94
  *
95
95
  * @category Internal
96
96
  */
97
+ // eslint-disable-next-line @virmator/prefer-params-object
97
98
  export async function pushDeploy(
98
99
  git: Readonly<SimpleGit>,
99
100
  branchConfig: Readonly<DeployVirBranchConfig>,
@@ -187,7 +188,7 @@ export async function pushDeploy(
187
188
  }));
188
189
 
189
190
  if (!shouldPush) {
190
- throw new KnownError(`Deploy aborted.`);
191
+ throw new KnownError('Deploy aborted.');
191
192
  }
192
193
 
193
194
  if (requiresForcePush) {
@@ -117,7 +117,7 @@ export async function sendNotificationToSlack({
117
117
  type: 'section',
118
118
  text: {
119
119
  type: 'mrkdwn',
120
- text: `\n*Deployed Commits*\n`,
120
+ text: '\n*Deployed Commits*\n',
121
121
  },
122
122
  },
123
123
  ...chunkSectionLines(deployedCommitBulletLines).map((lines): KnownBlock => {
@@ -135,7 +135,7 @@ export async function sendNotificationToSlack({
135
135
  type: 'section',
136
136
  text: {
137
137
  type: 'mrkdwn',
138
- text: `\n*Overwritten Commits*\n`,
138
+ text: '\n*Overwritten Commits*\n',
139
139
  },
140
140
  },
141
141