-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: inference of paths for typesafeBrowserRouter
- Loading branch information
1 parent
0008353
commit a001404
Showing
10 changed files
with
248 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"react-router-typesafe": patch | ||
--- | ||
|
||
Fixed an issue where mixed paths with children and without would lead to flaky inference of paths |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"react-router-typesafe": minor | ||
--- | ||
|
||
typesafeBrowserRouter now infers correct paths for relative paths |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ module.exports = { | |
useTabs: true, | ||
singleQuote: true, | ||
endOfLine: 'auto', | ||
experimentalTernaries: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"[typescript]": { | ||
"typescript.preferences.importModuleSpecifier": "non-relative" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": true | ||
} | ||
}, | ||
"window.commandCenter": true, | ||
"editor.rulers": [120], | ||
"workbench.tree.indent": 16 | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"[typescript]": { | ||
"typescript.preferences.importModuleSpecifier": "non-relative" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "explicit" | ||
} | ||
}, | ||
"window.commandCenter": true, | ||
"editor.rulers": [120], | ||
"workbench.tree.indent": 16 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
{ | ||
"name": "react-router-typesafe", | ||
"version": "1.4.4", | ||
"author": "fredericoo", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/stargaze-co/react-router-typesafe.git" | ||
}, | ||
"scripts": { | ||
"build": "tsup", | ||
"release": "bun run build && changeset publish" | ||
}, | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.mjs", | ||
"devDependencies": { | ||
"@changesets/cli": "^2.26.2", | ||
"@happy-dom/global-registrator": "^11.0.6", | ||
"@testing-library/react": "^14.0.0", | ||
"bun-types": "^1.0.1", | ||
"eslint": "^8.45.0", | ||
"expect-type": "^0.16.0", | ||
"happy-dom": "^11.0.6", | ||
"prettier": "^3.0.0", | ||
"react": "^18.2.0", | ||
"react-router-dom": "^6.16.0", | ||
"tsup": "^7.1.0", | ||
"typescript": "^5.1.6" | ||
}, | ||
"peerDependencies": { | ||
"react": ">= 17", | ||
"react-router-dom": ">= 6.4.0", | ||
"typescript": ">= 4.9" | ||
}, | ||
"exports": { | ||
".": { | ||
"require": "./dist/index.js", | ||
"import": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts" | ||
} | ||
}, | ||
"description": "type safe patches of react-router-dom", | ||
"files": [ | ||
"dist" | ||
], | ||
"keywords": [ | ||
"react", | ||
"react-router", | ||
"react-router-dom", | ||
"remix", | ||
"remix-router" | ||
], | ||
"license": "ISC", | ||
"types": "./dist/index.d.ts" | ||
"name": "react-router-typesafe", | ||
"version": "1.4.4", | ||
"author": "fredericoo", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/stargaze-co/react-router-typesafe.git" | ||
}, | ||
"scripts": { | ||
"build": "tsup", | ||
"release": "bun run build && changeset publish" | ||
}, | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.mjs", | ||
"devDependencies": { | ||
"@changesets/cli": "^2.26.2", | ||
"@happy-dom/global-registrator": "^11.0.6", | ||
"@testing-library/react": "^14.0.0", | ||
"bun-types": "^1.0.1", | ||
"eslint": "^8.45.0", | ||
"expect-type": "^0.16.0", | ||
"happy-dom": "^11.0.6", | ||
"prettier": "^3.2.5", | ||
"react": "^18.2.0", | ||
"react-router-dom": "^6.16.0", | ||
"tsup": "^7.1.0", | ||
"typescript": "^5.1.6" | ||
}, | ||
"peerDependencies": { | ||
"react": ">= 17", | ||
"react-router-dom": ">= 6.4.0", | ||
"typescript": ">= 4.9" | ||
}, | ||
"exports": { | ||
".": { | ||
"require": "./dist/index.js", | ||
"import": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts" | ||
} | ||
}, | ||
"description": "type safe patches of react-router-dom", | ||
"files": [ | ||
"dist" | ||
], | ||
"keywords": [ | ||
"react", | ||
"react-router", | ||
"react-router-dom", | ||
"remix", | ||
"remix-router" | ||
], | ||
"license": "ISC", | ||
"types": "./dist/index.d.ts" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.