slack-term 1.57.0 → 1.57.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slack-term",
3
- "version": "1.57.0",
3
+ "version": "1.57.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/snomiao/slack-hub.git"
package/ts/brand.ts CHANGED
@@ -38,9 +38,13 @@ export function scopeDirIn(parent: string): string {
38
38
  return preferExisting(join(parent, SCOPE_DIR), join(parent, LEGACY_SCOPE_DIR));
39
39
  }
40
40
 
41
- /** Installed under the old npm name? CI also publishes each release as the
42
- * deprecated `slack-term` package; tell an interactive user once per run. */
43
- export function renameNotice(pkgName: string, isTTY = Boolean(process.stderr.isTTY)): string | undefined {
44
- if (pkgName !== LEGACY_NAME || !isTTY) return undefined;
45
- return "slack: the slack-term npm package was renamed to slack-hub — run: npm uninstall -g slack-term && npm install -g slack-hub";
41
+ /** Installed under the old npm name? CI still publishes each release as
42
+ * `slack-term` (toolchains may depend on the name), but it is NOT npm-deprecated,
43
+ * so installs stay quiet; instead the CLI says so on stderr, once per run.
44
+ * stdout is untouched; SLACK_HUB_NO_RENAME_NOTICE=1 silences it. */
45
+ export function renameNotice(pkgName: string, env: Record<string, string | undefined> = process.env): string | undefined {
46
+ if (pkgName !== LEGACY_NAME || /^(1|true|yes|on)$/i.test(hubEnv("NO_RENAME_NOTICE", env) ?? "")) return undefined;
47
+ return "slack: [deprecated] the slack-term npm package is now slack-hub and will stop being published. "
48
+ + "Switch: npm uninstall -g slack-term && npm install -g slack-hub (same `slack` command, settings carry over). "
49
+ + "Silence: SLACK_HUB_NO_RENAME_NOTICE=1";
46
50
  }