@lambdaorm/base 3.2.2 → 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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7096f5b: `orm.executeScript(script, data, options)`: the script's limits go in its options, with the stage —
8
+ `{ stage, timeout, maxIterations }` (`ScriptOptions extends QueryOptions`, in base). There is no fourth argument any
9
+ more: in lib 3.2.x the timeout was `executeScript(script, data, options, { timeout })`. The REST service takes them from
10
+ the request's `options` too, never above its own limits (SCRIPT_TIMEOUT_MS, SCRIPT_MAX_ITERATIONS).
11
+
3
12
  ## 3.2.2
4
13
 
5
14
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambdaorm/base",
3
- "version": "3.2.2",
3
+ "version": "3.3.0",
4
4
  "description": "LambdaORM base utilities",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -12,4 +12,11 @@ export interface QueryOptions {
12
12
  tryAllCan?: boolean;
13
13
  headers?: [string, any][];
14
14
  }
15
+ /** Options of orm.executeScript: the stage (…) of the script's transaction and the limits of the script */
16
+ export interface ScriptOptions extends QueryOptions {
17
+ /** Max time in ms; when it passes, the script's loops stop, its transaction rolls back and the script rejects */
18
+ timeout?: number;
19
+ /** Max loop iterations of the script, all loops together; past it the script fails and rolls back */
20
+ maxIterations?: number;
21
+ }
15
22
  //# sourceMappingURL=query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../src/lib/query/domain/query.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAA;CACtB;AAED,MAAM,WAAW,YAAY;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAA;CACzB"}
1
+ {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../src/lib/query/domain/query.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAA;CACtB;AAED,MAAM,WAAW,YAAY;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAA;CACzB;AAED,2GAA2G;AAC3G,MAAM,WAAW,aAAc,SAAQ,YAAY;IAClD,iHAAiH;IACjH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,qGAAqG;IACrG,aAAa,CAAC,EAAE,MAAM,CAAA;CACtB"}