@cronvello/sdk 0.2.0 → 0.2.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 +8 -0
- package/README.md +10 -6
- package/dist/{dispatch-handler-DazGcFHz.d.cts → dispatch-handler-BoadpsL9.d.cts} +3 -4
- package/dist/{dispatch-handler-DazGcFHz.d.ts → dispatch-handler-BoadpsL9.d.ts} +3 -4
- package/dist/express.d.cts +1 -1
- package/dist/express.d.ts +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/next.d.cts +1 -1
- package/dist/next.d.ts +1 -1
- package/package.json +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to `@cronvello/sdk` are documented here. This project adheres to
|
|
4
4
|
[Semantic Versioning](https://semver.org/) (pre-1.0: minor-feature additions ship as patch releases).
|
|
5
5
|
|
|
6
|
+
## 0.2.1
|
|
7
|
+
|
|
8
|
+
- Move the canonical SDK source to the public
|
|
9
|
+
[`niccasWilliams/cronvello-sdk`](https://github.com/niccasWilliams/cronvello-sdk) repository.
|
|
10
|
+
- Add public CI and a tokenless npm Trusted Publishing workflow with automatic provenance.
|
|
11
|
+
- Replace internal production-derived contract examples with synthetic fixtures of the same wire
|
|
12
|
+
shape. Runtime behavior and the public API are unchanged.
|
|
13
|
+
|
|
6
14
|
## 0.2.0
|
|
7
15
|
|
|
8
16
|
**The SDK now runs locally with no account.** Until now `@cronvello/sdk` was cloud-coupled: jobs
|
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @cronvello/sdk
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@cronvello/sdk)
|
|
4
|
+
[](https://github.com/niccasWilliams/cronvello-sdk/actions/workflows/ci.yml)
|
|
5
|
+
[](./LICENSE)
|
|
6
|
+
|
|
3
7
|
**Code-first cron jobs for [Cronvello](https://cronvello.com).** Define your scheduled jobs in
|
|
4
8
|
your codebase, and the SDK keeps them in sync with Cronvello and runs them — **no dashboard
|
|
5
9
|
required**. Your jobs always follow your code.
|
|
@@ -461,12 +465,12 @@ npx cronvello secret # generate a strong dispatch secret
|
|
|
461
465
|
|
|
462
466
|
```
|
|
463
467
|
$ cronvello whoami
|
|
464
|
-
╭─
|
|
465
|
-
│ account #
|
|
466
|
-
│ plan
|
|
467
|
-
│ limits
|
|
468
|
-
│ usage
|
|
469
|
-
│ attention
|
|
468
|
+
╭─ Acme Production ──────────────────────────────╮
|
|
469
|
+
│ account #42 ✔ ops@example.com │
|
|
470
|
+
│ plan Pro │
|
|
471
|
+
│ limits 100 jobs · 50 tasks/job · 600/min │
|
|
472
|
+
│ usage 1842 / 10000 executions (4 jobs) │
|
|
473
|
+
│ attention 0 DLQ · 0 heartbeats · 0 maintenance │
|
|
470
474
|
╰────────────────────────────────────────────────╯
|
|
471
475
|
```
|
|
472
476
|
|
|
@@ -63,10 +63,9 @@ declare class Transport {
|
|
|
63
63
|
/**
|
|
64
64
|
* Wire types for the Cronvello public `/v1` API.
|
|
65
65
|
*
|
|
66
|
-
* These mirror the
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* for the SDK's request/response shapes. See `scripts/check-contract.md` for the drift check.
|
|
66
|
+
* These mirror the public API contract but are hand-authored as plain TypeScript so the SDK
|
|
67
|
+
* ships with ZERO runtime dependencies. When the server contract changes, update these to
|
|
68
|
+
* match. They are the single source of truth for the SDK's request/response shapes.
|
|
70
69
|
*/
|
|
71
70
|
type Urgency = "low" | "medium" | "high" | "critical";
|
|
72
71
|
type ExecutionMode = "sync" | "async_callback";
|
|
@@ -63,10 +63,9 @@ declare class Transport {
|
|
|
63
63
|
/**
|
|
64
64
|
* Wire types for the Cronvello public `/v1` API.
|
|
65
65
|
*
|
|
66
|
-
* These mirror the
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* for the SDK's request/response shapes. See `scripts/check-contract.md` for the drift check.
|
|
66
|
+
* These mirror the public API contract but are hand-authored as plain TypeScript so the SDK
|
|
67
|
+
* ships with ZERO runtime dependencies. When the server contract changes, update these to
|
|
68
|
+
* match. They are the single source of truth for the SDK's request/response shapes.
|
|
70
69
|
*/
|
|
71
70
|
type Urgency = "low" | "medium" | "high" | "critical";
|
|
72
71
|
type ExecutionMode = "sync" | "async_callback";
|
package/dist/express.d.cts
CHANGED
package/dist/express.d.ts
CHANGED