Skip to content

fs: allow setting Stats/BigIntStats Date properties - #52708

Merged
nodejs-github-bot merged 5 commits into
nodejs:mainfrom
nicolo-ribaudo:fix-22-stat-regression
Apr 28, 2024
Merged

fs: allow setting Stats/BigIntStats Date properties#52708
nodejs-github-bot merged 5 commits into
nodejs:mainfrom
nicolo-ribaudo:fix-22-stat-regression

Conversation

@nicolo-ribaudo

@nicolo-ribaudonicolo-ribaudo commented Apr 26, 2024

Copy link
Copy Markdown
Contributor

Fixes#52707, fixes#52705

@nodejs-github-botnodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Apr 26, 2024
@nicolo-ribaudo
nicolo-ribaudo marked this pull request as draft April 26, 2024 13:38
@nicolo-ribaudo
nicolo-ribaudo marked this pull request as ready for review April 26, 2024 13:42
@avivkeller

Copy link
Copy Markdown
Member

@nodejs/fs

@joyeecheungjoyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 26, 2024
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 26, 2024
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@LiviaMedeiros

Copy link
Copy Markdown
Member

This seems to fix the same bug for BigIntStats, how about a test with { bigint: true }?

@nicolo-ribaudo

Copy link
Copy Markdown
ContributorAuthor

@LiviaMedeiros Done!

@nicolo-ribaudonicolo-ribaudo changed the title fs: allow setting Stat date propertiesfs: allow setting Stats/BigIntStats Date propertiesApr 26, 2024
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nicolo-ribaudo

Copy link
Copy Markdown
ContributorAuthor

Could somebody restart CI? :)

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@zandercymatics

Copy link
Copy Markdown

@nicolo-ribaudo Thanks for implementing this fix!

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@LiviaMedeirosLiviaMedeiros added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 27, 2024
@sepehrst

Copy link
Copy Markdown

In addition to the setter, shouldn't ObjectDefineProperty also be retained in the getter (with writable: true, of course)? Otherwise it would remain lazy on repeated access unless it is written to

@nicolo-ribaudo

Copy link
Copy Markdown
ContributorAuthor

The getter calls the setter to define the property (so that the logic doesn't need to be duplicated).

@mcollinamcollina removed the needs-ci PRs that need a full CI run. label Apr 27, 2024
@richardlaurichardlau added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Apr 27, 2024
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 28, 2024
@nodejs-github-bot
nodejs-github-bot merged commit 1aab22e into nodejs:mainApr 28, 2024
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 1aab22e

@allly-b

Copy link
Copy Markdown

Hey, any idea when this will make it into a "latest" release? My project is having this gulp issue and I'm wondering if this gets put into a latest release soon we don't have to worry about doing a workaround. Thanks for any update you have!

@mcollina

Copy link
Copy Markdown
Member

this will ship in max 2-3 weeks.

@allly-b

Copy link
Copy Markdown

Sounds good! Thanks for the quick response!

aduh95 pushed a commit that referenced this pull request Apr 29, 2024
PR-URL: #52708
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Raz Luvaton <rluvaton@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
oddhack added a commit to KhronosGroup/Vulkan-Site that referenced this pull request Apr 30, 2024
Attempt to work around nodejs/node#52708 /
gulpjs/vinyl-fs#350 by reverting to previous
LTS version.
oddhack added a commit to KhronosGroup/Vulkan-Site that referenced this pull request Apr 30, 2024
Attempt to work around nodejs/node#52708 /
gulpjs/vinyl-fs#350 by reverting to previous
LTS version.
soophoo pushed a commit to soophoo/node that referenced this pull request Jun 20, 2024
PR-URL: nodejs#52708
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Raz Luvaton <rluvaton@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.commit-queue-squashAdd this label to instruct the Commit Queue to squash all the PR commits into the first one.fsIssues and PRs related to the fs subsystem / file system.

Projects

None yet

15 participants

@nicolo-ribaudo@avivkeller@nodejs-github-bot@LiviaMedeiros@zandercymatics@sepehrst@allly-b@mcollina@jasnell@lpinca@anonrig@joyeecheung@rluvaton@VoltrexKeyva@richardlau