@jorgebodega/typeorm-seeding 7.1.0-next.3 → 8.0.0-next.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.md +26 -0
- package/README.md +5 -0
- package/dist/commands/seed.command.js +1 -0
- package/dist/commands/seed.command.js.map +1 -1
- package/dist/datasource/DataSourceManager.js +2 -0
- package/dist/datasource/DataSourceManager.js.map +1 -1
- package/package.json +25 -23
- package/pnpm-workspace.yaml +6 -0
- package/.commitlintrc +0 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
## [8.0.0-next.1](https://github.com/jorgebodega/typeorm-seeding/compare/v7.1.0...v8.0.0-next.1) (2026-01-20)
|
|
2
|
+
|
|
3
|
+
### ⚠ BREAKING CHANGES
|
|
4
|
+
|
|
5
|
+
* update node requirements (#350)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* update node requirements ([#350](https://github.com/jorgebodega/typeorm-seeding/issues/350)) ([cd9e158](https://github.com/jorgebodega/typeorm-seeding/commit/cd9e158e35760b355f3e1b6f737b556f3299f5da))
|
|
10
|
+
* upgrade biome ([#352](https://github.com/jorgebodega/typeorm-seeding/issues/352)) ([fd78fd4](https://github.com/jorgebodega/typeorm-seeding/commit/fd78fd45347239a8844f274b99024e3c10226be2))
|
|
11
|
+
* upgrade commander ([#353](https://github.com/jorgebodega/typeorm-seeding/issues/353)) ([b4a220f](https://github.com/jorgebodega/typeorm-seeding/commit/b4a220f4b3585996127e984e4b0b0d8122d29c8d))
|
|
12
|
+
* upgrade packages ([#351](https://github.com/jorgebodega/typeorm-seeding/issues/351)) ([c757531](https://github.com/jorgebodega/typeorm-seeding/commit/c757531aad24d289c5e4b4ca9cec9aad676d3a76))
|
|
13
|
+
|
|
14
|
+
# [7.1.0](https://github.com/jorgebodega/typeorm-seeding/compare/v7.0.0...v7.1.0) (2024-10-04)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* load seeders classes using typeorm ([#324](https://github.com/jorgebodega/typeorm-seeding/issues/324)) ([#339](https://github.com/jorgebodega/typeorm-seeding/issues/339)) ([a2590cc](https://github.com/jorgebodega/typeorm-seeding/commit/a2590cc7a4d35a2f0899cd62274e2e0a5d07f6fd))
|
|
20
|
+
* update dependency glob to v11 ([#342](https://github.com/jorgebodega/typeorm-seeding/issues/342)) ([e5fb787](https://github.com/jorgebodega/typeorm-seeding/commit/e5fb7870960fd8bec9e3bc8afd158753a320d191))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* install biome as formatter and linter ([#335](https://github.com/jorgebodega/typeorm-seeding/issues/335)) ([a195c27](https://github.com/jorgebodega/typeorm-seeding/commit/a195c271ed2dd2c44eb84a11e061732c0b5cc83e))
|
|
26
|
+
|
|
1
27
|
# [7.1.0-next.3](https://github.com/jorgebodega/typeorm-seeding/compare/v7.1.0-next.2...v7.1.0-next.3) (2024-10-04)
|
|
2
28
|
|
|
3
29
|
|
package/README.md
CHANGED
|
@@ -47,6 +47,11 @@ yarn add [-D] @jorgebodega/typeorm-seeding
|
|
|
47
47
|
pnpm add [-D] @jorgebodega/typeorm-seeding
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
+
# Node.js support (aligned with TypeORM)
|
|
51
|
+
|
|
52
|
+
This package follows TypeORM’s supported Node.js versions.
|
|
53
|
+
Current range: `^20.19.0 || ^22.12.0 || >=24.11.0` (per TypeORM).
|
|
54
|
+
|
|
50
55
|
# Introduction
|
|
51
56
|
|
|
52
57
|
Isn't it exhausting to create some sample data for your database, well this time is over!
|
|
@@ -12,6 +12,7 @@ const helpers_1 = require("../helpers");
|
|
|
12
12
|
const utils_1 = require("../utils");
|
|
13
13
|
async function run(paths) {
|
|
14
14
|
const opts = seedCommand.opts();
|
|
15
|
+
// biome-ignore lint/complexity/useLiteralKeys: Conflict with TS
|
|
15
16
|
const spinner = (0, ora_1.default)({ isSilent: process.env["NODE_ENV"] === "test" }).start();
|
|
16
17
|
spinner.start("Loading datasource");
|
|
17
18
|
let dataSource;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seed.command.js","sourceRoot":"","sources":["../../src/commands/seed.command.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"seed.command.js","sourceRoot":"","sources":["../../src/commands/seed.command.ts"],"names":[],"mappings":";;AA4EA,8BAEC;;AA9ED,yCAAoC;AACpC,yCAAoC;AACpC,sDAAsB;AAEtB,sCAAmD;AACnD,qFAAkF;AAClF,yEAAsE;AACtE,wCAAuD;AAGvD,oCAAuD;AAEvD,KAAK,UAAU,GAAG,CAAC,KAAe;IACjC,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,EAAwB,CAAC;IACtD,gEAAgE;IAChE,MAAM,OAAO,GAAG,IAAA,aAAG,EAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;IAE9E,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACpC,IAAI,UAAuB,CAAC;IAC5B,IAAI,CAAC;QACJ,MAAM,cAAc,GAAG,IAAA,mBAAO,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAE/D,UAAU,GAAG,MAAM,IAAA,sBAAc,EAAC,cAAc,CAAC,CAAC;QAElD,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtC,CAAC;IAAC,OAAO,KAAc,EAAE,CAAC;QACzB,OAAO,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;QAChD,MAAM,IAAI,uDAA0B,CAAC,iCAAiC,EAAE;YACvE,KAAK,EAAE,KAAK;SACZ,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,KAAK,CAAC,mB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A6D,EAC7D,iBAAiB,CACjB;KACA,QAAQ,CAAC,WAAW,EAAE,gDAAgD,CAAC;KACvE,MAAM,CAAC,GAAG,CAAC,CAAC;AAEP,KAAK,UAAU,SAAS,CAAC,IAAc;IAC7C,MAAM,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC"}
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DataSourceManager = void 0;
|
|
4
4
|
const errors_1 = require("../errors");
|
|
5
5
|
class DataSourceManager {
|
|
6
|
+
static _instance;
|
|
7
|
+
_dataSource;
|
|
6
8
|
static getInstance() {
|
|
7
9
|
if (!DataSourceManager._instance) {
|
|
8
10
|
DataSourceManager._instance = new DataSourceManager();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSourceManager.js","sourceRoot":"","sources":["../../src/datasource/DataSourceManager.ts"],"names":[],"mappings":";;;AACA,sCAAuD;AAEvD,MAAa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"DataSourceManager.js","sourceRoot":"","sources":["../../src/datasource/DataSourceManager.ts"],"names":[],"mappings":";;;AACA,sCAAuD;AAEvD,MAAa,iBAAiB;IACrB,MAAM,CAAC,SAAS,CAAoB;IACpC,WAAW,CAAyB;IAE5C,MAAM,CAAC,WAAW;QACjB,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAAE,CAAC;YAClC,iBAAiB,CAAC,SAAS,GAAG,IAAI,iBAAiB,EAAE,CAAC;QACvD,CAAC;QAED,OAAO,iBAAiB,CAAC,SAAS,CAAC;IACpC,CAAC;IAED,IAAI,UAAU;QACb,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACvB,MAAM,IAAI,mCAA0B,EAAE,CAAC;QACxC,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC;IACzB,CAAC;IAED,IAAI,UAAU,CAAC,UAAkC;QAChD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAC/B,CAAC;CACD;AAvBD,8CAuBC"}
|
package/package.json
CHANGED
|
@@ -8,27 +8,29 @@
|
|
|
8
8
|
],
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"chalk": "4.1.2",
|
|
11
|
-
"commander": "
|
|
11
|
+
"commander": "14.0.2",
|
|
12
12
|
"ora": "5.4.1",
|
|
13
|
-
"tslib": "2.
|
|
13
|
+
"tslib": "2.8.1"
|
|
14
14
|
},
|
|
15
15
|
"description": "🌱 A delightful way to seed test data into your database.",
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@biomejs/biome": "
|
|
18
|
-
"@faker-js/faker": "9.0
|
|
17
|
+
"@biomejs/biome": "2.3.11",
|
|
18
|
+
"@faker-js/faker": "9.9.0",
|
|
19
19
|
"@jorgebodega/typeorm-factory": "2.1.0",
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
22
|
-
"jest": "
|
|
23
|
-
"
|
|
24
|
-
"sqlite3": "
|
|
25
|
-
"
|
|
20
|
+
"@tsconfig/node24": "24.0.4",
|
|
21
|
+
"@tsconfig/strictest": "2.0.8",
|
|
22
|
+
"@types/jest": "30.0.0",
|
|
23
|
+
"@types/node": "25.0.9",
|
|
24
|
+
"better-sqlite3": "12.6.2",
|
|
25
|
+
"jest": "30.2.0",
|
|
26
|
+
"rimraf": "6.1.2",
|
|
27
|
+
"ts-jest": "29.4.6",
|
|
26
28
|
"ts-node": "10.9.2",
|
|
27
|
-
"typeorm": "0.3.
|
|
28
|
-
"typescript": "5.
|
|
29
|
+
"typeorm": "0.3.28",
|
|
30
|
+
"typescript": "5.9.3"
|
|
29
31
|
},
|
|
30
32
|
"engines": {
|
|
31
|
-
"node": "
|
|
33
|
+
"node": "^20.19.0 || ^22.12.0 || >=24.11.0"
|
|
32
34
|
},
|
|
33
35
|
"keywords": [
|
|
34
36
|
"typeorm",
|
|
@@ -39,9 +41,9 @@
|
|
|
39
41
|
"license": "MIT",
|
|
40
42
|
"main": "dist/index.js",
|
|
41
43
|
"name": "@jorgebodega/typeorm-seeding",
|
|
42
|
-
"packageManager": "pnpm@
|
|
44
|
+
"packageManager": "pnpm@10.28.1",
|
|
43
45
|
"peerDependencies": {
|
|
44
|
-
"typeorm": "^0.3.
|
|
46
|
+
"typeorm": "^0.3.28"
|
|
45
47
|
},
|
|
46
48
|
"repository": {
|
|
47
49
|
"type": "git",
|
|
@@ -50,19 +52,19 @@
|
|
|
50
52
|
"scripts": {
|
|
51
53
|
"build": "tsc --project ./tsconfig.build.json",
|
|
52
54
|
"checks": "pnpm format:ci && pnpm lint:ci && pnpm typecheck",
|
|
53
|
-
"format": "biome format --write",
|
|
54
55
|
"format:ci": "biome format",
|
|
55
|
-
"
|
|
56
|
-
"lint:fix": "biome lint --fix",
|
|
56
|
+
"format": "biome format --write",
|
|
57
57
|
"lint:ci": "biome lint",
|
|
58
|
+
"lint:fix": "biome lint --fix",
|
|
59
|
+
"lint": "biome lint",
|
|
58
60
|
"prebuild": "rimraf dist",
|
|
59
61
|
"seed:run": "ts-node ./src/cli.ts seed",
|
|
60
|
-
"test": "NODE_OPTIONS
|
|
61
|
-
"test:
|
|
62
|
-
"test:
|
|
63
|
-
"test
|
|
62
|
+
"test:ci": "NODE_OPTIONS=--experimental-vm-modules jest --silent",
|
|
63
|
+
"test:cov": "NODE_OPTIONS=--experimental-vm-modules jest --coverage --silent",
|
|
64
|
+
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch",
|
|
65
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
64
66
|
"typecheck": "tsc --noEmit"
|
|
65
67
|
},
|
|
66
68
|
"types": "dist/index.d.ts",
|
|
67
|
-
"version": "
|
|
69
|
+
"version": "8.0.0-next.1"
|
|
68
70
|
}
|
package/.commitlintrc
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/commitlintrc.json",
|
|
3
|
-
"extends": [
|
|
4
|
-
"@commitlint/config-conventional"
|
|
5
|
-
],
|
|
6
|
-
"rules": {
|
|
7
|
-
"body-max-line-length": [
|
|
8
|
-
2,
|
|
9
|
-
"always",
|
|
10
|
-
200
|
|
11
|
-
],
|
|
12
|
-
"footer-max-line-length": [
|
|
13
|
-
2,
|
|
14
|
-
"always",
|
|
15
|
-
"Infinity"
|
|
16
|
-
]
|
|
17
|
-
}
|
|
18
|
-
}
|