-
Notifications
You must be signed in to change notification settings - Fork 388
Revamp the names of confusing options #164
Comments
I like all of these except for the navigateFallback and If I were completely new to the tool, I may not know what a route is. But I Joe Medley | Technical Writer, Chrome DevRel | [email protected] | On Wed, Aug 31, 2016 at 7:46 AM, Jeffrey Posnick [email protected]
|
In other words, an option that explains itself is better than one I have to Joe Medley | Technical Writer, Chrome DevRel | [email protected] | On Wed, Aug 31, 2016 at 2:09 PM, Joe Medley [email protected] wrote:
|
I like the change in name. |
I like the renames. I'm personally also fine with:
But if consensus is a first time user is going to find it straight-forward to understand what these do as-is then let's for sure keep them as is. |
Probably just me but I'd understand what is intended with 'serverRenderedUrls' if it included the term 'template' somewhere in the name. 'templatesToUrls' would make sense to me more immediately than 'serverRenderedUrls'. All others are big +1 from me. |
Including "template" in the name sounds good, so how about While I normally use abcToXYZ to name variables that represent mappings, that's not a hard and fast convention. |
@jeffposnick sounds better than my suggestion 👍 |
Echoing further support for |
We've switched to improved names for a number of similar parameters in https://workboxjs.org/ Making a breaking change to rename the options in |
There are a few options whose names made sense to me initially, but are in retrospect not carefully named. I'd like to start by adding in aliases for those options, keeping the old ones functional but logging a deprecation message during build time. And then theoretically remove them in the next major revision. (Or keep them working, but remove them from the documentation?)
I was thinking of the following, and I'm open to suggestions:
staticFileGlobs
⇒filesToCache
dynamicUrlToDependencies
⇒serverRenderedUrls
navigateFallback
⇒defaultRoute
navigateFallbackWhitelist
⇒defaultRouteWhitelist
replacePrefix
,stripPrefix
,stripPrefixMulti
⇒ try to wrap these up into a singlemodifyUrlPrefix
optionCC: @addyosmani @gauntface @jpmedley for thoughts.
The text was updated successfully, but these errors were encountered: