@real-router/core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +596 -0
- package/dist/cjs/index.d.ts +216 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/metafile-cjs.json +1 -0
- package/dist/esm/index.d.mts +216 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/metafile-esm.json +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"src/constants.ts":{"bytes":4580,"imports":[],"format":"esm"},"src/helpers.ts":{"bytes":6178,"imports":[{"path":"type-guards","kind":"import-statement","external":true}],"format":"esm"},"src/RouterError.ts":{"bytes":10104,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/helpers.ts","kind":"import-statement","original":"./helpers"}],"format":"esm"},"src/core/dependencies.ts":{"bytes":6073,"imports":[{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"}],"format":"esm"},"src/core/middleware.ts":{"bytes":9428,"imports":[{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"}],"format":"esm"},"src/transition/makeError.ts":{"bytes":327,"imports":[],"format":"esm"},"src/transition/mergeStates.ts":{"bytes":1915,"imports":[],"format":"esm"},"src/transition/processLifecycleResult.ts":{"bytes":2798,"imports":[{"path":"type-guards","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":"@real-router/core"}],"format":"esm"},"src/transition/wrapSyncError.ts":{"bytes":2509,"imports":[],"format":"esm"},"src/transition/executeLifecycleHooks.ts":{"bytes":4575,"imports":[{"path":"type-guards","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":"@real-router/core"},{"path":"src/transition/makeError.ts","kind":"import-statement","original":"./makeError"},{"path":"src/transition/mergeStates.ts","kind":"import-statement","original":"./mergeStates"},{"path":"src/transition/processLifecycleResult.ts","kind":"import-statement","original":"./processLifecycleResult"},{"path":"src/transition/wrapSyncError.ts","kind":"import-statement","original":"./wrapSyncError"}],"format":"esm"},"src/transition/executeMiddleware.ts":{"bytes":3176,"imports":[{"path":"type-guards","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":"@real-router/core"},{"path":"src/transition/makeError.ts","kind":"import-statement","original":"./makeError"},{"path":"src/transition/mergeStates.ts","kind":"import-statement","original":"./mergeStates"},{"path":"src/transition/processLifecycleResult.ts","kind":"import-statement","original":"./processLifecycleResult"},{"path":"src/transition/wrapSyncError.ts","kind":"import-statement","original":"./wrapSyncError"}],"format":"esm"},"src/transitionPath.ts":{"bytes":14710,"imports":[{"path":"type-guards","kind":"import-statement","external":true}],"format":"esm"},"src/transition/index.ts":{"bytes":4966,"imports":[{"path":"src/index.ts","kind":"import-statement","original":"@real-router/core"},{"path":"src/transition/executeLifecycleHooks.ts","kind":"import-statement","original":"./executeLifecycleHooks"},{"path":"src/transition/executeMiddleware.ts","kind":"import-statement","original":"./executeMiddleware"},{"path":"src/transitionPath.ts","kind":"import-statement","original":"../transitionPath"}],"format":"esm"},"src/core/navigation.ts":{"bytes":9928,"imports":[{"path":"type-guards","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":"@real-router/core"},{"path":"src/transition/index.ts","kind":"import-statement","original":"../transition"}],"format":"esm"},"src/core/observable.ts":{"bytes":22475,"imports":[{"path":"type-guards","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":"@real-router/core"}],"format":"esm"},"src/core/options.ts":{"bytes":9010,"imports":[{"path":"type-guards","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"}],"format":"esm"},"src/core/plugins.ts":{"bytes":8354,"imports":[{"path":"type-guards","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../constants"},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"}],"format":"esm"},"src/core/routeLifecycle.ts":{"bytes":12783,"imports":[{"path":"type-guards","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"}],"format":"esm"},"src/internals.ts":{"bytes":3911,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"./constants"}],"format":"esm"},"src/core/stateBuilder.ts":{"bytes":2097,"imports":[{"path":"route-tree","kind":"import-statement","external":true}],"format":"esm"},"src/core/routes/routePath.ts":{"bytes":10516,"imports":[{"path":"route-tree","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":"@real-router/core"},{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/helpers.ts","kind":"import-statement","original":"../../helpers"},{"path":"src/internals.ts","kind":"import-statement","original":"../../internals"},{"path":"src/core/stateBuilder.ts","kind":"import-statement","original":"../stateBuilder"}],"format":"esm"},"src/core/routerLifecycle.ts":{"bytes":13354,"imports":[{"path":"type-guards","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":"@real-router/core"},{"path":"src/core/routes/routePath.ts","kind":"import-statement","original":"./routes/routePath"}],"format":"esm"},"src/core/routes/routeConfig.ts":{"bytes":24485,"imports":[{"path":"route-tree","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"src/internals.ts","kind":"import-statement","original":"../../internals"}],"format":"esm"},"src/core/routes/routeQuery.ts":{"bytes":11740,"imports":[{"path":"route-tree","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":"@real-router/core"},{"path":"src/core/routes/routeConfig.ts","kind":"import-statement","original":"./routeConfig"},{"path":"src/internals.ts","kind":"import-statement","original":"../../internals"},{"path":"src/transitionPath.ts","kind":"import-statement","original":"../../transitionPath"}],"format":"esm"},"src/core/routes/routeTree.ts":{"bytes":20079,"imports":[{"path":"route-tree","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"src/core/routes/routeConfig.ts","kind":"import-statement","original":"./routeConfig"},{"path":"src/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/internals.ts","kind":"import-statement","original":"../../internals"}],"format":"esm"},"src/core/routes/index.ts":{"bytes":1173,"imports":[{"path":"src/core/routes/routePath.ts","kind":"import-statement","original":"./routePath"},{"path":"src/core/routes/routeQuery.ts","kind":"import-statement","original":"./routeQuery"},{"path":"src/core/routes/routeTree.ts","kind":"import-statement","original":"./routeTree"}],"format":"esm"},"src/core/state.ts":{"bytes":22549,"imports":[{"path":"route-tree","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":"@real-router/core"},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"src/internals.ts","kind":"import-statement","original":"../internals"},{"path":"src/core/stateBuilder.ts","kind":"import-statement","original":"./stateBuilder"}],"format":"esm"},"src/createRouter.ts":{"bytes":1947,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/core/dependencies.ts","kind":"import-statement","original":"./core/dependencies"},{"path":"src/core/middleware.ts","kind":"import-statement","original":"./core/middleware"},{"path":"src/core/navigation.ts","kind":"import-statement","original":"./core/navigation"},{"path":"src/core/observable.ts","kind":"import-statement","original":"./core/observable"},{"path":"src/core/options.ts","kind":"import-statement","original":"./core/options"},{"path":"src/core/plugins.ts","kind":"import-statement","original":"./core/plugins"},{"path":"src/core/routeLifecycle.ts","kind":"import-statement","original":"./core/routeLifecycle"},{"path":"src/core/routerLifecycle.ts","kind":"import-statement","original":"./core/routerLifecycle"},{"path":"src/core/routes/index.ts","kind":"import-statement","original":"./core/routes"},{"path":"src/core/state.ts","kind":"import-statement","original":"./core/state"}],"format":"esm"},"src/index.ts":{"bytes":719,"imports":[{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/RouterError.ts","kind":"import-statement","original":"./RouterError"},{"path":"src/createRouter.ts","kind":"import-statement","original":"./createRouter"}],"format":"esm"}},"outputs":{"dist/esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":324573},"dist/esm/index.mjs":{"imports":[{"path":"type-guards","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"route-tree","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"route-tree","kind":"import-statement","external":true},{"path":"route-tree","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"route-tree","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"route-tree","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true},{"path":"route-tree","kind":"import-statement","external":true},{"path":"type-guards","kind":"import-statement","external":true}],"exports":["RouterError","constants","createRouter","errorCodes","events"],"entryPoint":"src/index.ts","inputs":{"src/constants.ts":{"bytesInOutput":2223},"src/index.ts":{"bytesInOutput":0},"src/helpers.ts":{"bytesInOutput":2186},"src/RouterError.ts":{"bytesInOutput":8509},"src/core/dependencies.ts":{"bytesInOutput":4561},"src/core/middleware.ts":{"bytesInOutput":3708},"src/core/navigation.ts":{"bytesInOutput":5414},"src/transition/executeLifecycleHooks.ts":{"bytesInOutput":2728},"src/transition/makeError.ts":{"bytesInOutput":108},"src/transition/mergeStates.ts":{"bytesInOutput":707},"src/transition/processLifecycleResult.ts":{"bytesInOutput":1479},"src/transition/wrapSyncError.ts":{"bytesInOutput":747},"src/transition/executeMiddleware.ts":{"bytesInOutput":1865},"src/transitionPath.ts":{"bytesInOutput":5002},"src/transition/index.ts":{"bytesInOutput":3319},"src/core/observable.ts":{"bytesInOutput":12645},"src/core/options.ts":{"bytesInOutput":4978},"src/core/plugins.ts":{"bytesInOutput":5271},"src/core/routeLifecycle.ts":{"bytesInOutput":5154},"src/core/routerLifecycle.ts":{"bytesInOutput":5520},"src/core/routes/routePath.ts":{"bytesInOutput":4059},"src/internals.ts":{"bytesInOutput":462},"src/core/stateBuilder.ts":{"bytesInOutput":521},"src/core/routes/routeQuery.ts":{"bytesInOutput":4576},"src/core/routes/routeConfig.ts":{"bytesInOutput":11598},"src/core/routes/routeTree.ts":{"bytesInOutput":9800},"src/core/routes/index.ts":{"bytesInOutput":178},"src/core/state.ts":{"bytesInOutput":8301},"src/createRouter.ts":{"bytesInOutput":644}},"bytes":117514}}}
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@real-router/core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "commonjs",
|
|
5
|
+
"description": "A simple, powerful, view-agnostic, modular and extensible router",
|
|
6
|
+
"main": "./dist/cjs/index.js",
|
|
7
|
+
"module": "./dist/esm/index.mjs",
|
|
8
|
+
"types": "./dist/esm/index.d.mts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": {
|
|
12
|
+
"import": "./dist/esm/index.d.mts",
|
|
13
|
+
"require": "./dist/cjs/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"import": "./dist/esm/index.mjs",
|
|
16
|
+
"require": "./dist/cjs/index.js"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/greydragon888/real-router.git"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"router",
|
|
28
|
+
"routing",
|
|
29
|
+
"html5",
|
|
30
|
+
"functional",
|
|
31
|
+
"reactive",
|
|
32
|
+
"universal",
|
|
33
|
+
"isomorphic",
|
|
34
|
+
"real-router"
|
|
35
|
+
],
|
|
36
|
+
"author": {
|
|
37
|
+
"name": "Oleg Ivanov",
|
|
38
|
+
"email": "greydragon888@gmail.com",
|
|
39
|
+
"url": "https://github.com/greydragon888"
|
|
40
|
+
},
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/greydragon888/real-router/issues"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://github.com/greydragon888/real-router",
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "tsup",
|
|
48
|
+
"test": "vitest run functional/",
|
|
49
|
+
"bench": "NODE_OPTIONS='--expose-gc --max-old-space-size=4096' npx tsx tests/benchmarks/index.ts",
|
|
50
|
+
"type-check": "tsc --noEmit",
|
|
51
|
+
"lint": "eslint --cache --ext .ts src/ tests/ --fix --max-warnings 0",
|
|
52
|
+
"test:mutation": "stryker run",
|
|
53
|
+
"lint:package": "publint",
|
|
54
|
+
"lint:types": "attw --pack ."
|
|
55
|
+
},
|
|
56
|
+
"sideEffects": false,
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"route-tree": "workspace:^",
|
|
59
|
+
"core-types": "workspace:^",
|
|
60
|
+
"type-guards": "workspace:^"
|
|
61
|
+
}
|
|
62
|
+
}
|