@zapier/zapier-sdk-cli 0.16.5 → 0.16.7

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @zapier/zapier-sdk-cli
2
2
 
3
+ ## 0.16.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 759d2d5: Fix update notification writing to stdout instead of stderr, which broke piping JSON output to jq
8
+
9
+ ## 0.16.6
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [f083442]
14
+ - @zapier/zapier-sdk-mcp@0.4.3
15
+
3
16
  ## 0.16.5
4
17
 
5
18
  ### Patch Changes
package/dist/cli.cjs CHANGED
@@ -1645,7 +1645,7 @@ var LoginSchema = zod.z.object({
1645
1645
 
1646
1646
  // package.json
1647
1647
  var package_default = {
1648
- version: "0.16.5"};
1648
+ version: "0.16.7"};
1649
1649
 
1650
1650
  // src/telemetry/builders.ts
1651
1651
  function createCliBaseEvent(context = {}) {
@@ -2924,7 +2924,7 @@ function createZapierCliSdk(options = {}) {
2924
2924
  // package.json with { type: 'json' }
2925
2925
  var package_default2 = {
2926
2926
  name: "@zapier/zapier-sdk-cli",
2927
- version: "0.16.5"};
2927
+ version: "0.16.7"};
2928
2928
  function detectPackageManager(cwd = process.cwd()) {
2929
2929
  const ua = process.env.npm_config_user_agent;
2930
2930
  if (ua) {
@@ -3104,18 +3104,18 @@ function displayUpdateNotification(versionInfo, packageName) {
3104
3104
  console.error();
3105
3105
  }
3106
3106
  if (versionInfo.hasUpdate) {
3107
- console.log();
3108
- console.log(
3107
+ console.error();
3108
+ console.error(
3109
3109
  chalk3__default.default.yellow.bold("\u{1F4E6} Update available!") + chalk3__default.default.yellow(
3110
3110
  ` ${packageName} v${versionInfo.currentVersion} \u2192 v${versionInfo.latestVersion}`
3111
3111
  )
3112
3112
  );
3113
- console.log(
3113
+ console.error(
3114
3114
  chalk3__default.default.yellow(
3115
3115
  ` Run ${chalk3__default.default.bold(getUpdateCommand(packageName))} to update.`
3116
3116
  )
3117
3117
  );
3118
- console.log();
3118
+ console.error();
3119
3119
  }
3120
3120
  }
3121
3121
  async function checkAndNotifyUpdates({
package/dist/cli.mjs CHANGED
@@ -1609,7 +1609,7 @@ var LoginSchema = z.object({
1609
1609
 
1610
1610
  // package.json
1611
1611
  var package_default = {
1612
- version: "0.16.5"};
1612
+ version: "0.16.7"};
1613
1613
 
1614
1614
  // src/telemetry/builders.ts
1615
1615
  function createCliBaseEvent(context = {}) {
@@ -2888,7 +2888,7 @@ function createZapierCliSdk(options = {}) {
2888
2888
  // package.json with { type: 'json' }
2889
2889
  var package_default2 = {
2890
2890
  name: "@zapier/zapier-sdk-cli",
2891
- version: "0.16.5"};
2891
+ version: "0.16.7"};
2892
2892
  function detectPackageManager(cwd = process.cwd()) {
2893
2893
  const ua = process.env.npm_config_user_agent;
2894
2894
  if (ua) {
@@ -3068,18 +3068,18 @@ function displayUpdateNotification(versionInfo, packageName) {
3068
3068
  console.error();
3069
3069
  }
3070
3070
  if (versionInfo.hasUpdate) {
3071
- console.log();
3072
- console.log(
3071
+ console.error();
3072
+ console.error(
3073
3073
  chalk3.yellow.bold("\u{1F4E6} Update available!") + chalk3.yellow(
3074
3074
  ` ${packageName} v${versionInfo.currentVersion} \u2192 v${versionInfo.latestVersion}`
3075
3075
  )
3076
3076
  );
3077
- console.log(
3077
+ console.error(
3078
3078
  chalk3.yellow(
3079
3079
  ` Run ${chalk3.bold(getUpdateCommand(packageName))} to update.`
3080
3080
  )
3081
3081
  );
3082
- console.log();
3082
+ console.error();
3083
3083
  }
3084
3084
  }
3085
3085
  async function checkAndNotifyUpdates({
package/dist/index.cjs CHANGED
@@ -291,7 +291,7 @@ var LoginSchema = zod.z.object({
291
291
 
292
292
  // package.json
293
293
  var package_default = {
294
- version: "0.16.5"};
294
+ version: "0.16.7"};
295
295
 
296
296
  // src/telemetry/builders.ts
297
297
  function createCliBaseEvent(context = {}) {
package/dist/index.mjs CHANGED
@@ -260,7 +260,7 @@ var LoginSchema = z.object({
260
260
 
261
261
  // package.json
262
262
  var package_default = {
263
- version: "0.16.5"};
263
+ version: "0.16.7"};
264
264
 
265
265
  // src/telemetry/builders.ts
266
266
  function createCliBaseEvent(context = {}) {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk-cli",
3
- "version": "0.16.5",
3
+ "version": "0.16.7",
4
4
  "description": "Command line interface for Zapier SDK",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -138,12 +138,13 @@ export function displayUpdateNotification(versionInfo, packageName) {
138
138
  console.error(chalk.red(` Please update to the latest version.`));
139
139
  console.error();
140
140
  }
141
+ // Use stderr so update notifications don't pollute stdout when piping JSON to jq
141
142
  if (versionInfo.hasUpdate) {
142
- console.log();
143
- console.log(chalk.yellow.bold("📦 Update available!") +
143
+ console.error();
144
+ console.error(chalk.yellow.bold("📦 Update available!") +
144
145
  chalk.yellow(` ${packageName} v${versionInfo.currentVersion} → v${versionInfo.latestVersion}`));
145
- console.log(chalk.yellow(` Run ${chalk.bold(getUpdateCommand(packageName))} to update.`));
146
- console.log();
146
+ console.error(chalk.yellow(` Run ${chalk.bold(getUpdateCommand(packageName))} to update.`));
147
+ console.error();
147
148
  }
148
149
  }
149
150
  export async function checkAndNotifyUpdates({ packageName, currentVersion, }) {