@eqxjs/nest-common 0.2.1 → 0.2.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 +15 -0
- package/package.json +29 -38
- package/commitlint.config.mjs +0 -46
- package/jest.config.mjs +0 -24
- package/tsconfig.spec.json +0 -6
package/CHANGELOG
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.2.3](https://github.com/corp-ais/cronus-eqxjs-common-library-common/compare/v0.2.0...v0.2.3) (2026-02-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🧼 Code Refactoring
|
|
9
|
+
|
|
10
|
+
* update nodejs engine version to >=22 in package.json ([2eaf6af](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/2eaf6aff4f8a923b4cf1da3fbbbb6a4a3a1a13c3))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### 🧹 Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
* add .yarnrc.yml for Yarn configuration and update commitlint config ([cd19f3b](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/cd19f3bf4b970800dcbf47124f6e396fad88dc3c))
|
|
16
|
+
* bump version to 0.2.2 in package.json ([eb884d8](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/eb884d800276c0423b50a403f7f1249cd25770d0))
|
|
17
|
+
* **deps:** update dependencies and upgrade to node 24 ([a8d7948](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/a8d79485702d1debb713ed479fa9d7f00ec7506e))
|
|
18
|
+
* **release:** bump version to v0.2.1 ([7c55e4c](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/7c55e4cc8d4f1db85ec893ecdc14f49a426fe2c7))
|
|
19
|
+
|
|
5
20
|
## [0.2.0](https://github.com/corp-ais/cronus-eqxjs-common-library-common/compare/v0.1.1...v0.2.0) (2025-11-21)
|
|
6
21
|
|
|
7
22
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eqxjs/nest-common",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "
|
|
5
|
-
"author": "ESBM
|
|
3
|
+
"version": "0.2.3",
|
|
4
|
+
"description": "A common library for NestJS provides shared constants, enums, and utilities.",
|
|
5
|
+
"author": "Cronus ESBM",
|
|
6
6
|
"license": "ISC",
|
|
7
|
-
"private": false,
|
|
8
7
|
"main": "./dist/index.js",
|
|
9
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=24"
|
|
14
|
+
},
|
|
10
15
|
"scripts": {
|
|
11
16
|
"prebuild": "yarn clean && rm -rf dist",
|
|
12
17
|
"format": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
@@ -32,53 +37,39 @@
|
|
|
32
37
|
"release:init:changelog": "standard-version --first-release --infile CHANGELOG --skip.tag --skip.commit",
|
|
33
38
|
"prepublishOnly": "yarn run build && yarn run test:cov"
|
|
34
39
|
},
|
|
35
|
-
"engines": {
|
|
36
|
-
"node": ">=22"
|
|
37
|
-
},
|
|
38
|
-
"dependencies": {},
|
|
39
40
|
"devDependencies": {
|
|
40
|
-
"@commitlint/cli": "^20.1
|
|
41
|
-
"@commitlint/config-conventional": "^20.
|
|
42
|
-
"@commitlint/types": "^20.
|
|
43
|
-
"@eslint/eslintrc": "^3.3.
|
|
44
|
-
"@eslint/js": "^9.39.
|
|
45
|
-
"@types/jest": "^
|
|
46
|
-
"@types/node": "^24.10.
|
|
41
|
+
"@commitlint/cli": "^20.4.1",
|
|
42
|
+
"@commitlint/config-conventional": "^20.4.1",
|
|
43
|
+
"@commitlint/types": "^20.4.0",
|
|
44
|
+
"@eslint/eslintrc": "^3.3.3",
|
|
45
|
+
"@eslint/js": "^9.39.2",
|
|
46
|
+
"@types/jest": "^30.0.0",
|
|
47
|
+
"@types/node": "^24.10.13",
|
|
47
48
|
"@types/supertest": "^6.0.3",
|
|
48
49
|
"commitizen": "^4.3.1",
|
|
49
|
-
"conventional-changelog-atom": "^5.0.0",
|
|
50
50
|
"conventional-changelog-cli": "^5.0.0",
|
|
51
51
|
"cz-conventional-changelog": "^3.3.0",
|
|
52
|
-
"eslint": "^9.39.
|
|
52
|
+
"eslint": "^9.39.2",
|
|
53
53
|
"eslint-config-prettier": "^10.1.8",
|
|
54
|
-
"eslint-plugin-jest": "^29.
|
|
55
|
-
"eslint-plugin-prettier": "^5.5.
|
|
56
|
-
"globals": "^
|
|
54
|
+
"eslint-plugin-jest": "^29.15.0",
|
|
55
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
56
|
+
"globals": "^17.3.0",
|
|
57
57
|
"husky": "^9.1.7",
|
|
58
|
-
"jest": "^
|
|
59
|
-
"jest-mock-extended": "^
|
|
58
|
+
"jest": "^30.2.0",
|
|
59
|
+
"jest-mock-extended": "^4.0.0",
|
|
60
60
|
"lint-staged": "^16.2.7",
|
|
61
|
-
"prettier": "^3.
|
|
61
|
+
"prettier": "^3.8.1",
|
|
62
62
|
"reflect-metadata": "^0.2.2",
|
|
63
63
|
"source-map-support": "^0.5.21",
|
|
64
64
|
"standard-version": "^9.5.0",
|
|
65
|
-
"supertest": "^7.
|
|
66
|
-
"ts-jest": "^29.4.
|
|
65
|
+
"supertest": "^7.2.2",
|
|
66
|
+
"ts-jest": "^29.4.6",
|
|
67
67
|
"ts-loader": "^9.5.4",
|
|
68
68
|
"ts-node": "^10.9.2",
|
|
69
69
|
"tsconfig-paths": "^4.2.0",
|
|
70
70
|
"typescript": "^5.9.3",
|
|
71
|
-
"typescript-eslint": "^8.
|
|
72
|
-
"webpack": "^5.
|
|
73
|
-
},
|
|
74
|
-
"overrides": {
|
|
75
|
-
"@conventional-changelog/git-client": "^2.0.0",
|
|
76
|
-
"js-yaml": "^3.14.2",
|
|
77
|
-
"tmp": "^0.2.4"
|
|
71
|
+
"typescript-eslint": "^8.56.0",
|
|
72
|
+
"webpack": "^5.105.2"
|
|
78
73
|
},
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
"js-yaml": "^3.14.2",
|
|
82
|
-
"tmp": "^0.2.4"
|
|
83
|
-
}
|
|
84
|
-
}
|
|
74
|
+
"packageManager": "yarn@4.12.0"
|
|
75
|
+
}
|
package/commitlint.config.mjs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/** @type {import('@commitlint/types').UserConfig} */
|
|
2
|
-
const Configuration = {
|
|
3
|
-
extends: ['@commitlint/config-conventional'],
|
|
4
|
-
parserPreset: 'conventional-changelog-atom',
|
|
5
|
-
formatter: '@commitlint/format',
|
|
6
|
-
rules: {
|
|
7
|
-
'type-enum': [
|
|
8
|
-
2,
|
|
9
|
-
'always',
|
|
10
|
-
[
|
|
11
|
-
'feat', // New feature
|
|
12
|
-
'fix', // Bug fix
|
|
13
|
-
'docs', // Documentation changes
|
|
14
|
-
'style', // Changes that do not affect the meaning of the code (white-space, formatting, etc.)
|
|
15
|
-
'refactor', // Code changes that neither fix a bug nor add a feature
|
|
16
|
-
'perf', // Performance improvement
|
|
17
|
-
'test', // Adding missing tests or correcting existing tests
|
|
18
|
-
'build', // Changes that affect the build system or external dependencies (example scopes: npm)
|
|
19
|
-
'ci', // Changes to CI configuration files and scripts
|
|
20
|
-
'chore', // Other changes that don't modify src or test files
|
|
21
|
-
'revert', // Reverts a previous commit
|
|
22
|
-
],
|
|
23
|
-
],
|
|
24
|
-
'scope-enum': [
|
|
25
|
-
2,
|
|
26
|
-
'always',
|
|
27
|
-
[
|
|
28
|
-
'setup', // Project setup
|
|
29
|
-
'config', // Configuration files
|
|
30
|
-
'deps', // Dependency updates
|
|
31
|
-
'feature', // Feature-specific changes
|
|
32
|
-
'bug', // Bug fixes
|
|
33
|
-
'docs', // Documentation
|
|
34
|
-
'style', // Code style/formatting
|
|
35
|
-
'refactor', // Code refactoring
|
|
36
|
-
'test', // Tests
|
|
37
|
-
'build', // Build scripts or configuration
|
|
38
|
-
'ci', // Continuous integration
|
|
39
|
-
'release', // Release related changes
|
|
40
|
-
'other', // Other changes
|
|
41
|
-
],
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export default Configuration;
|
package/jest.config.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
2
|
-
export default {
|
|
3
|
-
preset: 'ts-jest/presets/default-esm',
|
|
4
|
-
extensionsToTreatAsEsm: ['.ts'],
|
|
5
|
-
moduleNameMapper: {
|
|
6
|
-
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
7
|
-
},
|
|
8
|
-
rootDir: '.',
|
|
9
|
-
testRegex: '.*\\.spec\\.ts$',
|
|
10
|
-
transform: {
|
|
11
|
-
'^.+\\.ts$': [
|
|
12
|
-
'ts-jest',
|
|
13
|
-
{
|
|
14
|
-
useESM: true,
|
|
15
|
-
tsconfig: 'tsconfig.spec.json',
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
collectCoverageFrom: ['src/**/*.ts', '!src/**/index.ts'],
|
|
20
|
-
coverageDirectory: './coverage',
|
|
21
|
-
testEnvironment: 'node',
|
|
22
|
-
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
|
|
23
|
-
setupFilesAfterEnv: ['<rootDir>/test/jest-setup.ts'],
|
|
24
|
-
};
|