@start9labs/start-sdk 1.5.0 → 1.5.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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.5.1 — StartOS 0.4.0-beta.8 (2026-05-13)
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- `GetActionInputType` (used to infer the input shape for `TaskOptions` / `task()` partials) now matches against `ActionInfo` instead of `Action`. The conditional previously tested `A extends Action<...>` while `A` was constrained to `ActionInfo<...>`, so inference fell through to `never` and `TaskInput.value` collapsed to `DeepPartial<never>`. Tasks built from `ActionInfo` now infer their input type correctly
|
|
8
|
+
- `BindOptions.addSsl` is now `Partial<AddSslOptions>` for protocols without SSL variants, matching the type already used on the SSL-variant branch. The two branches of the discriminated union are now consistent, so callers can omit individual SSL option fields regardless of which protocol they're binding
|
|
9
|
+
|
|
3
10
|
## 1.5.0 — StartOS 0.4.0-beta.8 (2026-05-08)
|
|
4
11
|
|
|
5
12
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as T from '../types';
|
|
2
2
|
import * as IST from '../actions/input/inputSpecTypes';
|
|
3
|
-
import {
|
|
3
|
+
import { ActionInfo } from './setupActions';
|
|
4
4
|
export type RunActionInput<Input> = Input | ((prev?: {
|
|
5
5
|
spec: IST.InputSpec;
|
|
6
6
|
value: Input | null;
|
|
@@ -10,7 +10,7 @@ export declare const runAction: <Input extends Record<string, unknown>>(options:
|
|
|
10
10
|
actionId: T.ActionId;
|
|
11
11
|
input?: RunActionInput<Input>;
|
|
12
12
|
}) => Promise<T.ActionResult | null>;
|
|
13
|
-
type GetActionInputType<A extends ActionInfo<T.ActionId, any>> = A extends
|
|
13
|
+
type GetActionInputType<A extends ActionInfo<T.ActionId, any>> = A extends ActionInfo<T.ActionId, infer I> ? I : never;
|
|
14
14
|
type TaskBase = {
|
|
15
15
|
reason?: string;
|
|
16
16
|
replayId?: string;
|
|
@@ -66,7 +66,7 @@ type BindOptionsByKnownProtocol = {
|
|
|
66
66
|
} | {
|
|
67
67
|
protocol: NotProtocolsWithSslVariants;
|
|
68
68
|
preferredExternalPort?: number;
|
|
69
|
-
addSsl?: AddSslOptions
|
|
69
|
+
addSsl?: Partial<AddSslOptions>;
|
|
70
70
|
};
|
|
71
71
|
export type BindOptionsByProtocol = BindOptionsByKnownProtocol | (BindOptions & {
|
|
72
72
|
protocol: null;
|
package/package/package.json
CHANGED
package/package.json
CHANGED