@eqxjs/nest-common 0.1.0 โ†’ 0.2.0

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 CHANGED
@@ -1,17 +1,70 @@
1
- # Changelog
2
-
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
-
5
- ## 0.1.0 (2025-07-01)
6
-
7
-
8
- ### ๐Ÿš€ Features
9
-
10
- * add CHANGELOG file ([42de96e](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/42de96ee400ae523ac39199ac4be796fbc591df9))
11
- * add result, enums, and constants implementation ([015447c](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/015447cb4f764f5df9ea32163afcacd8e12c8b04))
12
- * **setup:** initialize project ([0fbfaed](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/0fbfaed58c91170da63973f9e1c27b3c1b0eba0d))
13
-
14
-
15
- ### ๐Ÿงผ Code Refactoring
16
-
17
- * cleanup code and its documentation ([00d6dee](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/00d6dee5a4d8103e67247fbf1889ecd0b3941099))
1
+ # Changelog
2
+
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
+
5
+ ## [0.2.0](https://github.com/corp-ais/cronus-eqxjs-common-library-common/compare/v0.1.1...v0.2.0) (2025-11-21)
6
+
7
+
8
+ ### ๐Ÿ” CI/CD
9
+
10
+ * cleanup github workflow script ([b37baf6](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/b37baf65165f9cc423812e0deeb8e8e4bbdb80cb))
11
+ * update github workflow test-n-coverage.yml ([535025d](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/535025dc12d127b652e7566cb7aff8c3847aea73))
12
+ * update secret key for sonar ([01b027a](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/01b027a19abb52732b3c4027ee82927cf5dd777e))
13
+
14
+
15
+ ### ๐Ÿงน Miscellaneous Chores
16
+
17
+ * **deps:** update dependencies ([a88c4ff](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/a88c4ff7e7f5f19e1542ba202c85a7975ab493cd))
18
+ * **deps:** update dependencies (2025-09-02) ([5f361bd](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/5f361bd3a10124caad12c50ed055710900fd81ae))
19
+
20
+
21
+ ### ๐Ÿงผ Code Refactoring
22
+
23
+ * adjust Jest config to use tsconfig.spec.json ([cca6160](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/cca616000cdf6ccc816070fb221b01809bd8bf4b))
24
+ * **config:** resync vscode extension list from library-template ([ce23d82](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/ce23d82facc02f39e1fbb8e064f5d056c6100252))
25
+ * update ESLint configuration to use defineConfig and reorganize rules ([7748fc1](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/7748fc1518a7b9e6e0eca240a707afde685d7b89))
26
+
27
+
28
+ ### ๐Ÿš€ Features
29
+
30
+ * add type definitions for TUndefined, TNull, and TNullUndefined ([3e77250](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/3e7725053f9bc184eff7b48ec32c3ad4d6f37d85))
31
+
32
+
33
+ ### ๐Ÿž Bug Fixes
34
+
35
+ * update Node version requirement to >=24 in README ([e3949e3](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/e3949e3c56138f96c2bbd45bd2dc28b9f62caf82))
36
+
37
+ ## [0.1.1](https://github.com/corp-ais/cronus-eqxjs-common-library-common/compare/v0.1.0...v0.1.1) (2025-09-01)
38
+
39
+
40
+ ### ๐Ÿ” CI/CD
41
+
42
+ * add github workflow for test and coverage ([a47e4a8](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/a47e4a8ba807b19a743db00936d5c5cd56a8d8fe))
43
+ * rename workflow name ([3d52984](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/3d52984046613feae6ffbfcf14f8285dfead4dc1))
44
+
45
+
46
+ ### ๐Ÿงน Miscellaneous Chores
47
+
48
+ * **config:** update package.json to ignore index.ts file in testing with coverage ([e53b7ce](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/e53b7ce5bd946ad439c468ab9ca61a76db635c85))
49
+ * remove lock file out of git ignore file ([b8b33a4](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/b8b33a4135bcefb88ce98ae1d2eb0a9bef56b02e))
50
+
51
+
52
+ ### ๐Ÿงผ Code Refactoring
53
+
54
+ * apply best practice path referencing for library ([ba1ee67](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/ba1ee67a369f8b90210b4198fb5d7f9b937f0102))
55
+ * reset all files ending to LF ([0bec5c5](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/0bec5c5696933a5ccf05d035e2119e0372cf838e))
56
+ * sync from library template (2025-08-21) ([e136490](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/e136490635d00c5d3d03e98a97791c77a51f42ce))
57
+
58
+ ## 0.1.0 (2025-07-01)
59
+
60
+
61
+ ### ๐Ÿš€ Features
62
+
63
+ * add CHANGELOG file ([42de96e](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/42de96ee400ae523ac39199ac4be796fbc591df9))
64
+ * add result, enums, and constants implementation ([015447c](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/015447cb4f764f5df9ea32163afcacd8e12c8b04))
65
+ * **setup:** initialize project ([0fbfaed](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/0fbfaed58c91170da63973f9e1c27b3c1b0eba0d))
66
+
67
+
68
+ ### ๐Ÿงผ Code Refactoring
69
+
70
+ * cleanup code and its documentation ([00d6dee](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/00d6dee5a4d8103e67247fbf1889ecd0b3941099))
package/README.md CHANGED
@@ -1,21 +1,27 @@
1
- # cronus-eqxjs-common-library-nest-common
2
-
3
- A common library use in `@eqxjs` ecosystem.
4
-
5
- Node: `>=22`
6
-
7
- ## Installation
8
-
9
- ```bash
10
- yarn add @eqxjs/nest-common
11
- ```
12
-
13
- ## Contributing
14
-
15
- Please see [contributing.md](CONTRIBUTING.md)
16
-
17
- ## License
18
-
19
- Please see [LICENSE](LICENSE)
20
-
21
- ## Remark
1
+ # cronus-eqxjs-common-library-nest-common
2
+
3
+ A common library use in `@eqxjs` ecosystem.
4
+
5
+ Status: ``
6
+
7
+ Node: `>=24`
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ yarn add @eqxjs/nest-common
13
+ ```
14
+
15
+ ## Development
16
+
17
+ Please see [docs/README.md](docs/README.md)
18
+
19
+ ## Contributing
20
+
21
+ Please see [contributing.md](CONTRIBUTING.md)
22
+
23
+ ## License
24
+
25
+ Please see [LICENSE](LICENSE)
26
+
27
+ ## Remark
@@ -0,0 +1,46 @@
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/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import 'reflect-metadata';
1
2
  export * from './enums';
2
3
  export * from './result';
3
4
  export * from './constants';
5
+ export * from './types';
package/dist/index.js CHANGED
@@ -14,7 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ require("reflect-metadata");
17
18
  __exportStar(require("./enums"), exports);
18
19
  __exportStar(require("./result"), exports);
19
20
  __exportStar(require("./constants"), exports);
21
+ __exportStar(require("./types"), exports);
20
22
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4BAA0B;AAE1B,0CAAwB;AACxB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB"}
@@ -0,0 +1,3 @@
1
+ export type TUndefined<T> = T | undefined;
2
+ export type TNull<T> = T | null;
3
+ export type TNullUndefined<T> = T | null | undefined;
package/dist/types.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
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
+ };
package/package.json CHANGED
@@ -1,102 +1,84 @@
1
- {
2
- "name": "@eqxjs/nest-common",
3
- "version": "0.1.0",
4
- "description": "Common library for eqxjs provides shared constants, enums, and utilities.",
5
- "author": "ESBM Cronus",
6
- "license": "ISC",
7
- "private": false,
8
- "main": "dist/index.js",
9
- "types": "dist/index.d.ts",
10
- "scripts": {
11
- "prebuild": "yarn run clean",
12
- "format": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
13
- "format:fix": "prettier --write --list-different \"src/**/*.ts\" \"test/**/*.ts\"",
14
- "prepare": "husky && yarn run prepare:commit-msg && yarn run prepare:pre-commit && yarn run prepare:prepare-commit-msg",
15
- "prepare:commit-msg": "echo 'npx --no -- commitlint --edit $1' > .husky/commit-msg",
16
- "prepare:pre-commit": "rm -f .husky/pre-commit && yarn run prepare:pre-commit:format-fix && yarn run prepare:pre-commit:lint && yarn run prepare:pre-commit:lint-staged",
17
- "prepare:pre-commit:format-fix": "echo 'yarn run format:fix' >> .husky/pre-commit",
18
- "prepare:pre-commit:lint": "echo 'yarn run lint' >> .husky/pre-commit",
19
- "prepare:pre-commit:lint-staged": "echo 'yarn run lint-staged --concurrent false' >> .husky/pre-commit",
20
- "prepare:prepare-commit-msg": "echo '#!/bin/sh\n\nscripts/prepare-commit-msg.sh \"$1\" \"$2\"' > .husky/prepare-commit-msg && chmod +x .husky/prepare-commit-msg",
21
- "build": "tsc -b tsconfig.build.json -v",
22
- "clean": "tsc -b tsconfig.build.json --clean",
23
- "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
24
- "lint-staged": "lint-staged",
25
- "test": "jest",
26
- "test:watch": "jest --watch",
27
- "test:cov": "jest --coverage",
28
- "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
29
- "release": "standard-version --infile CHANGELOG",
30
- "release:changelog": "standard-version --infile CHANGELOG --skip.tag --skip.commit",
31
- "release:init": "standard-version --first-release --infile CHANGELOG",
32
- "release:init:changelog": "standard-version --first-release --infile CHANGELOG --skip.tag --skip.commit"
33
- },
34
- "engines": {
35
- "node": ">=20"
36
- },
37
- "dependencies": {
38
- "reflect-metadata": "^0.2.2"
39
- },
40
- "devDependencies": {
41
- "@commitlint/cli": "^19.8.1",
42
- "@commitlint/config-conventional": "^19.8.1",
43
- "@commitlint/types": "^19.5.0",
44
- "@eslint/eslintrc": "^3.2.0",
45
- "@eslint/js": "^9.18.0",
46
- "@types/jest": "^30.0.0",
47
- "@types/node": "^22",
48
- "@types/supertest": "^6.0.2",
49
- "commitizen": "^4.3.1",
50
- "conventional-changelog-atom": "^5.0.0",
51
- "conventional-changelog-cli": "^5.0.0",
52
- "cz-conventional-changelog": "^3.3.0",
53
- "eslint": "^9.18.0",
54
- "eslint-config-prettier": "^10.0.1",
55
- "eslint-plugin-jest": "~29.0.1",
56
- "eslint-plugin-prettier": "^5.2.2",
57
- "globals": "^16.0.0",
58
- "husky": "^9.1.7",
59
- "jest": "^29.7.0",
60
- "jest-mock-extended": "^3",
61
- "lint-staged": "~16.1.2",
62
- "prettier": "^3.4.2",
63
- "source-map-support": "^0.5.21",
64
- "standard-version": "^9.5.0",
65
- "supertest": "^7.0.0",
66
- "ts-jest": "^29.2.5",
67
- "ts-loader": "^9.5.2",
68
- "ts-node": "^10.9.2",
69
- "tsconfig-paths": "^4.2.0",
70
- "typescript": "^5.7.3",
71
- "typescript-eslint": "^8.20.0"
72
- },
73
- "jest": {
74
- "moduleFileExtensions": [
75
- "js",
76
- "json",
77
- "ts"
78
- ],
79
- "moduleNameMapper": {
80
- "@/(.*)": "<rootDir>/src/$1"
81
- },
82
- "rootDir": ".",
83
- "testRegex": ".*\\.spec\\.ts$",
84
- "transform": {
85
- "^.+\\.(t|j)s$": [
86
- "ts-jest",
87
- {
88
- "tsconfig": "tsconfig.json"
89
- }
90
- ]
91
- },
92
- "collectCoverageFrom": [
93
- "src/**/*.(t|j)s"
94
- ],
95
- "coverageDirectory": "../coverage",
96
- "testEnvironment": "node",
97
- "testPathIgnorePatterns": [
98
- "/node_modules/",
99
- "/dist/"
100
- ]
101
- }
102
- }
1
+ {
2
+ "name": "@eqxjs/nest-common",
3
+ "version": "0.2.0",
4
+ "description": "Common library for eqxjs provides shared constants, enums, and utilities.",
5
+ "author": "ESBM Cronus",
6
+ "license": "ISC",
7
+ "private": false,
8
+ "main": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "scripts": {
11
+ "prebuild": "yarn clean && rm -rf dist",
12
+ "format": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
13
+ "format:fix": "prettier --write --list-different \"src/**/*.ts\" \"test/**/*.ts\"",
14
+ "install:dev": "yarn install && husky && yarn run install:dev:commit-msg && yarn run install:dev:pre-commit && yarn run install:dev:prepare-commit-msg",
15
+ "install:dev:commit-msg": "echo 'npx --no -- commitlint --edit $1' > .husky/commit-msg",
16
+ "install:dev:pre-commit": "rm -f .husky/pre-commit && yarn run install:dev:pre-commit:format-fix && yarn run install:dev:pre-commit:lint && yarn run install:dev:pre-commit:lint-staged",
17
+ "install:dev:pre-commit:format-fix": "echo 'yarn run format:fix' >> .husky/pre-commit",
18
+ "install:dev:pre-commit:lint": "echo 'yarn run lint' >> .husky/pre-commit",
19
+ "install:dev:pre-commit:lint-staged": "echo 'yarn run lint-staged --concurrent false' >> .husky/pre-commit",
20
+ "install:dev:prepare-commit-msg": "echo '#!/bin/sh\n\nscripts/prepare-commit-msg.sh \"$1\" \"$2\"' > .husky/prepare-commit-msg && chmod +x .husky/prepare-commit-msg",
21
+ "build": "tsc -b tsconfig.build.json -v",
22
+ "clean": "tsc -b tsconfig.build.json --clean",
23
+ "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
24
+ "lint-staged": "lint-staged",
25
+ "test": "jest",
26
+ "test:watch": "jest --watch",
27
+ "test:cov": "jest --coverage",
28
+ "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
29
+ "release": "standard-version --infile CHANGELOG",
30
+ "release:changelog": "standard-version --infile CHANGELOG --skip.tag --skip.commit",
31
+ "release:init": "standard-version --first-release --infile CHANGELOG",
32
+ "release:init:changelog": "standard-version --first-release --infile CHANGELOG --skip.tag --skip.commit",
33
+ "prepublishOnly": "yarn run build && yarn run test:cov"
34
+ },
35
+ "engines": {
36
+ "node": ">=24"
37
+ },
38
+ "dependencies": {},
39
+ "devDependencies": {
40
+ "@commitlint/cli": "^20.1.0",
41
+ "@commitlint/config-conventional": "^20.0.0",
42
+ "@commitlint/types": "^20.0.0",
43
+ "@eslint/eslintrc": "^3.3.1",
44
+ "@eslint/js": "^9.39.1",
45
+ "@types/jest": "^29.5.14",
46
+ "@types/node": "^24.10.1",
47
+ "@types/supertest": "^6.0.3",
48
+ "commitizen": "^4.3.1",
49
+ "conventional-changelog-atom": "^5.0.0",
50
+ "conventional-changelog-cli": "^5.0.0",
51
+ "cz-conventional-changelog": "^3.3.0",
52
+ "eslint": "^9.39.1",
53
+ "eslint-config-prettier": "^10.1.8",
54
+ "eslint-plugin-jest": "^29.2.0",
55
+ "eslint-plugin-prettier": "^5.5.4",
56
+ "globals": "^16.5.0",
57
+ "husky": "^9.1.7",
58
+ "jest": "^29.7.0",
59
+ "jest-mock-extended": "^3.0.7",
60
+ "lint-staged": "^16.2.7",
61
+ "prettier": "^3.6.2",
62
+ "reflect-metadata": "^0.2.2",
63
+ "source-map-support": "^0.5.21",
64
+ "standard-version": "^9.5.0",
65
+ "supertest": "^7.1.4",
66
+ "ts-jest": "^29.4.5",
67
+ "ts-loader": "^9.5.4",
68
+ "ts-node": "^10.9.2",
69
+ "tsconfig-paths": "^4.2.0",
70
+ "typescript": "^5.9.3",
71
+ "typescript-eslint": "^8.47.0",
72
+ "webpack": "^5.103.0"
73
+ },
74
+ "overrides": {
75
+ "@conventional-changelog/git-client": "^2.0.0",
76
+ "js-yaml": "^3.14.2",
77
+ "tmp": "^0.2.4"
78
+ },
79
+ "resolutions": {
80
+ "@conventional-changelog/git-client": "^2.0.0",
81
+ "js-yaml": "^3.14.2",
82
+ "tmp": "^0.2.4"
83
+ }
84
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "isolatedModules": true
5
+ }
6
+ }