@curviate/cli 0.24.0 → 0.24.2

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/package.json +6 -3
package/CHANGELOG.md CHANGED
@@ -8,6 +8,65 @@ a new command or flag is a minor; a breaking command/flag/exit-code change is a
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [0.24.2] - 2026-08-27
12
+
13
+ ### Changed
14
+
15
+ - **`@curviate/sdk` pin raised from `0.24.2` to `0.24.3`** (exact, per the
16
+ compiler-coupling policy that `check:sdk-pin` enforces). The SDK's
17
+ corrected Sales Navigator response types now flow through to CLI users:
18
+ - `founded_on` is a `number`, was an open object.
19
+ - `websites` and `addresses` are `string[]`, were arrays of open objects.
20
+ - `contact_info.phones` and `contact_info.emails` are `string[]`, were
21
+ arrays of open objects.
22
+ - `specialties` is a `string[]` on `sales-navigator/search/companies`, was
23
+ `unknown`.
24
+ - `job_title` and `role` are required (non-optional) on `work_experience`
25
+ and `volunteering`.
26
+ - Nested `school`, `company` and `organization` references on `education`,
27
+ `work_experience` and `volunteering` are now declared, each with a
28
+ nullable `id`.
29
+
30
+ These are corrections, not behaviour changes. The wire has always sent
31
+ these shapes; the previous declarations described them wrongly. Upgrading
32
+ may turn a consumer's `tsc` red where it was green against a declaration
33
+ that did not match reality. That red is a pre-existing bug becoming
34
+ visible, not a new one. The CLI's own runtime behaviour and command surface
35
+ are unchanged in this release.
36
+
37
+ - The vendored OpenAPI test fixture (`test/fixtures/openapi.json`) was
38
+ re-copied from the SDK at `0.24.3`, with `test/fixtures/VENDORED_FROM.json`
39
+ updated to match, as `check:fixture-pin` requires.
40
+
41
+ ## [0.24.1] - 2026-08-25
42
+
43
+ ### Fixed
44
+
45
+ - **`@curviate/sdk` dependency pinned to an exact `0.24.2`** (was `^0.23.0`).
46
+ A caret range on a `0.x` package pins the minor (`^0.23.0` resolves to
47
+ `>=0.23.0 <0.24.0`), so the published CLI could never resolve the
48
+ registry's actual `latest` SDK once it moved to `0.24.x` - every SDK
49
+ release, the floor had been hand-bumped and drifted a minor behind. The
50
+ CLI is compiler-coupled to one SDK build, so the pin is now exact rather
51
+ than a range that can silently fail to admit the version actually
52
+ published.
53
+ - **Added a `check:sdk-pin` prepack guard** that compares the *resolved*
54
+ `@curviate/sdk` version under `node_modules` (what actually gets bundled)
55
+ against the *declared* dependency, and fails the build on any mismatch or
56
+ non-exact range. Chained into `prepack` alongside the existing leak-scan
57
+ guards, so this class of drift cannot reach a publish undetected again.
58
+ - **`check:clean` now flags a committed npm auth token** (the
59
+ `npm_`-prefixed shape an accidentally-tracked `.npmrc` carries), and
60
+ `.npmrc` / `*.tgz` are gitignored. Neither was previously scanned or
61
+ excluded (security-auditor F3).
62
+ - **Fixed the flag-to-body-field guard's fail-open fixture check.** It
63
+ previously `describe.skip`'d its entire 8-test suite whenever the sibling
64
+ `packages/sdk` fixture wasn't found at a `process.cwd()`-relative path,
65
+ reporting green while running nothing. It now resolves the fixture
66
+ relative to the test file's own location (not cwd) and fails loudly, per
67
+ test, when the fixture is missing, since a broken checkout is a failing suite,
68
+ not a skipped one.
69
+
11
70
  ## [0.24.0] - 2026-08-18
12
71
 
13
72
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curviate/cli",
3
- "version": "0.24.0",
3
+ "version": "0.24.2",
4
4
  "private": false,
5
5
  "description": "Official command-line interface for the Curviate API.",
6
6
  "license": "MIT",
@@ -30,7 +30,8 @@
30
30
  },
31
31
  "scripts": {
32
32
  "build": "tsup",
33
- "prepack": "node scripts/check-clean.mjs && node scripts/check-copy.mjs && tsup && node scripts/check-clean.mjs --dist",
33
+ "prepack": "node scripts/check-clean.mjs && node scripts/check-copy.mjs && node scripts/check-sdk-pin.mjs && node scripts/check-fixture-pin.mjs && tsup && node scripts/check-clean.mjs --dist",
34
+ "pretest": "node scripts/check-fixture-pin.mjs",
34
35
  "test": "vitest run",
35
36
  "test:watch": "vitest",
36
37
  "typecheck": "tsc --noEmit",
@@ -38,11 +39,13 @@
38
39
  "check:clean": "node scripts/check-clean.mjs",
39
40
  "check:clean:dist": "node scripts/check-clean.mjs --dist",
40
41
  "check:copy": "node scripts/check-copy.mjs",
42
+ "check:sdk-pin": "node scripts/check-sdk-pin.mjs",
43
+ "check:fixture-pin": "node scripts/check-fixture-pin.mjs",
41
44
  "verify:dist": "pnpm build && node scripts/verify-dist.mjs",
42
45
  "clean": "rm -rf dist *.tsbuildinfo"
43
46
  },
44
47
  "dependencies": {
45
- "@curviate/sdk": "^0.23.0",
48
+ "@curviate/sdk": "0.24.3",
46
49
  "citty": "^0.1.6",
47
50
  "open": "^10.1.0"
48
51
  },