-
Notifications
You must be signed in to change notification settings - Fork 823
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
sw-lib Namespacing #378
Comments
I'm strongly in favor of moving the caching strategies to their own namespace. I think keeping everything in the general namespace the way it is now lends itself to more confusion than we likely intend. |
Were there any other methods as part of this that we wanted to consider giving their own dedicated namespace? |
Just what to do with I'm still fairly stumped on what to do with it to be honest. @jeffposnick any ideas? |
I feel like most folks who interact with |
Should I just remove Route altogether with the expectation that developers would need to pull in the extra module to make this work? |
In principle, I'd be fine if you removed the basic In the back of my mind, I worry about running afoul of #385, where the |
👍
My reading is we're generally fine with removing the basic |
I'd say proceed, as even if #385 can't be fixed easily, it's an edge case that developers aren't likely to bump into when using |
Library Affected:
sw-lib
Browser & Platform:
all browsers
Issue or Feature Request Description:
This was raised by @devnook
The current code organisation of sw-lib in terms of how everything is surfaced is unclear (i.e.
swlib.cacheFirst()
vsswlib.warmRuntimeCache()
vsswlib.Route()
Does it make sense to move caching strategies to a higher level:
swlib.strategies.cacheFirst()
This frees up sw-lib methods to be at top level:
swlib.cacheRevisionedAssets(revisionedFiles)
swlib.warmRuntimeCache(revisionedFiles)
Should the exposure of Route be down via sw-lib, or should it be in it's original namespace?
The text was updated successfully, but these errors were encountered: