Skip to content

JSON and Date API usage fixes - #6982

Merged
sokra merged 3 commits into
webpack:masterfrom
mohsen1:json-and-date-api-fixes
Apr 11, 2018
Merged

sokra merged 3 commits into
webpack:masterfrom
mohsen1:json-and-date-api-fixes

Conversation

@mohsen1

@mohsen1 mohsen1 commented Apr 8, 2018

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?
Refactor

Did you add tests for your changes?
No

If relevant, link to documentation update:
N/A

Summary
As part of #6862 I'm fixing issues that TypeScript has found.

Does this PR introduce a breaking change?
No

Other information

Comment thread lib/Stats.js
colors.normal("Built at: ");
colors.normal(
builtAtDate.toLocaleDateString({
day: "2-digit",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This options is ignored when a locale is not specified

@sokra sokra Apr 9, 2018 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

pass undefined as locale, which resolves to the default locale

@mohsen1 mohsen1 mentioned this pull request Apr 8, 2018
27 tasks done
@webpack-bot

Copy link
Copy Markdown
Contributor

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

Comment thread lib/Stats.js
colors.normal("Built at: ");
colors.normal(
builtAtDate.toLocaleDateString({
day: "2-digit",

@sokra sokra Apr 9, 2018 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

pass undefined as locale, which resolves to the default locale

@webpack-bot

Copy link
Copy Markdown
Contributor

@ooflorent Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@sokra Please review the new changes.

@mohsen1

mohsen1 commented Apr 10, 2018

Copy link
Copy Markdown
Contributor Author

Thanks @ooflorent!

@webpack-bot

Copy link
Copy Markdown
Contributor

It looks like this Pull Request doesn't include enough test cases (based on Code Coverage analysis of the PR diff).

A PR need to be covered by tests if you add a new feature (we want to make sure that your feature is working) or if you fix a bug (we want to make sure that we don't run into a regression in future).

@mohsen1 Please check if this is appliable to your PR and if you can add more test cases.

Read the test readme for details how to write test cases.

@sokra
sokra merged commit 0b1e9d8 into webpack:master Apr 11, 2018
@sokra

sokra commented Apr 11, 2018

Copy link
Copy Markdown
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants