@mikro-orm/seeder 7.0.0-dev.7 → 7.0.0-dev.71

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/README.md CHANGED
@@ -11,7 +11,6 @@ TypeScript ORM for Node.js based on Data Mapper, [Unit of Work](https://mikro-or
11
11
  [![Chat on discord](https://img.shields.io/discord/1214904142443839538?label=discord&color=blue)](https://discord.gg/w8bjxFHS7X)
12
12
  [![Downloads](https://img.shields.io/npm/dm/@mikro-orm/core.svg)](https://www.npmjs.com/package/@mikro-orm/core)
13
13
  [![Coverage Status](https://img.shields.io/coveralls/mikro-orm/mikro-orm.svg)](https://coveralls.io/r/mikro-orm/mikro-orm?branch=master)
14
- [![Maintainability](https://api.codeclimate.com/v1/badges/27999651d3adc47cfa40/maintainability)](https://codeclimate.com/github/mikro-orm/mikro-orm/maintainability)
15
14
  [![Build Status](https://github.com/mikro-orm/mikro-orm/workflows/tests/badge.svg?branch=master)](https://github.com/mikro-orm/mikro-orm/actions?workflow=tests)
16
15
 
17
16
  ## 🤔 Unit of What?
@@ -141,7 +140,7 @@ There is also auto-generated [CHANGELOG.md](CHANGELOG.md) file based on commit m
141
140
  - [Composite and Foreign Keys as Primary Key](https://mikro-orm.io/docs/composite-keys)
142
141
  - [Filters](https://mikro-orm.io/docs/filters)
143
142
  - [Using `QueryBuilder`](https://mikro-orm.io/docs/query-builder)
144
- - [Preloading Deeply Nested Structures via populate](https://mikro-orm.io/docs/nested-populate)
143
+ - [Populating relations](https://mikro-orm.io/docs/populating-relations)
145
144
  - [Property Validation](https://mikro-orm.io/docs/property-validation)
146
145
  - [Lifecycle Hooks](https://mikro-orm.io/docs/events#hooks)
147
146
  - [Vanilla JS Support](https://mikro-orm.io/docs/usage-with-js)
@@ -382,6 +381,8 @@ See also the list of contributors who [participated](https://github.com/mikro-or
382
381
 
383
382
  Please ⭐️ this repository if this project helped you!
384
383
 
384
+ > If you'd like to support my open-source work, consider sponsoring me directly at [github.com/sponsors/b4nan](https://github.com/sponsors/b4nan).
385
+
385
386
  ## 📝 License
386
387
 
387
388
  Copyright © 2018 [Martin Adámek](https://github.com/b4nan).
package/SeedManager.d.ts CHANGED
@@ -12,6 +12,6 @@ export declare class SeedManager implements ISeedManager {
12
12
  * @internal
13
13
  */
14
14
  seedString(...classNames: string[]): Promise<void>;
15
- createSeeder(className: string): Promise<string>;
15
+ create(className: string): Promise<string>;
16
16
  private generate;
17
17
  }
package/SeedManager.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Utils, } from '@mikro-orm/core';
2
2
  import { writeFile } from 'node:fs/promises';
3
- import globby from 'globby';
3
+ import { glob } from 'tinyglobby';
4
4
  export class SeedManager {
5
5
  em;
6
6
  config;
@@ -32,7 +32,7 @@ export class SeedManager {
32
32
  */
33
33
  async seedString(...classNames) {
34
34
  const path = `${this.absolutePath}/${this.options.glob}`;
35
- const files = await globby(path);
35
+ const files = await glob(path);
36
36
  const classMap = new Map();
37
37
  for (const path of files) {
38
38
  const exports = await Utils.dynamicImport(path);
@@ -48,7 +48,7 @@ export class SeedManager {
48
48
  await this.seed(seederClass);
49
49
  }
50
50
  }
51
- async createSeeder(className) {
51
+ async create(className) {
52
52
  Utils.ensureDir(this.absolutePath);
53
53
  return this.generate(className);
54
54
  }
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@mikro-orm/seeder",
3
3
  "type": "module",
4
- "version": "7.0.0-dev.7",
4
+ "version": "7.0.0-dev.71",
5
5
  "description": "Seeder package for MikroORM.",
6
6
  "exports": {
7
7
  "./package.json": "./package.json",
8
8
  ".": "./index.js"
9
9
  },
10
- "typings": "index.d.ts",
11
10
  "repository": {
12
11
  "type": "git",
13
12
  "url": "git+ssh://git@github.com/mikro-orm/mikro-orm.git"
@@ -40,7 +39,7 @@
40
39
  },
41
40
  "homepage": "https://mikro-orm.io",
42
41
  "engines": {
43
- "node": ">= 22.11.0"
42
+ "node": ">= 22.17.0"
44
43
  },
45
44
  "scripts": {
46
45
  "build": "yarn clean && yarn compile && yarn copy",
@@ -52,12 +51,12 @@
52
51
  "access": "public"
53
52
  },
54
53
  "dependencies": {
55
- "globby": "11.1.0"
54
+ "tinyglobby": "0.2.15"
56
55
  },
57
56
  "devDependencies": {
58
- "@mikro-orm/core": "^6.4.9"
57
+ "@mikro-orm/core": "^6.6.1"
59
58
  },
60
59
  "peerDependencies": {
61
- "@mikro-orm/core": "7.0.0-dev.7"
60
+ "@mikro-orm/core": "7.0.0-dev.71"
62
61
  }
63
62
  }