@sdeverywhere/build 0.3.0 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +9 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -12,6 +12,15 @@ declare type BuildMode = 'development' | 'production';
12
12
  * Describes a model input variable.
13
13
  */
14
14
  interface InputSpec {
15
+ /**
16
+ * The stable input identifier. It is recommended to set this to a value (for example, a
17
+ * numeric string like what `plugin-config` uses) that is separate from `varName` and is
18
+ * stable between two versions of the model. This way, if an input variable is renamed
19
+ * between two versions of the model, comparisons can still be performed between the two.
20
+ * If a distinct `inputId` is not available, plugins can infer one from `varName`, but
21
+ * note that this approach will be less resilient to renames.
22
+ */
23
+ inputId?: string;
15
24
  /** The variable name (as used in the modeling tool). */
16
25
  varName: string;
17
26
  /** The default value for the input. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdeverywhere/build",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "files": [
5
5
  "dist/**"
6
6
  ],