@kapeta/local-cluster-service 0.54.2 → 0.54.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.54.3](https://github.com/kapetacom/local-cluster-service/compare/v0.54.2...v0.54.3) (2024-06-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * emit file done events from codefixer ([#182](https://github.com/kapetacom/local-cluster-service/issues/182)) ([77649dc](https://github.com/kapetacom/local-cluster-service/commit/77649dc1d53a5053f1ff7ed54b8106a3bd410434))
7
+
1
8
  ## [0.54.2](https://github.com/kapetacom/local-cluster-service/compare/v0.54.1...v0.54.2) (2024-06-19)
2
9
 
3
10
 
@@ -257,8 +257,8 @@ class StormCodegen {
257
257
  if (failedEvents.length > 0) {
258
258
  console.warn('Codegen encountered failed plan events. Plan might be invalid', failedEvents);
259
259
  }
260
+ // TODO: remove this when we have a better way to handle failed events
260
261
  // Skip failed events - they are not relevant to the materializer
261
- // TODO: should the materializer be able to handle failed events?
262
262
  filteredEvents = filteredEvents.filter((event) => !event.type.endsWith('_FAILED') && !event.type.endsWith('ERROR_INTERNAL'));
263
263
  const screenEvents = [];
264
264
  const getScreenEventsFile = () => ({
@@ -587,6 +587,7 @@ class StormCodegen {
587
587
  if (this.handleFileEvents(blockUri, blockName, evt)) {
588
588
  return;
589
589
  }
590
+ this.handleFileDoneOutput(blockUri, blockName, evt);
590
591
  if (evt.type === 'CODE_FIX') {
591
592
  resolved = true;
592
593
  resolve(evt.payload);
@@ -257,8 +257,8 @@ class StormCodegen {
257
257
  if (failedEvents.length > 0) {
258
258
  console.warn('Codegen encountered failed plan events. Plan might be invalid', failedEvents);
259
259
  }
260
+ // TODO: remove this when we have a better way to handle failed events
260
261
  // Skip failed events - they are not relevant to the materializer
261
- // TODO: should the materializer be able to handle failed events?
262
262
  filteredEvents = filteredEvents.filter((event) => !event.type.endsWith('_FAILED') && !event.type.endsWith('ERROR_INTERNAL'));
263
263
  const screenEvents = [];
264
264
  const getScreenEventsFile = () => ({
@@ -587,6 +587,7 @@ class StormCodegen {
587
587
  if (this.handleFileEvents(blockUri, blockName, evt)) {
588
588
  return;
589
589
  }
590
+ this.handleFileDoneOutput(blockUri, blockName, evt);
590
591
  if (evt.type === 'CODE_FIX') {
591
592
  resolved = true;
592
593
  resolve(evt.payload);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kapeta/local-cluster-service",
3
- "version": "0.54.2",
3
+ "version": "0.54.3",
4
4
  "description": "Manages configuration, ports and service discovery for locally running Kapeta systems",
5
5
  "type": "commonjs",
6
6
  "exports": {
@@ -295,8 +295,8 @@ export class StormCodegen {
295
295
  if (failedEvents.length > 0) {
296
296
  console.warn('Codegen encountered failed plan events. Plan might be invalid', failedEvents);
297
297
  }
298
+ // TODO: remove this when we have a better way to handle failed events
298
299
  // Skip failed events - they are not relevant to the materializer
299
- // TODO: should the materializer be able to handle failed events?
300
300
  filteredEvents = filteredEvents.filter(
301
301
  (event) => !event.type.endsWith('_FAILED') && !event.type.endsWith('ERROR_INTERNAL')
302
302
  );
@@ -758,6 +758,7 @@ export class StormCodegen {
758
758
  if (this.handleFileEvents(blockUri, blockName, evt)) {
759
759
  return;
760
760
  }
761
+ this.handleFileDoneOutput(blockUri, blockName, evt);
761
762
 
762
763
  if (evt.type === 'CODE_FIX') {
763
764
  resolved = true;