reactronic 0.22.201 → 0.22.202

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/README.md CHANGED
@@ -320,7 +320,7 @@ interface MemberOptions {
320
320
  readonly standalone: StandaloneMode
321
321
  readonly order: number
322
322
  readonly noSideEffects: boolean
323
- readonly sensitiveArgs: boolean
323
+ readonly triggeringArgs: boolean
324
324
  readonly throttling: number // milliseconds, -1 is immediately, Number.MAX_SAFE_INTEGER is never
325
325
  readonly reentrance: Reentrance
326
326
  readonly journal: TransactionJournal | undefined
@@ -15,7 +15,7 @@ export interface MemberOptions {
15
15
  readonly standalone: StandaloneMode;
16
16
  readonly order: number;
17
17
  readonly noSideEffects: boolean;
18
- readonly sensitiveArgs: boolean;
18
+ readonly triggeringArgs: boolean;
19
19
  readonly throttling: number;
20
20
  readonly reentrance: Reentrance;
21
21
  readonly journal: TransactionJournal | undefined;
@@ -15,7 +15,7 @@ export declare class OptionsImpl implements MemberOptions {
15
15
  readonly standalone: StandaloneMode;
16
16
  readonly order: number;
17
17
  readonly noSideEffects: boolean;
18
- readonly sensitiveArgs: boolean;
18
+ readonly triggeringArgs: boolean;
19
19
  readonly throttling: number;
20
20
  readonly reentrance: Reentrance;
21
21
  readonly journal: TransactionJournal | undefined;
@@ -24,7 +24,7 @@ const DEFAULT_OPTIONS = Object.freeze({
24
24
  standalone: false,
25
25
  order: 0,
26
26
  noSideEffects: false,
27
- sensitiveArgs: false,
27
+ triggeringArgs: false,
28
28
  throttling: Number.MAX_SAFE_INTEGER,
29
29
  reentrance: Options_1.Reentrance.PreventWithError,
30
30
  journal: undefined,
@@ -39,7 +39,7 @@ class OptionsImpl {
39
39
  this.standalone = merge(DEFAULT_OPTIONS.standalone, existing.standalone, patch.standalone, implicit);
40
40
  this.order = merge(DEFAULT_OPTIONS.order, existing.order, patch.order, implicit);
41
41
  this.noSideEffects = merge(DEFAULT_OPTIONS.noSideEffects, existing.noSideEffects, patch.noSideEffects, implicit);
42
- this.sensitiveArgs = merge(DEFAULT_OPTIONS.sensitiveArgs, existing.sensitiveArgs, patch.sensitiveArgs, implicit);
42
+ this.triggeringArgs = merge(DEFAULT_OPTIONS.triggeringArgs, existing.triggeringArgs, patch.triggeringArgs, implicit);
43
43
  this.throttling = merge(DEFAULT_OPTIONS.throttling, existing.throttling, patch.throttling, implicit);
44
44
  this.reentrance = merge(DEFAULT_OPTIONS.reentrance, existing.reentrance, patch.reentrance, implicit);
45
45
  this.journal = merge(DEFAULT_OPTIONS.journal, existing.journal, patch.journal, implicit);
@@ -110,7 +110,7 @@ class OperationController extends Controller_1.Controller {
110
110
  const op = this.acquireFromRevision(r, args);
111
111
  const isValid = op.options.kind !== Options_1.Kind.Transaction && op.cause !== BOOT_CAUSE &&
112
112
  (ctx === op.snapshot || ctx.timestamp < op.obsoleteSince) &&
113
- (!op.options.sensitiveArgs || args === undefined ||
113
+ (!op.options.triggeringArgs || args === undefined ||
114
114
  op.args.length === args.length && op.args.every((t, i) => t === args[i])) ||
115
115
  r.data[Data_1.Meta.Disposed] !== undefined;
116
116
  return { operation: op, isUpToDate: isValid, snapshot: ctx, revision: r };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactronic",
3
- "version": "0.22.201",
3
+ "version": "0.22.202",
4
4
  "description": "Reactronic - Transactional Reactive State Management",
5
5
  "main": "build/dist/source/api.js",
6
6
  "types": "build/dist/source/api.d.ts",