@platforma-sdk/workflow-tengo 3.2.0 → 3.3.0

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.
@@ -9,9 +9,18 @@ if is_undefined(_api) {
9
9
  _api = 0
10
10
  }
11
11
 
12
+ _isEnabled := func(featName) {
13
+ _checker := plapi.isFeatureEnabled
14
+ if is_undefined(_checker) {
15
+ return false
16
+ }
17
+
18
+ return _checker(featName)
19
+ }
20
+
12
21
  export ll.toStrict({
13
- pureFutureFields: _api >= 1, // 'pure' future fields magic that provides deduplication
14
- commandExpressions: _api >= 2, // rich expressions in command arguments ( {{ system.ram_bytes / 20 }} )
15
- workdirLimits: _api >= 4, // workdir storage controller can limit concurrency
16
- computeLimits: _api >= 8 // runner can plan CPU and RAM
22
+ pureFutureFields: _isEnabled("pureFutureFields") || _api >= 1, // 'pure' future fields magic that provides deduplication
23
+ commandExpressions: _isEnabled("commandExpressions") || _api >= 2, // rich expressions in command arguments ( {{ system.ram_bytes / 20 }} )
24
+ workdirLimits: _isEnabled("workdirLimits") || _api >= 4, // workdir storage controller can limit concurrency
25
+ computeLimits: _isEnabled("computeLimits") // runner can plan CPU and RAM
17
26
  })
@@ -121,6 +121,9 @@ createBuilder := func(ctx) {
121
121
  columnKey := canonical.encode(decodedId.source)
122
122
  queries[columnKey] = decodedId.source
123
123
  } else {
124
+ if is_undefined(encodedId) {
125
+ encodedId = canonical.encode(decodedId)
126
+ }
124
127
  queries[encodedId] = decodedId
125
128
  }
126
129
  },
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-sdk/workflow-tengo",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Tengo SDK library",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -20,7 +20,7 @@
20
20
  "@platforma-open/milaboratories.software-small-binaries": "^1.15.19"
21
21
  },
22
22
  "devDependencies": {
23
- "@platforma-sdk/tengo-builder": "^2.0.2"
23
+ "@platforma-sdk/tengo-builder": "^2.0.3"
24
24
  },
25
25
  "scripts": {
26
26
  "type-check": "pl-tengo check",