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

@remix-run/router

Package Overview
Dependencies
Maintainers
2
Versions
217
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remix-run/router - npm Package Compare versions

Comparing version 0.2.0-pre.9 to 0.2.0-pre.10

7

CHANGELOG.md
# @remix-run/router
## 0.2.0-pre.10
### Patch Changes
- fix: remove internal router singleton (#9227)
- fix: Avoid suspense loops on promise aborted values (#9226)
## 0.2.0-pre.9

@@ -4,0 +11,0 @@

7

dist/index.d.ts

@@ -1,13 +0,8 @@

import type { BrowserHistoryOptions, HashHistoryOptions, MemoryHistoryOptions } from "./history";
import type { Router, RouterInit } from "./router";
import { convertRoutesToDataRoutes } from "./utils";
export type { ActionFunction, ActionFunctionArgs, AgnosticDataRouteMatch, AgnosticDataRouteObject, AgnosticRouteMatch, AgnosticRouteObject, TrackedPromise, FormEncType, FormMethod, JsonFunction, LoaderFunction, LoaderFunctionArgs, ParamParseKey, Params, PathMatch, PathPattern, RedirectFunction, ShouldRevalidateFunction, Submission, } from "./utils";
export { AbortedDeferredError, ErrorResponse, defer, generatePath, getToPathname, invariant, isRouteErrorResponse, joinPaths, json, matchPath, matchRoutes, normalizePathname, redirect, resolvePath, resolveTo, stripBasename, warning, } from "./utils";
export type { BrowserHistory, HashHistory, History, InitialEntry, Location, MemoryHistory, Path, To, } from "./history";
export type { BrowserHistory, BrowserHistoryOptions, HashHistory, HashHistoryOptions, History, InitialEntry, Location, MemoryHistory, MemoryHistoryOptions, Path, To, } from "./history";
export { Action, createBrowserHistory, createPath, createHashHistory, createMemoryHistory, parsePath, } from "./history";
export * from "./router";
export declare function createMemoryRouter({ initialEntries, initialIndex, ...routerInit }: MemoryHistoryOptions & Omit<RouterInit, "history">): Router;
export declare function createBrowserRouter({ window, ...routerInit }: BrowserHistoryOptions & Omit<RouterInit, "history">): Router;
export declare function createHashRouter({ window, ...routerInit }: HashHistoryOptions & Omit<RouterInit, "history">): Router;
/** @internal */
export { convertRoutesToDataRoutes as UNSAFE_convertRoutesToDataRoutes };

@@ -1,4 +0,4 @@

import { History, Location, To } from "./history";
import type { History, Location, To } from "./history";
import { Action as HistoryAction } from "./history";
import { AgnosticDataRouteMatch, AgnosticDataRouteObject, FormEncType, FormMethod, RouteData, AgnosticRouteObject, AgnosticRouteMatch } from "./utils";
import type { AgnosticDataRouteMatch, AgnosticDataRouteObject, FormEncType, FormMethod, RouteData, AgnosticRouteObject, AgnosticRouteMatch } from "./utils";
import { DeferredData } from "./utils";

@@ -10,2 +10,6 @@ /**

/**
* Return the basename for the router
*/
get basename(): RouterInit["basename"];
/**
* Return the current state of the router

@@ -12,0 +16,0 @@ */

@@ -45,2 +45,3 @@ import type { Location, Path, To } from "./history";

error: any;
headers?: Headers;
}

@@ -47,0 +48,0 @@ /**

@@ -1,13 +0,1 @@

import type {
BrowserHistoryOptions,
HashHistoryOptions,
MemoryHistoryOptions,
} from "./history";
import {
createBrowserHistory,
createHashHistory,
createMemoryHistory,
} from "./history";
import type { Router, RouterInit } from "./router";
import { createRouter } from "./router";
import { convertRoutesToDataRoutes } from "./utils";

@@ -59,3 +47,5 @@

BrowserHistory,
BrowserHistoryOptions,
HashHistory,
HashHistoryOptions,
History,

@@ -65,2 +55,3 @@ InitialEntry,

MemoryHistory,
MemoryHistoryOptions,
Path,

@@ -81,27 +72,2 @@ To,

export function createMemoryRouter({
initialEntries,
initialIndex,
...routerInit
}: MemoryHistoryOptions & Omit<RouterInit, "history">): Router {
let history = createMemoryHistory({ initialEntries, initialIndex });
return createRouter({ history, ...routerInit });
}
export function createBrowserRouter({
window,
...routerInit
}: BrowserHistoryOptions & Omit<RouterInit, "history">): Router {
let history = createBrowserHistory({ window });
return createRouter({ history, ...routerInit });
}
export function createHashRouter({
window,
...routerInit
}: HashHistoryOptions & Omit<RouterInit, "history">): Router {
let history = createHashHistory({ window });
return createRouter({ history, ...routerInit });
}
///////////////////////////////////////////////////////////////////////////////

@@ -108,0 +74,0 @@ // DANGER! PLEASE READ ME!

{
"name": "@remix-run/router",
"version": "0.2.0-pre.9",
"version": "0.2.0-pre.10",
"description": "Nested/Data-driven/Framework-agnostic Routing",

@@ -5,0 +5,0 @@ "keywords": [

@@ -52,2 +52,3 @@ import type { Location, Path, To } from "./history";

error: any;
headers?: Headers;
}

@@ -971,2 +972,3 @@

this.unlistenAbortSignal();
Object.defineProperty(promise, "_error", { get: () => error });
return Promise.reject(error);

@@ -973,0 +975,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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