anear-js-api 1.6.1 → 1.6.2

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.
@@ -122,7 +122,12 @@ const AppMachineTransition = (anearEvent) => {
122
122
 
123
123
  if (event.type === 'RENDERED') {
124
124
  // Re-examine meta on RENDERED; send RENDER_DISPLAY only when state/context actually changed.
125
- if (baseSignature === lastBaseSignature) {
125
+ // Exception: eachParticipant states re-send once on RENDERED so participants who had a
126
+ // display queued (e.g. joined while another was publishing) still get the view. No opt-in.
127
+ const hasEachParticipant = (rawMeta && typeof rawMeta === 'object' && rawMeta.eachParticipant != null) ||
128
+ metaObjects.some(m => m && typeof m === 'object' && m.eachParticipant != null)
129
+ const sameSignature = baseSignature === lastBaseSignature
130
+ if (sameSignature && !hasEachParticipant) {
126
131
  logger.debug(`[AppMachineTransition] RENDERED re-examination: no change, skipping RENDER_DISPLAY stateName='${stateName}'`)
127
132
  return
128
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anear-js-api",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "Javascript Developer API for Anear Apps",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {