Skip to content

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
@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

3 participants