@teambit/ipc-events 1.0.516 → 1.0.517
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/dist/ipc-events.main.runtime.d.ts +7 -1
- package/dist/ipc-events.main.runtime.js +12 -0
- package/dist/ipc-events.main.runtime.js.map +1 -1
- package/package.json +6 -6
- package/artifacts/__bit_junit.xml +0 -4
- package/artifacts/preview/teambit_harmony_ipc_events-preview.js +0 -1
- package/artifacts/schema.json +0 -1354
- /package/dist/{preview-1736997622391.js → preview-1737084088495.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ScopeMain } from '@teambit/scope';
|
|
2
2
|
import { SlotRegistry } from '@teambit/harmony';
|
|
3
3
|
import { Logger, LoggerMain } from '@teambit/logger';
|
|
4
|
-
type EventName = 'onPostInstall' | 'onPostObjectsPersist';
|
|
4
|
+
type EventName = 'onPostInstall' | 'onPostObjectsPersist' | 'onNotifySSE';
|
|
5
5
|
type GotEvent = (eventName: EventName) => Promise<void>;
|
|
6
6
|
type GotEventSlot = SlotRegistry<GotEvent>;
|
|
7
7
|
/**
|
|
@@ -35,6 +35,12 @@ export declare class IpcEventsMain {
|
|
|
35
35
|
* watcher to get the event data.
|
|
36
36
|
*/
|
|
37
37
|
publishIpcEvent(eventName: EventName, data?: Record<string, any>): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* This is helpful when all we want is to notify the watchers that a new event has been written to the filesystem.
|
|
40
|
+
* It doesn't require the watchers to register to GotEventSlot. The watchers always listen to this onNotifySSE event,
|
|
41
|
+
* and once they get it, they simply send a server-send-event to the clients.
|
|
42
|
+
*/
|
|
43
|
+
publishIpcOnNotifySseEvent(event: string, data?: Record<string, any>): Promise<void>;
|
|
38
44
|
get eventsDir(): string;
|
|
39
45
|
static slots: ((registerFn: () => string) => SlotRegistry<GotEventSlot>)[];
|
|
40
46
|
static dependencies: import("@teambit/harmony").Aspect[];
|
|
@@ -109,6 +109,18 @@ class IpcEventsMain {
|
|
|
109
109
|
const content = data ? JSON.stringify(data, undefined, 2) : '';
|
|
110
110
|
await _fsExtra().default.outputFile(filename, content);
|
|
111
111
|
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* This is helpful when all we want is to notify the watchers that a new event has been written to the filesystem.
|
|
115
|
+
* It doesn't require the watchers to register to GotEventSlot. The watchers always listen to this onNotifySSE event,
|
|
116
|
+
* and once they get it, they simply send a server-send-event to the clients.
|
|
117
|
+
*/
|
|
118
|
+
async publishIpcOnNotifySseEvent(event, data) {
|
|
119
|
+
await this.publishIpcEvent('onNotifySSE', {
|
|
120
|
+
event,
|
|
121
|
+
data
|
|
122
|
+
});
|
|
123
|
+
}
|
|
112
124
|
get eventsDir() {
|
|
113
125
|
return _path().default.join(this.scope.path, EVENTS_DIR);
|
|
114
126
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_scope","data","require","_harmony","_logger","_pMapSeries","_interopRequireDefault","_cli","_path","_fsExtra","_ipcEvents","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","EVENTS_DIR","IpcEventsMain","constructor","scope","gotEventSlot","logger","registerGotEventSlot","fn","register","triggerGotEvent","eventName","info","pMapSeries","values","publishIpcEvent","filename","path","join","eventsDir","content","JSON","stringify","undefined","fs","outputFile","provider","loggerMain","_","createLogger","IpcEventsAspect","id","ipcEventsMain","registerOnPostObjectsPersist","debug","legacyScope","objects","clearObjectsFromCache","setStagedSnaps","exports","Slot","withType","ScopeAspect","LoggerAspect","MainRuntime","addRuntime","_default"],"sources":["ipc-events.main.runtime.ts"],"sourcesContent":["import { ScopeAspect, ScopeMain } from '@teambit/scope';\nimport { Slot, SlotRegistry } from '@teambit/harmony';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport pMapSeries from 'p-map-series';\nimport { MainRuntime } from '@teambit/cli';\nimport path from 'path';\nimport fs from 'fs-extra';\nimport { IpcEventsAspect } from './ipc-events.aspect';\n\ntype EventName = 'onPostInstall' | 'onPostObjectsPersist';\n\ntype GotEvent = (eventName: EventName) => Promise<void>;\ntype GotEventSlot = SlotRegistry<GotEvent>;\n\nconst EVENTS_DIR = 'events';\n\n/**\n * imagine you have multiple processes running in the background, such as `bit watch`, `bit start`, `bit server`.\n * the user is running `bit install` from the cli, how do you let these processes know that the installation is complete?\n * `bit start` for instance could use ths info to clear the \"component issues\" of the components that were missing packages.\n *\n * this class provides a mechanism to achieve this by writing the event into the filesystem (`.bit/events/event-name`),\n * while each one of the processes has a watcher in the background watch this file. once they got the data from the watcher,\n * they can act upon it.\n *\n * in the previous example, when the user is running `bit install`, the install aspect runs `this.publishIpcEvent` to\n * write `.bit/events/onPostInstall` to the filesystem. then, the watcher of `bit start` process got a notification\n * that this file has changed/added and it runs `triggerGotEvent` to run all aspects registered to its gotEventSlot.\n * the installer in turn is registered to this slot and once its function is triggered, it check whether the eventName\n * is onPostInstall and then triggers its own OnPostInstall slot.\n */\nexport class IpcEventsMain {\n constructor(\n private scope: ScopeMain,\n private gotEventSlot: GotEventSlot,\n private logger: Logger\n ) {}\n\n registerGotEventSlot(fn: GotEvent) {\n this.gotEventSlot.register(fn);\n }\n\n /**\n * this gets called from the watcher only.\n * as soon as the watcher finds out that a new event has been written to the filesystem, it triggers this function\n */\n async triggerGotEvent(eventName: EventName) {\n this.logger.info(`triggering got event ${eventName}`);\n await pMapSeries(this.gotEventSlot.values(), (fn) => fn(eventName));\n }\n\n /**\n * write event data into the filesystem, so then other processes, such as \"bit start\", \"bit watch\", could use the\n * watcher to get the event data.\n */\n async publishIpcEvent(eventName: EventName, data?: Record<string, any>) {\n const filename = path.join(this.eventsDir, eventName);\n const content = data ? JSON.stringify(data, undefined, 2) : '';\n await fs.outputFile(filename, content);\n }\n\n get eventsDir() {\n return path.join(this.scope.path, EVENTS_DIR);\n }\n\n static slots = [Slot.withType<GotEventSlot>()];\n static dependencies = [ScopeAspect, LoggerAspect];\n static runtime = MainRuntime;\n\n static async provider([scope, loggerMain]: [ScopeMain, LoggerMain], _, [gotEventSlot]: [GotEventSlot]) {\n const logger = loggerMain.createLogger(IpcEventsAspect.id);\n const ipcEventsMain = new IpcEventsMain(scope, gotEventSlot, logger);\n\n if (scope) {\n // in case commands like \"bit export\" are running from the cli, long-running processes should clear their cache.\n // otherwise, objects like \"ModelComponent\" are out-of-date and could have the wrong head and the \"state\"/\"local\" data.\n scope.registerOnPostObjectsPersist(async () => {\n await ipcEventsMain.publishIpcEvent('onPostObjectsPersist');\n });\n ipcEventsMain.registerGotEventSlot(async (eventName) => {\n if (eventName === 'onPostObjectsPersist') {\n logger.debug('got an event onPostObjectsPersist, clearing the cache and reloading staged-snaps');\n scope.legacyScope.objects.clearObjectsFromCache();\n scope.legacyScope.setStagedSnaps(); // \"bit export\" deletes the staged-snaps file, so it should be reloaded\n }\n });\n }\n\n return ipcEventsMain;\n }\n}\n\nIpcEventsAspect.addRuntime(IpcEventsMain);\n\nexport default IpcEventsMain;\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,YAAA;EAAA,MAAAJ,IAAA,GAAAK,sBAAA,CAAAJ,OAAA;EAAAG,WAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM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CAAA,EAAAD,CAAA,uCAAAS,CAAA,SAAAA,CAAA,YAAAK,SAAA,yEAAAd,CAAA,GAAAe,MAAA,GAAAC,MAAA,EAAAf,CAAA;AAOtD,MAAMgB,UAAU,GAAG,QAAQ;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,aAAa,CAAC;EACzBC,WAAWA,CACDC,KAAgB,EAChBC,YAA0B,EAC1BC,MAAc,EACtB;IAAA,KAHQF,KAAgB,GAAhBA,KAAgB;IAAA,KAChBC,YAA0B,GAA1BA,YAA0B;IAAA,KAC1BC,MAAc,GAAdA,MAAc;EACrB;EAEHC,oBAAoBA,CAACC,EAAY,EAAE;IACjC,IAAI,CAACH,YAAY,CAACI,QAAQ,CAACD,EAAE,CAAC;EAChC;;EAEA;AACF;AACA;AACA;EACE,MAAME,eAAeA,CAACC,SAAoB,EAAE;IAC1C,IAAI,CAACL,MAAM,CAACM,IAAI,CAAC,wBAAwBD,SAAS,EAAE,CAAC;IACrD,MAAM,IAAAE,qBAAU,EAAC,IAAI,CAACR,YAAY,CAACS,MAAM,CAAC,CAAC,EAAGN,EAAE,IAAKA,EAAE,CAACG,SAAS,CAAC,CAAC;EACrE;;EAEA;AACF;AACA;AACA;EACE,MAAMI,eAAeA,CAACJ,SAAoB,EAAEzC,IAA0B,EAAE;IACtE,MAAM8C,QAAQ,GAAGC,eAAI,CAACC,IAAI,CAAC,IAAI,CAACC,SAAS,EAAER,SAAS,CAAC;IACrD,MAAMS,OAAO,GAAGlD,IAAI,GAAGmD,IAAI,CAACC,SAAS,CAACpD,IAAI,EAAEqD,SAAS,EAAE,CAAC,CAAC,GAAG,EAAE;IAC9D,MAAMC,kBAAE,CAACC,UAAU,CAACT,QAAQ,EAAEI,OAAO,CAAC;EACxC;EAEA,
|
|
1
|
+
{"version":3,"names":["_scope","data","require","_harmony","_logger","_pMapSeries","_interopRequireDefault","_cli","_path","_fsExtra","_ipcEvents","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","EVENTS_DIR","IpcEventsMain","constructor","scope","gotEventSlot","logger","registerGotEventSlot","fn","register","triggerGotEvent","eventName","info","pMapSeries","values","publishIpcEvent","filename","path","join","eventsDir","content","JSON","stringify","undefined","fs","outputFile","publishIpcOnNotifySseEvent","event","provider","loggerMain","_","createLogger","IpcEventsAspect","id","ipcEventsMain","registerOnPostObjectsPersist","debug","legacyScope","objects","clearObjectsFromCache","setStagedSnaps","exports","Slot","withType","ScopeAspect","LoggerAspect","MainRuntime","addRuntime","_default"],"sources":["ipc-events.main.runtime.ts"],"sourcesContent":["import { ScopeAspect, ScopeMain } from '@teambit/scope';\nimport { Slot, SlotRegistry } from '@teambit/harmony';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport pMapSeries from 'p-map-series';\nimport { MainRuntime } from '@teambit/cli';\nimport path from 'path';\nimport fs from 'fs-extra';\nimport { IpcEventsAspect } from './ipc-events.aspect';\n\ntype EventName = 'onPostInstall' | 'onPostObjectsPersist' | 'onNotifySSE';\n\ntype GotEvent = (eventName: EventName) => Promise<void>;\ntype GotEventSlot = SlotRegistry<GotEvent>;\n\nconst EVENTS_DIR = 'events';\n\n/**\n * imagine you have multiple processes running in the background, such as `bit watch`, `bit start`, `bit server`.\n * the user is running `bit install` from the cli, how do you let these processes know that the installation is complete?\n * `bit start` for instance could use ths info to clear the \"component issues\" of the components that were missing packages.\n *\n * this class provides a mechanism to achieve this by writing the event into the filesystem (`.bit/events/event-name`),\n * while each one of the processes has a watcher in the background watch this file. once they got the data from the watcher,\n * they can act upon it.\n *\n * in the previous example, when the user is running `bit install`, the install aspect runs `this.publishIpcEvent` to\n * write `.bit/events/onPostInstall` to the filesystem. then, the watcher of `bit start` process got a notification\n * that this file has changed/added and it runs `triggerGotEvent` to run all aspects registered to its gotEventSlot.\n * the installer in turn is registered to this slot and once its function is triggered, it check whether the eventName\n * is onPostInstall and then triggers its own OnPostInstall slot.\n */\nexport class IpcEventsMain {\n constructor(\n private scope: ScopeMain,\n private gotEventSlot: GotEventSlot,\n private logger: Logger\n ) {}\n\n registerGotEventSlot(fn: GotEvent) {\n this.gotEventSlot.register(fn);\n }\n\n /**\n * this gets called from the watcher only.\n * as soon as the watcher finds out that a new event has been written to the filesystem, it triggers this function\n */\n async triggerGotEvent(eventName: EventName) {\n this.logger.info(`triggering got event ${eventName}`);\n await pMapSeries(this.gotEventSlot.values(), (fn) => fn(eventName));\n }\n\n /**\n * write event data into the filesystem, so then other processes, such as \"bit start\", \"bit watch\", could use the\n * watcher to get the event data.\n */\n async publishIpcEvent(eventName: EventName, data?: Record<string, any>) {\n const filename = path.join(this.eventsDir, eventName);\n const content = data ? JSON.stringify(data, undefined, 2) : '';\n await fs.outputFile(filename, content);\n }\n\n /**\n * This is helpful when all we want is to notify the watchers that a new event has been written to the filesystem.\n * It doesn't require the watchers to register to GotEventSlot. The watchers always listen to this onNotifySSE event,\n * and once they get it, they simply send a server-send-event to the clients.\n */\n async publishIpcOnNotifySseEvent(event: string, data?: Record<string, any>) {\n await this.publishIpcEvent('onNotifySSE', { event, data });\n }\n\n get eventsDir() {\n return path.join(this.scope.path, EVENTS_DIR);\n }\n\n static slots = [Slot.withType<GotEventSlot>()];\n static dependencies = [ScopeAspect, LoggerAspect];\n static runtime = MainRuntime;\n\n static async provider([scope, loggerMain]: [ScopeMain, LoggerMain], _, [gotEventSlot]: [GotEventSlot]) {\n const logger = loggerMain.createLogger(IpcEventsAspect.id);\n const ipcEventsMain = new IpcEventsMain(scope, gotEventSlot, logger);\n\n if (scope) {\n // in case commands like \"bit export\" are running from the cli, long-running processes should clear their cache.\n // otherwise, objects like \"ModelComponent\" are out-of-date and could have the wrong head and the \"state\"/\"local\" data.\n scope.registerOnPostObjectsPersist(async () => {\n await ipcEventsMain.publishIpcEvent('onPostObjectsPersist');\n });\n ipcEventsMain.registerGotEventSlot(async (eventName) => {\n if (eventName === 'onPostObjectsPersist') {\n logger.debug('got an event onPostObjectsPersist, clearing the cache and reloading staged-snaps');\n scope.legacyScope.objects.clearObjectsFromCache();\n scope.legacyScope.setStagedSnaps(); // \"bit export\" deletes the staged-snaps file, so it should be reloaded\n }\n });\n }\n\n return ipcEventsMain;\n }\n}\n\nIpcEventsAspect.addRuntime(IpcEventsMain);\n\nexport default IpcEventsMain;\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,YAAA;EAAA,MAAAJ,IAAA,GAAAK,sBAAA,CAAAJ,OAAA;EAAAG,WAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,KAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,IAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,MAAA;EAAA,MAAAP,IAAA,GAAAK,sBAAA,CAAAJ,OAAA;EAAAM,KAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,SAAA;EAAA,MAAAR,IAAA,GAAAK,sBAAA,CAAAJ,OAAA;EAAAO,QAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,I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AC;IAC1D,MAAMC,aAAa,GAAG,IAAIhC,aAAa,CAACE,KAAK,EAAEC,YAAY,EAAEC,MAAM,CAAC;IAEpE,IAAIF,KAAK,EAAE;MACT;MACA;MACAA,KAAK,CAAC+B,4BAA4B,CAAC,YAAY;QAC7C,MAAMD,aAAa,CAACnB,eAAe,CAAC,sBAAsB,CAAC;MAC7D,CAAC,CAAC;MACFmB,aAAa,CAAC3B,oBAAoB,CAAC,MAAOI,SAAS,IAAK;QACtD,IAAIA,SAAS,KAAK,sBAAsB,EAAE;UACxCL,MAAM,CAAC8B,KAAK,CAAC,kFAAkF,CAAC;UAChGhC,KAAK,CAACiC,WAAW,CAACC,OAAO,CAACC,qBAAqB,CAAC,CAAC;UACjDnC,KAAK,CAACiC,WAAW,CAACG,cAAc,CAAC,CAAC,CAAC,CAAC;QACtC;MACF,CAAC,CAAC;IACJ;IAEA,OAAON,aAAa;EACtB;AACF;AAACO,OAAA,CAAAvC,aAAA,GAAAA,aAAA;AAAAnB,eAAA,CApEYmB,aAAa,WA2CT,CAACwC,eAAI,CAACC,QAAQ,CAAe,CAAC,CAAC;AAAA5D,eAAA,CA3CnCmB,aAAa,kBA4CF,CAAC0C,oBAAW,EAAEC,sBAAY,CAAC;AAAA9D,eAAA,CA5CtCmB,aAAa,aA6CP4C,kBAAW;AAyB9Bd,4BAAe,CAACe,UAAU,CAAC7C,aAAa,CAAC;AAAC,IAAA8C,QAAA,GAAAP,OAAA,CAAA3D,OAAA,GAE3BoB,aAAa","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/ipc-events",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.517",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/ipc-events",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "ipc-events",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.517"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"fs-extra": "10.0.0",
|
|
13
13
|
"p-map-series": "2.1.0",
|
|
14
14
|
"@teambit/harmony": "0.4.6",
|
|
15
|
-
"@teambit/cli": "0.0.
|
|
16
|
-
"@teambit/logger": "0.0.
|
|
17
|
-
"@teambit/scope": "1.0.
|
|
15
|
+
"@teambit/cli": "0.0.1094",
|
|
16
|
+
"@teambit/logger": "0.0.1187",
|
|
17
|
+
"@teambit/scope": "1.0.517"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/fs-extra": "9.0.7",
|
|
21
21
|
"@types/mocha": "9.1.0",
|
|
22
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
22
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.69"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {},
|
|
25
25
|
"license": "Apache-2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["teambit.harmony/ipc-events-preview"]=o():e["teambit.harmony/ipc-events-preview"]=o()}(self,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var r in t)e.o(t,r)&&!e.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:t[r]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{compositions:()=>t,compositions_metadata:()=>i,overview:()=>r});const t=[],r=[],i={compositions:[]};return o})()));
|