This repository was archived by the owner on Feb 9, 2024. It is now read-only.
feat: fire mapRequestToAsset for all requests if explicitly defined #159
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR re-adds the functionality described in #158.
As per the linked issue, this did used to be possible in very early versions of
kv-asset-handler
, but was broken in a recent update that added support for encoded paths and things. This was technically a breaking change, but it seems that no one else noticed. 😅I looked at the
tests
, but didn't feel that adding this to there would serve much benefit, since these are only mocking the most simple of use-cases, and there wouldn't be a real way to "test" the actual functionality. If you've got any suggestions here, let me know. I did leave a few code comments to hopefully prevent this from becoming a regression again the future.Technically, this once again is a breaking change, as previously the
mapRequestToAsset
function was ignored if you set it and an exact match was found in theASSET_MANIFEST
. I'd consider this a bug and unexpected behaviour though, and this PR fixes that.Closes #158