Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "weekly"
interval: 'weekly'
21 changes: 6 additions & 15 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ permissions:

on:
push:
branches: [ develop ]
branches: [develop]
pull_request:
branches: [ develop ]
branches: [develop]

jobs:
build:
Expand All @@ -24,22 +24,13 @@ jobs:

steps:
- uses: actions/checkout@v6
- name: Enable Corepack
run: corepack enable
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Enable Corepack (use Yarn 4.9.4)
run: |
corepack enable
corepack prepare yarn@4.9.4 --activate
yarn --version
- name: Restore Yarn cache
uses: actions/cache@v4
with:
path: .yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Build project
Expand Down
9 changes: 9 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 2,
"printWidth": 120,
"ignorePatterns": ["node_modules/**", "dist/**", "coverage/**"]
}
18 changes: 18 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript"],
"categories": {
"correctness": "warn"
},
"env": {
"builtin": true,
"es2026": true
},
"globals": {
"node": "readonly"
},
"ignorePatterns": ["node_modules/**", "dist/**", "coverage/**"],
"rules": {
"typescript/no-empty-function": "off"
}
}
55 changes: 26 additions & 29 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": false,
"decorators": true,
"dynamicImport": true
},
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true

},
"target": "es2022",
"loose": false,
"paths": {
"@/*": [
"./*"
]
},
"baseUrl": "./",
"externalHelpers": false,
"keepClassNames": true
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": false,
"decorators": true,
"dynamicImport": true
},
"module": {
"type": "commonjs",
"strict": true,
"noInterop": false
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
},
"minify": false,
"sourceMaps": true
"target": "es2022",
"loose": false,
"paths": {
"@/*": ["./*"]
},
"baseUrl": "./",
"externalHelpers": false,
"keepClassNames": true
},
"module": {
"type": "commonjs",
"strict": true,
"noInterop": false
},
"minify": false,
"sourceMaps": true
}
2 changes: 0 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.12.0.cjs
88 changes: 44 additions & 44 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

### New

* 🔧 Node 24 support
- 🔧 Node 24 support

### Fix

* 🏷️ factory buildMany type update
- 🏷️ factory buildMany type update

### Internals

* ⬆️ Bump payload versions, @typescript-eslint/eslint-plugin@types/node from 25.0.3 to 25.0.6, @typescript-eslint/parser from 8.51.0 to 8.53.0, @swc/core from 1.15.7 to 1.15.8, @typescript-eslint/eslint-plugin, eslint from 9.39.1 to 9.39.2, ts-jest from 29.4.5 to 29.4.6, prettier from 3.6.2 to 3.7.4, typeorm from 0.3.27 to 0.3.28
- ⬆️ Bump payload versions, @typescript-eslint/eslint-plugin@types/node from 25.0.3 to 25.0.6, @typescript-eslint/parser from 8.51.0 to 8.53.0, @swc/core from 1.15.7 to 1.15.8, @typescript-eslint/eslint-plugin, eslint from 9.39.1 to 9.39.2, ts-jest from 29.4.5 to 29.4.6, prettier from 3.6.2 to 3.7.4, typeorm from 0.3.27 to 0.3.28

## v2.0.4 (2025/11/27)

Expand All @@ -22,85 +22,85 @@ Missing files in previous build

### Fix

* 🐛 Export ObjectFactory at the root level
- 🐛 Export ObjectFactory at the root level

### Internals

* ⬆️ Bump deps
* 🔧 Update yarn version
* 🎨 Remove unused imports through the project
- ⬆️ Bump deps
- 🔧 Update yarn version
- 🎨 Remove unused imports through the project

## v2.0.2 (2025/11/05)

### Fix

* 🐛 draft on payload is not used to set publication state + allow external modification of default locale
- 🐛 draft on payload is not used to set publication state + allow external modification of default locale

## v2.0.1 (2025/11/03)

### Fix

* 🐛 Previous version was completely wrong
- 🐛 Previous version was completely wrong

## v2.0.0 (2025/11/03)

### New

* ✨ add adapter arguments to create and createMany
* ✨ Payload factories
- ✨ add adapter arguments to create and createMany
- ✨ Payload factories

### Breaking change

* Factory class is now abstract. It is replaced by ObjectFactory class
- Factory class is now abstract. It is replaced by ObjectFactory class

## v1.1.0 (2025/05/27)

### New

* New seed feature: create a seed utils to load factories and create entities in the database.
See Readme for usage.
This feature is quite new and experimental, please report any issue you may encounter.
- New seed feature: create a seed utils to load factories and create entities in the database.
See Readme for usage.
This feature is quite new and experimental, please report any issue you may encounter.

### Internals

* ⬆️ Upgrade all deps
* 📝 Update README with new seed feature
* 🔧 Use yarn@4
- ⬆️ Upgrade all deps
- 📝 Update README with new seed feature
- 🔧 Use yarn@4

## v1.0.1 (2025/05/16)

This build fixes the issue with the dist folder. All files are now in the root of the dist folder.

## Internals

* ⬆️ Minor upgrade of all deps (typeorm)
- ⬆️ Minor upgrade of all deps (typeorm)

## v1.0.0 (2025/05/16)

* 💥 *BREAKING CHANGE* : minimum node version expected : 20.18
⚠️ This build should not be used. All files are under the src folder within dist. This may break your import and the typing of the package. Please use next version.
- 💥 _BREAKING CHANGE_ : minimum node version expected : 20.18
⚠️ This build should not be used. All files are under the src folder within dist. This may break your import and the typing of the package. Please use next version.

### New

* ✨ Add support to declare factory without entity and interface only
- ✨ Add support to declare factory without entity and interface only

### Internals

* ⬆️ Upgrade all deps
* 💚 codecov integration
- ⬆️ Upgrade all deps
- 💚 codecov integration

## v0.3.0 (2024/05/30)

* ⬆️ Upgrade all deps
* 🏷️ Evolve typing to allow usage of LazyAttribute, Sequence etc... outside of factory definition and directly within factories instances.
* 💥 *BREAKING CHANGE* : Drop support for node 18, start support for node 20
- ⬆️ Upgrade all deps
- 🏷️ Evolve typing to allow usage of LazyAttribute, Sequence etc... outside of factory definition and directly within factories instances.
- 💥 _BREAKING CHANGE_ : Drop support for node 18, start support for node 20

## v0.2.1 (2023/08/28)

* ⬆️ Upgrade all deps
* ✨ Adding a first version of SECURITY.md file (quite empty for now)
* ✏️ Correct typo in copyright in LICENSE
* 🔧 Dependabot config: .github config
- ⬆️ Upgrade all deps
- ✨ Adding a first version of SECURITY.md file (quite empty for now)
- ✏️ Correct typo in copyright in LICENSE
- 🔧 Dependabot config: .github config

## v0.2.0 (2023/03/21)

Expand All @@ -109,26 +109,26 @@ This build fixes the issue with the dist folder. All files are now in the root o
**Breaking changes**:
💥 Drop support for node 16, start support for node 18

* ⬆️ Upgrade all deps
* ⬆️ Migrate to node 18
* 🏷️ Fix typing errors with migration
- ⬆️ Upgrade all deps
- ⬆️ Migrate to node 18
- 🏷️ Fix typing errors with migration

## v0.1.0 (2022/06/28)

### Changes

🎉 New contributor: @matthieuMay (<https://github.com/matthieuMay>)

* ⬆️ Migrate to typeorm 0.3 and remove peer dep
* 🔧 Move to node 16 (LTS)
* 🙈 DS_Store in gitignore
* 📝 fix import origin in documentation
- ⬆️ Migrate to typeorm 0.3 and remove peer dep
- 🔧 Move to node 16 (LTS)
- 🙈 DS_Store in gitignore
- 📝 fix import origin in documentation

## v0.0.3 (2022/01/13)

### Changes

* 🚸 Factory: Allow to pass entity key even if absent from factory in .create/.build input
- 🚸 Factory: Allow to pass entity key even if absent from factory in .create/.build input

## v0.0.2

Expand All @@ -138,8 +138,8 @@ This build fixes the issue with the dist folder. All files are now in the root o

🎉 First release with the following features:

* Typeorm adapter, Object adapter
* Factories accept subfactories, sequences, lazy attributes, lazy sequences and functions as attributes
* Post generation hooks
* Fuzzy generation with Fakerjs/Chancejs/...is possible
* TypeScript support
- Typeorm adapter, Object adapter
- Factories accept subfactories, sequences, lazy attributes, lazy sequences and functions as attributes
- Post generation hooks
- Fuzzy generation with Fakerjs/Chancejs/...is possible
- TypeScript support
Loading
Loading