@eqxjs/nest-common 0.1.0 โ†’ 0.1.1

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,38 @@
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.1.1](https://github.com/corp-ais/cronus-eqxjs-common-library-common/compare/v0.1.0...v0.1.1) (2025-09-01)
6
+
7
+
8
+ ### ๐Ÿ” CI/CD
9
+
10
+ * add github workflow for test and coverage ([a47e4a8](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/a47e4a8ba807b19a743db00936d5c5cd56a8d8fe))
11
+ * rename workflow name ([3d52984](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/3d52984046613feae6ffbfcf14f8285dfead4dc1))
12
+
13
+
14
+ ### ๐Ÿงน Miscellaneous Chores
15
+
16
+ * **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))
17
+ * remove lock file out of git ignore file ([b8b33a4](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/b8b33a4135bcefb88ce98ae1d2eb0a9bef56b02e))
18
+
19
+
20
+ ### ๐Ÿงผ Code Refactoring
21
+
22
+ * apply best practice path referencing for library ([ba1ee67](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/ba1ee67a369f8b90210b4198fb5d7f9b937f0102))
23
+ * reset all files ending to LF ([0bec5c5](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/0bec5c5696933a5ccf05d035e2119e0372cf838e))
24
+ * sync from library template (2025-08-21) ([e136490](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/e136490635d00c5d3d03e98a97791c77a51f42ce))
25
+
26
+ ## 0.1.0 (2025-07-01)
27
+
28
+
29
+ ### ๐Ÿš€ Features
30
+
31
+ * add CHANGELOG file ([42de96e](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/42de96ee400ae523ac39199ac4be796fbc591df9))
32
+ * add result, enums, and constants implementation ([015447c](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/015447cb4f764f5df9ea32163afcacd8e12c8b04))
33
+ * **setup:** initialize project ([0fbfaed](https://github.com/corp-ais/cronus-eqxjs-common-library-common/commit/0fbfaed58c91170da63973f9e1c27b3c1b0eba0d))
34
+
35
+
36
+ ### ๐Ÿงผ Code Refactoring
37
+
38
+ * 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: `>=22`
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,4 @@
1
+ import 'reflect-metadata';
1
2
  export * from './enums';
2
3
  export * from './result';
3
4
  export * from './constants';
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ 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);
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"}
@@ -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.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,73 @@
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.1.1",
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": "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": ">=22"
37
+ },
38
+ "dependencies": {},
39
+ "devDependencies": {
40
+ "@commitlint/cli": "^19.8.1",
41
+ "@commitlint/config-conventional": "^19.8.1",
42
+ "@commitlint/types": "^19.8.1",
43
+ "@eslint/eslintrc": "^3.3.1",
44
+ "@eslint/js": "^9.34.0",
45
+ "@types/jest": "^29.5.14",
46
+ "@types/node": "^22.17.0",
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.34.0",
53
+ "eslint-config-prettier": "^10.1.8",
54
+ "eslint-plugin-jest": "^29.0.1",
55
+ "eslint-plugin-prettier": "^5.5.4",
56
+ "globals": "^16.3.0",
57
+ "husky": "^9.1.7",
58
+ "jest": "^29.7.0",
59
+ "jest-mock-extended": "^3.0.7",
60
+ "lint-staged": "^16.1.6",
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.1",
67
+ "ts-loader": "^9.5.4",
68
+ "ts-node": "^10.9.2",
69
+ "tsconfig-paths": "^4.2.0",
70
+ "typescript": "^5.9.2",
71
+ "typescript-eslint": "^8.41.0"
72
+ }
73
+ }