ctx-core 3.3.1 → 3.3.3

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.
@@ -28,7 +28,6 @@ export function rmemo_(_f, ...subscriber_a) {
28
28
  let prev_ref = cur_ref
29
29
  cur_ref = _r
30
30
  try {
31
- // _a[0] = _f(rmemo$)
32
31
  rmemo$._ = _f(rmemo$)
33
32
  } finally {
34
33
  cur_ref = prev_ref
@@ -36,9 +35,7 @@ export function rmemo_(_f, ...subscriber_a) {
36
35
  }
37
36
  // allow self-referencing
38
37
  if (cur_ref && cur_ref !== _r) {
39
- // Math.max: bitwise is much faster on chrome
40
- // https://measurethat.net/Benchmarks/Show/28483/0/mathmax-vs-bitwise
41
- cur_ref.l = cur_ref.l ^ ((cur_ref.l ^ _r.l + 1) & -(cur_ref.l < _r.l + 1))
38
+ cur_ref.l = cur_ref.l < _r.l + 1 ? _r.l + 1 : cur_ref.l
42
39
  rmemo$._rS.add(cur_ref)
43
40
  }
44
41
  return _a[0]
@@ -72,7 +69,6 @@ export function rmemo_(_f, ...subscriber_a) {
72
69
  }
73
70
  }
74
71
  }
75
- return rmemo$
76
72
  }
77
73
  return rmemo$
78
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctx-core",
3
- "version": "3.3.1",
3
+ "version": "3.3.3",
4
4
  "description": "ctx-core core library",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -136,21 +136,21 @@
136
136
  "import": {
137
137
  "./rmemo": "{ rmemo_ }"
138
138
  },
139
- "limit": "358 B"
139
+ "limit": "355 B"
140
140
  },
141
141
  {
142
142
  "name": "rmemo_ signal_",
143
143
  "import": {
144
144
  "./rmemo": "{ rsig_, rmemo_ }"
145
145
  },
146
- "limit": "387 B"
146
+ "limit": "380 B"
147
147
  },
148
148
  {
149
149
  "name": "rmemo_ signal_ be_ ctx_",
150
150
  "import": {
151
151
  "./rmemo": "{ rsig_, rmemo_, be_, ctx_ }"
152
152
  },
153
- "limit": "771 B"
153
+ "limit": "759 B"
154
154
  }
155
155
  ],
156
156
  "scripts": {