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

refactor(date)!: stricter error handling of between #2719

Merged
merged 24 commits into from
Mar 28, 2024

Conversation

matthewmayer
Copy link
Contributor

@matthewmayer matthewmayer commented Mar 5, 2024

fix #2711

Note i didn't change toDate function, as the new version of between doesn't need it any more. That could be done in a seperate PR if required.

Some errors are only possible to trigger in JS (e.g. omitting params) but invalid string dates can be passed in TS too.

Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.94%. Comparing base (47f008a) to head (f0b4370).

❗ Current head f0b4370 differs from pull request most recent head 9aa1b8f. Consider uploading reports for the commit 9aa1b8f to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##             next    #2719     +/-   ##
=========================================
  Coverage   99.93%   99.94%             
=========================================
  Files        2960     2958      -2     
  Lines      211338   213714   +2376     
  Branches      594      602      +8     
=========================================
+ Hits       211203   213592   +2389     
+ Misses        135      118     -17     
- Partials        0        4      +4     
Files Coverage Δ
src/modules/date/index.ts 100.00% <100.00%> (ø)

... and 10 files with indirect coverage changes

src/modules/date/index.ts Outdated Show resolved Hide resolved
@ST-DDT ST-DDT added p: 1-normal Nothing urgent c: refactor PR that affects the runtime behavior, but doesn't add new features or fixes bugs m: date Something is referring to the date module labels Mar 5, 2024
@ST-DDT ST-DDT added this to the v9.0 milestone Mar 5, 2024
@matthewmayer matthewmayer changed the title feat(date): stricter error handling of between feat(date)!: stricter error handling of between Mar 5, 2024
@matthewmayer matthewmayer added the breaking change Cannot be merged when next version is not a major release label Mar 5, 2024
@matthewmayer matthewmayer changed the title feat(date)!: stricter error handling of between refactor(date)!: stricter error handling of between Mar 5, 2024
matthewmayer and others added 2 commits March 5, 2024 21:47
@matthewmayer matthewmayer self-assigned this Mar 5, 2024
@matthewmayer matthewmayer marked this pull request as ready for review March 5, 2024 15:02
@matthewmayer matthewmayer requested a review from a team as a code owner March 5, 2024 15:02
src/modules/date/index.ts Outdated Show resolved Hide resolved
src/modules/date/index.ts Outdated Show resolved Hide resolved
src/modules/date/index.ts Outdated Show resolved Hide resolved
src/modules/date/index.ts Outdated Show resolved Hide resolved
src/modules/date/index.ts Outdated Show resolved Hide resolved
matthewmayer and others added 2 commits March 5, 2024 23:53
Co-authored-by: ST-DDT <ST-DDT@gmx.de>
@ST-DDT
Copy link
Member

ST-DDT commented Mar 7, 2024

@ST-DDT ST-DDT added the s: on hold Blocked by something or frozen to avoid conflicts label Mar 7, 2024
ST-DDT
ST-DDT previously approved these changes Mar 11, 2024
src/modules/date/index.ts Show resolved Hide resolved
src/modules/date/index.ts Show resolved Hide resolved
@ST-DDT ST-DDT dismissed their stale review March 12, 2024 11:11

see comment

ST-DDT
ST-DDT previously approved these changes Mar 12, 2024
@ST-DDT ST-DDT requested review from a team March 12, 2024 14:58
@ST-DDT
Copy link
Member

ST-DDT commented Mar 12, 2024

I'm in contact with the codecov team regarding the increased error rate.

@matthewmayer
Copy link
Contributor Author

I guess this should revert back to using the new improved "toDate" now that has been merged?

@ST-DDT
Copy link
Member

ST-DDT commented Mar 24, 2024

Yes, please.

Copy link

netlify bot commented Mar 25, 2024

Deploy Preview for fakerjs ready!

Name Link
🔨 Latest commit 9aa1b8f
🔍 Latest deploy log https://app.netlify.com/sites/fakerjs/deploys/660534038532730008ed7cb1
😎 Deploy Preview https://deploy-preview-2719.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.

@matthewmayer matthewmayer removed the s: on hold Blocked by something or frozen to avoid conflicts label Mar 25, 2024
src/modules/date/index.ts Outdated Show resolved Hide resolved
src/modules/date/index.ts Outdated Show resolved Hide resolved
src/modules/date/index.ts Outdated Show resolved Hide resolved
ST-DDT
ST-DDT previously approved these changes Mar 25, 2024
src/modules/date/index.ts Show resolved Hide resolved
src/modules/date/index.ts Show resolved Hide resolved
@ST-DDT ST-DDT requested review from Shinigami92 and a team March 27, 2024 10:21
@ST-DDT ST-DDT merged commit da35c51 into faker-js:next Mar 28, 2024
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Cannot be merged when next version is not a major release c: refactor PR that affects the runtime behavior, but doesn't add new features or fixes bugs m: date Something is referring to the date module p: 1-normal Nothing urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-evaluate signature of faker.date.between(s)
3 participants