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

add lastModified to a module’s hash when it references a file attachment #1837

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

Fil
Copy link
Contributor

@Fil Fil commented Nov 22, 2024

when a module references a file attachment, include the file's lastModified timestamp in the module's hash.

closes #1836

Note that this allows us to remove from the tests the ts rewrite that we used to do on modules, because their payload’s lastModified is now always set to the fake currentDate injected by the tests.

Some tests don't want to use the fake date though! (I hope they never run in parallel?)

…dified timestamp in the module's hash.

closes #1836

Note that this allows us to remove from the tests the ts rewrite that we used to do on modules, because their payload’s lastModified is now always set to the fake currentDate injected by the tests. Some tests don't want to use the fake date though! (I hope they never run in parallel?)
@Fil Fil requested a review from mbostock November 22, 2024 15:15
test/loader-test.ts Outdated Show resolved Hide resolved
@mbostock mbostock enabled auto-merge (squash) November 22, 2024 16:45
@mbostock mbostock merged commit 30be23f into main Nov 22, 2024
4 checks passed
@mbostock mbostock deleted the fil/module-hash-ts branch November 22, 2024 16:48
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.

immutable module hash should reflect a referenced file attachment’s lastModified
2 participants