nitro icon indicating copy to clipboard operation
nitro copied to clipboard

feat: expose `getRouteRulesForPath` from nitro runtime

Open danielroe opened this issue 1 year ago โ€ข 2 comments

๐Ÿ”— Linked issue

โ“ Type of change

  • [ ] ๐Ÿ“– Documentation (updates to the documentation, readme, or JSdoc annotations)
  • [x] ๐Ÿž Bug fix (a non-breaking change that fixes an issue)
  • [x] ๐Ÿ‘Œ Enhancement (improving an existing functionality like performance)
  • [ ] โœจ New feature (a non-breaking change that adds functionality)
  • [ ] ๐Ÿงน Chore (updates to the build process or auxiliary tools and libraries)
  • [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to change)

๐Ÿ“š Description

This exposes getRouteRulesForPath from #internal nitro. We could use it in Nuxt (context) to avoid duplicating this logic or importing deeply from the runtime directory.

Not sure if there was a reason it was explicitly not exposed previously.

๐Ÿ“ Checklist

  • [ ] I have linked an issue or discussion.
  • [ ] I have updated the documentation accordingly.

danielroe avatar Mar 09 '24 15:03 danielroe

We need to make (type) read-only before exposing util.

pi0 avatar Mar 10 '24 10:03 pi0

Should be good to go ๐Ÿ‘

danielroe avatar Mar 10 '24 21:03 danielroe