You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,20 @@
2
2
3
3
All notable user-facing changes to this project are documented here.
4
4
5
+
## [2.7.0] - 2026-05-28
6
+
7
+
### Added
8
+
9
+
- Added `interface-forge/json-schema` with `JsonSchemaFactory` for optional AJV-backed JSON Schema data generation and validation.
10
+
- Added JSON Schema support for object, primitive, array, nested object, `enum`, `const`, common string/number/array constraints, selected formats, and shallow local `$defs`/`definitions` references.
11
+
- Added `factory.sequence.increment()`, `factory.sequence.template()`, and `factory.sequence.date()` helpers for stateful sequence values in factory schemas.
12
+
- Added `IncrementSequenceGenerator`, `TemplateSequenceGenerator`, and `DateSequenceGenerator` exports for direct generator usage.
13
+
14
+
### Documentation
15
+
16
+
- Added JSON Schema integration documentation and installation guidance.
17
+
- Updated generator documentation to cover `factory.sequence` and direct generator usage.
Copy file name to clipboardExpand all lines: README.md
+27-2Lines changed: 27 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
11
11
</div>
12
12
13
-
A TypeScript library for creating strongly typed mock data factories. Built on [Faker.js](https://fakerjs.dev/) with advanced composition patterns, database persistence, fixture caching, and optional [Zod](https://zod.dev/)schema integration.
13
+
A TypeScript library for creating strongly typed mock data factories. Built on [Faker.js](https://fakerjs.dev/) with advanced composition patterns, database persistence, fixture caching, and optional [Zod](https://zod.dev/)and JSON Schema integration.
14
14
15
15
## Support This Project
16
16
@@ -27,7 +27,7 @@ Your support helps maintain and improve this library for the community! 🚀
27
27
-**🔄 Advanced Composition**: Build complex object relationships with `compose()` and `extend()`
28
28
-**🗄️ Database Integration**: Built-in persistence with Mongoose, Prisma, TypeORM adapters
29
29
-**📁 Fixture Caching**: Cache generated data for consistent test scenarios
30
-
-**📐 Zod Integration**: Generate data directly from schemas with validation
30
+
-**📐 Schema Integration**: Generate data directly from Zod or JSON Schema with validation
31
31
-**🔗 Hooks & Transforms**: Pre/post-build data transformation and validation
32
32
-**🎲 Deterministic**: Seed generators for reproducible test data
role: roleGenerator.next(), // Random, but no consecutive duplicates
63
+
role: roleGenerator,
40
64
name: faker.person.fullName(),
41
65
}));
42
66
```
43
67
68
+
## Specialized Sequence Classes
69
+
70
+
The factory helpers are the ergonomic path for factory definitions. The underlying classes are also exported when you need to manage generator instances yourself:
0 commit comments