Skip to content

Commit

Permalink
version 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgermano committed Sep 14, 2022
1 parent 628b8e6 commit 7dc783e
Show file tree
Hide file tree
Showing 15 changed files with 583 additions and 75 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/public/
/coverage/
/tests/
/pwTests/
eng.traineddata
.DS_Store
.idea
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
# Svelte Client Router Changelog

## 2.0.2

- Fixed bug on hash routing
- Added tests with playwright

## 2.0.1

- Improved NPM package exporting
-
## 2.0.1

- Improved NPM package exporting
-
## 2.0.0

- New version design from the ground
- 100% unit tested
- Several performance enhancements

## 1.3.10

- Several bug fixing

## 1.3.1
Expand Down
124 changes: 62 additions & 62 deletions docs/assets/index.f8be593b.js → docs/assets/index.78d33a13.js

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link rel="icon" type="image/png" href="/svelte-client-router/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Svelte Client Router - Documentation</title>
<script type="module" crossorigin src="/svelte-client-router/assets/index.f8be593b.js"></script>
<script type="module" crossorigin src="/svelte-client-router/assets/index.78d33a13.js"></script>
</head>
<body>
<div id="app"></div>
Expand Down
3 changes: 2 additions & 1 deletion docsproj/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import SCR_DefaultLayout from "./layout/SCR_DefaultLayout.svelte";
import routes from "./js/routes/index.js";
configStore.setBeforeEnter(({ resolve }) => {
configStore.setBeforeEnter(({ resolve, routeTo }) => {
console.log(routeTo)
appStore.setVersion(0);
resolve(true);
});
Expand Down
1 change: 1 addition & 0 deletions docsproj/src/js/routes/v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ const routes = [
lazyLoadComponent: () =>
import("../../pages/v1/SCR_TestAnyRouteWildcard.svelte"),
title: "SCR - Test - Any Route Wildcard - Version 1",
beforeEnter: [setVersion1],
},
];

Expand Down
1 change: 1 addition & 0 deletions docsproj/src/js/routes/v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ const routes = [
lazyLoadComponent: () =>
import("../../pages/v2/SCR_TestAnyRouteWildcard.svelte"),
title: "SCR - Test - Any Route Wildcard - Version 2",
beforeEnter: [setVersion2],
},
];

Expand Down
2 changes: 1 addition & 1 deletion docsproj/src/pages/v2/SCR_TestRegexPath.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</script>

<SCR_Page
back={{ name: "v2_Router_Store", text: "Router Store" }}
back={{ name: "v2_Routes_Store", text: "Routes Store" }}
forward={{ name: "v2_Test_Regex_Path_2", text: "Test - Regex Path 2" }}
>
<div class="scr-page">
Expand Down
75 changes: 73 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svelte-client-router",
"version": "2.0.1",
"version": "2.0.2",
"author": "Arthur José Germano",
"license": "MIT",
"main": "src/index.js",
Expand All @@ -24,12 +24,19 @@
"coverage": "vitest run --coverage --globals --environment happy-dom",
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"preview": "vite preview",
"play": "npx playwright codegen http://localhost:5173",
"pwtest": "npx playwright test /pwTests",
"pwtesthead": "npx playwright test /pwTests --headed",
"pwtestdebug": "npx playwright test /pwTests --debug",
"pwreport": "npx playwright show-report"
},
"devDependencies": {
"@playwright/test": "^1.25.2",
"@sveltejs/vite-plugin-svelte": "^1.0.2",
"@vitest/coverage-c8": "^0.22.1",
"happy-dom": "^6.0.4",
"playwright": "^1.25.2",
"svelte": "^3.49.0",
"vite": "^3.0.9",
"vitest": "^0.22.1"
Expand Down
3 changes: 3 additions & 0 deletions pwTests/helpers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const sleep = (ms) => {
return new Promise((resolve) => setTimeout(resolve, ms));
};
Loading

0 comments on commit 7dc783e

Please sign in to comment.