Skip to content

Commit 7b97c9b

Browse files
authored
fix(core): update dependencies to include Typescript 5.x and Node 20.x (#3)
* chore(core): 🔧 update dependencies and test * chore(core): 🍱 update folders * ci(ci): 💚 fix CI configuration for test * chore(ci): 💚 try to fix ts-jest compilation problems * chore(ci): 💚 try to fix ci issue with test * chore(ci): 💚 try to fix ci problem * ci(ci): 💚 fix ci tests
1 parent b0bc3f9 commit 7b97c9b

File tree

42 files changed

+192
-12461
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+192
-12461
lines changed

.config/azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ variables:
1717
value: 'mdf-js-api'
1818
## Node version
1919
- name: nodeVersion
20-
value: '18'
20+
value: '20'
2121
## Releases Wiki page
2222
- name: artifactWikiFileName
2323
value: '@mdf.js%2Djs-%2D-API'

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
# Resumen
1+
# Summary
22

3-
- [ ] Bug fix (arregla un fallo sin afectar a las funcionalidades actuales)
4-
- [ ] Nueva funcionalidad (añade un funcionalidad sin afectar a las actuales)
5-
- [ ] Cambio importante (añade o modifica una funcionalidad que afecta a las funcionalidades actuales)
3+
- [ ] Bug fix (corrects a fault without impacting current features)
4+
- [ ] New feature (adds a new functionality without affecting the existing ones)
5+
- [ ] Major change (adds or modifies a feature that impacts existing functionalities)
66

7-
_Describa el problema específico que se está solucionando, solo un resumen servirá si hay un enlace al elemento de trabajo que aborda este cambio._
7+
Provide a description of the specific problem that is being solved. A summary would suffice if there is a link to the work item addressing this change.
88

9-
## Que ha cambiado?
9+
## What has changed?
1010

11-
_Resuma el cambio realizado, p.ej.: añadido nuevo template para npm, modificado nombre descriptivo de fase ..._
11+
Summarize the change made, e.g., added new npm template, modified descriptive phase name ...
1212

13-
### Areas afectadas
13+
### Affected Areas
1414

15-
_Especifique las áreas específicas que se han visto afectados por este cambio. p.ej. proceso de publicación de alarms, estrategia de calculo de datapoints ..._
15+
Specify the particular areas that have been impacted by this change. e.g., alarm publication process, datapoint calculation strategy ...
1616

17-
### Areas no afectadas
17+
### Unaffected Areas
1818

19-
_Enumere las áreas que normalmente se podría suponer que se han cambiado pero que no lo son en este caso. El objetivo es ahorrar tiempo al revisor y al evaluador._
19+
List the areas that one might assume have been changed but have not been in this instance. The aim is to save time for the reviewer and evaluator.
2020

21-
### Checklist de autor antes de realizar la publicación
21+
### Author's Checklist Before Publication
2222

23-
- [ ] He comprobado que la modificación funciona correctamente.
24-
- [ ] La modificación sigue los [estándares](https://devopmytra.visualstudio.com/NetinSystems/_wiki/wikis/NetinSystems.wiki/1381/Netin-Systems-DevOps) marcados por el grupo de DevOps de Netin Systems.
25-
- [ ] La modificaciones no incluyen claves, tokens o información confidencial en la pipeline.
26-
- [ ] Se han realizado los test unitarios correspondientes para cubrir el nuevo código y/o eliminado los test que ya no son necesarios.
23+
- [ ] I have verified that the modification works correctly.
24+
- [ ] The modification adheres to the [standards](https://devopmytra.visualstudio.com/NetinSystems/_wiki/wikis/NetinSystems.wiki/1381/Netin-Systems-DevOps) set by the Netin Systems DevOps group.
25+
- [ ] The modifications do not include keys, tokens, or confidential information in the pipeline.
26+
- [ ] Corresponding unit tests have been conducted to cover the new code and/or the tests that are no longer necessary have been removed.
2727

28-
### Comprobación de la modificación
28+
### Verification of Modification
2929

30-
_Describa las pruebas que ha realizado como parte de este cambio. Anótelo aquí para el revisor y el evaluador._
31-
_Aporte el enlace a pipeline ejecutada de forma exitosa._
30+
Describe the tests you have performed as part of this change. Note it here for the reviewer and the evaluator.
31+
Provide the link to the successfully executed pipeline.

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18.8.0
1+
v20.2.0

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# **@mdf.js**
22

3-
[![Node Version](https://img.shields.io/static/v1?style=flat&logo=node.js&logoColor=green&label=node&message=%3E=16%20||%2018&color=blue)](https://nodejs.org/en/)
4-
[![Typescript Version](https://img.shields.io/static/v1?style=flat&logo=typescript&label=Typescript&message=4.8&color=blue)](https://www.typescriptlang.org/)
3+
[![Node Version](https://img.shields.io/static/v1?style=flat&logo=node.js&logoColor=green&label=node&message=%3E=20&color=blue)](https://nodejs.org/en/)
4+
[![Typescript Version](https://img.shields.io/static/v1?style=flat&logo=typescript&label=Typescript&message=5.0&color=blue)](https://www.typescriptlang.org/)
55
[![Known Vulnerabilities](https://img.shields.io/static/v1?style=flat&logo=snyk&label=Vulnerabilities&message=0&color=300A98F)](https://snyk.io/package/npm/snyk)
6+
[![Build Status](https://devopmytra.visualstudio.com/MytraManagementSystem/_apis/build/status%2FMytra%20Development%20Framework%20-%20mds.js?branchName=master)](https://devopmytra.visualstudio.com/MytraManagementSystem/_build/latest?definitionId=429&branchName=master)
7+
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fmytracontrol%2Fmdf.js%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/mytracontrol/mdf.js/master)
68

79
<!-- markdownlint-disable MD033 MD041 -->
810
<p align="center">
@@ -13,7 +15,6 @@
1315

1416
<h1 style="text-align:center;margin-bottom:0">Mytra Development Framework - @mdf.js </h1>
1517
<h5 style="text-align:center;margin-top:0">Typescript framework for core application development</h5>
16-
1718
<!-- markdownlint-enable MD033 -->
1819

1920
___

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,34 +29,34 @@
2929
"@stryker-mutator/jest-runner": "^6.4.2",
3030
"@stryker-mutator/typescript-checker": "^6.4.2",
3131
"@types/jest": "29.5.1",
32-
"@types/node": "18.11.17",
33-
"@typescript-eslint/eslint-plugin": "5.59.5",
34-
"@typescript-eslint/parser": "5.59.5",
32+
"@types/node": "20.2.4",
33+
"@typescript-eslint/eslint-plugin": "5.59.7",
34+
"@typescript-eslint/parser": "5.59.7",
3535
"cross-env": "^7.0.3",
36-
"dependency-cruiser": "^12.12.2",
37-
"eslint": "~8.40.0",
36+
"dependency-cruiser": "^13.0.2",
37+
"eslint": "~8.41.0",
3838
"eslint-config-prettier": "^8.8.0",
3939
"eslint-plugin-import": "^2.27.5",
4040
"eslint-plugin-prettier": "^4.2.1",
4141
"eslint-plugin-tsdoc": "^0.2.17",
42-
"glob": "^10.2.3",
43-
"jest": "29.3.1",
44-
"jest-environment-jsdom": "29.3.1",
45-
"jest-html-reporter": "^3.7.0",
46-
"jest-junit": "^14.0.1",
42+
"glob": "^10.2.6",
43+
"jest": "29.5.0",
44+
"jest-environment-jsdom": "29.5.0",
45+
"jest-html-reporter": "^3.10.0",
46+
"jest-junit": "^16.0.0",
4747
"jest-slow-test-reporter": "^1.0.0",
4848
"lerna": "^6.6.2",
4949
"license-checker": "^25.0.1",
5050
"npm-check": "^6.0.1",
5151
"prettier": "^2.8.8",
52-
"rimraf": "^5.0.0",
53-
"snyk": "^1.1155.0",
54-
"snyk-to-html": "^2.3.4",
52+
"rimraf": "^5.0.1",
53+
"snyk": "^1.1167.0",
54+
"snyk-to-html": "^2.3.7",
5555
"sort-package-json": "^2.4.1",
56-
"ts-jest": "29.0.3",
56+
"ts-jest": "29.1.0",
5757
"ts-node": "10.9.1",
58-
"turbo": "^1.9.4",
58+
"turbo": "^1.9.9",
5959
"typedoc": "0.24.7",
60-
"typescript": "4"
60+
"typescript": "5.0.4"
6161
}
6262
}

packages/api/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
"express": "^4.18.2",
4141
"joi": "^17.9.2",
4242
"lodash": "^4.17.21",
43-
"tslib": "^2.5.0",
43+
"tslib": "^2.5.2",
4444
"uuid": "^9.0.0"
4545
},
4646
"devDependencies": {
4747
"@mdf.js/repo-config": "*",
48-
"@types/lodash": "^4.14.194",
48+
"@types/lodash": "^4.14.195",
4949
"@types/uuid": "^9.0.1"
5050
},
5151
"engines": {

packages/api/crash/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"test": "jest --detectOpenHandles --config ./jest.config.js"
3535
},
3636
"dependencies": {
37-
"tslib": "^2.5.0",
37+
"tslib": "^2.5.2",
3838
"uuid": "^9.0.0"
3939
},
4040
"devDependencies": {

packages/api/doorkeeper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"ajv-formats": "^2.1.1",
3636
"ajv-keywords": "^5.1.0",
3737
"jsonpointer": "^5.0.0",
38-
"tslib": "^2.5.0",
38+
"tslib": "^2.5.2",
3939
"uuid": "^9.0.0"
4040
},
4141
"devDependencies": {

packages/api/firehose/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
"@mdf.js/metrics-registry": "*",
3737
"@mdf.js/utils": "*",
3838
"lodash": "^4.17.21",
39-
"tslib": "^2.5.0",
39+
"tslib": "^2.5.2",
4040
"uuid": "^9.0.0"
4141
},
4242
"devDependencies": {
4343
"@mdf.js/observability": "*",
4444
"@mdf.js/repo-config": "*",
45-
"@types/lodash": "^4.14.194",
45+
"@types/lodash": "^4.14.195",
4646
"@types/uuid": "^9.0.1"
4747
},
4848
"engines": {

packages/api/firehose/src/Engine/Engine.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Health, Jobs } from '@mdf.js/core';
88
import { Crash, Multi } from '@mdf.js/crash';
99
import { DebugLogger, LoggerInstance, SetContext } from '@mdf.js/logger';
1010
import { get, merge } from 'lodash';
11-
import { Transform } from 'stream';
11+
import { Readable, Transform } from 'stream';
1212
import { v4 } from 'uuid';
1313
import { EngineOptions } from '../types';
1414

@@ -33,6 +33,12 @@ export declare interface Engine {
3333
on(event: 'close', listener: () => void): this;
3434
/** Emitted on every state change */
3535
on(event: 'status', listener: (providerState: Health.Status) => void): this;
36+
/** Emitted when the stream is finished */
37+
on(event: 'finish', listener: () => void): this;
38+
/** Emitted when the stream is piped with a readable stream */
39+
on(event: 'pipe', listener: (source: Readable) => void): this;
40+
/** Emitted when the stream is piped with a readable stream */
41+
on(event: 'unpipe', listener: (source: Readable) => void): this;
3642
}
3743

3844
export class Engine<

0 commit comments

Comments
 (0)