Skip to content

Commit

Permalink
Upgrade to v2.0.0
Browse files Browse the repository at this point in the history
**❇️ Added features / Improvements:**
+ TypeScript support
+ Before route push hooks
+ Restore scroll state
+ Updated readme
+ Created examples (which you may find in [DanielSharkov/svelte-router-examples](https://github.com/DanielSharkov/svelte-router-examples))

**🔄 Changes:**
* Now bundling with Rollup instead of Webpack
* Now using direct character comparison instead of deprecated `charCode`

**❗️ Breaking changes:**
- Renamed `RouterLink.svelte` to `RouteLink.svelte` and added prop `router`
- Now parsing URL query just by `key:value` of type `{[key: string]: string}` instead of `key:values` by type `{[key: string]: string|[]string}`
- Renamed router API point `navigate` to `pushPath`, which now only takes a path that already may include the URL query
- Renamed `RouterViewport.svelte` to `Viewport.svelte` and
	- removed `easeIn` & `easeOut`
	- removed event forwarding props `outrostart`, `outroend`, `introstart` and `introend`

**Just some cool stuff:**
* Finally a logo - self made 😊
  • Loading branch information
DanielSharkov committed Nov 21, 2021
1 parent cab1062 commit 493e928
Show file tree
Hide file tree
Showing 20 changed files with 5,351 additions and 1,137 deletions.
19 changes: 19 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {}
}
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.DS_Store
node_modules
public/bundle.*
package-lock.json
yarn.lock
/node_modules/
src/*.js*
src/index.d.ts
src/*.mjs*
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.vscode
.DS_Store
tests
.eslint*
*.svg
router.ts
rollup.config.js
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["svelte.svelte-vscode"]
}
Loading

0 comments on commit 493e928

Please sign in to comment.