@jorgebodega/typeorm-seeding 3.0.0 → 3.0.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +26 -62
  2. package/README.md +1 -1
  3. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,84 +1,48 @@
1
- # [3.0.0](https://github.com/jorgebodega/typeorm-seeding/compare/v2.0.0...v3.0.0) (2022-01-06)
1
+ ## [3.0.1](https://github.com/jorgebodega/typeorm-seeding/compare/v3.0.0...v3.0.1) (2022-01-08)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * adapt seeder to new schema ([aecf7b4](https://github.com/jorgebodega/typeorm-seeding/commit/aecf7b46d40221d00d11ae15d40e36bc8c3293c0))
7
- * remove factories option from config ([d66f0f1](https://github.com/jorgebodega/typeorm-seeding/commit/d66f0f184479eeca3fde1b3c5438ee17223ffa2f))
8
-
9
-
10
- ### chore
11
-
12
- * remove all faker usages from source folder ([1e14718](https://github.com/jorgebodega/typeorm-seeding/commit/1e1471829c4b707fa8f0c9cb44289438ea4a1f85))
13
- * remove faker from dependencies ([40f21c8](https://github.com/jorgebodega/typeorm-seeding/commit/40f21c86d5bab714581821f80480f091a91b6cf6))
14
-
15
-
16
- ### Features
17
-
18
- * adapt use seeders to new structure ([5bca471](https://github.com/jorgebodega/typeorm-seeding/commit/5bca471339a3f8ccdc461160eb3f6c7d551daeab))
19
- * move factory definition to new abstract class ([81ccdf6](https://github.com/jorgebodega/typeorm-seeding/commit/81ccdf6d295c9d36b68c803dffc197c84605a53b))
20
- * remove context from factories ([#23](https://github.com/jorgebodega/typeorm-seeding/issues/23)) ([b7ecba4](https://github.com/jorgebodega/typeorm-seeding/commit/b7ecba4d4064525cd4f02da783ef885a12af08a2))
21
- * remove deprecated elements ([d09e154](https://github.com/jorgebodega/typeorm-seeding/commit/d09e15479cbb49214a81ef5ef49bef6f6adce3a4))
22
- * 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))
23
- * remove useFactories helper method ([#29](https://github.com/jorgebodega/typeorm-seeding/issues/29)) ([ddb5c2f](https://github.com/jorgebodega/typeorm-seeding/commit/ddb5c2f6576bdcde72cabb876a43013aff303e01))
24
- * seed command will execute now default seeder or seed param ([314d8c3](https://github.com/jorgebodega/typeorm-seeding/commit/314d8c30e3ec59cc02074a3846e5df773f337bc6))
25
-
26
-
27
- ### BREAKING CHANGES
28
-
29
- * `useSeeders` change its definition and is now incompatible with previous version
30
- * Faker is not available anymore as function param
31
- * Faker is removed from dependencies and now users must install it by themselves
32
- * Some of these functions were used on previous versions
33
- * New abstract factory class is incompatible with previous version
34
- * Helper methods removed were a core part of previous versions
35
- * This method will no longer be available as is useless in new architecture
36
- * Context is being removed from factories. This could break some applications that were using it
37
-
38
- # [3.0.0-next.1](https://github.com/jorgebodega/typeorm-seeding/compare/v2.0.0...v3.0.0-next.1) (2022-01-03)
6
+ * update dependencies and add rimraf to dev deps ([504cef2](https://github.com/jorgebodega/typeorm-seeding/commit/504cef2f94b1b8e2e47d6bfa6e0bb1e8325490e2))
39
7
 
8
+ # [3.0.0](https://github.com/jorgebodega/typeorm-seeding/compare/v2.0.0...v3.0.0) (2022-01-06)
40
9
 
41
10
  ### Bug Fixes
42
11
 
43
- * adapt seeder to new schema ([a1d4e27](https://github.com/jorgebodega/typeorm-seeding/commit/a1d4e272e89481d0163ef0d4594a32ae7942cb9d))
44
- * remove factories option from config ([870a23d](https://github.com/jorgebodega/typeorm-seeding/commit/870a23d912a1d18964e52c5c172b38714a8aa042))
45
-
12
+ - adapt seeder to new schema ([aecf7b4](https://github.com/jorgebodega/typeorm-seeding/commit/aecf7b46d40221d00d11ae15d40e36bc8c3293c0))
13
+ - remove factories option from config ([d66f0f1](https://github.com/jorgebodega/typeorm-seeding/commit/d66f0f184479eeca3fde1b3c5438ee17223ffa2f))
46
14
 
47
15
  ### chore
48
16
 
49
- * remove all faker usages from source folder ([2e4b0fb](https://github.com/jorgebodega/typeorm-seeding/commit/2e4b0fb756050f5061d3c0ea38899d40ce30b5a0))
50
- * remove faker from dependencies ([f41cef4](https://github.com/jorgebodega/typeorm-seeding/commit/f41cef4c32720fb36756ac117d6b74d30d6d8998))
51
-
17
+ - remove all faker usages from source folder ([1e14718](https://github.com/jorgebodega/typeorm-seeding/commit/1e1471829c4b707fa8f0c9cb44289438ea4a1f85))
18
+ - remove faker from dependencies ([40f21c8](https://github.com/jorgebodega/typeorm-seeding/commit/40f21c86d5bab714581821f80480f091a91b6cf6))
52
19
 
53
20
  ### Features
54
21
 
55
- * adapt use seeders to new structure ([7ea3607](https://github.com/jorgebodega/typeorm-seeding/commit/7ea360752e54b8694f148f9dad25bf4815c04224))
56
- * move factory definition to new abstract class ([41cf349](https://github.com/jorgebodega/typeorm-seeding/commit/41cf3494e8a97b185d113191c9598e49a4e73ced))
57
- * remove context from factories ([#23](https://github.com/jorgebodega/typeorm-seeding/issues/23)) ([c030e89](https://github.com/jorgebodega/typeorm-seeding/commit/c030e890add5d41099004f8542a8dd521873d91d))
58
- * remove deprecated elements ([09006e8](https://github.com/jorgebodega/typeorm-seeding/commit/09006e8655f288ebc318d32136b10f720687449f))
59
- * 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))
60
- * remove useFactories helper method ([#29](https://github.com/jorgebodega/typeorm-seeding/issues/29)) ([6fbeaba](https://github.com/jorgebodega/typeorm-seeding/commit/6fbeabaf2988b3d71fa19c2b44e443f58b805495))
61
- * seed command will execute now default seeder or seed param ([84025f9](https://github.com/jorgebodega/typeorm-seeding/commit/84025f9a948c2d0823c2f95e6fb0193f0e36716a))
62
-
22
+ - adapt use seeders to new structure ([5bca471](https://github.com/jorgebodega/typeorm-seeding/commit/5bca471339a3f8ccdc461160eb3f6c7d551daeab))
23
+ - move factory definition to new abstract class ([81ccdf6](https://github.com/jorgebodega/typeorm-seeding/commit/81ccdf6d295c9d36b68c803dffc197c84605a53b))
24
+ - remove context from factories ([#23](https://github.com/jorgebodega/typeorm-seeding/issues/23)) ([b7ecba4](https://github.com/jorgebodega/typeorm-seeding/commit/b7ecba4d4064525cd4f02da783ef885a12af08a2))
25
+ - remove deprecated elements ([d09e154](https://github.com/jorgebodega/typeorm-seeding/commit/d09e15479cbb49214a81ef5ef49bef6f6adce3a4))
26
+ - 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))
27
+ - remove useFactories helper method ([#29](https://github.com/jorgebodega/typeorm-seeding/issues/29)) ([ddb5c2f](https://github.com/jorgebodega/typeorm-seeding/commit/ddb5c2f6576bdcde72cabb876a43013aff303e01))
28
+ - seed command will execute now default seeder or seed param ([314d8c3](https://github.com/jorgebodega/typeorm-seeding/commit/314d8c30e3ec59cc02074a3846e5df773f337bc6))
63
29
 
64
30
  ### BREAKING CHANGES
65
31
 
66
- * `useSeeders` change its definition and is now incompatible with previous version
67
- * Faker is not available anymore as function param
68
- * Faker is removed from dependencies and now users must install it by themselves
69
- * Some of these functions were used on previous versions
70
- * New abstract factory class is incompatible with previous version
71
- * Helper methods removed were a core part of previous versions
72
- * This method will no longer be available as is useless in new architecture
73
- * Context is being removed from factories. This could break some applications that were using it
32
+ - `useSeeders` change its definition and is now incompatible with previous version
33
+ - Faker is not available anymore as function param
34
+ - Faker is removed from dependencies and now users must install it by themselves
35
+ - Deprecated functions are removed
36
+ - New abstract factory class is incompatible with previous version
37
+ - `useFactories` will no longer be available as is useless in new architecture
38
+ - Context is being removed from factories. This could break some applications that were using it
74
39
 
75
40
  # [2.0.0](https://github.com/jorgebodega/typeorm-seeding/compare/v1.6.2...v2.0.0) (2021-12-14)
76
41
 
77
-
78
42
  ### BREAKING CHANGES
79
43
 
80
- * `useSeeders` has been renamed to `useFactories` to be more consistent with functionality
81
- * New `useSeeders` has been created. Returns every Seeder that complies glob pattern and could execute them.
82
- * `Seeder` is now an abstract class instead of an interface
83
- * `Seeder` must export default, as that is the one that is chosen on `useSeeder`
84
- * `tearDownDatabase` and `useRefreshDatabase` are deprecated
44
+ - `useSeeders` has been renamed to `useFactories` to be more consistent with functionality
45
+ - New `useSeeders` has been created. Returns every Seeder that complies glob pattern and could execute them.
46
+ - `Seeder` is now an abstract class instead of an interface
47
+ - `Seeder` must export default, as that is the one that is chosen on `useSeeder`
48
+ - `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 of the repositories from <a href="https://github.com/pleerock">pleerock</a></span></br>
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.0.0",
3
+ "version": "3.0.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.17",
47
+ "@types/node": "16.11.19",
48
48
  "@types/yargs": "17.0.8",
49
- "@typescript-eslint/eslint-plugin": "5.8.1",
50
- "@typescript-eslint/parser": "5.8.1",
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.3",
54
+ "eslint-plugin-import": "2.25.4",
55
55
  "faker": "5.5.3",
56
- "jest": "27.4.5",
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": {