Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 20, 2024
1 parent ba5dbff commit d293d80
Show file tree
Hide file tree
Showing 5 changed files with 844 additions and 663 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
echo "EOF" >> $GITHUB_OUTPUT
- name: Create the release
if: steps.changelog.outputs.changelog_content != ''
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: ${{ github.ref_name }}
body: '${{ steps.changelog.outputs.changelog_content }}'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
node-version: 23
cache: pnpm
- name: Install dependencies
run: pnpm install --ignore-scripts
Expand All @@ -31,6 +31,7 @@ jobs:
strategy:
matrix:
node-version:
- 22
- 20
- 18
name: Node.js ${{ matrix.node-version }} Quick
Expand Down
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Split<S extends string, D extends string> = string extends S
: [S]

// Converting path array to object
type PathToParams<PathArray, Params = {}> = PathArray extends [
type PathToParams<PathArray, Params> = PathArray extends [
infer First,
...infer Rest
]
Expand All @@ -22,7 +22,7 @@ type PathToParams<PathArray, Params = {}> = PathArray extends [
: PathToParams<Rest, Params>
: Params

type ParseUrl<Path extends string> = PathToParams<Split<Path, '/'>>
type ParseUrl<Path extends string> = PathToParams<Split<Path, '/'>, unknown>

export type RouterConfig = Record<string, Pattern<any> | RegExp | string>

Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nanostores/router",
"version": "0.15.1",
"description": "A tiny (696 bytes) router for Nano Stores state manager",
"description": "A tiny (684 bytes) router for Nano Stores state manager",
"keywords": [
"nano",
"router",
Expand Down Expand Up @@ -41,21 +41,21 @@
"nanostores": "^0.9.0 || ^0.10.0 || ^0.11.0"
},
"devDependencies": {
"@logux/eslint-config": "^53.3.0",
"@size-limit/preset-small-lib": "^11.1.4",
"@logux/eslint-config": "^53.4.1",
"@size-limit/preset-small-lib": "^11.1.6",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.1.0",
"better-node-test": "^0.5.1",
"@types/node": "^22.7.7",
"better-node-test": "^0.7.1",
"c8": "^10.1.2",
"check-dts": "^0.8.0",
"check-dts": "^0.8.2",
"clean-publish": "^5.0.0",
"eslint": "^9.8.0",
"globals": "^15.9.0",
"jsdom": "^24.1.1",
"nanostores": "^0.11.0",
"size-limit": "^11.1.4",
"tsx": "^4.16.5",
"typescript": "^5.5.4"
"eslint": "^9.13.0",
"globals": "^15.11.0",
"jsdom": "^25.0.1",
"nanostores": "^0.11.3",
"size-limit": "^11.1.6",
"tsx": "^4.19.1",
"typescript": "^5.6.3"
},
"prettier": {
"arrowParens": "avoid",
Expand Down Expand Up @@ -85,7 +85,7 @@
"import": {
"./index.js": "{ createRouter }"
},
"limit": "696 B"
"limit": "684 B"
}
],
"clean-publish": {
Expand Down
Loading

0 comments on commit d293d80

Please sign in to comment.