@jorgebodega/typeorm-seeding 3.0.0 → 4.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 +37 -42
- package/README.md +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
# [
|
|
1
|
+
# [4.0.0-next.1](https://github.com/jorgebodega/typeorm-seeding/compare/v3.0.0...v4.0.0-next.1) (2022-01-08)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* adapt seeder to new schema ([
|
|
7
|
-
*
|
|
6
|
+
* adapt seeder to new schema ([a1d4e27](https://github.com/jorgebodega/typeorm-seeding/commit/a1d4e272e89481d0163ef0d4594a32ae7942cb9d))
|
|
7
|
+
* add rimraf as dev dependency ([6be6801](https://github.com/jorgebodega/typeorm-seeding/commit/6be6801a70c8b27a1176a416c5981024fe68e907))
|
|
8
|
+
* remove factories option from config ([870a23d](https://github.com/jorgebodega/typeorm-seeding/commit/870a23d912a1d18964e52c5c172b38714a8aa042))
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
### chore
|
|
11
12
|
|
|
12
|
-
* remove all faker usages from source folder ([
|
|
13
|
-
* remove faker from dependencies ([
|
|
13
|
+
* remove all faker usages from source folder ([2e4b0fb](https://github.com/jorgebodega/typeorm-seeding/commit/2e4b0fb756050f5061d3c0ea38899d40ce30b5a0))
|
|
14
|
+
* remove faker from dependencies ([f41cef4](https://github.com/jorgebodega/typeorm-seeding/commit/f41cef4c32720fb36756ac117d6b74d30d6d8998))
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
### Features
|
|
17
18
|
|
|
18
|
-
* adapt use seeders to new structure ([
|
|
19
|
-
* move factory definition to new abstract class ([
|
|
20
|
-
* remove context from factories ([#23](https://github.com/jorgebodega/typeorm-seeding/issues/23)) ([
|
|
21
|
-
* remove deprecated elements ([
|
|
22
|
-
* remove factory helper methods and test associateds ([#30](https://github.com/jorgebodega/typeorm-seeding/issues/30)) ([
|
|
23
|
-
* remove useFactories helper method ([#29](https://github.com/jorgebodega/typeorm-seeding/issues/29)) ([
|
|
24
|
-
* seed command will execute now default seeder or seed param ([
|
|
19
|
+
* adapt use seeders to new structure ([7ea3607](https://github.com/jorgebodega/typeorm-seeding/commit/7ea360752e54b8694f148f9dad25bf4815c04224))
|
|
20
|
+
* move factory definition to new abstract class ([41cf349](https://github.com/jorgebodega/typeorm-seeding/commit/41cf3494e8a97b185d113191c9598e49a4e73ced))
|
|
21
|
+
* remove context from factories ([#23](https://github.com/jorgebodega/typeorm-seeding/issues/23)) ([c030e89](https://github.com/jorgebodega/typeorm-seeding/commit/c030e890add5d41099004f8542a8dd521873d91d))
|
|
22
|
+
* remove deprecated elements ([09006e8](https://github.com/jorgebodega/typeorm-seeding/commit/09006e8655f288ebc318d32136b10f720687449f))
|
|
23
|
+
* remove factory helper methods and test associateds ([#30](https://github.com/jorgebodega/typeorm-seeding/issues/30)) ([a335ca2](https://github.com/jorgebodega/typeorm-seeding/commit/a335ca232410e2d1d93011ceca33068e01a7f16e))
|
|
24
|
+
* remove useFactories helper method ([#29](https://github.com/jorgebodega/typeorm-seeding/issues/29)) ([6fbeaba](https://github.com/jorgebodega/typeorm-seeding/commit/6fbeabaf2988b3d71fa19c2b44e443f58b805495))
|
|
25
|
+
* seed command will execute now default seeder or seed param ([84025f9](https://github.com/jorgebodega/typeorm-seeding/commit/84025f9a948c2d0823c2f95e6fb0193f0e36716a))
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
### BREAKING CHANGES
|
|
@@ -35,50 +36,44 @@
|
|
|
35
36
|
* This method will no longer be available as is useless in new architecture
|
|
36
37
|
* Context is being removed from factories. This could break some applications that were using it
|
|
37
38
|
|
|
38
|
-
# [3.0.0
|
|
39
|
-
|
|
39
|
+
# [3.0.0](https://github.com/jorgebodega/typeorm-seeding/compare/v2.0.0...v3.0.0) (2022-01-06)
|
|
40
40
|
|
|
41
41
|
### Bug Fixes
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
- adapt seeder to new schema ([aecf7b4](https://github.com/jorgebodega/typeorm-seeding/commit/aecf7b46d40221d00d11ae15d40e36bc8c3293c0))
|
|
44
|
+
- remove factories option from config ([d66f0f1](https://github.com/jorgebodega/typeorm-seeding/commit/d66f0f184479eeca3fde1b3c5438ee17223ffa2f))
|
|
46
45
|
|
|
47
46
|
### chore
|
|
48
47
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
- remove all faker usages from source folder ([1e14718](https://github.com/jorgebodega/typeorm-seeding/commit/1e1471829c4b707fa8f0c9cb44289438ea4a1f85))
|
|
49
|
+
- remove faker from dependencies ([40f21c8](https://github.com/jorgebodega/typeorm-seeding/commit/40f21c86d5bab714581821f80480f091a91b6cf6))
|
|
52
50
|
|
|
53
51
|
### Features
|
|
54
52
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
- adapt use seeders to new structure ([5bca471](https://github.com/jorgebodega/typeorm-seeding/commit/5bca471339a3f8ccdc461160eb3f6c7d551daeab))
|
|
54
|
+
- move factory definition to new abstract class ([81ccdf6](https://github.com/jorgebodega/typeorm-seeding/commit/81ccdf6d295c9d36b68c803dffc197c84605a53b))
|
|
55
|
+
- remove context from factories ([#23](https://github.com/jorgebodega/typeorm-seeding/issues/23)) ([b7ecba4](https://github.com/jorgebodega/typeorm-seeding/commit/b7ecba4d4064525cd4f02da783ef885a12af08a2))
|
|
56
|
+
- remove deprecated elements ([d09e154](https://github.com/jorgebodega/typeorm-seeding/commit/d09e15479cbb49214a81ef5ef49bef6f6adce3a4))
|
|
57
|
+
- remove factory helper methods and test associateds ([#30](https://github.com/jorgebodega/typeorm-seeding/issues/30)) ([3393724](https://github.com/jorgebodega/typeorm-seeding/commit/3393724fe85bb59437ea9b307768ac157d70ec19))
|
|
58
|
+
- remove useFactories helper method ([#29](https://github.com/jorgebodega/typeorm-seeding/issues/29)) ([ddb5c2f](https://github.com/jorgebodega/typeorm-seeding/commit/ddb5c2f6576bdcde72cabb876a43013aff303e01))
|
|
59
|
+
- seed command will execute now default seeder or seed param ([314d8c3](https://github.com/jorgebodega/typeorm-seeding/commit/314d8c30e3ec59cc02074a3846e5df773f337bc6))
|
|
63
60
|
|
|
64
61
|
### BREAKING CHANGES
|
|
65
62
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
* Context is being removed from factories. This could break some applications that were using it
|
|
63
|
+
- `useSeeders` change its definition and is now incompatible with previous version
|
|
64
|
+
- Faker is not available anymore as function param
|
|
65
|
+
- Faker is removed from dependencies and now users must install it by themselves
|
|
66
|
+
- Deprecated functions are removed
|
|
67
|
+
- New abstract factory class is incompatible with previous version
|
|
68
|
+
- `useFactories` will no longer be available as is useless in new architecture
|
|
69
|
+
- Context is being removed from factories. This could break some applications that were using it
|
|
74
70
|
|
|
75
71
|
# [2.0.0](https://github.com/jorgebodega/typeorm-seeding/compare/v1.6.2...v2.0.0) (2021-12-14)
|
|
76
72
|
|
|
77
|
-
|
|
78
73
|
### BREAKING CHANGES
|
|
79
74
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
75
|
+
- `useSeeders` has been renamed to `useFactories` to be more consistent with functionality
|
|
76
|
+
- New `useSeeders` has been created. Returns every Seeder that complies glob pattern and could execute them.
|
|
77
|
+
- `Seeder` is now an abstract class instead of an interface
|
|
78
|
+
- `Seeder` must export default, as that is the one that is chosen on `useSeeder`
|
|
79
|
+
- `tearDownDatabase` and `useRefreshDatabase` are deprecated
|
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
<p align="center">
|
|
36
36
|
<b>A delightful way to seed test data into your database.</b></br>
|
|
37
|
-
<span>Inspired by the awesome framework <a href="https://laravel.com/">laravel</a> in PHP and
|
|
37
|
+
<span>Inspired by the awesome framework <a href="https://laravel.com/">laravel</a> in PHP, <a href="https://mikro-orm.io/docs/next/seeding/">MikroORM seeding</a> and the repositories from <a href="https://github.com/pleerock">pleerock</a></span></br>
|
|
38
38
|
</p>
|
|
39
39
|
|
|
40
40
|
<p align="center">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jorgebodega/typeorm-seeding",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-next.1",
|
|
4
4
|
"description": "🌱 A delightful way to seed test data into your database.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Gery Hirschfeld <gery.hirschfeld@w3tec.ch> (https://github.com/hirsch88)",
|
|
@@ -44,17 +44,18 @@
|
|
|
44
44
|
"@types/faker": "5.5.9",
|
|
45
45
|
"@types/glob": "7.2.0",
|
|
46
46
|
"@types/jest": "27.4.0",
|
|
47
|
-
"@types/node": "16.11.
|
|
47
|
+
"@types/node": "16.11.19",
|
|
48
48
|
"@types/yargs": "17.0.8",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
50
|
-
"@typescript-eslint/parser": "5.
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "5.9.0",
|
|
50
|
+
"@typescript-eslint/parser": "5.9.0",
|
|
51
51
|
"bcryptjs": "2.4.3",
|
|
52
52
|
"eslint": "8.6.0",
|
|
53
53
|
"eslint-config-prettier": "8.3.0",
|
|
54
|
-
"eslint-plugin-import": "2.25.
|
|
54
|
+
"eslint-plugin-import": "2.25.4",
|
|
55
55
|
"faker": "5.5.3",
|
|
56
|
-
"jest": "27.4.
|
|
56
|
+
"jest": "27.4.7",
|
|
57
57
|
"prettier": "2.5.1",
|
|
58
|
+
"rimraf": "^3.0.2",
|
|
58
59
|
"semantic-release": "18.0.1",
|
|
59
60
|
"sqlite3": "5.0.2",
|
|
60
61
|
"ts-jest": "27.1.2",
|
|
@@ -67,7 +68,6 @@
|
|
|
67
68
|
"glob": "^7.2.0",
|
|
68
69
|
"ora": "^5",
|
|
69
70
|
"reflect-metadata": "^0.1.13",
|
|
70
|
-
"rimraf": "^3.0.2",
|
|
71
71
|
"yargs": "^17.3.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|