Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "radix3", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Lightweight and fast router for JavaScript based on Radix Tree", | ||
@@ -23,17 +23,22 @@ "repository": "unjs/radix3", | ||
"playground": "yarn jiti ./playground.ts", | ||
"release": "yarn build && standard-version && git push --follow-tags && npm publish", | ||
"test": "nyc --reporter=lcov mocha -r jiti/register tests/*.test.*" | ||
"release": "yarn lint && yarn test run && yarn build && standard-version && git push --follow-tags && npm publish", | ||
"bench": "node ./benchmark/direct.mjs", | ||
"bench:http": "node ./benchmark/http.mjs", | ||
"bench:profile": "0x -o -D benchmark/.profile -- node ./benchmark/direct.mjs", | ||
"test": "vitest" | ||
}, | ||
"devDependencies": { | ||
"0x": "latest", | ||
"@nuxtjs/eslint-config-typescript": "latest", | ||
"@types/chai": "latest", | ||
"@types/mocha": "latest", | ||
"chai": "latest", | ||
"autocannon": "latest", | ||
"benchmark": "latest", | ||
"c8": "latest", | ||
"eslint": "latest", | ||
"jiti": "latest", | ||
"mocha": "latest", | ||
"nyc": "latest", | ||
"listhen": "latest", | ||
"ohmyfetch": "latest", | ||
"standard-version": "latest", | ||
"unbuild": "latest" | ||
"unbuild": "latest", | ||
"vitest": "latest" | ||
} | ||
} |
@@ -37,3 +37,3 @@ | ||
```js | ||
const router createRouter() | ||
const router = createRouter() | ||
@@ -49,6 +49,6 @@ router.insert('/path', { payload: 'this path' }) | ||
// { payload: 'this path' } | ||
router.lookup('/test') | ||
router.lookup('/path') | ||
// { payload: 'named route', params: { name: 'fooval' } } | ||
router.lookup('/test/fooval') | ||
router.lookup('/path/fooval') | ||
@@ -82,2 +82,6 @@ // { payload: 'wildcard route' } | ||
## Performance | ||
See [benchmark](./benchmark). | ||
## License | ||
@@ -84,0 +88,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16401
407
106
0
12