Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: blog post v9.0 #3056

Draft
wants to merge 1 commit into
base: next
Choose a base branch
from
Draft

docs: blog post v9.0 #3056

wants to merge 1 commit into from

Conversation

xDivisionByZerox
Copy link
Member

WIP

Copy link

netlify bot commented Aug 15, 2024

Deploy Preview for fakerjs ready!

Name Link
🔨 Latest commit e92ca5d
🔍 Latest deploy log https://app.netlify.com/sites/fakerjs/deploys/66be2a598bc14700089aac86
😎 Deploy Preview https://deploy-preview-3056.fakerjs.dev
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@xDivisionByZerox xDivisionByZerox added c: docs Improvements or additions to documentation p: 1-normal Nothing urgent labels Aug 15, 2024
@xDivisionByZerox xDivisionByZerox added this to the v9.0 milestone Aug 15, 2024
@Shinigami92
Copy link
Member

You need to add a link here

items: [
{ text: '2022-09-08', link: '/about/announcements/2022-09-08' },
{ text: '2022-01-14', link: '/about/announcements/2022-01-14' },
],

# What's New In v9.0

::: info Looking for the migration guide?
This article is a focusing on changes happened in the development of v9 that are on the more interesting side.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This article is a focusing on...

Should be

This article focuses on...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are even more grammatical issues, so maybe just paste the blog into another spellchecking tool and fix them with one commit

Copy link
Member

@ST-DDT ST-DDT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice WIP. Thanks for preparing all this.


## Optimizing Bundle Size with Tree-Shaking

In the upcoming release of Faker.js, we’ve tackled an important issue related to bundle size. The problem? Unnecessary modules were being included during tree-shaking, leading to bloated final bundles. But fear not! We’ve got a solution.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we should not refer to upcoming release, as the blog will either be merged either right before the major release or afterwards.

@@ -60,50 +60,10 @@ While this is not a breaking change according to semantic versioning guidelines,

### Use High Precision RNG by Default

TLDR: Many Faker methods return a different result in v9 compared to v8 for the same seed.

In v9 we switch from a 32 bit random value to a 53 bit random value.
We don't change the underlying algorithm much, but we now consume two seed values each step instead of one.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a link to the relevant section in the announcement blog.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have a link to the announcement blog page

Comment on lines +87 to +88
## More Localized Data

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section is empty.

Comment on lines +97 to +100
1. [Create a release Pull Request](https://github.com/faker-js/faker/pull/2981)
1. [Have an additional CI suite that tests against our playground](https://github.com/faker-js/faker/pull/2988)
1. [Create a GitHub Release](https://github.com/faker-js/faker/pull/2990)
1. [Release the latest version to npm](https://github.com/faker-js/faker/pull/2991)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we number these correctly even if GH/vitepress fixes them automatically?


1. [Create a release Pull Request](https://github.com/faker-js/faker/pull/2981)
1. [Have an additional CI suite that tests against our playground](https://github.com/faker-js/faker/pull/2988)
1. [Create a GitHub Release](https://github.com/faker-js/faker/pull/2990)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we should refer to this as Draft a GitHub release

Comment on lines +97 to +100
1. [Create a release Pull Request](https://github.com/faker-js/faker/pull/2981)
1. [Have an additional CI suite that tests against our playground](https://github.com/faker-js/faker/pull/2988)
1. [Create a GitHub Release](https://github.com/faker-js/faker/pull/2990)
1. [Release the latest version to npm](https://github.com/faker-js/faker/pull/2991)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we should refer to this step as Publish the ...

This allows us to kick off the process with a single manual schedule of the PR creation job.
This PR will then run an additional test CI (in parallel to our normal one) against our [playground repo](https://github.com/faker-js/playground).
If the PR is successfully merged another job is automatically started to create a draft GitHub Release.
This allows us to verify the correctness of the release one last time.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this isn't the main point of that step, IMO it just gives us the ability to edit the GitHub release to our needs.
But I'm not sure whether that is nitpicking or not.

If the PR is successfully merged another job is automatically started to create a draft GitHub Release.
This allows us to verify the correctness of the release one last time.
By publishing the GitHub release, the last job will kick in to publish this release to npm.
All these steps where done manually by the maintainers, previously.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a little bit of "why" here aka "and sometimes we forgot them or did them in the wrong order"

@Shinigami92 Shinigami92 mentioned this pull request Sep 4, 2024
23 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: docs Improvements or additions to documentation p: 1-normal Nothing urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants