@jorgebodega/typeorm-seeding 5.0.0-next.2 → 5.0.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +6 -37
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ # [5.0.0](https://github.com/jorgebodega/typeorm-seeding/compare/v4.0.0...v5.0.0) (2022-08-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add factory deprecation notice ([8d75e05](https://github.com/jorgebodega/typeorm-seeding/commit/8d75e05e43b35e770f7c14437a1e6b04c8fffd01))
7
+ * update dependency glob to v8 ([2d3c996](https://github.com/jorgebodega/typeorm-seeding/commit/2d3c99635fcfdd667b38a4bed60d663145dd619b))
8
+
9
+
10
+ ### Features
11
+
12
+ * removed unused command and add some more tests ([ea6649e](https://github.com/jorgebodega/typeorm-seeding/commit/ea6649e98261d62907118448b047987cbebcd2c7))
13
+ * use typeorm 0.3 ([aa0153b](https://github.com/jorgebodega/typeorm-seeding/commit/aa0153bd050c60ab94f9979eff4e5ab9bec81645))
14
+
15
+
16
+ ### BREAKING CHANGES
17
+
18
+ * Removed config command
19
+ * Connection API is deprecated and removed.
20
+
1
21
  # [5.0.0-next.2](https://github.com/jorgebodega/typeorm-seeding/compare/v5.0.0-next.1...v5.0.0-next.2) (2022-08-01)
2
22
 
3
23
 
package/README.md CHANGED
@@ -404,42 +404,11 @@ Add the following scripts to your `package.json` file to configure them.
404
404
 
405
405
  ```json
406
406
  "scripts": {
407
- "seed:config": "typeorm-seeding config",
408
407
  "seed:run": "typeorm-seeding seed",
409
408
  ...
410
409
  }
411
410
  ```
412
411
 
413
- ## `config`
414
-
415
- This command just print the connection configuration.
416
-
417
- ```bash
418
- typeorm-seeding config
419
- ```
420
-
421
- Example result
422
-
423
- ```json
424
- {
425
- "name": "default",
426
- "type": "sqlite",
427
- "database": "/home/jorgebodega/projects/typeorm-seeding/test.db",
428
- "entities": ["sample/entities/**/*{.ts,.js}"],
429
- "seeders": ["sample/seeders/**/*{.ts,.js}"],
430
- "defaultSeeder": "RootSeeder"
431
- }
432
- ```
433
-
434
- ##### Options
435
-
436
- | Option | Default | Description |
437
- | ---------------------- | --------------------- | ---------------------------------------------------------------------------- |
438
- | `--seed` or `-s` | null | Option to specify a seeder class to run individually. (Only on seed command) |
439
- | `--connection` or `-c` | TypeORM default value | Name of the TypeORM connection. Required if there are multiple connections. |
440
- | `--configName` or `-n` | TypeORM default value | Name to the TypeORM config file. |
441
- | `--root` or `-r` | TypeORM default value | Path to the TypeORM config file. |
442
-
443
412
  ## `seed`
444
413
 
445
414
  This command execute a seeder, that could be specified as a parameter.
@@ -452,12 +421,12 @@ The name of the seeder to execute (either set with the `--seed` option or with d
452
421
 
453
422
  ##### Options
454
423
 
455
- | Option | Default | Description |
456
- | ---------------------- | ------------------------------------ | --------------------------------------------------------------------------- |
457
- | `--seed` or `-s` | Default seeder specified config file | Option to specify a seeder class to run individually. |
458
- | `--connection` or `-c` | TypeORM default value | Name of the TypeORM connection. Required if there are multiple connections. |
459
- | `--configName` or `-n` | TypeORM default value | Name to the TypeORM config file. |
460
- | `--root` or `-r` | TypeORM default value | Path to the TypeORM config file. |
424
+ | Option | Default | Description |
425
+ | ---------------------- | ------------------------------------ | ----------------------------------------------------- |
426
+ | `--seed` or `-s` | Default seeder specified config file | Option to specify a seeder class to run individually. |
427
+ | `--dataSource` or `-d` | | Path of the data source |
428
+ | `--configName` or `-n` | TypeORM default value | Name to the TypeORM config file. |
429
+ | `--root` or `-r` | TypeORM default value | Path to the TypeORM config file. |
461
430
 
462
431
  # Testing features
463
432
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jorgebodega/typeorm-seeding",
3
- "version": "5.0.0-next.2",
3
+ "version": "5.0.0",
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)",