Skip to content

Commit 4b88870

Browse files
authored
Merge branch 'main' into rename-module-classes
2 parents fac9afb + 1fe2877 commit 4b88870

43 files changed

Lines changed: 807 additions & 14 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/.vitepress/components/api-docs/method.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export interface Method {
66
readonly returns: string;
77
readonly examples: string; // HTML
88
readonly deprecated: boolean;
9+
readonly since: string;
910
readonly seeAlsos: string[];
1011
}
1112

docs/.vitepress/components/api-docs/method.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ function seeAlsoToUrl(see: string): string {
1919

2020
<div v-html="props.method.description"></div>
2121

22+
<div v-if="props.method.since">
23+
<p>
24+
<em>Available since v<span v-html="props.method.since" /></em>
25+
</p>
26+
</div>
27+
2228
<MethodParameters
2329
v-if="props.method.parameters.length > 0"
2430
:parameters="props.method.parameters"

docs/.vitepress/config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,22 @@ export default defineConfig({
164164
text: 'Announcements',
165165
link: '/about/announcements',
166166
items: [
167+
{ text: '2022-09-08', link: '/about/announcements/2022-09-08' },
167168
{ text: '2022-01-14', link: '/about/announcements/2022-01-14' },
168169
],
169170
},
171+
{
172+
text: 'Roadmap',
173+
link: '/about/roadmap/',
174+
items: [
175+
{ text: 'v8 - Make Faker Handier', link: '/about/roadmap/v8' },
176+
{
177+
text: 'v7 - Cleanup & Improvements',
178+
link: '/about/roadmap/v7',
179+
},
180+
{ text: 'v6 - Continue Faker', link: '/about/roadmap/v6' },
181+
],
182+
},
170183
{
171184
text: 'Team',
172185
link: '/about/team',

docs/about/announcements.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ editLink: false
44

55
# Announcements
66

7+
- [2022-09-08 - New Roadmap Published](./announcements/2022-09-08)
78
- [2022-01-14 - An update from the Faker team](./announcements/2022-01-14)

docs/about/announcements/2022-01-14.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ _January 14th, 2022_
1010

1111
We want the project to have a fresh start and become _even cooler_.
1212

13-
[[toc]]
14-
1513
## What is Faker?
1614

1715
Faker is a library that generates fake (but reasonable) data for you. Mock data. Data for testing, development, and the like.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
editLink: false
3+
---
4+
5+
# New Roadmap Published
6+
7+
We haven't made any announcements for a long time, but we are happy to announce that we just published the new roadmap for v8.
8+
9+
Our main focus for v8 is to make Faker more lightweight and flexible.
10+
A huge part of that is better tree shaking support.
11+
12+
Currently, if you just want to generate some reproducible numbers, then you need the entire Faker package.
13+
First, you have to download almost 10MB of data (mostly locales; duplicated for ESM and CJS) and ship half of that (one of them).
14+
15+
We wont tackle the download size for now,
16+
but we hope to reduce the shipped size significantly (deduplicate locale data) on our side and allow your build process to discard more unused methods and data.
17+
This should also improve js startup/parse times.
18+
19+
If we are successful, you will only need a few KB of code for numbers and only the locales you need for more complex things such as names.
20+
With a bit of setup on your side, you can ship only the parts of the locale data you actually need.
21+
So no more finance data and mime-types, just for a first name.
22+
23+
For more details refer to our roadmap:
24+
25+
- [Roadmap - Overview](../roadmap/index.html)
26+
- [Roadmap v8 - Make Faker Handier](../roadmap/v8.html)

docs/about/roadmap/index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
editLink: false
3+
---
4+
5+
# Roadmap
6+
7+
These pages outline our roadmap for past and future versions.
8+
Click on the specific versions for more details.
9+
10+
## Upcoming Versions
11+
12+
- [v8 - Make Faker Handier](v8.html)
13+
14+
## Previous Versions
15+
16+
- [v7 - Cleanup & Improvements](v7.html)
17+
- [v6 - Continue Faker](v6.html)

docs/about/roadmap/v6.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
editLink: false
3+
---
4+
5+
# v6 - Continue Faker
6+
7+
The main task of v6 is fixing technical debts and some cleanup.
8+
9+
## v6.0 - Ensure project foundation
10+
11+
- Rewrite project in TypeScript
12+
- Update dependencies and automate the process
13+
- Add/Extend build pipeline
14+
- Write JSDocs for most of the modules and methods
15+
- Add online documentation/website
16+
17+
[v6.0 Tasks](https://github.com/faker-js/faker/milestone/1)
18+
19+
**Releases**
20+
21+
- [v6.0.0-alpha.0](https://github.com/faker-js/faker/releases/tag/v6.0.0-alpha.0)
22+
- [v6.0.0-alpha.2](https://github.com/faker-js/faker/releases/tag/v6.0.0-alpha.2)
23+
- [v6.0.0-alpha.3](https://github.com/faker-js/faker/releases/tag/v6.0.0-alpha.3)
24+
- [v6.0.0-alpha.4](https://github.com/faker-js/faker/releases/tag/v6.0.0-alpha.4)
25+
- [v6.0.0-alpha.5](https://github.com/faker-js/faker/releases/tag/v6.0.0-alpha.5)
26+
- [v6.0.0-alpha.6](https://github.com/faker-js/faker/releases/tag/v6.0.0-alpha.6)
27+
- [v6.0.0-alpha.7](https://github.com/faker-js/faker/releases/tag/v6.0.0-alpha.7)
28+
- [v6.0.0-beta.0](https://github.com/faker-js/faker/releases/tag/v6.0.0-beta.0)
29+
- [v6.0.0](https://github.com/faker-js/faker/releases/tag/v6.0.0)
30+
31+
## v6.1 - First Bugfixes
32+
33+
- Fix bugs in the implementation and data
34+
- Standardize some method parameters
35+
- Deprecate duplicate methods
36+
- Extend unit tests
37+
- Link missing locales
38+
- Improve documentation
39+
40+
[v6.1 Tasks](https://github.com/faker-js/faker/milestone/2)
41+
42+
**Releases**
43+
44+
- [v6.1.0](https://github.com/faker-js/faker/releases/tag/v6.1.0)
45+
- [v6.1.1](https://github.com/faker-js/faker/releases/tag/v6.1.1)
46+
- [v6.1.2](https://github.com/faker-js/faker/releases/tag/v6.1.2)
47+
48+
## v6.2 - First New Features
49+
50+
- Introduce the first new features
51+
- Add/Update some locales
52+
- More cleanup
53+
54+
[v6.2 Tasks](https://github.com/faker-js/faker/milestone/5)
55+
56+
**Releases**
57+
58+
- [v6.2.0](https://github.com/faker-js/faker/releases/tag/v6.2.0)
59+
60+
## v6.x
61+
62+
Further improvements
63+
64+
- [v6.3 Tasks](https://github.com/faker-js/faker/milestone/7)
65+
- [v6.x Tasks](https://github.com/faker-js/faker/milestone/3)
66+
67+
**Releases**
68+
69+
- [v6.3.0](https://github.com/faker-js/faker/releases/tag/v6.3.0)
70+
- [v6.3.1](https://github.com/faker-js/faker/releases/tag/v6.3.1)

docs/about/roadmap/v7.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
editLink: false
3+
---
4+
5+
# v7 - Cleanup & Improvements
6+
7+
In v7 we will remove some methods that we have deprecated in v6 and restructure the sources a bit.
8+
It will be the first release with small breaking changes since we maintain it.
9+
10+
## v7.0 - Structurally Breaking Changes
11+
12+
- Remove deprecations
13+
- Remove faker default export
14+
- Target es2020
15+
- Drop Node v12 support
16+
- Reorganize source folder
17+
- More features
18+
19+
[v7.0 Tasks](https://github.com/faker-js/faker/milestone/8)
20+
21+
**Releases**
22+
23+
- [v7.0.0](https://github.com/faker-js/faker/releases/tag/v7.0.0)
24+
- [v7.0.1](https://github.com/faker-js/faker/releases/tag/v7.0.1)
25+
26+
## v7.x
27+
28+
Further improvements
29+
30+
- [v7.x Tasks](https://github.com/faker-js/faker/milestone/4)
31+
32+
**Releases**
33+
34+
- [v7.1.0](https://github.com/faker-js/faker/releases/tag/v7.1.0)
35+
- [v7.2.0](https://github.com/faker-js/faker/releases/tag/v7.2.0)
36+
- [v7.3.0](https://github.com/faker-js/faker/releases/tag/v7.3.0)
37+
- [v7.4.0](https://github.com/faker-js/faker/releases/tag/v7.4.0)
38+
- [v7.5.0](https://github.com/faker-js/faker/releases/tag/v7.5.0)

docs/about/roadmap/v8.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
editLink: false
3+
---
4+
5+
# v8 - Make Faker Handier
6+
7+
Our main goal in v8 is to make Faker more lightweight and more flexible.
8+
9+
## v8.0 - Module Re-Shuffling
10+
11+
Finish the module shuffling.
12+
13+
- Remove locale switching support
14+
- Move String and Number methods into own modules
15+
- Rename Name module to Person
16+
- Rename Address module to Location
17+
- Check modules and methods regarding their name and location
18+
- Try to eliminate circular dependencies in modules
19+
- Standardize function parameters and defaults
20+
- Rewrite image module / providers
21+
22+
[v8.0 Tasks](https://github.com/faker-js/faker/milestone/10)
23+
24+
## v8.1 - Split Faker Class
25+
26+
Split the Faker class into smaller units so you don't have ship an entire locale if you only generate some strings and numbers.
27+
28+
[v8.1 Tasks](https://github.com/faker-js/faker/milestone/11)
29+
30+
## v8.x - Tree-Shakeable Module-Functions
31+
32+
Refactor modules to be tree shakeable.
33+
Potentially allowing individual Faker methods to be called by themselves.
34+
35+
[v8.x Tasks](https://github.com/faker-js/faker/milestone/12)

0 commit comments

Comments
 (0)