Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generouted

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generouted - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

8

package.json
{
"name": "generouted",
"version": "1.4.0",
"version": "1.5.0",
"description": "Generated file-based routes for React Location and Vite",

@@ -31,13 +31,13 @@ "author": "Omar Elhawary <oedotme@gmail.com> (https://omarelhawary.me)",

"devDependencies": {
"@tanstack/react-location": "^3.7.4",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"prettier": "^2.7.1",
"@tanstack/react-location": "^3.7.4",
"typescript": "^4.7.4",
"vite": "^2.9.14"
"vite": "^3.0.4"
},
"peerDependencies": {
"@tanstack/react-location": ">=3",
"react": ">=17",
"react-dom": ">=17",
"@tanstack/react-location": ">=3",
"vite": ">=2"

@@ -44,0 +44,0 @@ },

@@ -45,3 +45,5 @@ <br>

- [Next.js inspired](https://nextjs.org/docs/routing/introduction)
- Files within `src/pages` directory
- Supports `.tsx` extensions
- Renders page's `default` export
- Custom app at `src/pages/_app.tsx` _(optional)_

@@ -76,3 +78,3 @@ - Custom 404 page at `src/pages/404.tsx` _(optional)_

- [Remix inspired](https://remix.run/docs/en/v1/guides/data-loading)
- By exporting a named function `loader` from a page: `export const loader = async () => ({...})`
- By exporting a named function `Loader` from a page: `export const Loader = async () => ({...})`
- [React Location's route loaders guide](https://react-location.tanstack.com/guides/route-loaders)

@@ -159,3 +161,3 @@

That's the only export at the moment. Could add some customization options in the future.
`<Routes />` component accepts all [React Location's `RouterProps`](https://react-location.tanstack.com/docs/api#router) except `children`, `location` and `routes` props.

@@ -162,0 +164,0 @@ <br>

import { RouterProps } from '@tanstack/react-location'
export declare const Routes: (config?: Omit<RouterProps, 'location' | 'children' | 'routes'>) => JSX.Element
export declare const Routes: (props?: Omit<RouterProps, 'children' | 'location' | 'routes'>) => JSX.Element

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc