refactor!: Rename PwPreNavContext to PwPreNavCrawlingContext#827
refactor!: Rename PwPreNavContext to PwPreNavCrawlingContext#827
Conversation
|
I'm not sure if the consistency is worth the BC break. Also, yes, the new name does seem long, and inventing new abbreviations such as |
|
@janbuchar And what about |
|
Is it even crawling if you haven't navigated to the page yet? 🙂 We do have a lot of contexts, but this one doesn't fit with crawling context all that well either... |
|
True, but the same applies to the basic crawling context 🙂. This was just an idea to straighten things out for now. The |
Pijukatel
left a comment
There was a problem hiding this comment.
I agree it should be consistently named. I am split on using abbreviations, I like to make the name shorter, but on the other hand "Explicit is better than implicit".
If the developer will have to constantly look what some abbreviation means, then it is bad. If on the other hand it is natural and people understand it out of the box, then I think it is OK.
PwPreNavCC? Why not if the docstring starts as """PlaywrightPreNavigationCrawlingContext is ...." Even though I would maybe keep at least one full key word in the name to roughly recognize the type on the first glance. For example: PwPreNavCContext
|
Agreed. But for this PR and the v0.5 release, let's focus only on resolving the |
7c756fd to
81dfe5a
Compare
81dfe5a to
0f4c755
Compare
|
Still not sure about the benefit of the change, but I won't block it 😁 |
Description
PlaywrightPreNavigationContexttoPlaywrightPreNavigationCrawlingContext.PlaywrightPreNavCrawlingContext?CrawlContext, (PlaywrightPreNavCrawlContext)Breaking changes
PlaywrightPreNavigationContextwas renamed toPlaywrightPreNavCrawlingContext.