@zapier/zapier-sdk-cli 0.14.1 → 0.15.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/CHANGELOG.md +15 -0
- package/dist/cli.cjs +6 -6
- package/dist/cli.mjs +5 -6
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/package.json +3 -1
- package/dist/src/plugins/buildManifest/index.js +1 -1
- package/dist/src/utils/version-checker.js +2 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -4
- package/src/plugins/buildManifest/index.test.ts +39 -15
- package/src/plugins/buildManifest/index.ts +1 -1
- package/src/utils/version-checker.test.ts +40 -0
- package/src/utils/version-checker.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.15.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6657f05: Defined shape and support for configured actions in the .zapierrc manifest file
|
|
8
|
+
- Updated dependencies [6657f05]
|
|
9
|
+
- @zapier/zapier-sdk@0.15.3
|
|
10
|
+
- @zapier/zapier-sdk-mcp@0.3.27
|
|
11
|
+
|
|
12
|
+
## 0.15.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- bb96995: Use semver to check for update against cache. Otherwise, we might tell you to update to an older version.
|
|
17
|
+
|
|
3
18
|
## 0.14.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/cli.cjs
CHANGED
|
@@ -22,6 +22,7 @@ var ts = require('typescript');
|
|
|
22
22
|
var packageJsonLib = require('package-json');
|
|
23
23
|
var Conf = require('conf');
|
|
24
24
|
var isInstalledGlobally = require('is-installed-globally');
|
|
25
|
+
var semver = require('semver');
|
|
25
26
|
|
|
26
27
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
27
28
|
|
|
@@ -57,6 +58,7 @@ var ts__namespace = /*#__PURE__*/_interopNamespace(ts);
|
|
|
57
58
|
var packageJsonLib__default = /*#__PURE__*/_interopDefault(packageJsonLib);
|
|
58
59
|
var Conf__default = /*#__PURE__*/_interopDefault(Conf);
|
|
59
60
|
var isInstalledGlobally__default = /*#__PURE__*/_interopDefault(isInstalledGlobally);
|
|
61
|
+
var semver__default = /*#__PURE__*/_interopDefault(semver);
|
|
60
62
|
|
|
61
63
|
var ZapierCliError = class extends zapierSdk.ZapierError {
|
|
62
64
|
};
|
|
@@ -1460,7 +1462,7 @@ var LoginSchema = zod.z.object({
|
|
|
1460
1462
|
|
|
1461
1463
|
// package.json
|
|
1462
1464
|
var package_default = {
|
|
1463
|
-
version: "0.
|
|
1465
|
+
version: "0.15.1"};
|
|
1464
1466
|
|
|
1465
1467
|
// src/telemetry/builders.ts
|
|
1466
1468
|
function createCliBaseEvent(context = {}) {
|
|
@@ -2675,7 +2677,7 @@ var buildManifestPlugin = ({ sdk: sdk2, context }) => {
|
|
|
2675
2677
|
manifestKey: manifestEntry.implementationName,
|
|
2676
2678
|
version: manifestEntry.version || ""
|
|
2677
2679
|
});
|
|
2678
|
-
const
|
|
2680
|
+
const { key: updatedManifestKey, manifest } = await context.updateManifestEntry({
|
|
2679
2681
|
appKey: app.key,
|
|
2680
2682
|
entry: manifestEntry,
|
|
2681
2683
|
configPath,
|
|
@@ -2732,7 +2734,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
2732
2734
|
// package.json with { type: 'json' }
|
|
2733
2735
|
var package_default2 = {
|
|
2734
2736
|
name: "@zapier/zapier-sdk-cli",
|
|
2735
|
-
version: "0.
|
|
2737
|
+
version: "0.15.1"};
|
|
2736
2738
|
function detectPackageManager(cwd = process.cwd()) {
|
|
2737
2739
|
const ua = process.env.npm_config_user_agent;
|
|
2738
2740
|
if (ua) {
|
|
@@ -2785,8 +2787,6 @@ function getUpdateCommand(packageName) {
|
|
|
2785
2787
|
}
|
|
2786
2788
|
}
|
|
2787
2789
|
}
|
|
2788
|
-
|
|
2789
|
-
// src/utils/version-checker.ts
|
|
2790
2790
|
var config = null;
|
|
2791
2791
|
function getConfig() {
|
|
2792
2792
|
if (!config) {
|
|
@@ -2870,7 +2870,7 @@ async function checkForUpdates({
|
|
|
2870
2870
|
try {
|
|
2871
2871
|
const latestPackageInfo = await fetchCachedPackageInfo(packageName);
|
|
2872
2872
|
const latestVersion = latestPackageInfo.version;
|
|
2873
|
-
const hasUpdate = currentVersion
|
|
2873
|
+
const hasUpdate = semver__default.default.gt(latestVersion, currentVersion);
|
|
2874
2874
|
let currentPackageInfo;
|
|
2875
2875
|
try {
|
|
2876
2876
|
currentPackageInfo = await fetchCachedPackageInfo(
|
package/dist/cli.mjs
CHANGED
|
@@ -22,6 +22,7 @@ import * as ts from 'typescript';
|
|
|
22
22
|
import packageJsonLib from 'package-json';
|
|
23
23
|
import Conf from 'conf';
|
|
24
24
|
import isInstalledGlobally from 'is-installed-globally';
|
|
25
|
+
import semver from 'semver';
|
|
25
26
|
|
|
26
27
|
var ZapierCliError = class extends ZapierError {
|
|
27
28
|
};
|
|
@@ -1425,7 +1426,7 @@ var LoginSchema = z.object({
|
|
|
1425
1426
|
|
|
1426
1427
|
// package.json
|
|
1427
1428
|
var package_default = {
|
|
1428
|
-
version: "0.
|
|
1429
|
+
version: "0.15.1"};
|
|
1429
1430
|
|
|
1430
1431
|
// src/telemetry/builders.ts
|
|
1431
1432
|
function createCliBaseEvent(context = {}) {
|
|
@@ -2640,7 +2641,7 @@ var buildManifestPlugin = ({ sdk: sdk2, context }) => {
|
|
|
2640
2641
|
manifestKey: manifestEntry.implementationName,
|
|
2641
2642
|
version: manifestEntry.version || ""
|
|
2642
2643
|
});
|
|
2643
|
-
const
|
|
2644
|
+
const { key: updatedManifestKey, manifest } = await context.updateManifestEntry({
|
|
2644
2645
|
appKey: app.key,
|
|
2645
2646
|
entry: manifestEntry,
|
|
2646
2647
|
configPath,
|
|
@@ -2697,7 +2698,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
2697
2698
|
// package.json with { type: 'json' }
|
|
2698
2699
|
var package_default2 = {
|
|
2699
2700
|
name: "@zapier/zapier-sdk-cli",
|
|
2700
|
-
version: "0.
|
|
2701
|
+
version: "0.15.1"};
|
|
2701
2702
|
function detectPackageManager(cwd = process.cwd()) {
|
|
2702
2703
|
const ua = process.env.npm_config_user_agent;
|
|
2703
2704
|
if (ua) {
|
|
@@ -2750,8 +2751,6 @@ function getUpdateCommand(packageName) {
|
|
|
2750
2751
|
}
|
|
2751
2752
|
}
|
|
2752
2753
|
}
|
|
2753
|
-
|
|
2754
|
-
// src/utils/version-checker.ts
|
|
2755
2754
|
var config = null;
|
|
2756
2755
|
function getConfig() {
|
|
2757
2756
|
if (!config) {
|
|
@@ -2835,7 +2834,7 @@ async function checkForUpdates({
|
|
|
2835
2834
|
try {
|
|
2836
2835
|
const latestPackageInfo = await fetchCachedPackageInfo(packageName);
|
|
2837
2836
|
const latestVersion = latestPackageInfo.version;
|
|
2838
|
-
const hasUpdate = currentVersion
|
|
2837
|
+
const hasUpdate = semver.gt(latestVersion, currentVersion);
|
|
2839
2838
|
let currentPackageInfo;
|
|
2840
2839
|
try {
|
|
2841
2840
|
currentPackageInfo = await fetchCachedPackageInfo(
|
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.
|
|
294
|
+
version: "0.15.1"};
|
|
295
295
|
|
|
296
296
|
// src/telemetry/builders.ts
|
|
297
297
|
function createCliBaseEvent(context = {}) {
|
|
@@ -1506,7 +1506,7 @@ var buildManifestPlugin = ({ sdk, context }) => {
|
|
|
1506
1506
|
manifestKey: manifestEntry.implementationName,
|
|
1507
1507
|
version: manifestEntry.version || ""
|
|
1508
1508
|
});
|
|
1509
|
-
const
|
|
1509
|
+
const { key: updatedManifestKey, manifest } = await context.updateManifestEntry({
|
|
1510
1510
|
appKey: app.key,
|
|
1511
1511
|
entry: manifestEntry,
|
|
1512
1512
|
configPath,
|
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.
|
|
263
|
+
version: "0.15.1"};
|
|
264
264
|
|
|
265
265
|
// src/telemetry/builders.ts
|
|
266
266
|
function createCliBaseEvent(context = {}) {
|
|
@@ -1475,7 +1475,7 @@ var buildManifestPlugin = ({ sdk, context }) => {
|
|
|
1475
1475
|
manifestKey: manifestEntry.implementationName,
|
|
1476
1476
|
version: manifestEntry.version || ""
|
|
1477
1477
|
});
|
|
1478
|
-
const
|
|
1478
|
+
const { key: updatedManifestKey, manifest } = await context.updateManifestEntry({
|
|
1479
1479
|
appKey: app.key,
|
|
1480
1480
|
entry: manifestEntry,
|
|
1481
1481
|
configPath,
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zapier/zapier-sdk-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Command line interface for Zapier SDK",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"ora": "^8.2.0",
|
|
57
57
|
"package-json": "^10.0.1",
|
|
58
58
|
"pkce-challenge": "^5.0.0",
|
|
59
|
+
"semver": "^7.7.3",
|
|
59
60
|
"typescript": "^5.8.3",
|
|
60
61
|
"zod": "^3.25.67"
|
|
61
62
|
},
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
"@types/inquirer": "^9.0.8",
|
|
65
66
|
"@types/jsonwebtoken": "^9.0.10",
|
|
66
67
|
"@types/node": "^24.0.1",
|
|
68
|
+
"@types/semver": "^7.7.1",
|
|
67
69
|
"tsup": "^8.5.0",
|
|
68
70
|
"vitest": "^3.2.3"
|
|
69
71
|
}
|
|
@@ -32,7 +32,7 @@ export const buildManifestPlugin = ({ sdk, context }) => {
|
|
|
32
32
|
manifestKey: manifestEntry.implementationName,
|
|
33
33
|
version: manifestEntry.version || "",
|
|
34
34
|
});
|
|
35
|
-
const
|
|
35
|
+
const { key: updatedManifestKey, manifest } = await context.updateManifestEntry({
|
|
36
36
|
appKey: app.key,
|
|
37
37
|
entry: manifestEntry,
|
|
38
38
|
configPath,
|
|
@@ -3,6 +3,7 @@ import chalk from "chalk";
|
|
|
3
3
|
import log from "./log";
|
|
4
4
|
import Conf from "conf";
|
|
5
5
|
import { getUpdateCommand } from "./package-manager-detector";
|
|
6
|
+
import semver from "semver";
|
|
6
7
|
let config = null;
|
|
7
8
|
function getConfig() {
|
|
8
9
|
if (!config) {
|
|
@@ -93,7 +94,7 @@ export async function checkForUpdates({ packageName, currentVersion, }) {
|
|
|
93
94
|
// Get latest version info (with caching)
|
|
94
95
|
const latestPackageInfo = await fetchCachedPackageInfo(packageName);
|
|
95
96
|
const latestVersion = latestPackageInfo.version;
|
|
96
|
-
const hasUpdate = currentVersion
|
|
97
|
+
const hasUpdate = semver.gt(latestVersion, currentVersion);
|
|
97
98
|
// Check deprecation status of the current version (with caching)
|
|
98
99
|
let currentPackageInfo;
|
|
99
100
|
try {
|