UPCOMING VERSION v3.0.0 - integrating itty-router-extras into itty-router
See original GitHub issueSo this is a rather big shift/departure from the previous setup, but here are the reasons:
- I use itty-router-extras 100% of the time with itty, and i’m sure many others would too
- currently, without examples using extras in the core lib docs, itty-router looks more verbose than it needs to
- all extras will be released under submodules, allowing the core lib to remain tiny, and the whole project easily tree-shakeable
- REQUEST FOR FEEDBACK: regarding this, I’m debating an ultra-simplistic
itty-router/extras
catch-all, or more specific submodules likeitty-router/response
anditty-router/cors
anditty-router/middleware
. Honestly, they’re probably all lightweight enough to keep all together for simplicity of end user code… feedback welcome on this though.
- REQUEST FOR FEEDBACK: regarding this, I’m debating an ultra-simplistic
- I prefer simplicity in final code implementation above all, and having one dependency of a rather-coupled system (like itty and extras) makes sense over two deps at this stage
- itty-router-extras has not changed appreciably in over a year, suggesting that it’s actually a rather stable API
Thoughts?
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:6 (3 by maintainers)
Top Results From Across the Web
kwhitley/itty-router-extras - GitHub
ThrowableRouter - this is an auto-magic convenience wrapper around itty-router that simply adds automatic exception handling (with automatic response), rather ...
Read more >egghead.io PRO member lessons - Podcast Addict
egghead.io PRO member lessons - via Podcast Addict | Bite-sized web development lessons to feed your hungry brain.
Read more >User - types
@types/bucks (latest: 0.8.29) TypeScript definitions for bucks.js 0.8.3 ... @types/path-to-regexp (latest: 1.7.0) Stub TypeScript definitions entry for ...
Read more >sitemap.4.xml
... 0.0 https://yarnpkg.com/en/package/stream-to-generator ... 0.0 https://yarnpkg.com/en/package/next-cssr 2020-06-01T04:03:37.802Z 0.0 ...
Read more >Kevin R. Whitley itty-router Issues - Giters
Question: Grouping - router.route(), to have certain routes in different files ... UPCOMING VERSION v3.0.0 - integrating itty-router-extras into itty-router.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t expect people to be as sensitive to the bundle size for Cloudflare Workers as we are with SPAs. One dependency with many exports feels more approachable, and people who are super sensitive to the size might be able to do tree-shaking during the bundling process to remove unused code
For those, I plan to rewrite in TS… just easier than maintaining type files separately.